	
	var close = 1;
	var bCloseMenu = 0;

	function popMenu( obj, menu, bg, font, pos ){
		// Set the colors
		bCloseMenu = 0;
		obj.style.backgroundColor = bg;
		obj.style.color = font;

		// Pop open the menu
		SwitchOn(menu, menu, pos);
	}

	function SwitchOn(menu, text, lefty){
		//Close any menus that are open
		closeMenus(); 
		
		// Get open the menu
		var pop = document.all[menu];

		// Set the style attributes to have the menu show
		pop.style.display = "block";
		pop.style.position = 'relative';	
		pop.style.left= lefty;
		pop.style.top=-3;
		pop.style.clip = "rect(auto 100% auto auto)";
		
		// Check if the menu should be displayed
		if( bCloseMenu == 1 ){
			pop.style.display = "none";	
			bCloseMenu = 0;
		}
		else{
			bCloseMenu = 1;
			pop.show;
			bCloseMenu = 0;
		}
	}

	function roll(obj, highlightcolor, textcolor){
		// Do the roll-over/out style
		obj.style.backgroundColor = highlightcolor;
		obj.style.color = "black"; //textcolor;
		bCloseMenu = 1;
	}

	function closeMenus(){		

		// By their nature the Divs will be visible so hide them
		document.all['menu1'].style.display = "none";
		document.all['menu2'].style.display = "none";
		document.all['menu3'].style.display = "none";
		document.all['menu4'].style.display = "none";
		document.all['menu5'].style.display = "none";
	}



