// side menu functions
function showmenu(elmnt1,elmnt2,elmnt3) {
	document.getElementById(elmnt1).style.visibility="visible";
	//document.getElementById(elmnt2).style.background="#EFEDE6";
	//document.getElementById(elmnt3).style.visibility="visible";
}

function hidemenu(elmnt1,elmnt2,elmnt3) {
	document.getElementById(elmnt1).style.visibility="hidden"
	//document.getElementById(elmnt2).style.background="#EFEDE6";
	//document.getElementById(elmnt3).style.visibility="hidden";
}

function jsSwapImage()
{
	if (document.images){
		for (var i=0; i < jsSwapImage.arguments.length; i=i+2){
			document.images[jsSwapImage.arguments[i]].src = jsSwapImage.arguments[i+1];
		}
	}
}

var images = new Array();
function jsLoadImages()
{
	if (document.images)
	{
		for (var i=0; i < jsLoadImages.arguments.length; i++){
			images[i] = new Image();
			images[i].src = jsLoadImages.arguments[i];
		}
	}
}


function init() {
	//==========================================================================================
	// if supported, initialize TransMenus
	//==========================================================================================
	// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
	// This is better than server-side checking because it will also catch browsers which would
	// normally support the menus but have javascript disabled.
	//
	// If supported, call initialize() and then hook whatever image rollover code you need to do
	// to the .onactivate and .ondeactivate events for each menu.
	//==========================================================================================
	if (TransMenu.isSupported()) {
		TransMenu.initialize();

		// hook all the highlight swapping of the main toolbar to menu activation/deactivation
		// instead of simple rollover to get the effect where the button stays hightlit until
		// the menu is closed.
		menu1.onactivate = function() { document.getElementById("a_nav_laboratory").className = "hover"; };
		menu1.ondeactivate = function() { document.getElementById("a_nav_laboratory").className = ""; };

	}
}
