(function(){var I=window.DomReady={};var H=navigator.userAgent.toLowerCase();var C={version:(H.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(H),opera:/opera/.test(H),msie:(/msie/.test(H))&&(!/opera/.test(H)),mozilla:(/mozilla/.test(H))&&(!/(compatible|webkit)/.test(H))};var D=false;var E=false;var G=[];function A(){if(!E){E=true;if(G){for(var J=0;J<G.length;J++){G[J].call(window,[])}G=[]}}}function F(J){var K=window.onload;if(typeof window.onload!="function"){window.onload=J}else{window.onload=function(){if(K){K()}J()}}}function B(){if(D){return }D=true;if(document.addEventListener&&!C.opera){document.addEventListener("DOMContentLoaded",A,false)}if(C.msie&&window==top){(function(){if(E){return }try{document.documentElement.doScroll("left")}catch(K){setTimeout(arguments.callee,0);return }A()})()}if(C.opera){document.addEventListener("DOMContentLoaded",function(){if(E){return }for(var K=0;K<document.styleSheets.length;K++){if(document.styleSheets[K].disabled){setTimeout(arguments.callee,0);return }}A()},false)}if(C.safari){var J;(function(){if(E){return }if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return }if(J===undefined){var K=document.getElementsByTagName("link");for(var L=0;L<K.length;L++){if(K[L].getAttribute("rel")=="stylesheet"){J++}}var M=document.getElementsByTagName("style");J+=M.length}if(document.styleSheets.length!=J){setTimeout(arguments.callee,0);return }A()})()}F(A)}I.ready=function(K,J){B();if(E){K.call(window,[])}else{G.push(function(){return K.call(window,[])})}};B()})()