﻿depth=0;
function dosublist(node) {
var node2;
var i;
	depth++;
	for (i=0; i<node.childNodes.length; i++) {
		node2 = node.childNodes[i];
		if (node2.nodeName=="LI") {
			node2.onmouseover=function() {this.className+=" over";}
			node2.onmouseout=function() {this.className=this.className.replace(" over", "");}
		}
		dosublist(node2);
	}
	depth--;
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		dosublist(navRoot);
	}
}
window.onload=startList;
