Function.__typeName="Function";Function.__class=!0;Function.createCallback=function(a,b){return function(){var c=arguments.length;if(0c?(c=Error.parameterCount(),c.popStackFrame(),c):null}; Function._validateParameter=function(a,b,c){var d,e=b.type;if(d=Function._validateParameterType(a,e,!!b.integer,!!b.domElement,!!b.mayBeNull,c))return d.popStackFrame(),d;var f=b.elementType,g=!!b.elementMayBeNull;if(e===Array&&"undefined"!==typeof a&&null!==a&&(f||!g))for(var e=!!b.elementInteger,b=!!b.elementDomElement,h=0;hf&&0>g){c+=d.slice(e);break}if(0f))c+=d.slice(e,g+1),e=g+2;else if(c+=d.slice(e,f),e=f+1,"{"===d.charAt(e))c+="{",e++;else{if(0>g)break;var f=d.substring(e,g),h=f.indexOf(":"),e=parseInt(0>h?f:f.substring(0,h),10)+1,f=0>h?"":f.substring(h+1),e=b[e];if("undefined"===typeof e||null===e)e="";c=e.toFormattedString?c+e.toFormattedString(f):a&&e.localeFormat?c+e.localeFormat(f): e.format?c+e.format(f):c+e.toString();e=g+1}}return c};Boolean.__typeName="Boolean";Boolean.__class=!0;Boolean.parse=function(a){a=a.trim().toLowerCase();if("false"===a)return!1;if("true"===a)return!0};Date.__typeName="Date";Date.__class=!0;Date._appendPreOrPostMatch=function(a,b){for(var c=0,d=!1,e=0,f=a.length;eb){var c=(new Date).getFullYear(),b=b+(c-c%100);if(b>a.Calendar.TwoDigitYearMax)return b-100}return b}; Date._getParseRegExp=function(a,b){if(a._parseRegExp){if(a._parseRegExp[b])return a._parseRegExp[b]}else a._parseRegExp={};for(var c=Date._expandFormat(a,b),c=c.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),d=new Sys.StringBuilder("^"),e=[],f=0,g=0,h=Date._getTokenRegExp(),j;null!==(j=h.exec(c));){var k=c.slice(f,j.index),f=h.lastIndex,g=g+Date._appendPreOrPostMatch(k,d);if(1===g%2)d.append(j[0]);else{switch(j[0]){case "dddd":case "ddd":case "MMMM":case "MMM":d.append("(\\D+)");break;case "tt":case "t":d.append("(\\D*)"); break;case "yyyy":d.append("(\\d{4})");break;case "fff":d.append("(\\d{3})");break;case "ff":d.append("(\\d{2})");break;case "f":d.append("(\\d)");break;case "dd":case "d":case "MM":case "M":case "yy":case "y":case "HH":case "H":case "hh":case "h":case "mm":case "m":case "ss":case "s":d.append("(\\d\\d?)");break;case "zzz":d.append("([+-]?\\d\\d?:\\d{2})");break;case "zz":case "z":d.append("([+-]?\\d\\d?)")}Array.add(e,j[0])}}Date._appendPreOrPostMatch(c.slice(f),d);d.append("$");c={regExp:d.toString().replace(/\s+/g, "\\s+"),groups:e};return a._parseRegExp[b]=c};Date._getTokenRegExp=function(){return/dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z/g};Date.parseLocale=function(a){return Date._parse(a,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(a){return Date._parse(a,Sys.CultureInfo.InvariantCulture,arguments)}; Date._parse=function(a,b,c){for(var d=!1,e=1,f=c.length;eg||31f||11f||11f||11b||9999b||9999j||11j||23k||59n||59l||999l||999l||999h||6h||6p||13q||59p||13j&&(j+=12);c.setHours(j,k,n,l);null!==p&&(d=c.getMinutes()-(p+c.getTimezoneOffset()),c.setHours(c.getHours()+parseInt(d/60,10),d%60));return c}; Date.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture)};Date.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture)}; Date.prototype._toFormattedString=function(a,b){function c(a){return 10>a?"0"+a:a.toString()}function d(a){return 10>a?"00"+a:100>a?"0"+a:a.toString()}if(!a||0===a.length||"i"===a)return b&&0this.getHours()?e.AMDesignator:e.PMDesignator);break;case "t":f.append((12> this.getHours()?e.AMDesignator:e.PMDesignator).charAt(0));break;case "f":f.append(d(this.getMilliseconds()).charAt(0));break;case "ff":f.append(d(this.getMilliseconds()).substr(0,2));break;case "fff":f.append(d(this.getMilliseconds()));break;case "z":g=this.getTimezoneOffset()/60;f.append((0>=g?"+":"-")+Math.floor(Math.abs(g)));break;case "zz":g=this.getTimezoneOffset()/60;f.append((0>=g?"+":"-")+c(Math.floor(Math.abs(g))));break;case "zzz":g=this.getTimezoneOffset()/60,f.append((0>=g?"+":"-")+c(Math.floor(Math.abs(g)))+ e.TimeSeparator+c(Math.abs(this.getTimezoneOffset()%60)))}}return f.toString()};Number.__typeName="Number";Number.__class=!0;Number.parseLocale=function(a){return Number._parse(a,Sys.CultureInfo.CurrentCulture)};Number.parseInvariant=function(a){return Number._parse(a,Sys.CultureInfo.InvariantCulture)}; Number._parse=function(a,b){a=a.trim();if(a.match(/^[+-]?infinity$/i))return parseFloat(a);if(a.match(/^0x[a-f0-9]+$/i))return parseInt(a);var c=b.numberFormat,d=Number._parseNumberNegativePattern(a,c,c.NumberNegativePattern),e=d[0],d=d[1];""===e&&1!==c.NumberNegativePattern&&(d=Number._parseNumberNegativePattern(a,c,1),e=d[0],d=d[1]);""===e&&(e="+");var f,g=d.indexOf("e");0>g&&(g=d.indexOf("E"));0>g?(f=d,d=null):(f=d.substr(0,g),d=d.substr(g+1));var h=f.indexOf(c.NumberDecimalSeparator);0>h?(g=f, f=null):(g=f.substr(0,h),f=f.substr(h+c.NumberDecimalSeparator.length));g=g.split(c.NumberGroupSeparator).join("");h=c.NumberGroupSeparator.replace(/\u00A0/g," ");c.NumberGroupSeparator!==h&&(g=g.split(h).join(""));e+=g;null!==f&&(e+="."+f);null!==d&&(c=Number._parseNumberNegativePattern(d,c,1),""===c[0]&&(c[0]="+"),e+="e"+c[0]+c[1]);return e.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/)?parseFloat(e):Number.NaN}; Number._parseNumberNegativePattern=function(a,b,c){var d=b.NegativeSign,b=b.PositiveSign;switch(c){case 4:d=" "+d,b=" "+b;case 3:if(a.endsWith(d))return["-",a.substr(0,a.length-d.length)];if(a.endsWith(b))return["+",a.substr(0,a.length-b.length)];break;case 2:d+=" ",b+=" ";case 1:if(a.startsWith(d))return["-",a.substr(d.length)];if(a.startsWith(b))return["+",a.substr(b.length)];break;case 0:if(a.startsWith("(")&&a.endsWith(")"))return["-",a.substr(1,a.length-2)]}return["",a]}; Number.prototype.format=function(a){return this._toFormattedString(a,Sys.CultureInfo.InvariantCulture)};Number.prototype.localeFormat=function(a){return this._toFormattedString(a,Sys.CultureInfo.CurrentCulture)}; Number.prototype._toFormattedString=function(a,b){function c(a,b,c){for(var d=a.length;dk&&(k=-k,a=c(a,k+1,!0),j=a.slice(-k,a.length)+j,a=a.slice(0,-k));0b?j.slice(0,b):c(j,b,!1),j=f+j):j=""; b=a.length-1;for(f="";0<=b;){if(0===g||g>b)if(0this&&(n=-n);break;case "c":case "C":e=0>this?j[k.CurrencyNegativePattern]:h[k.CurrencyPositivePattern];-1===l&&(l=k.CurrencyDecimalDigits);n=d(Math.abs(this),l,k.CurrencyGroupSizes,k.CurrencyGroupSeparator,k.CurrencyDecimalSeparator);break;case "n":case "N":e=0>this?g[k.NumberNegativePattern]:"n";-1===l&&(l=k.NumberDecimalDigits);n=d(Math.abs(this),l, k.NumberGroupSizes,k.NumberGroupSeparator,k.NumberDecimalSeparator);break;case "p":case "P":e=0>this?f[k.PercentNegativePattern]:e[k.PercentPositivePattern];-1===l&&(l=k.PercentDecimalDigits);n=d(100*Math.abs(this),l,k.PercentGroupSizes,k.PercentGroupSeparator,k.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier);}l=/n|\$|-|%/g;for(f="";;){g=l.lastIndex;h=l.exec(e);f+=e.slice(g,h?h.index:e.length);if(!h)break;switch(h[0]){case "n":f+=n;break;case "$":f+=k.CurrencySymbol; break;case "-":f+=k.NegativeSign;break;case "%":f+=k.PercentSymbol}}return f};RegExp.__typeName="RegExp";RegExp.__class=!0;Array.__typeName="Array";Array.__class=!0;Array.add=Array.enqueue=function(a,b){a[a.length]=b};Array.addRange=function(a,b){a.push.apply(a,b)};Array.clear=function(a){a.length=0};Array.clone=function(a){return 1===a.length?[a[0]]:Array.apply(null,a)};Array.contains=function(a,b){return 0<=Array.indexOf(a,b)};Array.dequeue=function(a){return a.shift()}; Array.forEach=function(a,b,c){for(var d=0,e=a.length;dc&&(c=Math.max(0,d+c)));for(;c=0;g--){d=e[g].trim();d=c[d];if(typeof d!=="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,a.split(",")[g].trim(),this.__typeName));f=f|d}return f}e=b?a.toLowerCase():a;d=c[e.trim()];if(typeof d!=="number")throw Error.argument("value", String.format(Sys.Res.enumInvalidValue,a,this.__typeName));return d} function Sys$Enum$toString(a){if(typeof a==="undefined"||a===null)return this.__string;var b=this.prototype,c;if(!this.__flags||a===0)for(c in b){if(b[c]===a)return c}else{var d=this.__sortedValues;if(!d){d=[];for(c in b)d[d.length]={key:c,value:b[c]};d.sort(function(a,b){return a.value-b.value});this.__sortedValues=d}var b=[],e=a;for(c=d.length-1;c>=0;c--){var f=d[c],g=f.value;if(g!==0&&(g&a)===g){b[b.length]=f.key;e=e-g;if(e===0)break}}if(b.length&&e===0)return b.reverse().join(", ")}return""} Type.prototype.registerEnum=function(a,b){Sys.__upperCaseTypes[a.toUpperCase()]=this;for(var c in this.prototype)this[c]=this.prototype[c];this.__typeName=a;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=b;this.__enum=true};Type.isEnum=function(a){return typeof a==="undefined"||a===null?false:!!a.__enum};Type.isFlags=function(a){return typeof a==="undefined"||a===null?false:!!a.__flags};Sys.EventHandlerList=function(){this._list={}}; Sys.EventHandlerList.prototype={addHandler:function(a,b){Array.add(this._getEvent(a,true),b)},removeHandler:function(a,b){var c=this._getEvent(a);c&&Array.remove(c,b)},getHandler:function(a){var b=this._getEvent(a);if(!b||b.length===0)return null;b=Array.clone(b);return function(a,d){for(var e=0,f=b.length;e=0;e--)$removeHandler(a,c,d[e].handler);a._events=null}},$removeHandler=Sys.UI.DomEvent.removeHandler=function(a,b,c){for(var d=null,e=a._events[b],f=0,g=e.length;f=0)a.className=(c.substr(0,d)+" "+c.substring(d+b.length+1,c.length)).trim()};Sys.UI.DomElement.setLocation=function(a,b,c){a=a.style;a.position="absolute";a.left=b+"px";a.top=c+"px"};Sys.UI.DomElement.toggleCssClass=function(a,b){Sys.UI.DomElement.containsCssClass(a,b)?Sys.UI.DomElement.removeCssClass(a,b):Sys.UI.DomElement.addCssClass(a,b)}; Sys.UI.DomElement.getVisibilityMode=function(a){return a._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse};Sys.UI.DomElement.setVisibilityMode=function(a,b){Sys.UI.DomElement._ensureOldDisplayMode(a);if(a._visibilityMode!==b){a._visibilityMode=b;if(Sys.UI.DomElement.getVisible(a)===false)a.style.display=a._visibilityMode===Sys.UI.VisibilityMode.hide?a._oldDisplayMode:"none";a._visibilityMode=b}}; Sys.UI.DomElement.getVisible=function(a){a=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);return!a?true:a.visibility!=="hidden"&&a.display!=="none"};Sys.UI.DomElement.setVisible=function(a,b){if(b!==Sys.UI.DomElement.getVisible(a)){Sys.UI.DomElement._ensureOldDisplayMode(a);a.style.visibility=b?"visible":"hidden";a.style.display=b||a._visibilityMode===Sys.UI.VisibilityMode.hide?a._oldDisplayMode:"none"}}; Sys.UI.DomElement._ensureOldDisplayMode=function(a){if(!a._oldDisplayMode){var b=a.currentStyle||Sys.UI.DomElement._getCurrentStyle(a);a._oldDisplayMode=b?b.display:null;if(!a._oldDisplayMode||a._oldDisplayMode==="none")switch(a.tagName.toUpperCase()){case "DIV":case "P":case "ADDRESS":case "BLOCKQUOTE":case "BODY":case "COL":case "COLGROUP":case "DD":case "DL":case "DT":case "FIELDSET":case "FORM":case "H1":case "H2":case "H3":case "H4":case "H5":case "H6":case "HR":case "IFRAME":case "LEGEND":case "OL":case "PRE":case "TABLE":case "TD":case "TH":case "TR":case "UL":a._oldDisplayMode= "block";break;case "LI":a._oldDisplayMode="list-item";break;default:a._oldDisplayMode="inline"}}};Sys.UI.DomElement._getWindow=function(a){a=a.ownerDocument||a.document||a;return a.defaultView||a.parentWindow}; Sys.UI.DomElement._getCurrentStyle=function(a){if(a.nodeType===3)return null;var b=Sys.UI.DomElement._getWindow(a);if(a.documentElement)a=a.documentElement;var c=b&&a!==b&&b.getComputedStyle?b.getComputedStyle(a,null):a.currentStyle||a.style;if(!c&&Sys.Browser.agent===Sys.Browser.Safari&&a.style){var c=a.style.display,d=a.style.position;a.style.position="absolute";a.style.display="block";b=b.getComputedStyle(a,null);a.style.display=c;a.style.position=d;var c={},e;for(e in b)c[e]=b[e];c.display="none"}return c}; Sys.IContainer=function(){};Sys.IContainer.prototype={};Sys.IContainer.registerInterface("Sys.IContainer");Sys._ScriptLoader=function(){this._scriptsToLoad=null;this._sessions=[];this._scriptLoadedDelegate=Function.createDelegate(this,this._scriptLoadedHandler)}; Sys._ScriptLoader.prototype={dispose:function(){this._stopSession();this._loading=false;this._events&&delete this._events;this._scriptLoadedDelegate=this._currentSession=this._sessions=null},loadScripts:function(a,b,c,d){a={allScriptsLoadedCallback:b,scriptLoadFailedCallback:c,scriptLoadTimeoutCallback:d,scriptsToLoad:this._scriptsToLoad,scriptTimeout:a};this._scriptsToLoad=null;this._sessions[this._sessions.length]=a;this._loading||this._nextSession()},notifyScriptLoaded:function(){if(this._loading){this._currentTask._notified++; Sys.Browser.agent===Sys.Browser.Safari&&this._currentTask._notified===1&&window.setTimeout(Function.createDelegate(this,function(){this._scriptLoadedHandler(this._currentTask.get_scriptElement(),true)}),0)}},queueCustomScriptTag:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,a)},queueScriptBlock:function(a){if(!this._scriptsToLoad)this._scriptsToLoad=[];Array.add(this._scriptsToLoad,{text:a})},queueScriptReference:function(a){if(!this._scriptsToLoad)this._scriptsToLoad= [];Array.add(this._scriptsToLoad,{src:a})},_createScriptElement:function(a){var b=document.createElement("script");b.type="text/javascript";for(var c in a)b[c]=a[c];return b},_loadScriptsInternal:function(){var a=this._currentSession;if(a.scriptsToLoad&&a.scriptsToLoad.length>0){var a=Array.dequeue(a.scriptsToLoad),b=this._createScriptElement(a);if(b.text&&Sys.Browser.agent===Sys.Browser.Safari){b.innerHTML=b.text;delete b.text}if(typeof a.src==="string"){this._currentTask=new Sys._ScriptLoaderTask(b, this._scriptLoadedDelegate);this._currentTask.execute()}else{document.getElementsByTagName("head")[0].appendChild(b);Sys._ScriptLoader._clearScript(b);this._loadScriptsInternal()}}else{this._stopSession();(a=a.allScriptsLoadedCallback)&&a(this);this._nextSession()}},_nextSession:function(){if(this._sessions.length===0){this._loading=false;this._currentSession=null}else{this._loading=true;var a=Array.dequeue(this._sessions);this._currentSession=a;if(a.scriptTimeout>0)this._timeoutCookie=window.setTimeout(Function.createDelegate(this, this._scriptLoadTimeoutHandler),a.scriptTimeout*1E3);this._loadScriptsInternal()}},_raiseError:function(a){var b=this._currentSession.scriptLoadFailedCallback,c=this._currentTask.get_scriptElement();this._stopSession();if(b){b(this,c,a);this._nextSession()}else{this._loading=false;throw Sys._ScriptLoader._errorScriptLoadFailed(c.src,a);}},_scriptLoadedHandler:function(a,b){if(b&&this._currentTask._notified)if(this._currentTask._notified>1)this._raiseError(true);else{Array.add(Sys._ScriptLoader._getLoadedScripts(), a.src);this._currentTask.dispose();this._currentTask=null;this._loadScriptsInternal()}else this._raiseError(false)},_scriptLoadTimeoutHandler:function(){var a=this._currentSession.scriptLoadTimeoutCallback;this._stopSession();a&&a(this);this._nextSession()},_stopSession:function(){if(this._timeoutCookie){window.clearTimeout(this._timeoutCookie);this._timeoutCookie=null}if(this._currentTask){this._currentTask.dispose();this._currentTask=null}}}; Sys._ScriptLoader.registerClass("Sys._ScriptLoader",null,Sys.IDisposable);Sys._ScriptLoader.getInstance=function(){var a=Sys._ScriptLoader._activeInstance;if(!a)a=Sys._ScriptLoader._activeInstance=new Sys._ScriptLoader;return a};Sys._ScriptLoader.isScriptLoaded=function(a){var b=document.createElement("script");b.src=a;return Array.contains(Sys._ScriptLoader._getLoadedScripts(),b.src)}; Sys._ScriptLoader.readLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){var a=Sys._ScriptLoader._referencedScripts=[],b=document.getElementsByTagName("script");for(i=b.length-1;i>=0;i--){var c=b[i].src;c.length&&(Array.contains(a,c)||Array.add(a,c))}}};Sys._ScriptLoader._clearScript=function(a){Sys.Debug.isDebug||a.parentNode.removeChild(a)}; Sys._ScriptLoader._errorScriptLoadFailed=function(a,b){var c="Sys.ScriptLoadFailedException: "+String.format(b?Sys.Res.scriptLoadMultipleCallbacks:Sys.Res.scriptLoadFailed,a),c=Error.create(c,{name:"Sys.ScriptLoadFailedException",scriptUrl:a});c.popStackFrame();return c};Sys._ScriptLoader._getLoadedScripts=function(){if(!Sys._ScriptLoader._referencedScripts){Sys._ScriptLoader._referencedScripts=[];Sys._ScriptLoader.readLoadedScripts()}return Sys._ScriptLoader._referencedScripts}; Sys._ScriptLoaderTask=function(a,b){this._scriptElement=a;this._completedCallback=b;this._notified=0}; Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){if(!this._disposed){this._disposed=true;this._removeScriptElementHandlers();Sys._ScriptLoader._clearScript(this._scriptElement);this._scriptElement=null}},execute:function(){this._addScriptElementHandlers();document.getElementsByTagName("head")[0].appendChild(this._scriptElement)},_addScriptElementHandlers:function(){this._scriptLoadDelegate=Function.createDelegate(this,this._scriptLoadHandler); if(Sys.Browser.agent!==Sys.Browser.InternetExplorer){this._scriptElement.readyState="loaded";$addHandler(this._scriptElement,"load",this._scriptLoadDelegate)}else $addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);if(this._scriptElement.addEventListener){this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler);this._scriptElement.addEventListener("error",this._scriptErrorDelegate,false)}},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var a= this.get_scriptElement();Sys.Browser.agent!==Sys.Browser.InternetExplorer?$removeHandler(a,"load",this._scriptLoadDelegate):$removeHandler(a,"readystatechange",this._scriptLoadDelegate);if(this._scriptErrorDelegate){this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,false);this._scriptErrorDelegate=null}this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){this._disposed||this._completedCallback(this.get_scriptElement(),false)},_scriptLoadHandler:function(){if(!this._disposed){var a= this.get_scriptElement();if(!(a.readyState!=="loaded"&&a.readyState!=="complete")){var b=this;window.setTimeout(function(){b._completedCallback(a,true)},0)}}}};Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable);Sys.ApplicationLoadEventArgs=function(a,b){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=a;this._isPartialLoad=b};Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components},get_isPartialLoad:function(){return this._isPartialLoad}}; Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs);Sys.HistoryEventArgs=function(a){Sys.HistoryEventArgs.initializeBase(this);this._state=a};Sys.HistoryEventArgs.prototype={get_state:function(){return this._state}};Sys.HistoryEventArgs.registerClass("Sys.HistoryEventArgs",Sys.EventArgs); Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._clientId=this._beginRequestHandler=this._appLoadHandler=null;this._currentEntry="";this._history=this._endRequestHandler=null;this._enableHistory=false;this._historyFrame=null;this._historyInitialized=false;this._historyLength=this._historyInitialLength=0;this._ignoreTimer=this._historyPointIsNew=false;this._initialState=null; this._state={};this._timerCookie=0;this._uniqueId=this._timerHandler=null;this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);this._loadHandlerDelegate=Function.createDelegate(this,this._loadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);Sys.UI.DomEvent.addHandler(window,"load",this._loadHandlerDelegate)}; Sys._Application.prototype={_creatingComponents:!1,_disposing:!1,get_isCreatingComponents:function(){return this._creatingComponents},get_stateString:function(){var a=window.location.hash;if(this._isSafari2()){var b=this._getHistory();b&&(a=b[window.history.length-this._historyInitialLength])}a.length>0&&a.charAt(0)==="#"&&(a=a.substring(1));Sys.Browser.agent===Sys.Browser.Firefox&&(a=this._serializeState(this._deserializeState(a,true)));return a},get_enableHistory:function(){return this._enableHistory}, set_enableHistory:function(a){this._enableHistory=a},add_init:function(a){this._initialized?a(this,Sys.EventArgs.Empty):this.get_events().addHandler("init",a)},remove_init:function(a){this.get_events().removeHandler("init",a)},add_load:function(a){this.get_events().addHandler("load",a)},remove_load:function(a){this.get_events().removeHandler("load",a)},add_navigate:function(a){this.get_events().addHandler("navigate",a)},remove_navigate:function(a){this.get_events().removeHandler("navigate",a)},add_unload:function(a){this.get_events().addHandler("unload", a)},remove_unload:function(a){this.get_events().removeHandler("unload",a)},addComponent:function(a){this._components[a.get_id()]=a},addHistoryPoint:function(a,b){this._ensureHistory();var c=this._state,d;for(d in a){var e=a[d];e===null?typeof c[d]!=="undefined"&&delete c[d]:c[d]=e}c=this._serializeState(c);this._historyPointIsNew=true;this._setState(c,b);this._raiseNavigate()},beginCreateComponents:function(){this._creatingComponents=true},dispose:function(){if(!this._disposing){this._disposing=true; if(this._timerCookie){window.clearTimeout(this._timerCookie);delete this._timerCookie}if(this._endRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler);delete this._endRequestHandler}if(this._beginRequestHandler){Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler);delete this._beginRequestHandler}window.pageUnload&&window.pageUnload(this,Sys.EventArgs.Empty);var a=this.get_events().getHandler("unload");a&& a(this,Sys.EventArgs.Empty);for(var a=Array.clone(this._disposableObjects),b=0,c=a.length;b'");c.write(""+(b||document.title)+'