// Flash Plugin Check start
//************************************************************

	
var contentVersion = 10;
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 PluginVersion = words[i]; 
	    }
	var FlashCanPlay = PluginVersion >= 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('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}

if ( FlashCanPlay ) {
	var oeTags ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="100%" height="100%" id="aexternal"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="' + myName + '" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="allowScriptAccess" value="always" /><param name="salign" value="lt" /><param name="bgcolor" value="#FFFFFF" />'
	+ '<embed src="' + myName + '" quality="high" scale="noscale" salign="lt" bgcolor="#FFFFFF"'
	+ 'width="100%" height="100%" name="gallery1" align="top"'
    + 'play="true"'
    + 'wmode="transparent"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="always"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
    + '<\/object>';
	document.write(oeTags);
}else{
    var alternateContent = 'you need flash player.';
  	document.write(alternateContent);
   }

