(function() {
  

   function addLoadListener(func) {
      if (window.addEventListener) {
         window.addEventListener("load", func, false);
      } else if (document.addEventListener) {
         document.addEventListener("load", func, false);
      } else if (window.attachEvent) {
         window.attachEvent("onload", func);
      }
   }

   if (document.getElementById && document.createTextNode) {
      addLoadListener(initOnglet);
   }
})();