
// JavaScript Document

startList = function()
{
	navRoot = document.getElementById("navigation").childNodes[0];
	/*
	for (j=0;j<navRoot.childNodes.length;j++)
	{
		alert (navRoot.childNodes[j].nodeName);
	}
	*/
	
	if (document.all && document.getElementById)
	{
		navRoot = document.getElementById("navigation").childNodes[0];
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI")
			{
				node.onmouseover=function() {this.className+=" over";}
				node.onmouseout=function() {this.className=this.className.replace(" over", "");}
			}
		}
	}
	
	startMenu();
}
window.onload=startList;




startMenu = function()
{
	navRoot = document.getElementById("navigation").childNodes[0];
	
	for (j=0;j<navRoot.childNodes.length;j++)
	{
		//got first set of LIs
		//alert (navRoot.childNodes[j].innerHTML);				
		menu_ul = navRoot.childNodes[j].getElementsByTagName("LI");
		//alert (menu_ul.length);
		for (k=0;k<menu_ul.length;k++)
		{
			menu_ul.onmouseover=function() {this.className+=" over";}
			menu_ul.onmouseout=function() {this.className=this.className.replace(" over", "");}
		}
	}
	
		
	if (document.all && document.getElementById)
	{
		navRoot = document.getElementById("navigation").childNodes[0];
		for (i=0; i<navRoot.childNodes.length; i++)
		{
			node = navRoot.childNodes[i];
			//alert (node.nodeName);
			if (node.nodeName=="LI")
			{
				node.onmouseover=function() {this.className+="over";}
				node.onmouseout=function() {this.className=this.className.replace("over", "");}
			}
		}
	}
	
}



