var flashContentVersion = 6;
var flashPlugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( flashPlugin ) {
		var flashWords = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < flashWords.length; ++i)
	    {
		if (isNaN(parseInt(flashWords[i])))
		continue;
		var flashPluginVersion = flashWords[i]; 
	    }
	var flashCanPlay = flashPluginVersion >= flashContentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('\n<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('flashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & flashContentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}
