//Create an array 
var allPageTags = new Array(); 
function hideThisClass(theClass) {
//Populate the array with all the page tags
	var allPageTags=document.getElementsByTagName("*");
      //Cycle through the tags using a for loop
	for (i=0; i<allPageTags.length; i++) {
	     //Pick out the tags with our class name
		if (allPageTags[i].className==theClass) {
			//Manipulate this in whatever way you want
			allPageTags[i].style.display='none';  
		}  
	} 
} 


function showHide(menuName) {
	hideThisClass("submenu");
	document.getElementById(menuName).style.display='block';
}
