// JavaScript Document which when IE is used, assigns a class name to topnav li elements
//faking hover states for these elements

//---------- top nav drop downs -------------------------------

top_navList = function()
{
	if (document.all&&document.getElementById)
	{	
		top_nav_Root = document.getElementById("top_nav");
	
		//get all li elements within top_navRoot
		top_nav_li_Array = top_nav_Root.getElementsByTagName("li");
		
		for (b = 0; b < top_nav_li_Array.length; ++b)
		{
			top_nav_li_Array[b].onmouseover=function()
			{			
				this.className+=" over";
			}
		
			top_nav_li_Array[b].onmouseout=function()
			{			
				this.className=this.className.replace(" over", "");
			}
		}
	}
}

window.attachEvent("onload", top_navList);