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

var 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 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="500" height="240" id="aexternal"'
	+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="' + myName + '" /><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="500" height="240" name="gallery1" align="top"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
	document.write(oeTags);   
}else{
    var alternateContent = '<h5>You need the latest version of Adobe Flash Player. </h5>';
   document.write(alternateContent);
   }

