I`m use this code:
and i don`t have any problems with detection. if yes - movie play. if no - you
see image with link to Macromedia/
<html>
<head>
<TITLE>{your page title}</TITLE>
<link rel="stylesheet" href="{your css path}" media="screen">
</HEAD>
<BODY>
<MAP NAME="{your map name}"><area shape="" coords=""
href="
http://www.macromedia.com/go/getflashplayer/" alt="+ MM FLash ?"></MAP>
<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[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 by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." &
MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}
document.write('<TABLE width="100%" height="100%" align="center"
valign="middle" border="0" cellpadding="0" cellspacing="0">');
document.write('<TR><TD width="100%" height="100%" align="center"
valign="middle">');
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#ve rsion=6,0,29,0" ');
document.write(' ID="AK_OPENER" WIDTH="" HEIGHT="" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="yourMC.swf"> <PARAM NAME=menu
VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor
VALUE=#somecolor> ');
document.write(' <EMBED src="yourMC.swf" menu=false quality=best
bgcolor=#somecolor ');
document.write(' swLiveConnect=FALSE WIDTH="" HEIGHT="" 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="{path to altternate image that contain link to
Macromedia}" WIDTH="" HEIGHT="" usemap="#{your map name}" BORDER=0>');
}
document.write('</TD></TR></TABLE>');
//-->
</SCRIPT>
<NOSCRIPT>
<TABLE width="100%" height="100%" align="center" valign="middle" border="0"
cellpadding="0" cellspacing="0">
<TR>
<TD width="100%" height="100%" align="center" valign="middle">
<IMG SRC="{path to altternate image that contain link to Macromedia}"
WIDTH="" HEIGHT="" usemap="{your map name}" BORDER=0>
</TD>
</TR></TABLE>
</NOSCRIPT>
</BODY>
</HTML>