/***************************************************************
fix:assign class 'over' to display submenu's in ie5>
***************************************************************/
startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		if(navRoot != null){
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName.toLowerCase()=="li") {
					node.onmouseover=function() {
						this.className+="over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace("over", "");
					}
				}
			}
		}
	}
}

function hideSelectbox(){
	if (document.all&&document.getElementById) {
		navRoot = document.getElementsByName("selectbox");
		if(navRoot != null){
			for (i=0; i<navRoot.length; i++) {
				//node = navRoot.childNodes[i];
				//if (node.nodeName.toLowerCase()=="select") {
					navRoot[i].style.visibility= "hidden";
				//}
			}
		}
	}	
}

function showSelectbox(){
	if (document.all&&document.getElementById) {
		navRoot = document.getElementsByName("selectbox");
		if(navRoot != null){
			for (i=0; i<navRoot.length; i++) {
				//node = navRoot.childNodes[i];
				//if (node.nodeName.toLowerCase()=="select") {
					navRoot[i].style.visibility= "visible";
				//}
			}
		}
	}		
}

window.onload=startList;

