//Redirect Mac IE users to message as the menu doesn't support them yet//

var mactest=navigator.userAgent.indexOf("Mac")!=-1
var browsertest=navigator.userAgent.indexOf("MSIE 5")!=-1
if (mactest && browsertest) {
	location="/tabid/90/Default.aspx"
}

function GetHeaderFlash() {
	var MM_contentVersion = 6;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if (plugin) {
			var words = navigator.plugins["Shockwave Flash"].description.split(" ");
			for (var i = 0; i < words.length; ++i)
			{
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i];
			}
		var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<scr' + 'ipt language=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
		document.write('</scr' + 'ipt\> \n');
	}
	if (MM_FlashCanPlay) {
		document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' id="pgachamp_head" width="605" height="119" align="">');
		document.write(' <param name=movie value="/Portals/0/HeaderImages/slideshow_as2/slideshow_Main.swf"> <param name=quality value=high> <param name="BASE" value="."> <param name=bgcolor value=#96968C>  ');
		document.write(' <embed src="/Portals/0/HeaderImages/slideshow_as2/slideshow_Main.swf" quality=high bgcolor=#96968C  ');
		document.write(' swLiveConnect=false width="605" height="119" name="slideshow_Main" align="" base="."  ');
		document.write(' type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </embed>');
		document.write(' </object>');
	}else{
		document.write('  <img src="/images/noflash_home.jpg" alt="Home" width="605" height="119" usemap="#noflash" />   ');
		document.write('  <map name="noflash">  ');
		document.write('  <area shape="rect" coords="490,33,723,91" href="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank" alt="Download Flash Player">  ');
	}
}

function turn_off(cell) {
	cell.style.backgroundImage = "";
	cell.style.background = "#FFFFFF";
}

function turn_on(cell) {
	cell.style.backgroundImage = "url('/portals/_default/skins/MPW/MenuHoverBg.jpg')";
}	