function toggleLogin() {

	var topLogin = document.getElementById('topLogin');
	
	topLogin.className = (topLogin.className == 'on') ? '' : 'on';
	
	if (topLogin.className == 'on')	{
		document.getElementById('email').focus();
		sIFR.replaceElement(named({sSelector:"h4", sFlashSrc:"/swf/Neuzeit.swf", sColor:"#20B4F1", sBgColor:"#2C3336", sLinkColor:"#20B4F1",  sHoverColor:"#20B4F1", nPaddingTop:"0", nPaddingBottom:"10"}));
	}
}

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
   
		if (anchor.getAttribute("href") &&
			anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";

		anchor.onfocus = anchor.blur;
	}
}

function startList() {
	if (document.all&&document.getElementById) {

		navRoot = document.getElementById("mainMenu");

		for (i=0; i<navRoot.childNodes.length; i++) {

			node = navRoot.childNodes[i];

			if (node.nodeName=="LI") {

				node.onmouseover=function() {
					this.className+=" over";
				}
				
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
	externalLinks();

}

window.onload = startList; 

function setDesc(element,which) {
	if (element != '') {
		document.getElementById(which).style.display='block';
	}
	else {
		document.getElementById(which).style.display='none';
	}

}