function startList() {
	if (document.all&&document.getElementById) {
		
		navRoot = document.getElementById("nav");
		
		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", "");
				}
			
				setSubListHandlers(node);

			}
		}
	}
}

//window.onload=startList;



function setSubListHandlers(_node)
{

		var subLists = _node.getElementsByTagName("ul");

	
		for(a=0; a < subLists.length; a++) 
		{
			var subList = subLists[a];  //UL

			for (j=0; j < subList.childNodes.length; j++) 
			{

				var liNode = subList.childNodes[j];
				
				if (liNode.nodeName=="LI") {
					liNode.onmouseover=function() {
						this.className += " over";
						//alert(this.className);						
						
					}
					liNode.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		
		}

}

