Flash Detection w/Image

I have used kirupa’s code to display a jpeg instead of my .swf file on my web page for people who do not have the flash player installed on their computer.

My only problem is that my image map is not working (the jpg shows fine). Does anyone else have problem with it?

Here is my code:

[font=Courier New]<SCRIPT LANGUAGE=JavaScript1.1>
<!–
var MM_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*)))
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&gt;
'); //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&gt;
‘);
}
if ( MM_FlashCanPlay ) {
document.write(’<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”’);
document.write(’ codebase=”[/font][font=Courier New]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0[/font][font=Courier New]" ‘);
document.write(’ ID=“home_page” WIDTH=“500” HEIGHT=“200” ALIGN="">’);
document.write(’ <PARAM NAME=movie VALUE=“home_page.swf”> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> ‘);
document.write(’ <EMBED src=“home_page.swf” quality=high bgcolor=#FFFFFF ‘);
document.write(’ swLiveConnect=FALSE WIDTH=“500” HEIGHT=“200” NAME=“script” ALIGN=""’);
document.write(’ TYPE=“application/x-shockwave-flash” PLUGINSPAGE="[/font][font=Courier New]http://www.macromedia.com/go/getflashplayer">’[/font][font=Courier New]);
document.write(’ </EMBED>’);
document.write(’ </OBJECT>’);
} else{
document.write(’<IMG SRC=“Images/application_link.jpg” WIDTH=“502” HEIGHT=“202” usemap="#Map" BORDER=0>’);
}
//–>
</SCRIPT><NOSCRIPT><IMG SRC=“Images/application_link.jpg” WIDTH=“502” HEIGHT=“202” usemap="#Map" BORDER=0>
<map name=“Map” id=“Map”>
<area shape=“rect” coords=“32,51,182,72” href=“secure/application_purchase.html”>
<area shape=“rect” coords=“32,81,182,99” href=“secure/application_refinance.html”>
<area shape=“rect” coords=“32,107,182,125” href=“secure/application_equity.html”>
<area shape=“rect” coords=“32,133,182,154” href=“secure/application_consolidation.html”>
<area shape=“rect” coords=“32,160,182,180” href=“secure/application_commercial.html”>
</map></NOSCRIPT>[/font]

Here is what kirupa has on their site

Any suggestions would be great I have been messing with it forever and I am afraid I have just been staring at it too long!

Thanks,
Amy