<!--

/*startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		if (navRoot) {
		    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", "");
				    }
			    }
		    }
		}
	}
}
window.onload=startList;*/
var menuTimeout = null;
var hideMenu = function() {
	$("#visibleNav").hide();
}
$(function() {
	var firstLevelNavItems = $("#nav li");
	firstLevelNavItems.mousemove(function() {
		clearTimeout(menuTimeout);
		var visibleNav = $("#visibleNav");
		if (visibleNav.length == 0) {
			visibleNav = $("<div></div>");
			visibleNav.attr("id", "visibleNav");
			$("body").append(visibleNav);
		}
		var menu = $(this).children("ul");
		visibleNav.empty();
		visibleNav.append(menu.clone());
		var navItems = visibleNav.children("ul li");
		navItems.mousemove(function() {
			clearTimeout(menuTimeout);
		});
		navItems.mouseout(function() {
			menuTimeout = setTimeout(hideMenu, 100);
		});
		var navItemPos = $(this).offset();
		visibleNav.css("left", (navItemPos.left) + "px");
		visibleNav.css("top", (navItemPos.top + 31) + "px");
		visibleNav.show();
	});
	firstLevelNavItems.mouseout(function() {
		menuTimeout = setTimeout(hideMenu, 100);
	});
});

//-->