// JavaScript Document

updateUL = function(nodein) {

	for (var i=0; i<nodein.childNodes.length; i++) {
		var node = nodein.childNodes[i];
		if (node.nodeName=="LI") {
			node.onmouseover=function() {
				this.className+=" over";
			}
			node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
			}
			for (var j=0; j<node.childNodes.length; j++) {
				var subnode = node.childNodes[j];
				if (subnode.nodeName=="UL") {
					updateUL(subnode);
				}
			}
		}
	}
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		updateUL(navRoot);
	}
}

