/*
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
*/

/* Loop through ALL flash objects in the document
theObjects = document.getElementsByTagName('OBJECT');
for (var i = 0; i &lt; theObjects.length; i++) 
{
 // * Only implement the fix for all FLASH files NOT our imageGallery
  if (theObjects[i].id != 'imageGallery') {
   // * In case the object is FLASH and is large and has still not finished loading
   // * we need to wait for it to finish before we try to implement
   // * our fix.  
    var flashProp = typeof(theObjects[i].Play);
    var isFlash = (flashProp=='undefined') ? false : true;
    if (isFlash)
    {
       // * it is a FLASH file (has a "Play" property
       // * so we implement the fix for flash
        theObjects[i].outerHTML = theObjects[i].outerHTML;
        theObjects[i].Play();
    }
    else
    {
        //* The object is not FLASH, so we implement the fix the "normal" way
        theObjects[i].outerHTML = theObjects[i].outerHTML;
    }
  }
}
// alert('Objects Activated!');
*/

window.onload = function(){
  if (document.getElementsByTagName) {
    // Get all the tags of type object in the page.
      var objs = document.getElementsByTagName("object");
      for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag
        // and replace it with itself.
        objs[i].outerHTML = objs[i].outerHTML;
      }
   }
}
// When the page unloads:
window.onunload = function() {
  if (document.getElementsByTagName) {
    //Get all the tags of type object in the page.
    var objs = document.getElementsByTagName("object");
    for (i=0; i<objs.length; i++) {
      // Clear out the HTML content of each object tag
      // to prevent an IE memory leak issue.
      objs[i].outerHTML = "";
    }
  }
}


