
var ids = ["aboutNav", "eventNav", "fundNav"];
function fnOver(e) {
	document.getElementById(this.id+"Sub").style.display="block";
}
function fnOut(e) {
	document.getElementById(this.id+"Sub").style.display="none";
}
YAHOO.util.Event.addListener(ids, "mouseover", fnOver);
YAHOO.util.Event.addListener(ids, "mouseout", fnOut);

function hideList(){
	navRoot = document.getElementById("menu_ul");
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if(node.className=="over"){
			node.className="hide";
		}
	}
}

function startList() {
	
	navRoot = document.getElementById("menu_ul");
	if(navRoot==null){
		return false;
	}
	for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
			// for left nav
			 node.onclick = function() {
			// for top nav
			// node.onmouseover = function() {
				hideList();
				this.className="over";
			}
		}
	}
}
YAHOO.util.Event.onDOMReady(startList);
