function initPage(){
	var nav = new Array();
	nav[0] = document.getElementById("nav");
	nav[1] = document.getElementById("nav1");
	for (var j = 0; j < nav.length; j++){
		if (nav[j]){
			var nodes = nav[j].getElementsByTagName("li");
			for (var i = 0; i < nodes.length; i++){
				nodes[i].onmouseover = function (){
					if (this.className.indexOf("hover") == -1){
						this.className += " hover";
					}
				}
				nodes[i].onmouseout = function (){
					this.className = this.className.replace(" hover", "");
				}
			}
			nodes = [];
		}
	}
}
if (window.attachEvent && !window.opera) window.attachEvent("onload", initPage);