// JavaScript Document
var onNodeId = null;
var waitNodeId = null;
var timerNavOff = 0;
var timerNavOn = 0;
function navOff(elem){
	elem.className=elem.className.replace(" over", "");
	onNodeId = null;
}
function navOn(elem2){
	if(elem2.className != "on"){
		elem2.className+=" over";
	}
	if(timerNavOff && onNodeId){
		clearTimeout(timerNavOff);
		navOff(document.getElementById(onNodeId));
	}
	waitNodeId = null;
}
function startList() {
	if (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() {
					waitNodeId = this.id;
					if(waitNodeId == onNodeId){
						clearTimeout(timerNavOff);
					}
					timerNavOn = setTimeout("navOn(document.getElementById('" + waitNodeId + "'))", 250);
				}
				node.onmouseout=function() {
					clearTimeout(timerNavOn);
					if(this.className == "off over"){
						onNodeId = this.id;
						timerNavOff = setTimeout("navOff(document.getElementById('" + onNodeId + "'))", 1500);
					}
				}
			}
		}
	}
}