// JavaScript Document
window.onload = function() {
	var lis = document.getElementById("MainnavTab").getElementsByTagName("div");
	for(var i=0; i<lis.length; i++){
		lis[i].onmouseover=function(){
			this.className+=(this.className.length>0?" ":"") + "show";
		}
		lis[i].onmouseout=function(){
			this.className=this.className.replace(new RegExp("( ?|^)show\\b"), "");
		}
	}
	
	var lis = document.getElementById("LeftPartUl").getElementsByTagName("li");
	for(var i=0; i<lis.length; i++){
		lis[i].onmouseover=function(){
			this.className+=(this.className.length>0?" ":"") + "show";
		}
		lis[i].onmouseout=function(){
			this.className=this.className.replace(new RegExp("( ?|^)show\\b"), "");
		}
	}
	
	if(document.getElementById("EnvironmentUL")!=null)
	{
	    var lis = document.getElementById("EnvironmentUL").getElementsByTagName("li");
	    for(var i=0; i<lis.length; i++){
		    lis[i].onmouseover=function(){
			    this.className+=(this.className.length>0?" ":"") + "show";
		    }
		    lis[i].onmouseout=function(){
			    this.className=this.className.replace(new RegExp("( ?|^)show\\b"), "");
		    }
	    }
    }
}
