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');
}
function drawFlash(movie,bgcolor,x,y) {
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' ID="flash" WIDTH="'+x+'" HEIGHT="'+y+'" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="'+movie+'"> <PARAM NAME=wmode VALUE="transparent"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+bgcolor+'>  ');
		document.write(' <EMBED src="'+movie+'" quality=high bgcolor='+bgcolor+'  ');
		document.write(' wmode="transparent" swLiveConnect=FALSE WIDTH="'+x+'" HEIGHT="'+y+'" NAME="flash" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{
		document.write('<P>');
		document.write('This website uses Flash');
		document.write('<br>Go to <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">macromedia.com</a> to download the Flash plug-in.');
		document.write('<br>More than 98% on the internet did this before.');
	}
}

function drawFlashImage(movie,bgcolor,x,y,lang) {
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' ID="flash" WIDTH="'+x+'" HEIGHT="'+y+'" ALIGN="">');
		document.write(' <PARAM NAME=movie VALUE="'+movie+'"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE='+bgcolor+'>  ');
		document.write(' <param name="FlashVars" value="lang='+lang+'">');
		document.write(' <EMBED src="'+movie+'" FlashVars="lang='+lang+'" quality=high bgcolor='+bgcolor+'  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+x+'" HEIGHT="'+y+'" NAME="flash" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{
		document.write('<img src="images/nav.jpg" width="300" height="500" usemap="#navmap" border="0">');
	}
}

