// based on suckerfish dropdowns: http://www.alistapart.com/articles/dropdowns
setUpDropdowns = function()
{
	if (document.all&&document.getElementById)
	{	
		// get the navlist nose and iterate through its children
		navRoot = document.getElementById("nav");
		for (var i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			// if its an LI
			if (node.nodeName=="LI")
			{	
				// add mouseover and mouseout functions to change the class
				node.onmouseover=function()
				{
					this.className+=" over";
				}
  				node.onmouseout=function()
				{
  					this.className=this.className.replace(" over", ""); 
   				}
				// then add the same thing for the ul
				for(var j=0; j<node.childNodes.length; j++ )
				{
					if( node.childNodes[j].nodeName == "UL" )
					{
						node.childNodes[j].onmouseover=function()
						{
							this.className+="over";
						}
						node.childNodes[j].onmouseout=function()
						{
							this.className=this.className.replace("over", "");
						}
					}
				}
   			}
  		}
 	}
}
window.onload=setUpDropdowns;