window.onload = function() {
	initNav();
}

var initNav=function(){

	var uls=document.getElementById("top").getElementsByTagName("ul");
	for(var i=1;i<uls.length;i++){
		if(navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera")<0){
			uls[i].parentNode.onmouseover=function(){
				if(navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera")<0)this.lastChild.style.visibility='visible';
				this.firstChild.className="act";
			}

			uls[i].onmouseover=function(){
				this.parentNode.firstChild.className="act";
			}

			uls[i].parentNode.onmouseout=function(){
				if(navigator.appName=="Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera")<0)this.lastChild.style.visibility='hidden';
				this.firstChild.className=""
			}
		}
	}
}


