var jshover = function() {
	s=screen;
	if(s.width==1024)
	{
		document.getElementById("container").style.left = "-14";
	}

	var sfEls = document.getElementById("horizontal-multilevel-menu").getElementsByTagName("li");
	var sfElj = document.getElementById("horizontal-multilevel-menu").getElementsByTagName("a");
	var sfElb = document.getElementById("horizontal-multilevel-menu").getElementsByTagName("ul");
	/*var sfElbanner = document.getElementById("banner").getElementsByTagName("div");*/
	
	
	
	
	sfElb[1].className="maroon";
	

	
	for (var i=0; i<sfEls.length; i++) 
	{
		
	
		sfEls[i].onclick=function()
		{	
		
		
		for (var j=0; j<sfEls.length; j++) 
		{
		
			if (sfEls[j].className=="parented jshover")
			{
			sfEls[j].className="parented"
			}
		}
		
		
			
			this.className+=" jshover";
			
			var sfElg = document.getElementById("horizontal-multilevel-menu").getElementsByTagName("a");
				for (var i=0; i<sfElg.length; i++) 
					{
						if (sfElg[i].className=="root-item-selected")
							{
								sfElg[i].className+=" unselect"
								/*alert(sfElg[i].className);*/
							}
		
					}
			
		}
		
		
		
		
		
	}
	
	
	
	
	
	for (var i=0; i<sfElj.length; i++) 
	{
		sfElj[i].onmouseover=function()
		{
			
							if (this.className=="red")
								{
								
								sfElb[0].className="red";
								
								}
							if (this.className=="green")
								{
								
								sfElb[0].className="green";
								
								}
							if (this.className=="yellow")
								{
								
								sfElb[0].className="yellow";
								
								}
							if (this.className=="orange")
								{
								
								sfElb[0].className="orange";
								
								}
							if (this.className=="grey")
								{
								
								sfElb[0].className="grey";
								
								}
							if (this.className=="blue")
								{
								
								sfElb[0].className="blue";
								
								}
							if (this.className=="maroon")
								{
								
								sfElb[1].className="maroon";
								
								}
							
		
					
		}
		sfElj[i].onmouseout=function() 
		{
			
								
								sfElb[0].className="";
								
								
		}
		
		
		
		
		
	}
	
	
}

if (navigator.userAgent.toLowerCase().indexOf('gecko') != -1) {
      window.attachEvent = function(eventName, delegate) {
          this.addEventListener(eventName.substring(2), delegate, false);
      }
}

if (window.attachEvent) {
     window.attachEvent("onload", jshover);     
} 
	
	
	
	
	
	
