// Internet Explorer
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
  if (this.readyState == "complete") {
    _init(); // call the onload handler
  }
};
/*@end @*/

// Safari
if (/WebKit/i.test(navigator.userAgent)) {
  var _timer = setInterval(function() {
    if (/loaded|complete/.test(document.readyState)) {
      clearInterval(_timer);
      _init(); // call the onload handler
    }
  }, 10);
}

// new DOM
if(document.addEventListener) { document.addEventListener("DOMContentLoaded", _init, false); }
  
// compat
if(window) { window.onload = _init; }
  
// OnLoad-call
function _init() { 
  if (arguments.callee.done) return; arguments.callee.done = true;
  
  init();
}
