function init() {
       // quit if this function has already been called
       if (arguments.callee.done) return;

       // flag this function so we don't do the same thing twice
       arguments.callee.done = true;

       resizeFlashBG();
   };

     if (document.addEventListener) {
       document.addEventListener("DOMContentLoaded", init, false);
   }


  
   //window.onload = init;
   
   
 var root = window.addEventListener || window.attachEvent ? window : document.addEventListener ? document : null
   if (root){
      if(root.addEventListener) {root.addEventListener("load", init, false)}
      else if(root.attachEvent) {root.attachEvent("onload", init)};
   } else {
      if(typeof window.onload == 'function') {
         var existing = window.onload
         window.onload = function() {
            existing()
            init()
         }
      } else {
         window.onload = init
      }
   }
  