function initMenu(){
	var dropdown = document.getElementsByTagName("ul");
	for (var x=0; x<dropdown.length; x++){
		if (dropdown[x].className.indexOf("drop-holder") != -1){
			var nodes = dropdown[x].getElementsByTagName("li");
			for (var i=0; i<nodes.length; i++){
				if(nodes[i].getElementsByTagName("ul")[0]){
					nodes[i].onmouseover = function(){
						this.className += " drop-hover";
					}
					nodes[i].onmouseout = function(){
						this.className = this.className.replace("drop-hover", "");
					}
				}
				else{
					nodes[i].onmouseover = function(){
						this.className += " hover";
					}
					nodes[i].onmouseout = function(){
						this.className = this.className.replace("hover", "");
					}
				}
			}
		}
	}
}

if (window.addEventListener){
	window.addEventListener("load", initMenu, false);
}
else if (window.attachEvent){
	window.attachEvent("onload", initMenu);
}