function hideFlash() {
	if (is_mac  && !is_safari3)
	{
		flash = document.getElementById("flashcontent");
		if (flash) {
			flash.style.visibility = "hidden";
		}
	}
}

function showFlash() {
	if (is_mac  && !is_safari3)
	{
		flash = document.getElementById("flashcontent");
		if (flash) {
			flash.style.visibility = "visible";
		}
	}
}

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("menu1").className = "hover"; hideFlash(); };
		menu1.ondeactivate = function() { document.getElementById("menu1").className = ""; showFlash(); };

		menu2.onactivate = function() { document.getElementById("menu2").className = "hover"; hideFlash(); };
		menu2.ondeactivate = function() { document.getElementById("menu2").className = ""; showFlash(); };

		menu3.onactivate = function() { document.getElementById("menu3").className = "hover"; hideFlash(); };
		menu3.ondeactivate = function() { document.getElementById("menu3").className = ""; showFlash(); };

		menu4.onactivate = function() { document.getElementById("menu4").className = "hover"; hideFlash(); };
		menu4.ondeactivate = function() { document.getElementById("menu4").className = ""; showFlash(); };
		
		menu5.onactivate = function() { document.getElementById("menu5").className = "hover"; hideFlash(); };
		menu5.ondeactivate = function() { document.getElementById("menu5").className = ""; showFlash(); };
		
		menu6.onactivate = function() { document.getElementById("menu6").className = "hover"; hideFlash(); };
		menu6.ondeactivate = function() { document.getElementById("menu6").className = ""; showFlash(); };
		
		/*
		document.getElementById("umbria").onmouseover = function() {
			ms.hideCurrent();
			this.className = "hover";
		}

		document.getElementById("umbria").onmouseout = function() { this.className = ""; }
		*/
	}
}
addLoadEvent(init);