function addLoadListener(fn) {
	if (typeof window.addEventListener != 'undefined') {
		window.addEventListener('load', fn, false);
	}
	else if (typeof document.addEventListener != 'undefined') {
		document.addEventListener('load', fn, false);
	}
	else if (typeof window.attachEvent != 'undefined') {
		window.attachEvent('onload', fn);
	}
	else {
		return false;
	}
	return true;
}

function showLinkInfo(whichLink) {
	var title = whichLink.getAttribute("title") ? whichLink.getAttribute("title") : "";	
	var description = document.getElementById("description");
		
	if (description.firstChild.nodeType == 3) {
		description.firstChild.nodeValue = title;
	}
	return false;
}

function swapDescription() {
	var swap = document.getElementById("swap");
	var links = swap.getElementsByTagName("a");
	var description = document.getElementById("description");
	var origdesc = description.firstChild.nodeValue;
		
	for (var i=0; i<links.length; i++) {
		links[i].onmouseover = function () {
			return showLinkInfo(this);
		}	
		links[i].onmouseout = function () {
			
		}		
	}
}

addLoadListener(swapDescription);