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