function startList() 
{
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("headernav");
	    if (navRoot!=null)
	    {
		    liElems = navRoot.getElementsByTagName("LI");
		    for (i=0; i<liElems.length; i++) 
		    {
			    node = liElems(i);
			    if (node.nodeName=="LI") 
			    {
				    node.onmouseover=function() 
				    {
					    this.className+=" over";
					    //grab the next ul and make it visible
    					
					    for (j=0; j<this.childNodes.length; j++)
					    {
						    if (this.childNodes.item(j).nodeName == "UL") 
						    {this.childNodes.item(j).style.display = "block";}
					    }
				    }
				    node.onmouseout=function() 
				    {
					    this.className=this.className.replace(" over", "");
					    //grab the next ul and make it invisible					
					    for (j=0; j<this.childNodes.length; j++)
					    {
						    if (this.childNodes.item(j).nodeName == "UL") 
						    {this.childNodes.item(j).style.display = "none";}
					    }}
			    }
		    }
		    childLIElems = navRoot.childNodes
		    for (j=0; j<childLIElems.length; j++)
		    {
			    node = childLIElems(j)
			    if (node.nodeName == "LI")
			    {
				    node.style.zIndex = 100 - j;
			    }
		    }
        }
	}
}

window.attachEvent("onload", startList)