var MM_file2 = "swf/trails.swf";  // path and name of .swf file
var MM_contentVersion = 6;
MM_PluginVersion = "";
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:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="784" height="500" id="Splash" align="middle">');
	document.write('  <param name="allowScriptAccess" value="sameDomain" />');
   	document.write('  <param name="movie" value="swf/Splash.swf" />');
   	document.write('   <param name="quality" value="high" />');
	document.write('   <param name="bgcolor" value="#000000" />');
   	document.write('   <embed src="swf/Splash.swf" quality="high" bgcolor="#000000" width="784" height="500" name="Splash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
   	document.write('  </object>');
	document.write('  <br><br><center><a href="home.asp?loop=mainMapHome&noFlash=1">Enter Non-Flash Site</a></center>');
} else{
	document.write('<img src="images/jst_splash.jpg" alt="Captain John Smith - Adventures on the James River" width="790" height="505" border=0 usemap="#Map">');
	document.write('<map name="Map">');
	document.write('<area shape="rect" coords="500,400,650,480" href="home2.asp?loop=mainmap" target="_parent" alt="Home Page">');
	document.write('</map>');
}
