window.onload = function() {
	initLists();
}

function initLists() {
	// active the menu rollovers
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("mainnav").childNodes[0];
		selectBoxes = document.getElementsByTagName("select");


		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];			
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
					
					for (i=0;i < selectBoxes.length; i++)
					   selectBoxes[i].style.visibility = 'hidden';
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					
					for (i=0;i < selectBoxes.length; i++)
					   selectBoxes[i].style.visibility = 'visible';
				}
			 }

		 }
	 }
}