function class_assign_mouseover() {
	if (this.nodeName!="LI") return;
		if (this.className=="arrow_down") {
			this.className="arrow_down_rollover";
		} else this.className="rollover";
		var nodes = this.childNodes;
		for (var i = 0; i< nodes.length; i++) {
			if (nodes[i].nodeName=="A") nodes[i].className="rollover";
		}
}
function class_assign_mouseout() {
	if (this.nodeName!="LI") return;
		if (this.className=="arrow_down_rollover") {
			this.className="arrow_down";
		} else this.className="";
		var nodes = this.childNodes;
		for (var i = 0; i< nodes.length; i++) {
			if (nodes[i].nodeName=="A") nodes[i].className="";
		}
}
function class_assign(e) {
	if (this.nodeName!="A") {
		var nodes = this.childNodes;
		if (nodes.length <3) return;
		manageMenuArray(this.id);
		for (var i = 0; i< nodes.length; i++) {
			if (nodes[i].nodeName=="UL") {
			
				if (nodes[i].className!="show_class") { 
					nodes[i].className="show_class";
				} else  {
					nodes[i].className = '';
				}
			} else continue;
		}
	} else {
		if (this.target=="_self" || this.target=="_top") {
			targ = this.target.substring(1,this.target.length);
		} else {
			targ = this.target;	
		}
		eval(targ).location.href= this.href;
	}
	if (document.all&&document.getElementById) {
		window.event.cancelBubble = true;
	} else {
		e.stopPropagation(); 
	}
}
displayNodes = function() {
   if (document.getElementById("MightyMenu")) {
      navRoot = document.getElementById('MightyMenu').getElementsByTagName("LI");
      navRootHref = document.getElementById('MightyMenu').getElementsByTagName("A");
      for(i=0; i<navRoot.length; i++) {
         navRoot[i].onmouseover = class_assign_mouseover;
         navRoot[i].onmouseout = class_assign_mouseout;
         navRoot[i].onclick = class_assign;
      }
      for(i=0; i<navRootHref.length; i++) navRootHref[i].onclick = class_assign;
   }
}

openMenuArray = Array();
window.onload=displayNodes;