var tID;


window.onload = function() {
	//fillWindow();
	if (document.getElementById) {
		var nav = document.getElementById("navBar");
		for (var i=0; i<nav.childNodes.length; i++) {
			node = nav.childNodes[i];
			if (node.nodeName == "LI") {
				node.onmouseover = function() {
					this.className = this.className ? this.className : "over";
					if (tID != 'undefined') clearTimeout(tID);
					with (this.parentNode) {
						for (var d=0; d<childNodes.length; d++) {
							if (childNodes[d].nodeName=="LI" && childNodes[d] != this) {
								childNodes[d].className = childNodes[d].className == "current" ? "current" : "";
							}
						}
					}
				}
	  			node.onmouseout = function() {
					target = this;
	  				tID = setTimeout("target.className = target.className == 'current' ? 'current' : ''",500);
				}
			}
		}
	}
}
//window.onresize = fillWindow;
