function CrossBrowserLoader(n,t){this.loaded(n),this.unloaded(t)}CrossBrowserLoader.prototype=function(){var n={loaded:function(n){"complete"===document.readyState?n():window.attachEvent?window.attachEvent("onload",n):"interactive"===document.readyState?n():window.addEventListener&&window.addEventListener("DOMContentLoaded",n)},unloaded:function(n){navigator.userAgent.match(/MSIE 8/)?window.attachEvent("onunload",n):navigator.userAgent.match(/MSIE 9/)?$(window).bind("onbeforeunload",n):window.addEventListener("unload",n)}};return n}();