YAHOO.util.Event.on(window, 'load', init);

function init() {
	
	// javascript to imitate drop down for IE 6		
	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.className == "menu") {
				
				node.onmouseover = function() {
					this.className = "over";
				}

				node.onmouseout = function() {
	  				this.className = "menu";
				}
			}
		}
	}
		
		/*
		var divHeader = document.getElementById("header");
		
		var allList = divHeader.getElementsByTagName("li");
		var navUl = divHeader.getElementsByTagName("ul");
		var subMenu = navUl[0].getElementsByTagName("ul");
								
		var subMenuList = new Array();
		
		for (var i=0; i<allList.length; i++) {
			if (allList[i].className == "menu") {
				subMenuList.push(allList[i]);
			}
		}
		
		for (var i=0; i<subMenuList.length; i++) {
			YAHOO.util.Event.on(subMenuList[i], "mouseover", showNested, i);
			YAHOO.util.Event.on(subMenuList[i], "mouseout", hideNested, i);
		}
		
		function showNested(i) {
			subMenu[i].className = "over";
		}
		
		function hideNested(i) {
			subMenu[i].className = "";
		}
	*/
}