startList = function() {
	if (document.getElementById) {
		navRoot = document.getElementById("menu_left");
		for (i = 0; i < navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName == "LI") {
				for (j = 0; j < node.childNodes.length; j++) {
					childnode = node.childNodes[j];
					if (childnode.nodeName == "UL") {
						for (k = 0; k < childnode.childNodes.length; k++) {
							if (childnode.childNodes[k].className == "active") {
								node.className = "open";
							}
						}
					}
				}
				if (node.childNodes[0].nodeName == "A") {
					node.childNodes[0].onclick = function() {
						if (this.parentNode.className == "open") {
							this.parentNode.className = this.parentNode.className.replace("open", "");
						}
						else {
							this.parentNode.className += "open";
						}
					}
				}
			}
		}
	}
}
window.onload = startList;

