// Regan Bruck, Moxli Web Design (www.moxliwebdesign.com)
//
//This small snippets of code can be used for drop down menus.  This
//code was created by 
//

function startList() {
	if (document.all&&document.getElementById) //if Internet Explorer
	{
		navRoot = document.getElementById("topnav"); //go to the element ID specified
		
		//search through the child nodes of the element ID specified
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") //when the CSS element equals "li"
			{
				node.onmouseover=
					function() 
					{
						//do a onmouseover when LI has ".over" after it (in the style sheet).
						this.className+=" over"; 
  					}
  				node.onmouseout=
					function() 
					{
						//when onmouseout of the LI element, put things back.
  						this.className=this.className.replace(" over", "");
   					}
   			}
  		}
 	}
}


