startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("nav");
		for (x=0; x<navRoot.childNodes.length; x++) {
			node = navRoot.childNodes[x];
			if (node.nodeName.toLowerCase()=="div") {

				node.onmouseover = function() {
					this.className+=" over";
				}
				node.onmouseout = function() {
					this.className=this.className.replace(" over", "");
				}

				for (y=0; y<navRoot.childNodes[x].childNodes.length; y++) {
					subnode = navRoot.childNodes[x].childNodes[y];
					if (subnode.nodeName.toLowerCase()=="ul") {

						for (z=0; z<navRoot.childNodes[x].childNodes[y].childNodes.length; z++) {
							subsubnode = navRoot.childNodes[x].childNodes[y].childNodes[z];
							if (subsubnode.nodeName.toLowerCase()=="li") {

								subsubnode.onmouseover = function() {
									this.className+=" over";
								}
								subsubnode.onmouseout = function() {
									this.className=this.className.replace(" over", "");
								}

							}
						}

					}
				}

			}
		}

	}
}

if (window.attachEvent)	window.attachEvent("onload", startList)
else window.onload=startList;

function toggle(id) {
	var elem = document.getElementById(id);
	if (elem) {
		if (elem.style.display == 'block')
			elem.style.display = 'none';
		else
			elem.style.display = 'block';
	}
}