
/*
startList = function() {
	if (document.all&&document.getElementById) {
		navRoots=["menu"];
		for(var z=0; z<navRoots.length; z++){
			navRoot = document.getElementById(navRoots[z]);
			if (navRoot!=null) {
				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", "");
						}
					}
				}
			}
		}
	}
}
*/

startList = function() {
	if (document.all&&document.getElementById) {
		$('.menuItem').each(
			function(index,menuItem){
				menuItem.onmouseover=function() {
					this.className+=" over";
				}
				menuItem.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		)
		$('.subMenuItem').each(
			function(index,menuItem){
				menuItem.onmouseover=function() {
					this.className+=" overSubSub";
				}
				menuItem.onmouseout=function() {
					this.className=this.className.replace(" overSubSub", "");
				}
			}
		)
	}
}
window.init[window.init.length]=startList;	

/*
		
startList = function(){
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("menu");
		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", "");
				}
			}
		}
	}
}
window.init[window.init.length]=startList;				
				
*/
				
				
				
/*
startList = function(){
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("menu");
				for (i = 0; i < node.childNodes.length; i++) {
					nodeItem = node.childNodes[i];
					if (nodeItem.nodeName == "UL") {
						alert("we found an ul");
						for (i = 0; i < nodeItem.childNodes.length; i++) {
							subMenu = nodeItem.childNodes[i];
							if (subMenu.nodeName == "LI") {
								alert("we found a li");
								subMenu.onmouseover=function() {
									this.className+=" over";
								}
								subMenu.onmouseout=function() {
									this.className=this.className.replace(" over", "");
								}
							}
						}
					}
				}

			}
		}


}
}
window.init[window.init.length]=startList;
*/

