window.onload = function() {
	var lis = document.getElementById("nav").getElementsByTagName("li");
	for(var i=0; i<lis.length; i++){
		lis[i].onmouseover=function(){
			this.className+=(this.className.length>0?" ":"") + "show";
			for(j=0; j < lis.length; j ++)
			{
				if(lis[j]==this)
				{
					if(lis[j+8])
					{
						lis[j+8].style.position = 'static';
					}
				}
			}
			
		}
		lis[i].onmouseout=function(){
			this.className=this.className.replace(new RegExp("( ?|^)show\\b"), "");
			for(j=0; j < lis.length; j ++)
			{
				if(lis[j]==this)
				{
					if(lis[j+8])
					{
						lis[j+8].style.position = 'relative';
					}
				}
			}
		}
	}
	
	if(document.getElementById("object")){
		var lis1 = document.getElementById("object").getElementsByTagName("li");
		for(i=0;i<lis1.length;i++)
		{
			lis1[i].onmouseover = function()
			{
				this.className = 'hover';	
			}
			lis1[i].onmouseout = function()
			{
				this.className = '';	
			}
		}
	}
}


