
<!-- 
//check for Flash Player X 

  var xhtmlContent = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"380\" height=\"80\" id=\"hotdeals\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"hotdeals.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"hotdeals.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"380\" height=\"80\" name=\"hotdeals\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>"; 

  var alternateContent = "<h1 style=\"text-align:center\">Hot Deals</h1>"; 
  var isSwfEnabled = false; 

//check the navigator.plugins array exists, IE for Windows will fail on this. 
if(navigator.plugins.length) 
{ 

  //some variables 
  //a counter 
  var i; 

  //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 less than Flash Player 6 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 
          isSwfEnabled = true; 

          //an array of the Flash version number (major.minor) 
          var versionArray = pluginIdent[2].split("."); 

          if(versionArray[0] < 6) 
          { 
             //show alternate content 
             document.write(alternateContent); 
          } 
          else 
          { 
             //Flash Player 6 or greater 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; 

       }//end if pluginIdent 


  }//end for 



  //check if no Shockwave Flash was detected in the array (no Flash Player installed) 
  if(!isSwfEnabled) 
  { 
     document.write(alternateContent); 
  }//end if 

} 

	var ieswf=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
     if (ieswf) {
         document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"380\" height=\"80\" id=\"hotdeals\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"hotdeals.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" /><embed src=\"hotdeals.swf\" quality=\"high\" bgcolor=\"#ffffff\" width=\"380\" height=\"80\" name=\"hotdeals\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");
    } 

--> 
