// JavaScript Document

var nodes = new Array;

startList = function() {
	if (document.getElementById&&document.getElementById("nav")) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.setAttribute("id", "node"+i);
				nodes.push("node"+i);
				node.onmouseover=function() {
					for (n in nodes) {
						if (this.getAttribute('id') != nodes[n]) document.getElementById(nodes[n]).className = '';
					}
					clearTimeout(this.tm);
					this.className.replace(' over', '');
					this.className+=" over";
				}
		  	node.onmouseout=function() {
			  	if (this.getAttribute('id')) this.tm = setTimeout("out("+this.getAttribute('id')+")",600)
		  	}
			}
		}
	}
}
window.onload=startList;

function out(obj) {
	if (obj.getAttribute('id')) document.getElementById(obj.getAttribute('id')).className='';//.replace(' over', '')
}
