makeOver = function(li) {
	li.className += "over";
	if (li.childNodes[1])
		li.childNodes[1].style.display = "block";
}

makeOut = function(li) {
	li.className = li.className.replace("over", "");
	if (li.childNodes[1])
		li.childNodes[1].style.display = "none";
}

makeVisible = function(ul) {
	ul.style.display = "block";
}
makeInvisible = function(ul) {
//	if (ul.parent.className != "over")
//		ul.style.display = "none";
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menubar");
		processListItems(navRoot);
	}
}
processListItems = function(items) {
		for (i=0; i<items.childNodes.length; i++) {
			node = items.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+="over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace("over", "");
				}
				/*for (k=0; k<node.childNodes.length; k++) {
					subnode = node.childNodes[k];
					if (subnode.nodeName == "UL") {
						processListItems(subnode);
						break;
					}
				}*/
				
				/*for (k=0; k<node.childNodes.length; k++) {
					subnode = node.childNodes[k];
					if (subnode.nodeName == "UL") {
						subnode.onmouseover = function() {
							this.className+="menubar_over";
						}
						subnode.onmouseout = function() {
							this.className=this.className.replace("menubar_over", "");
						}
					}
				}*/
			}
		}
	}
//window.onload=startList;

/*processTreeMenu = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menubar");
		processMenuItems(navRoot.childNodes);
	}
}

processMenuItems = function(items) {
	for (var i=0; i < items.length; i++) {
		node = items[i];
		if (node.nodeName == "LI") {
			node.onmouseover = function() {
				for (var i=0; i < this.childNodes.length; i++) {
					subnode = this.childNodes[i];
					if (subnode.nodeName == "UL") {
						subnode.style.display = "block";
						return;
					}
				}
			}
			node.onmouseout  = function() {
				for (var i=0; i < this.childNodes.length; i++) {
					subnode = this.childNodes[i];
					if (subnode.nodeName == "UL") {
						subnode.style.display = "none";
						return;
					}
				}
			}
		}
		else if (node.nodeName == "UL") {
			node.onmouseover  = function() {
				this.style.display = "block";
			}
			node.onmouseout   = function() {
				this.style.display = "none";
			}
		}
	}
}
//window.onload=processTreeMenu;*/