/*
 * function: startList()
 */
var startList = function() {
	if(eval(document.getElementById("mainMenu").childNodes[0])) {
		navRoot = document.getElementById("mainMenu").childNodes[0];	
		for (i=0; i<navRoot.childNodes.length; i++) {		
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {
					node.firstChild.onmouseover=function() {
						this.parentNode.className+=" over";	
					}
					node.firstChild.onmouseout=function() {
						this.parentNode.className=this.parentNode.className.replace(" over", "");
					}
			 	} else {
					node.onmouseover=function() {
						this.className+=" over";
						
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
			 	}
			}
		}
	}
}

/*
 * Init
 */
window.onload = function() {
		startList();
}