Flash Detection

I have tried to use the flash detection script on my page right here: http://www.mrbobdouglas.com/support_test.php

However, I am using two flash and image files, I changed the variable names however it still does not work in the 2nd script.

Any ideas?

Also, what is your opininos on this script?

<SCRIPT Language = "JavaScript"> 

function FlashInstalled() 
{ 
   result = false; 

   if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) 
   { 
      result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin; 
   } 
   else if (document.all && (navigator.appVersion.indexOf("Mac")==-1)) 
   { 
      eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)   result = true; xObj = null;   } catch (e)   {}'); 
   } 
   return result; 
} 

function FlashWrite(url,width,height) 
{ 
   document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'); 
   document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" '); 
   document.write('  WIDTH=' + width + ' HEIGHT=' + height + '>'); 
   document.write(' <PARAM NAME=movie VALUE="' + url + '"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF>  '); 
   document.write(' <EMBED src="' + url + '" quality=high bgcolor=#FFFFFF  '); 
   document.write(' swLiveConnect=FALSE WIDTH=' + width + ' HEIGHT=' + height); 
   document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'); 
   document.write(' </EMBED></OBJECT>'); 
} 
</SCRIPT>

And to call it

<SCRIPT Language = "JavaScript"> 
if (FlashInstalled()) 
   FlashWrite('flashfile.swf',468,60); 
else 
   document.write('<img src="img.gif" width=600 height=400 border="0">'); 
</SCRIPT>

:block:

Here is the script since it did not show up at the top.

well?