Kirupa Detection script for Flash 8

I have used the detection script found here on kirupa. com to redirect users if they do not have flash version 8.

However I have tried to edit the code so that the site user must have version 8 using the code below.

However, when I test this on a machine with flash player 6 and not 8 it still loads up?

I would use the macromedia detection script but that only works if you intend to use the HTML pages. I have enclosed my swf file in a XHTML page.

You can test the page by pressing “enter site” if you go the page :www.jasoncortez.com

Can anyone tell me how to edit the code below please to make it detect flash player 8?

<SCRIPT LANGUAGE=JavaScript1.1>
<!--
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*)))
		continue;
		var MM_PluginVersion = words*; 
	    }
	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\> 
'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next 
');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))
');
	document.write('</SCR' + 'IPT\> 
');
}
if ( MM_FlashCanPlay ) {
	window.location.replace("http://www.jasoncortez.com/site/home.htm");
} else{
	window.location.replace("http://www.jasoncortez.com/site/noflash.htm");
}
//-->

</SCRIPT>