startList = function()
{	
	if (document.all&&document.getElementById) 
	{
		navRoot = document.getElementById("ul1");

		for (i=0; i<navRoot.childNodes.length; i++) 
		{			
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{
				btnNode 	= node.childNodes[0];
				listNode 	= node.childNodes[1];
				if ( listNode.nodeName == "UL" )
				{
					menu = document.getElementById(listNode.id);
					btnNode.onmouseover=function() 
					{
						menu.style.display = "block";
					}
					
					btnNode.onmouseout=function() 
					{
						menu.style.display = "none";
					}
				}
   			}
  		}
 	}
	/*var menu = document.getElementById("ul2");
	var btn  = document.getElementById("btn2");
	
	btn.onmouseover = function()
	{
		menu.style.display = "block";		
	}
	
	btn.onmouseout = function()
	{
		menu.style.display = "none";
	}*/
	
	//alert(document.getElementById("ul1").childNodes.length);
	//navRoot = document.getElementById("ul4");
	//alert(navRoot.childNodes.length);
	//for (i=0; i<navRoot.childNodes.length; i++) 
	//{
		//if ( i = 1 ) 
		//{
		//	node = navRoot.childNodes[1];
		//	alert(node.childNodes.length);
		//}
	//}
	//node = navRoot.childNodes[9]
	//alert(node.childNodes[0].nodeName);
	//alert(node.childNodes[1].nodeName);
	
	
}

//window.onload = startList;

