// LoadEvents
function Init() {

if(!document.getElementById || !document.createElement)return;
if (arguments.callee.done) return;
arguments.callee.done = true;
  
startEvents();

}

/* for Mozilla */
if (document.addEventListener) {
       document.addEventListener("DOMContentLoaded", Init, false);
}

/* For Safari */
if (/WebKit/i.test(navigator.userAgent)) { // sniff
    var _timer = setInterval(function() {
        if (/loaded|complete/.test(document.readyState)) {
            clearInterval(_timer);
            Init();
        }
    }, 10);
}

/* for Internet Explorer */

/*@cc_on @*/
/*@if (@_win32)
   document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");
   document.getElementById("__ie_onload").onreadystatechange = function() {
        if (this.readyState == "complete") {
        Init(); 
        }
   };
/*@end @*/

/* for other browsers and make sur all is loading*/
window.onload = function(){
		Init(); 
}
