<!--
   function detectFlash(swfName,flashVer,swfWidth,swfHeight,swfWmode) {
      //detect Flash Player X - check the navigator.plugins array exists, IE for Windows will fail on this.
      if(navigator.plugins.length) {
         //variable declarations
         var i;
         var paramWmode = (swfWmode!=null) ? '<param name="wmode" value="' + swfWmode + '" />' : '';
         var embedWmode = (swfWmode!=null) ? 'wmode="' + swfWmode + '" ' : '';
         var xhtmlContent = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + flashVer + ',0,0,0" width="' + swfWidth + '" height="' + swfHeight + '" id="blackcat" align="middle">' +
                            '<param name="movie" value="' + swfName + '" />' +
                            '<param name="allowScriptAccess" value="sameDomain" />' +
                            '<param name="quality" value="high" />' +
                            paramWmode +
                            '<embed src="' + swfName + '" swLiveConnect="true"' + embedWmode + ' quality="high" width="' + swfWidth + '" height="' + swfHeight + '" name="blackcat" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
                            '</object>';

         var alternateContent = '<p>This page requires Macromedia Flash Player ' + flashVer + ' or later.<br>Please visit <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank">macromedia.com</a> to download the latest plugin.</p>';

         //loop through all the plugins installed
         for (i=0; i < navigator.plugins.length; i++) {
            //put the plugin string in a variable
            var pluginIdent = navigator.plugins[i].description.split(" ");

            //The Flash Player identification string is ([] = the array index) [0]Shockwave [1]Flash [2]6.0 [3]r21
            //if Flash Player is detected, run this code.
            if(pluginIdent[0] == "Shockwave" && pluginIdent[1] == "Flash") {
               //set a toggle to show that some sort of Flash Player (of versions 1-5) was found
               var isSwfEnabled = true;

               //an array of the Flash version number (major.minor)
               var versionArray = pluginIdent[2].split(".");

               if(versionArray[0] < flashVer) {
                  //show alternate content
                  document.write(alternateContent);
               } else {
                  //Minimum Flash Player version has been found, roll out the <object> tag.
                  document.write(xhtmlContent);
               }

               //need to break this loop as some browsers may have two versions installed
               //eg my Firebird release has r65 and r79 installed!
               break;
            }
         }

         //check if no Flash player was detected in the array (no Flash Player installed)
         if(!isSwfEnabled) {document.write(alternateContent);}
      } else {
         //call vbscript for IE Win
         detectFlashIE(swfName,flashVer,swfWidth,swfHeight,swfWmode);
      }
   }
-->