var canPlay = true;
var MM_contentVersion = 8;
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
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
else { 
	
}

if ( MM_FlashCanPlay ) {	
	canplay = true;
} else{
	canPlay = false;
}


function tryFlash() {
	//alert("tryFlash");
	if (canPlay == true) {
		//flash can play
	}
	else {
		if(document.getElementById("flashWrapper")){
			document.getElementById("flashWrapper").style.display="none";
			document.getElementById("noFlash").innerHTML="<strong>We tried to play you a Flash movie but you do not appear to have the latest Flash software. Please <a href=\"http://www.adobe.com/\" alt=\"This link to the adobe website opens in a new window\" target=\"_new\"/>install the latest version of the software</a>.</strong>";
		}
	}
}

//This call has been moved to the misc.js window.onload event
//window.onload = function initRR()
//{
//	tryFlash();
//}