function flashFix(){
   if(navigator.appVersion.indexOf("MSIE 5.5")!=-1){
 	for(i=0;a=document.getElementsByTagName("object")[i];i++){
 	  if(a.getAttribute("type") &&
 		 a.getAttribute("type").indexOf("application/x-shockwave-flash")!=-1 &&
 		 !a.getAttribute("classid")
 		 ){
 			a.outerHTML=a.outerHTML.slice(0,a.outerHTML.indexOf(">"))+
 			" classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "+
 			"><param name='movie' value='"+
 			a.getAttribute("data")+
 			"' \/>"+
 		    a.outerHTML.slice(a.outerHTML.indexOf(">")+1,a.outerHTML.length);
 		  }
 	}
   }
 }
 
 window.onload=function(){
   flashFix();
 };
 
/*
if(navigator.plugins.length)     
{     
     
   //some variables     
   //a counter     
   var i;     
     
   var xhtmlContent = "<object data=\"index.swf\" type=\"application/x-shockwave-flash\" codebase=\"http://www.example.com/\" width=\"550\" height=\"400\"><param name=\"movie\" value=\"index.swf\" /><param name=\"menu\" value=\"false\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ededed\" /></object>";     
     
   var alternateContent = "Alternate descriptive content can go here, plus a link to the Flash Player download page for the user to optionally activate.<br />This text will be rendered if the user-agent cannot render the file specified in the object tag.";     
     
   //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     
           var 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     
}*/
