(function(){var a=null;function b(){var c=false,b=true;Type._registerScript("Timer.js",["MicrosoftAjaxComponentModel.js"]);Sys.UI._Timer=function(e){var d=this;Sys.UI._Timer.initializeBase(d,[e]);d._interval=6e4;d._enabled=b;d._postbackPending=c;d._raiseTickDelegate=a;d._endRequestHandlerDelegate=a;d._timer=a;d._pageRequestManager=a;d._uniqueID=a};Sys.UI._Timer.prototype={get_enabled:function(){return this._enabled},set_enabled:function(a){this._enabled=a},get_interval:function(){return this._interval},set_interval:function(a){this._interval=a},get_uniqueID:function(){return this._uniqueID},set_uniqueID:function(a){this._uniqueID=a},dispose:function(){var b=this;b._stopTimer();if(b._pageRequestManager!==a)b._pageRequestManager.remove_endRequest(b._endRequestHandlerDelegate);Sys.UI._Timer.callBaseMethod(b,"dispose")},_doPostback:function(){__doPostBack(this.get_uniqueID(),"")},_handleEndRequest:function(g,f){var d=this,e=f.get_dataItems()[d.get_id()];if(e)d._update(e[0],e[1]);if(d._postbackPending===b&&d._pageRequestManager!==a&&d._pageRequestManager.get_isInAsyncPostBack()===c){d._postbackPending=c;d._doPostback()}},initialize:function(){var b=this;Sys.UI._Timer.callBaseMethod(b,"initialize");b._raiseTickDelegate=Function.createDelegate(b,b._raiseTick);b._endRequestHandlerDelegate=Function.createDelegate(b,b._handleEndRequest);if(Sys.WebForms&&Sys.WebForms.PageRequestManager)b._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance();if(b._pageRequestManager!==a)b._pageRequestManager.add_endRequest(b._endRequestHandlerDelegate);if(b.get_enabled())b._startTimer()},_raiseTick:function(){var d=this;d._startTimer();if(d._pageRequestManager===a||!d._pageRequestManager.get_isInAsyncPostBack()){d._doPostback();d._postbackPending=c}else d._postbackPending=b},_startTimer:function(){var a=this;a._timer=window.setTimeout(Function.createDelegate(a,a._raiseTick),a.get_interval())},_stopTimer:function(){if(this._timer!==a){window.clearTimeout(this._timer);this._timer=a}},_update:function(e,d){var a=this,c=!a.get_enabled(),f=a.get_interval()!==d;if(!c&&(!e||f)){a._stopTimer();c=b}a.set_enabled(e);a.set_interval(d);if(a.get_enabled()&&c)a._startTimer()}};Sys.UI._Timer.registerClass("Sys.UI._Timer",Sys.UI.Control)}if(window.Sys&&Sys.loader)Sys.loader.registerScript("Timer",a,b);else b()})();
