Detect flash > show image > click image

Hello…

Ive searched the forum and found the code to detect flash, which then display an image if flash isnt detected.

What I’d like to know is how to set the image (which basically says “click here to download flash”) so it can be clicked on, and a new window will open (which will load macromedias plugin page)?

Any ideas on how to do this the <href=""> doesnt seem to work…

Here is the script so far:

<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=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0” ‘);
document.write(’ ID=“script” WIDTH=“230” HEIGHT=“166” ALIGN=”">’);
document.write(’ <PARAM NAME=movie VALUE=“vidreel.swf”> <PARAM NAME=quality VALUE=high> ‘);
document.write(’ <EMBED src=“vidreel.swf” quality=high ‘);
document.write(’ swLiveConnect=FALSE WIDTH=“230” HEIGHT=“166” NAME=“script” ALIGN=""’);
document.write(’ TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer”>’);
document.write(’ </EMBED>’);
document.write(’ </OBJECT>’);
} else{
document.write(’<IMG SRC="…/images/noFlash.png" WIDTH=“230” HEIGHT=“166” usemap="#script" BORDER=0>’);
}
//–>
</SCRIPT>
<NOSCRIPT>
<a href=“javascript:;” onClick=“MM_openBrWindow(‘http://www.macromedia.com/go/getflashplayer’,‘downloadFlash’,'scrollbars=yes,resizable=yes’)”><IMG SRC="…/images/noFlash.png" WIDTH=“230” HEIGHT=“166” BORDER=0 usemap="#script"></a>
</NOSCRIPT>

Thanks in advance for any help/suggestions.