var submenus = new Array();
submenus[0] = new Array ("aboutAnchor","about");
submenus[1] = new Array ("resourcesAnchor","resources");

function subMenu_show(anchorObj){
	var subMenuDiv;
	for (var i=0; i<submenus.length; i++) {		//hide them all
		subMenuDiv = xGetElementById(submenus[i][1]);
		subMenuDiv.style.display='none';
	}
	for (var i=0; i<submenus.length; i++) {		//show the one correlating to the object that triggered the event
		if(submenus[i][0]==anchorObj.id){
			subMenuDiv = xGetElementById(submenus[i][1]);
			subMenuDiv.style.display='block';
		}
	}

}

function subMenu_over(divObj,className){
	divObj.style.display='block';
	var menuAnchor;
	for (var i=0; i<submenus.length; i++) {		//show the one correlating to the object that triggered the event
		if(submenus[i][1]==divObj.id){
			menuAnchor = xGetElementById(submenus[i][0]);
			menuAnchor.className=className;
		}
	}
}


function subMenu_out(divObj,className){
	divObj.style.display='none';
	var menuAnchor;
	for (var i=0; i<submenus.length; i++) {		//show the one correlating to the object that triggered the event
		if(submenus[i][1]==divObj.id){
			menuAnchor = xGetElementById(submenus[i][0]);
			menuAnchor.className=className;
		}
	}
}
