hoverMenu = function() {
    var root = document.getElementById("nav");
	for (i=0; i<root.childNodes.length; i++) {
	    node = root.childNodes[i];
		if (node.nodeName=="LI") {
		    node.onmouseover=function() {
			this.className+=" ihover";
        }
		node.onmouseout=function() {
		    this.className="";
        }
        
        for (j=0; j<node.childNodes.length; j++) {
		    ulnode = node.childNodes[j];
			if (ulnode.nodeName=="UL") {
			    for (k=0; k<ulnode.childNodes.length; k++) {
				    childnode = ulnode.childNodes[k];
					if (childnode.nodeName=="LI") {
					    childnode.onmouseover=function() {
						    this.className+=" ihover";
                        }
                        childnode.onmouseout=function() {
                            this.className="";
                        }
                    }
                }
            }
        }
    }
}
}
if (window.attachEvent) window.attachEvent("onload", hoverMenu)
else
    window.onload=hoverMenu;
