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=7,0,0,0" width="784" height="584" id="mapConsolidated" align="middle">');
	document.write('  <param name="allowScriptAccess" value="sameDomain" />');
   	document.write('   <param name="movie" value="swf/trails.swf" />');
   	document.write('   <param name="quality" value="high" />');
   	document.write('   <embed src="swf/trails.swf" quality="high" bgcolor="#ffffff" width="784" height="584" name="mapConsolidated" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
   	document.write('  </object>');
	document.write('  <iframe name="contentframe" marginwidth="0" marginheight="0" frameborder="0" width="784" height="1400" src="home.asp?loop="></iframe> ');
} else{
	document.write('<img src="images/mainMap786x583.jpg" alt="Captain John Smith - Adventures on the James River" width="786" height="583" border=0 usemap="#Map">');
	document.write('<map name="Map">');
	document.write('<area shape="rect" coords="2,540,200,580" href="home.asp?loop=oxbow&swf=0" target="_parent" alt="Oxbow Loop">');
	document.write('<area shape="rect" coords="242,540,400,580" href="home.asp?loop=cypress&swf=0" target="_parent" alt="Cypress Loop">');
	document.write('<area shape="rect" coords="442,540,600,580" href="home.asp?loop=oyster&swf=0" target="_parent" alt="Oyster Loop">');
	document.write('<area shape="rect" coords="642,540,780,580" href=home2.asp?loop=" target="_parent" alt="Home Page">');
	document.write(' </map>');
}
