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