/*****************************************************************
* Flash Fix script
* Fixes embedded object activation issues in Internet Explorer
*****************************************************************/

flashfixStart = function()
{
  setTimeout("flashfix()",1)
}
  
flashfix = function() {

theObjects = document.getElementsByTagName("object");

for (var i = 0; i < theObjects.length; i++) 
  {
    begin = (theObjects[i].outerHTML.substring(0,theObjects[i].outerHTML.indexOf('"FlashVars" VALUE="')+19))
    end = (theObjects[i].outerHTML.substring(theObjects[i].outerHTML.indexOf('"FlashVars" VALUE="')+19))
    parameters = theObjects[i].outerHTML.substring(theObjects[i].outerHTML.indexOf('FlashVars="')+11);
    parameters = parameters.substring(0,parameters.indexOf('"'));
    theObjects[i].outerHTML = begin+parameters+end; 
  }
} 

if (window.attachEvent)
window.attachEvent("onload", flashfixStart)
else
window.onload=flashfixStart;

