function Sys$Enum$parse(n,t){var i,r,h,f,e,o,s,u,c;if(t){if(i=this.__lowerCaseValues,!i){this.__lowerCaseValues=i={};f=this.prototype;for(e in f)i[e.toLowerCase()]=f[e]}}else i=this.prototype;if(this.__flags){for(o=(t?n.toLowerCase():n).split(","),s=0,u=o.length-1;u>=0;u--){if(c=o[u].trim(),r=i[c],typeof r!="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,n.split(",")[u].trim(),this.__typeName));s|=r}return s}if(h=t?n.toLowerCase():n,r=i[h.trim()],typeof r!="number")throw Error.argument("value",String.format(Sys.Res.enumInvalidValue,n,this.__typeName));return r}function Sys$Enum$toString(n){var r,t,i,u,e,o,f;if(typeof n=="undefined"||n===null)return this.__string;if(r=this.prototype,this.__flags&&n!==0){if(i=this.__sortedValues,!i){i=[];for(t in r)i[i.length]={key:t,value:r[t]};i.sort(function(n,t){return n.value-t.value});this.__sortedValues=i}for(u=[],e=n,t=i.length-1;t>=0;t--)if((o=i[t],f=o.value,f!==0)&&(f&n)===f&&(u[u.length]=o.key,e-=f,e===0))break;if(u.length&&e===0)return u.reverse().join(", ")}else for(t in r)if(r[t]===n)return t;return""}function Sys$Component$_setProperties(n,t){var u,c=Object.getType(n),e=c===Object||c===Sys.UI.DomElement,l=Sys.Component.isInstanceOfType(n)&&!n.get_isUpdating(),r,i,f,o,s;l&&n.beginUpdate();for(r in t)if(i=t[r],f=e?null:n["get_"+r],e||typeof f!="function")o=n[r],i&&typeof i=="object"&&(!e||o)?Sys$Component$_setProperties(o,i):n[r]=i;else if(s=n["set_"+r],typeof s=="function")s.apply(n,[i]);else if(i instanceof Array){u=f.apply(n);for(var h=0,a=u.length,v=i.length;h0&&n.parent().data("firstWidth")==undefined&&(t=0,$.each(n,function(){t+=$(this).innerWidth()}),n.parent().data("firstWidth",t));n.parent().data("firstWidth")>$(window).width()-200?n.addClass("ui-state-small"):n.removeClass("ui-state-small")}function resizeWidgets(){var n=$("#hltabcontent").height(),t=$("#hltabcontent").width();$("#widgets").css("height",n+"px");$("#widgets").css("width",t+"px");$(".adminWidget").each(function(){widgetSize(this)});$("#widgets").children().each(function(){widgetSize(this)});$(".widgetIframe").each(function(){iframeSize(this)})}function resizeAbsolutebox(){var t=0,i=0,r=$(".slide").eq(0).css("float")==="none",n;DisplayedAsIFrame()&&$(".jqx-grid").css("border-width","0px");$(".pluginFrame").length>0&&(t=$(".pluginFrame").outerHeight(!0));$(".sc_header").length>0&&(i=$(".sc_header").outerHeight(!0));$(".sc_header").css("top",t+"px");t+i>0?$("#absolutebox").css("top",t+i+"px"):$("#absolutebox").css("top","0");n=$("#navTitle").height()||0;n=(n?r?n+40:n:0)+($("#startPageButton").length>0&&!r?50:0);$("#pluginContent").css({top:n+"px",height:"calc(100% - "+(n+($("#actionBar").hasClass("hideActionBar")?0:$("#actionBar").height()||0))+"px)"})}function toggleSideBar(n){n!=null&&n.length!==0&&(n.hasClass("hideSideBar")?($("#hlcontent").addClass("sideBarVisible"),$("#actionBar").attr("class","hideActionBar"),n.removeAttr("class"),setTimeout(function(){n.find("input").first().focus()},250)):(n.attr("class","hideSideBar"),$("#actionBar").removeAttr("class"),$("#hlcontent").removeClass("sideBarVisible")),window.resizeAbsolutebox())}function DisplayedAsIFrame(){try{return window.self!==window.top}catch(n){return!0}}function getParameterByName(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}function resizeIframes(){$(".resizableFrame").each(function(){$(this).attr("width",$(this).parent().width());$(this).css("width",$(this).parent().width()+"px")})}function widgetSize(n){var t=3,i=2,r=$("#widgets").outerHeight()||0,u=$("#widgets").outerWidth()||0,f=$(n).attr("data-height"),e=$(n).attr("data-width"),o=$(n).attr("data-left"),s=$(n).attr("data-top");$(n).css("height",parseInt(f*(r/i))-15+"px");$(n).css("width",parseInt(e*(u/t))-20+"px");$(n).css("left",parseInt((o-1)*(u/t))+"px");$(n).css("top",parseInt((s-1)*(r/i))+"px")}function iframeSize(n){window.setTimeout(function(){var t=$(n).parent().parent(),i=t.outerHeight()-5-parseInt(t.css("border-bottom-width"));$(".hlfloatBoxHeader",t).length&&(i-=$(".hlfloatBoxHeader",t).outerHeight());$(n).attr("height",i);$(n).attr("width",t.outerWidth()-10)},0)}function JqueryOnDoubleClickEvent(n,t,i){var r=i;t!=null&&t!=="0"&&(r.startsWith("Services")?window.open(window.services_service_url+"/?Order=no&ServiceContractId="+n+"&PortfolioId="+t+"&COMMAND=Open","_blank","toolbar=no,menubar=no,location=no,height=600,width=800,left="+(screen.width/2-400+(window.screenLeft!=null?window.screenLeft:screen.left))+",top="+(screen.height/2-330+(window.screenTop!=null?window.screenTop:screen.top))+"").focus():window.Helpline.Web.Portal.Index.OpenView(window.home_index_url+"/Cases/Dialog?param="+encodeURIComponent("OBJECTDEFID="+n+"&OBJECTID="+t+"&COMMAND=Open"),!0))}function printCase(){var n=window.open("","","width=700,height=500"),t=document.getElementById("readingPaneContent").innerHTML;n.focus();n.document.write("Service Portal - Print<\/title>");n.document.write('<link href="'+window.url_content_root+'Content/themes/base/css" rel="stylesheet" type="text/css" />');n.document.write('<link href="'+window.url_content_root+'BrightSummer/Css" rel="stylesheet" type="text/css" />');n.document.write('<link href="'+window.url_content_root+'Content/css" rel="stylesheet" type="text/css" />');n.document.write('<style type="text/css">label { overflow:hidden;width:33%;font-weight:bold;display:inline-block; } .readingPaneAttributes { display: block; } li.extendCaseItem { display: none; } .timeline-body > p { max-height: none !important; } .suExpander { display: none !important; }<\/style>');n.document.write('<\/head><body style="background:none;height:auto;">');n.document.write(t.substring(0,t.indexOf("<script>"))+'<script src="'+window.url_content_root+'Scripts/webfontloader.js"><\/script><script>document.addEventListener("DOMContentLoaded", function() { WebFont.load({active: function() { window.print(); setTimeout(function() { window.close(); }, 100); }, custom: {families: ["OpenSans", "OpenSansLight"]}}); });<\/script><\/body><\/html>');n.document.close()}function showPopup(n){window.open(n,"","width=700,height=500,resizeable,scrollbars")}function searchReadingPane(n){for(var i=document.querySelectorAll("#readingPaneContent .highlight"),r=i.length,t,u;r--;)t=i[r],t.parentNode.replaceChild(t.childNodes[0],t);/\S/.test(n)&&(u=new RegExp($.trim(n).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1").replace(/\s+/g,"\\s+"),"gi"),doHighlight("readingPaneContent","highlight",u))}function checkPolicy(n,t){var i=new RegExp(t);return i.test(n)?!0:!1}function doHighlight(n,t,i,r){var w=document,d,o,l,g,a,y,p,s,nt,tt,ht,h,it,rt,ut,ct,ft;typeof n=="string"&&(n=w.getElementById(n));typeof i=="string"&&(i=new RegExp(i.replace(/[.*+?|()\[\]{}\\$^]/g,"\\$&"),"ig"));r=r||0;for(var u=[],c=[],v=0,b=n.childNodes.length,e,et=0,ot=[],f,st,k;;){while(v<b)if(f=n.childNodes[v++],f.nodeType===3)u.push({i:et,n:f}),e=f.nodeValue,c.push(e),et+=e.length;else if(f.nodeType===1){if(f.tagName.search(/^(script|style)$/i)>=0)continue;f.tagName.search(/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u)$/i)<0&&(c.push(" "),et++);st=f.childNodes.length;st&&(ot.push({n:n,l:b,i:v}),n=f,b=st,v=0)}if(!ot.length)break;k=ot.pop();n=k.n;b=k.l;v=k.i}if(u.length)for(c=c.join(""),u.push({i:c.length});;){if(o=i.exec(c),!o||o.length<=r||!o[r].length)break;for(l=o.index,d=1;d<r;d++)l+=o[d].length;for(g=l+o[r].length,y=0,p=u.length;y<p;)a=y+p>>1,l<u[a].i?p=a:y=l>=u[a+1].i?a+1:p=a;for(s=y;s<u.length;)if(nt=u[s],n=nt.n,e=n.nodeValue,tt=n.parentNode,ht=n.nextSibling,it=l-nt.i,rt=Math.min(g,u[s+1].i)-nt.i,ut=null,it>0&&(ut=e.substring(0,it)),ct=e.substring(it,rt),ft=null,rt<e.length&&(ft=e.substr(rt)),ut?n.nodeValue=ut:tt.removeChild(n),h=w.createElement("span"),h.appendChild(w.createTextNode(ct)),h.className=t,tt.insertBefore(h,ht),ft&&(h=w.createTextNode(ft),tt.insertBefore(h,ht),u[s]={n:h,i:g}),s++,g<=u[s].i)break}}function Widget(n,t,i,r,u,f,e,o,s,h,c){this.title=n;this.isVisibleTitle=t;this.url=i;this.left=parseInt(r);this.top=parseInt(u);this.height=parseInt(f);this.width=parseInt(e);this.isAdminWidget=o;this.id=s;this.rawTitle=h;this.rawUrl=c}function Tab(n,t,i,r,u,f,e){this.id=n;this.caption=t;this.isTemporary=i;this.url=r;this.className=u;this.isActive=f;this.content=e}function onTabClick(n){if(n.className==="Logout")window.location=n.url;else{var t=$("#hltabcontent");$("#widgets").hide();$(".propertiesWidget").hide();$("#pluginContent").remove();window.hlShowBusyIndicator(t);$.ajax({url:n.url,type:"GET",success:function(i){var r=$("<div/>").html(i).find("#pluginContent");$("#tab"+n.id).html(r);window.resizeAbsolutebox();window.hlHideBusyIndicator(t)},error:function(n){window.hlErrorHandler(n);window.hlHideBusyIndicator(t)}})}}function openHomeTab(){$("#hltabmenu").length===0&&$("#jqxTabs #hltabcontent").css({left:"100px",right:"100px"});var n=$("#widgets");if(n.show(),$(".propertiesWidget").show(),n.find("div").length===0){widgets.forEach(function(t){n.append(t.render())});window.resizeWidgets();$(".widgetIframe").on("load",function(){$(this).contents().find(".jqx-grid").css("border-width","0")})}else window.resizeWidgets(),$(".widgetIframe").each(function(){this.contentWindow.location.reload()})}function resetTimer(){window.expire=Date.now()/1e3+window.secondsTimeout;document.cookie=(window.applicationName||"helpLinePortal")+"_expiretime="+window.expire+"; path=/; secure";userActivityLogged=!1}function keepSession(n){clearTimeout(window.keepSessionTimer);$.ajax({url:window.account_keepsession_url,cache:!1,dataType:"json",success:function(t){handleReconnect(t);t&&n&&window.hlErrorHandler(n,!0)},error:function(n){n.status===401||n.status===403?window.location=window.account_lougout_url+"?returnUrl="+encodeURIComponent("~/"+window.location.pathname.replace(window.url_content_root,"")):handleReconnect(!1)}});var t=(window.applicationName||"helpLinePortal")+"_expiretime=";window.expire=document.cookie.substr(document.cookie.indexOf(t)+t.length,10);userActivityLogged&&resetTimer()}function handleReconnect(n){n===!1?($(".hlErrorDialog").each(function(){$(this).find(".ui-dialog-content").dialog("close")}),$("#reconnectMessage").length===0&&(Helpline.Web.WebDesk.ShowMessage({content:'<p id="reconnectMessage">'+window.reconnectDescription+"<\/p>",title:window.reconnectTitle,draggable:!1,closeOnEscape:!1,width:500,buttons:[]}),$(".ui-dialog").attr("id","lost-connection")),resetTimer(),window.keepSessionTimer=setTimeout(keepSession,1e4)):($("#reconnectMessage").length>0&&($("#reconnectMessage").parent().dialog("close"),$(".ui-dialog").removeAttr("id")),window.nextTimeoutTime=Date.now()+window.sessionTimeout*1e3,window.localStorage.setItem(window.applicationName+"_nextTimeoutTime",window.nextTimeoutTime),window.keepSessionTimer=setTimeout(keepSession,window.nextTimeoutTime-Date.now()-12e4))}function onUserActivityHandler(){userActivityLogged=!0}var $create,$removeHandler,$get,$find,oldHeight,oldWrapper,lightbox_resize,widgets,MainMenu,width,userActivityLogged;Function.__typeName="Function";Function.__class=!0;Function.createCallback=function(n,t){return function(){var u=arguments.length,r,i;if(u>0){for(r=[],i=0;i<u;i++)r[i]=arguments[i];return r[u]=t,n.apply(this,r)}return n.call(this,t)}};Function.createDelegate=function(n,t){return function(){return t.apply(n,arguments)}};Function.emptyFunction=Function.emptyMethod=function(){};Function.validateParameters=function(n,t,i){return Function._validateParams(n,t,i)};Function._validateParams=function(n,t,i){var r,e=t.length,u,s,f,o;if(i=i||typeof i=="undefined",r=Function._validateParameterCount(n,t,i),r)return r.popStackFrame(),r;for(u=0,s=n.length;u<s;u++){if(f=t[Math.min(u,e-1)],o=f.name,f.parameterArray)o+="["+(u-e+1)+"]";else if(!i&&u>=e)break;if(r=Function._validateParameter(n[u],f,o),r)return r.popStackFrame(),r}return null};Function._validateParameterCount=function(n,t,i){var r,f,u=t.length,e=n.length,o,s,h;if(e<u){for(o=u,r=0;r<u;r++)s=t[r],(s.optional||s.parameterArray)&&o--;e<o&&(f=!0)}else if(i&&e>u)for(f=!0,r=0;r<u;r++)if(t[r].parameterArray){f=!1;break}return f?(h=Error.parameterCount(),h.popStackFrame(),h):null};Function._validateParameter=function(n,t,i){var r,o=t.type,l=!!t.integer,a=!!t.domElement,v=!!t.mayBeNull,f,e,s,h,u,c;if(r=Function._validateParameterType(n,o,l,a,v,i),r)return r.popStackFrame(),r;if(f=t.elementType,e=!!t.elementMayBeNull,o===Array&&typeof n!="undefined"&&n!==null&&(f||!e))for(s=!!t.elementInteger,h=!!t.elementDomElement,u=0;u<n.length;u++)if(c=n[u],r=Function._validateParameterType(c,f,s,h,e,i+"["+u+"]"),r)return r.popStackFrame(),r;return null};Function._validateParameterType=function(n,t,i,r,u,f){var e,h,o,c,s;if(typeof n=="undefined")return u?null:(e=Error.argumentUndefined(f),e.popStackFrame(),e);if(n===null)return u?null:(e=Error.argumentNull(f),e.popStackFrame(),e);if(t&&t.__enum){if(typeof n!="number")return e=Error.argumentType(f,Object.getType(n),t),e.popStackFrame(),e;if(n%1==0)if(o=t.prototype,t.__flags&&n!==0){c=n;for(h in o)if((s=o[h],s!==0)&&((s&n)===s&&(c-=s),c===0))return null}else for(h in o)if(o[h]===n)return null;return e=Error.argumentOutOfRange(f,n,String.format(Sys.Res.enumInvalidValue,n,t.getName())),e.popStackFrame(),e}return r&&(!Sys._isDomElement(n)||n.nodeType===3)?(e=Error.argument(f,Sys.Res.argumentDomElement),e.popStackFrame(),e):t&&!Sys._isInstanceOfType(t,n)?(e=Error.argumentType(f,Object.getType(n),t),e.popStackFrame(),e):t===Number&&i&&n%1!=0?(e=Error.argumentOutOfRange(f,n,Sys.Res.argumentInteger),e.popStackFrame(),e):null};Error.__typeName="Error";Error.__class=!0;Error.create=function(n,t){var i=new Error(n),r;if(i.message=n,t)for(r in t)i[r]=t[r];return i.popStackFrame(),i};Error.argument=function(n,t){var r="Sys.ArgumentException: "+(t?t:Sys.Res.argument),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentException",paramName:n}),i.popStackFrame(),i};Error.argumentNull=function(n,t){var r="Sys.ArgumentNullException: "+(t?t:Sys.Res.argumentNull),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentNullException",paramName:n}),i.popStackFrame(),i};Error.argumentOutOfRange=function(n,t,i){var r="Sys.ArgumentOutOfRangeException: "+(i?i:Sys.Res.argumentOutOfRange),u;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),typeof t!="undefined"&&t!==null&&(r+="\n"+String.format(Sys.Res.actualValue,t)),u=Error.create(r,{name:"Sys.ArgumentOutOfRangeException",paramName:n,actualValue:t}),u.popStackFrame(),u};Error.argumentType=function(n,t,i,r){var u="Sys.ArgumentTypeException: ",f;return u+=r?r:t&&i?String.format(Sys.Res.argumentTypeWithTypes,t.getName(),i.getName()):Sys.Res.argumentType,n&&(u+="\n"+String.format(Sys.Res.paramName,n)),f=Error.create(u,{name:"Sys.ArgumentTypeException",paramName:n,actualType:t,expectedType:i}),f.popStackFrame(),f};Error.argumentUndefined=function(n,t){var r="Sys.ArgumentUndefinedException: "+(t?t:Sys.Res.argumentUndefined),i;return n&&(r+="\n"+String.format(Sys.Res.paramName,n)),i=Error.create(r,{name:"Sys.ArgumentUndefinedException",paramName:n}),i.popStackFrame(),i};Error.format=function(n){var i="Sys.FormatException: "+(n?n:Sys.Res.format),t=Error.create(i,{name:"Sys.FormatException"});return t.popStackFrame(),t};Error.invalidOperation=function(n){var i="Sys.InvalidOperationException: "+(n?n:Sys.Res.invalidOperation),t=Error.create(i,{name:"Sys.InvalidOperationException"});return t.popStackFrame(),t};Error.notImplemented=function(n){var i="Sys.NotImplementedException: "+(n?n:Sys.Res.notImplemented),t=Error.create(i,{name:"Sys.NotImplementedException"});return t.popStackFrame(),t};Error.parameterCount=function(n){var i="Sys.ParameterCountException: "+(n?n:Sys.Res.parameterCount),t=Error.create(i,{name:"Sys.ParameterCountException"});return t.popStackFrame(),t};Error.prototype.popStackFrame=function(){var r,t;if(typeof this.stack!="undefined"&&this.stack!==null&&typeof this.fileName!="undefined"&&this.fileName!==null&&typeof this.lineNumber!="undefined"&&this.lineNumber!==null){for(var n=this.stack.split("\n"),i=n[0],u=this.fileName+":"+this.lineNumber;typeof i!="undefined"&&i!==null&&i.indexOf(u)===-1;)n.shift(),i=n[0];(r=n[1],typeof r!="undefined"&&r!==null)&&(t=r.match(/@(.*):(\d+)$/),typeof t!="undefined"&&t!==null)&&(this.fileName=t[1],this.lineNumber=parseInt(t[2]),n.shift(),this.stack=n.join("\n"))}};Object.__typeName="Object";Object.__class=!0;Object.getType=function(n){var t=n.constructor;return!t||typeof t!="function"||!t.__typeName||t.__typeName==="Object"?Object:t};Object.getTypeName=function(n){return Object.getType(n).getName()};String.__typeName="String";String.__class=!0;String.prototype.endsWith=function(n){return this.substr(this.length-n.length)===n};String.prototype.startsWith=function(n){return this.substr(0,n.length)===n};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.trimEnd=function(){return this.replace(/\s+$/,"")};String.prototype.trimStart=function(){return this.replace(/^\s+/,"")};String.format=function(){return String._toFormattedString(!1,arguments)};String._toFormattedString=function(n,t){for(var o,u,e="",f=t[0],i=0;;){if(o=f.indexOf("{",i),u=f.indexOf("}",i),o<0&&u<0){e+=f.slice(i);break}if(u>0&&(u<o||o<0)){e+=f.slice(i,u+1);i=u+2;continue}if(e+=f.slice(i,o),i=o+1,f.charAt(i)==="{"){e+="{";i++;continue}if(u<0)break;var s=f.substring(i,u),h=s.indexOf(":"),l=parseInt(h<0?s:s.substring(0,h),10)+1,c=h<0?"":s.substring(h+1),r=t[l];(typeof r=="undefined"||r===null)&&(r="");e+=r.toFormattedString?r.toFormattedString(c):n&&r.localeFormat?r.localeFormat(c):r.format?r.format(c):r.toString();i=u+1}return e};Boolean.__typeName="Boolean";Boolean.__class=!0;Boolean.parse=function(n){var t=n.trim().toLowerCase();return t==="false"?!1:t==="true"?!0:void 0};Date.__typeName="Date";Date.__class=!0;Number.__typeName="Number";Number.__class=!0;RegExp.__typeName="RegExp";RegExp.__class=!0;window||(this.window=this);window.Type=Function;Type.prototype.callBaseMethod=function(n,t,i){var r=Sys._getBaseMethod(this,n,t);return i?r.apply(n,i):r.apply(n)};Type.prototype.getBaseMethod=function(n,t){return Sys._getBaseMethod(this,n,t)};Type.prototype.getBaseType=function(){return typeof this.__baseType=="undefined"?null:this.__baseType};Type.prototype.getInterfaces=function(){for(var n=[],t=this,i,r,f,u;t;){if(i=t.__interfaces,i)for(r=0,f=i.length;r<f;r++)u=i[r],Array.contains(n,u)||(n[n.length]=u);t=t.__baseType}return n};Type.prototype.getName=function(){return typeof this.__typeName=="undefined"?"":this.__typeName};Type.prototype.implementsInterface=function(n){var r,t,u,i,f;if(this.resolveInheritance(),r=n.getName(),t=this.__interfaceCache,t){if(u=t[r],typeof u!="undefined")return u}else t=this.__interfaceCache={};for(i=this;i;){if(f=i.__interfaces,f&&Array.indexOf(f,n)!==-1)return t[r]=!0;i=i.__baseType}return t[r]=!1};Type.prototype.inheritsFrom=function(n){this.resolveInheritance();for(var t=this.__baseType;t;){if(t===n)return!0;t=t.__baseType}return!1};Type.prototype.initializeBase=function(n,t){return this.resolveInheritance(),this.__baseType&&(t?this.__baseType.apply(n,t):this.__baseType.apply(n)),n};Type.prototype.isImplementedBy=function(n){if(typeof n=="undefined"||n===null)return!1;var t=Object.getType(n);return!!(t.implementsInterface&&t.implementsInterface(this))};Type.prototype.isInstanceOfType=function(n){return Sys._isInstanceOfType(this,n)};Type.prototype.registerClass=function(n,t,i){var r,u,f;if(this.prototype.constructor=this,this.__typeName=n,this.__class=!0,t&&(this.__baseType=t,this.__basePrototypePending=!0),Sys.__upperCaseTypes[n.toUpperCase()]=this,i)for(this.__interfaces=[],r=2,u=arguments.length;r<u;r++)f=arguments[r],this.__interfaces.push(f);return this};Type.prototype.registerInterface=function(n){return Sys.__upperCaseTypes[n.toUpperCase()]=this,this.prototype.constructor=this,this.__typeName=n,this.__interface=!0,this};Type.prototype.resolveInheritance=function(){var n,t,i;if(this.__basePrototypePending){n=this.__baseType;n.resolveInheritance();for(t in n.prototype)i=n.prototype[t],this.prototype[t]||(this.prototype[t]=i);delete this.__basePrototypePending}};Type.getRootNamespaces=function(){return Array.clone(Sys.__rootNamespaces)};Type.isClass=function(n){return typeof n=="undefined"||n===null?!1:!!n.__class};Type.isInterface=function(n){return typeof n=="undefined"||n===null?!1:!!n.__interface};Type.isNamespace=function(n){return typeof n=="undefined"||n===null?!1:!!n.__namespace};Type.parse=function(typeName,ns){var fn;return ns?(fn=Sys.__upperCaseTypes[ns.getName().toUpperCase()+"."+typeName.toUpperCase()],fn||null):typeName?(Type.__htClasses||(Type.__htClasses={}),fn=Type.__htClasses[typeName],fn||(fn=eval(typeName),Type.__htClasses[typeName]=fn),fn):null};Type.registerNamespace=function(n){for(var f,t,r=window,u=n.split("."),i=0;i<u.length;i++)f=u[i],t=r[f],t||(t=r[f]={}),t.__namespace||(i===0&&n!=="Sys"&&(Sys.__rootNamespaces[Sys.__rootNamespaces.length]=t),t.__namespace=!0,t.__typeName=u.slice(0,i+1).join("."),t.getName=function(){return this.__typeName}),r=t};Type._checkDependency=function(n,t){var i=Type._registerScript._scripts,r=i?!!i[n]:!1;if(typeof t!="undefined"&&!r)throw Error.invalidOperation(String.format(Sys.Res.requiredScriptReferenceNotIncluded,t,n));return r};Type._registerScript=function(n,t){var i=Type._registerScript._scripts,r,f,u;if(i||(Type._registerScript._scripts=i={}),i[n])throw Error.invalidOperation(String.format(Sys.Res.scriptAlreadyLoaded,n));if(i[n]=!0,t)for(r=0,f=t.length;r<f;r++)if(u=t[r],!Type._checkDependency(u))throw Error.invalidOperation(String.format(Sys.Res.scriptDependencyNotFound,n,u));};Type.registerNamespace("Sys");Sys.__upperCaseTypes={};Sys.__rootNamespaces=[Sys];Sys._isInstanceOfType=function(n,t){if(typeof t=="undefined"||t===null)return!1;if(t instanceof n)return!0;var i=Object.getType(t);return!!(i===n)||i.inheritsFrom&&i.inheritsFrom(n)||i.implementsInterface&&i.implementsInterface(n)};Sys._getBaseMethod=function(n,t,i){var u=n.getBaseType(),r;return u?(r=u.prototype[i],r instanceof Function?r:null):null};Sys._isDomElement=function(n){var i=!1,t,r;return typeof n.nodeType!="number"&&(t=n.ownerDocument||n.document||n,t!=n?(r=t.defaultView||t.parentWindow,i=r!=n):i=typeof t.body=="undefined"),!i};Array.__typeName="Array";Array.__class=!0;Array.add=Array.enqueue=function(n,t){n[n.length]=t};Array.addRange=function(n,t){n.push.apply(n,t)};Array.clear=function(n){n.length=0};Array.clone=function(n){return n.length===1?[n[0]]:Array.apply(null,n)};Array.contains=function(n,t){return Sys._indexOf(n,t)>=0};Array.dequeue=function(n){return n.shift()};Array.forEach=function(n,t,i){for(var u,r=0,f=n.length;r<f;r++)u=n[r],typeof u!="undefined"&&t.call(i,u,r,n)};Array.indexOf=function(n,t,i){return Sys._indexOf(n,t,i)};Array.insert=function(n,t,i){n.splice(t,0,i)};Array.parse=function(value){return value?eval(value):[]};Array.remove=function(n,t){var i=Sys._indexOf(n,t);return i>=0&&n.splice(i,1),i>=0};Array.removeAt=function(n,t){n.splice(t,1)};Sys._indexOf=function(n,t,i){var u,r;if(typeof t=="undefined")return-1;if(u=n.length,u!==0)for(i=+i,isNaN(i)?i=0:(isFinite(i)&&(i=i-i%1),i<0&&(i=Math.max(0,u+i))),r=i;r<u;r++)if(typeof n[r]!="undefined"&&n[r]===t)return r;return-1};Type._registerScript._scripts={"MicrosoftAjaxCore.js":!0,"MicrosoftAjaxGlobalization.js":!0,"MicrosoftAjaxSerialization.js":!0,"MicrosoftAjaxComponentModel.js":!0,"MicrosoftAjaxHistory.js":!0,"MicrosoftAjaxNetwork.js":!0,"MicrosoftAjaxWebServices.js":!0};Sys.IDisposable=function(){};Sys.IDisposable.prototype={};Sys.IDisposable.registerInterface("Sys.IDisposable");Sys.StringBuilder=function(n){this._parts=typeof n!="undefined"&&n!==null&&n!==""?[n.toString()]:[];this._value={};this._len=0};Sys.StringBuilder.prototype={append:function(n){this._parts[this._parts.length]=n},appendLine:function(n){this._parts[this._parts.length]=typeof n=="undefined"||n===null||n===""?"\r\n":n+"\r\n"},clear:function(){this._parts=[];this._value={};this._len=0},isEmpty:function(){return this._parts.length===0?!0:this.toString()===""},toString:function(n){var t,r,i;if(n=n||"",t=this._parts,this._len!==t.length&&(this._value={},this._len=t.length),r=this._value,typeof r[n]=="undefined"){if(n!=="")for(i=0;i<t.length;)typeof t[i]=="undefined"||t[i]===""||t[i]===null?t.splice(i,1):i++;r[n]=this._parts.join(n)}return r[n]}};Sys.StringBuilder.registerClass("Sys.StringBuilder");Sys.Browser={};Sys.Browser.InternetExplorer={};Sys.Browser.Firefox={};Sys.Browser.Safari={};Sys.Browser.Opera={};Sys.Browser.agent=null;Sys.Browser.hasDebuggerStatement=!1;Sys.Browser.name=navigator.appName;Sys.Browser.version=parseFloat(navigator.appVersion);Sys.Browser.documentMode=0;navigator.userAgent.indexOf(" MSIE ")>-1?(Sys.Browser.agent=Sys.Browser.InternetExplorer,Sys.Browser.version=parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]),Sys.Browser.version>=8&&document.documentMode>=7&&(Sys.Browser.documentMode=document.documentMode),Sys.Browser.hasDebuggerStatement=!0):navigator.userAgent.indexOf(" Firefox/")>-1?(Sys.Browser.agent=Sys.Browser.Firefox,Sys.Browser.version=parseFloat(navigator.userAgent.match(/Firefox\/(\d+\.\d+)/)[1]),Sys.Browser.name="Firefox",Sys.Browser.hasDebuggerStatement=!0):navigator.userAgent.indexOf(" AppleWebKit/")>-1?(Sys.Browser.agent=Sys.Browser.Safari,Sys.Browser.version=parseFloat(navigator.userAgent.match(/AppleWebKit\/(\d+(\.\d+)?)/)[1]),Sys.Browser.name="Safari"):navigator.userAgent.indexOf("Opera/")>-1&&(Sys.Browser.agent=Sys.Browser.Opera);Sys.EventArgs=function(){};Sys.EventArgs.registerClass("Sys.EventArgs");Sys.EventArgs.Empty=new Sys.EventArgs;Sys.CancelEventArgs=function(){Sys.CancelEventArgs.initializeBase(this);this._cancel=!1};Sys.CancelEventArgs.prototype={get_cancel:function(){return this._cancel},set_cancel:function(n){this._cancel=n}};Sys.CancelEventArgs.registerClass("Sys.CancelEventArgs",Sys.EventArgs);Type.registerNamespace("Sys.UI");Sys._Debug=function(){};Sys._Debug.prototype={_appendConsole:function(n){typeof Debug!="undefined"&&Debug.writeln&&Debug.writeln(n);window.console&&window.console.log&&window.console.log(n);window.opera&&window.opera.postError(n);window.debugService&&window.debugService.trace(n)},_appendTrace:function(n){var t=document.getElementById("TraceConsole");t&&t.tagName.toUpperCase()==="TEXTAREA"&&(t.value+=n+"\n")},assert:function(n,t,i){n||(t=i&&this.assert.caller?String.format(Sys.Res.assertFailedCaller,t,this.assert.caller):String.format(Sys.Res.assertFailed,t),confirm(String.format(Sys.Res.breakIntoDebugger,t))&&this.fail(t))},clearTrace:function(){var n=document.getElementById("TraceConsole");n&&n.tagName.toUpperCase()==="TEXTAREA"&&(n.value="")},fail:function(message){this._appendConsole(message);Sys.Browser.hasDebuggerStatement&&eval("debugger")},trace:function(n){this._appendConsole(n);this._appendTrace(n)},traceDump:function(n,t){var i=this._traceDump(n,t,!0)},_traceDump:function(n,t,i,r,u){var e,o,f,c,s,h;if(t=t?t:"traceDump",r=r?r:"",n===null){this.trace(r+t+": null");return}switch(typeof n){case"undefined":this.trace(r+t+": Undefined");break;case"number":case"string":case"boolean":this.trace(r+t+": "+n);break;default:if(Date.isInstanceOfType(n)||RegExp.isInstanceOfType(n)){this.trace(r+t+": "+n.toString());break}if(u){if(Array.contains(u,n)){this.trace(r+t+": ...");return}}else u=[];if(Array.add(u,n),n==window||n===document||window.HTMLElement&&n instanceof HTMLElement||typeof n.nodeName=="string")e=n.tagName?n.tagName:"DomElement",n.id&&(e+=" - "+n.id),this.trace(r+t+" {"+e+"}");else if(o=Object.getTypeName(n),this.trace(r+t+(typeof o=="string"?" {"+o+"}":"")),r===""||i)if(r+=" ",Array.isInstanceOfType(n))for(c=n.length,f=0;f<c;f++)this._traceDump(n[f],"["+f+"]",i,r,u);else for(s in n)h=n[s],Function.isInstanceOfType(h)||this._traceDump(h,s,i,r,u);Array.remove(u,n)}}};Sys._Debug.registerClass("Sys._Debug");Sys.Debug=new Sys._Debug;Sys.Debug.isDebug=!1;Type.prototype.registerEnum=function(n,t){Sys.__upperCaseTypes[n.toUpperCase()]=this;for(var i in this.prototype)this[i]=this.prototype[i];this.__typeName=n;this.parse=Sys$Enum$parse;this.__string=this.toString();this.toString=Sys$Enum$toString;this.__flags=t;this.__enum=!0};Type.isEnum=function(n){return typeof n=="undefined"||n===null?!1:!!n.__enum};Type.isFlags=function(n){return typeof n=="undefined"||n===null?!1:!!n.__flags};Sys.CollectionChange=function(n,t,i,r,u){this.action=n;t&&(t instanceof Array||(t=[t]));this.newItems=t||null;typeof i!="number"&&(i=-1);this.newStartingIndex=i;r&&(r instanceof Array||(r=[r]));this.oldItems=r||null;typeof u!="number"&&(u=-1);this.oldStartingIndex=u};Sys.CollectionChange.registerClass("Sys.CollectionChange");Sys.NotifyCollectionChangedAction=function(){throw Error.notImplemented();};Sys.NotifyCollectionChangedAction.prototype={add:0,remove:1,reset:2};Sys.NotifyCollectionChangedAction.registerEnum("Sys.NotifyCollectionChangedAction");Sys.NotifyCollectionChangedEventArgs=function(n){this._changes=n;Sys.NotifyCollectionChangedEventArgs.initializeBase(this)};Sys.NotifyCollectionChangedEventArgs.prototype={get_changes:function(){return this._changes||[]}};Sys.NotifyCollectionChangedEventArgs.registerClass("Sys.NotifyCollectionChangedEventArgs",Sys.EventArgs);Sys.Observer=function(){};Sys.Observer.registerClass("Sys.Observer");Sys.Observer.makeObservable=function(n){var i=n instanceof Array,t=Sys.Observer;return n.setValue===t._observeMethods.setValue?n:(t._addMethods(n,t._observeMethods),i&&t._addMethods(n,t._arrayMethods),n)};Sys.Observer._addMethods=function(n,t){for(var i in t)n[i]=t[i]};Sys.Observer._addEventHandler=function(n,t,i){Sys.Observer._getContext(n,!0).events._addHandler(t,i)};Sys.Observer.addEventHandler=function(n,t,i){Sys.Observer._addEventHandler(n,t,i)};Sys.Observer._removeEventHandler=function(n,t,i){Sys.Observer._getContext(n,!0).events._removeHandler(t,i)};Sys.Observer.removeEventHandler=function(n,t,i){Sys.Observer._removeEventHandler(n,t,i)};Sys.Observer.raiseEvent=function(n,t,i){var u=Sys.Observer._getContext(n),r;u&&(r=u.events.getHandler(t),r&&r(n,i))};Sys.Observer.addPropertyChanged=function(n,t){Sys.Observer._addEventHandler(n,"propertyChanged",t)};Sys.Observer.removePropertyChanged=function(n,t){Sys.Observer._removeEventHandler(n,"propertyChanged",t)};Sys.Observer.beginUpdate=function(n){Sys.Observer._getContext(n,!0).updating=!0};Sys.Observer.endUpdate=function(n){var t=Sys.Observer._getContext(n),i,r;t&&t.updating&&(t.updating=!1,i=t.dirty,t.dirty=!1,i&&(n instanceof Array&&(r=t.changes,t.changes=null,Sys.Observer.raiseCollectionChanged(n,r)),Sys.Observer.raisePropertyChanged(n,"")))};Sys.Observer.isUpdating=function(n){var t=Sys.Observer._getContext(n);return t?t.updating:!1};Sys.Observer._setValue=function(n,t,i){for(var h,a,v,u,e,r,o,c=n,f=t.split("."),s=0,l=f.length-1;s<l;s++)if(h=f[s],r=n["get_"+h],n=typeof r=="function"?r.call(n):n[h],a=typeof n,n===null||a==="undefined")throw Error.invalidOperation(String.format(Sys.Res.nullReferenceInPath,t));if(u=f[l],r=n["get_"+u],o=n["set_"+u],v=typeof r=="function"?r.call(n):n[u],typeof o=="function"?o.call(n,i):n[u]=i,v!==i){if(e=Sys.Observer._getContext(c),e&&e.updating){e.dirty=!0;return}Sys.Observer.raisePropertyChanged(c,f[0])}};Sys.Observer.setValue=function(n,t,i){Sys.Observer._setValue(n,t,i)};Sys.Observer.raisePropertyChanged=function(n,t){Sys.Observer.raiseEvent(n,"propertyChanged",new Sys.PropertyChangedEventArgs(t))};Sys.Observer.addCollectionChanged=function(n,t){Sys.Observer._addEventHandler(n,"collectionChanged",t)};Sys.Observer.removeCollectionChanged=function(n,t){Sys.Observer._removeEventHandler(n,"collectionChanged",t)};Sys.Observer._collectionChange=function(n,t){var i=Sys.Observer._getContext(n),r;i&&i.updating?(i.dirty=!0,r=i.changes,r?r.push(t):i.changes=r=[t]):(Sys.Observer.raiseCollectionChanged(n,[t]),Sys.Observer.raisePropertyChanged(n,"length"))};Sys.Observer.add=function(n,t){var i=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[t],n.length);Array.add(n,t);Sys.Observer._collectionChange(n,i)};Sys.Observer.addRange=function(n,t){var i=new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,t,n.length);Array.addRange(n,t);Sys.Observer._collectionChange(n,i)};Sys.Observer.clear=function(n){var t=Array.clone(n);Array.clear(n);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.reset,null,-1,t,0))};Sys.Observer.insert=function(n,t,i){Array.insert(n,t,i);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.add,[i],t))};Sys.Observer.remove=function(n,t){var i=Array.indexOf(n,t);return i!==-1?(Array.remove(n,t),Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[t],i)),!0):!1};Sys.Observer.removeAt=function(n,t){if(t>-1&&t<n.length){var i=n[t];Array.removeAt(n,t);Sys.Observer._collectionChange(n,new Sys.CollectionChange(Sys.NotifyCollectionChangedAction.remove,null,-1,[i],t))}};Sys.Observer.raiseCollectionChanged=function(n,t){Sys.Observer.raiseEvent(n,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(t))};Sys.Observer._observeMethods={add_propertyChanged:function(n){Sys.Observer._addEventHandler(this,"propertyChanged",n)},remove_propertyChanged:function(n){Sys.Observer._removeEventHandler(this,"propertyChanged",n)},addEventHandler:function(n,t){Sys.Observer._addEventHandler(this,n,t)},removeEventHandler:function(n,t){Sys.Observer._removeEventHandler(this,n,t)},get_isUpdating:function(){return Sys.Observer.isUpdating(this)},beginUpdate:function(){Sys.Observer.beginUpdate(this)},endUpdate:function(){Sys.Observer.endUpdate(this)},setValue:function(n,t){Sys.Observer._setValue(this,n,t)},raiseEvent:function(n,t){Sys.Observer.raiseEvent(this,n,t)},raisePropertyChanged:function(n){Sys.Observer.raiseEvent(this,"propertyChanged",new Sys.PropertyChangedEventArgs(n))}};Sys.Observer._arrayMethods={add_collectionChanged:function(n){Sys.Observer._addEventHandler(this,"collectionChanged",n)},remove_collectionChanged:function(n){Sys.Observer._removeEventHandler(this,"collectionChanged",n)},add:function(n){Sys.Observer.add(this,n)},addRange:function(n){Sys.Observer.addRange(this,n)},clear:function(){Sys.Observer.clear(this)},insert:function(n,t){Sys.Observer.insert(this,n,t)},remove:function(n){return Sys.Observer.remove(this,n)},removeAt:function(n){Sys.Observer.removeAt(this,n)},raiseCollectionChanged:function(n){Sys.Observer.raiseEvent(this,"collectionChanged",new Sys.NotifyCollectionChangedEventArgs(n))}};Sys.Observer._getContext=function(n,t){var i=n._observerContext;return i?i():t?(n._observerContext=Sys.Observer._createContext())():null};Sys.Observer._createContext=function(){var n={events:new Sys.EventHandlerList};return function(){return n}};Date._appendPreOrPostMatch=function(n,t){for(var u,f=0,i=!1,r=0,e=n.length;r<e;r++){u=n.charAt(r);switch(u){case"'":i?t.append("'"):f++;i=!1;break;case"\\":i&&t.append("\\");i=!i;break;default:t.append(u);i=!1}}return f};Date._expandFormat=function(n,t){t||(t="F");var i=t.length;if(i===1)switch(t){case"d":return n.ShortDatePattern;case"D":return n.LongDatePattern;case"t":return n.ShortTimePattern;case"T":return n.LongTimePattern;case"f":return n.LongDatePattern+" "+n.ShortTimePattern;case"F":return n.FullDateTimePattern;case"M":case"m":return n.MonthDayPattern;case"s":return n.SortableDateTimePattern;case"Y":case"y":return n.YearMonthPattern;default:throw Error.format(Sys.Res.formatInvalidString);}else i===2&&t.charAt(0)==="%"&&(t=t.charAt(1));return t};Date._expandYear=function(n,t){var r=new Date,u=Date._getEra(r),i;return t<100&&(i=Date._getEraYear(r,n,u),t+=i-i%100,t>n.Calendar.TwoDigitYearMax&&(t-=100)),t};Date._getEra=function(n,t){var r,u,i,f;if(!t)return 0;for(u=n.getTime(),i=0,f=t.length;i<f;i+=4)if(r=t[i+2],r===null||u>=r)return i;return 0};Date._getEraYear=function(n,t,i,r){var u=n.getFullYear();return!r&&t.eras&&(u-=t.eras[i+3]),u};Date._getParseRegExp=function(n,t){var r,c,l,e;if(n._parseRegExp){if(n._parseRegExp[t])return n._parseRegExp[t]}else n._parseRegExp={};r=Date._expandFormat(n,t);r=r.replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1");for(var i=new Sys.StringBuilder("^"),o=[],f=0,s=0,h=Date._getTokenRegExp(),u;(u=h.exec(r))!==null;){if(c=r.slice(f,u.index),f=h.lastIndex,s+=Date._appendPreOrPostMatch(c,i),s%2==1){i.append(u[0]);continue}switch(u[0]){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":i.append("(\\D+)");break;case"tt":case"t":i.append("(\\D*)");break;case"yyyy":i.append("(\\d{4})");break;case"fff":i.append("(\\d{3})");break;case"ff":i.append("(\\d{2})");break;case"f":i.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":i.append("(\\d\\d?)");break;case"zzz":i.append("([+-]?\\d\\d?:\\d{2})");break;case"zz":case"z":i.append("([+-]?\\d\\d?)");break;case"/":i.append("(\\"+n.DateSeparator+")")}Array.add(o,u[0])}return Date._appendPreOrPostMatch(r.slice(f),i),i.append("$"),l=i.toString().replace(/\s+/g,"\\s+"),e={regExp:l,groups:o},n._parseRegExp[t]=e,e};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|gg|g/g};Date.parseLocale=function(n){return Date._parse(n,Sys.CultureInfo.CurrentCulture,arguments)};Date.parseInvariant=function(n){return Date._parse(n,Sys.CultureInfo.InvariantCulture,arguments)};Date._parse=function(n,t,i){for(var u,e,o,s=!1,r=1,f=i.length;r<f;r++)if(e=i[r],e&&(s=!0,u=Date._parseExact(n,e,t),u))return u;if(!s)for(o=t._getDateTimeFormats(),r=0,f=o.length;r<f;r++)if(u=Date._parseExact(n,o[r],t),u)return u;return null};Date._parseExact=function(n,t,i){var v,st,r,rt,nt,y,p,w,ht,u,ct,b,ut;n=n.trim();var s=i.dateTimeFormat,ft=Date._getParseRegExp(s,t),et=new RegExp(ft.regExp).exec(n);if(et===null)return null;var ot=ft.groups,tt=null,e=null,f=null,c=null,l=null,o=0,a,k=0,d=0,h=0,g=null,it=!1;for(v=0,st=ot.length;v<st;v++)if(r=et[v+1],r)switch(ot[v]){case"dd":case"d":if(c=parseInt(r,10),c<1||c>31)return null;break;case"MMMM":if(f=i._getMonthIndex(r),f<0||f>11)return null;break;case"MMM":if(f=i._getAbbrMonthIndex(r),f<0||f>11)return null;break;case"M":case"MM":if(f=parseInt(r,10)-1,f<0||f>11)return null;break;case"y":case"yy":if(e=Date._expandYear(s,parseInt(r,10)),e<0||e>9999)return null;break;case"yyyy":if(e=parseInt(r,10),e<0||e>9999)return null;break;case"h":case"hh":if(o=parseInt(r,10),o===12&&(o=0),o<0||o>11)return null;break;case"H":case"HH":if(o=parseInt(r,10),o<0||o>23)return null;break;case"m":case"mm":if(k=parseInt(r,10),k<0||k>59)return null;break;case"s":case"ss":if(d=parseInt(r,10),d<0||d>59)return null;break;case"tt":case"t":if(rt=r.toUpperCase(),it=rt===s.PMDesignator.toUpperCase(),!it&&rt!==s.AMDesignator.toUpperCase())return null;break;case"f":if(h=parseInt(r,10)*100,h<0||h>999)return null;break;case"ff":if(h=parseInt(r,10)*10,h<0||h>999)return null;break;case"fff":if(h=parseInt(r,10),h<0||h>999)return null;break;case"dddd":if(l=i._getDayIndex(r),l<0||l>6)return null;break;case"ddd":if(l=i._getAbbrDayIndex(r),l<0||l>6)return null;break;case"zzz":if((nt=r.split(/:/),nt.length!==2)||(a=parseInt(nt[0],10),a<-12||a>13)||(y=parseInt(nt[1],10),y<0||y>59))return null;g=a*60+(r.startsWith("-")?-y:y);break;case"z":case"zz":if(a=parseInt(r,10),a<-12||a>13)return null;g=a*60;break;case"g":case"gg":if(p=r,!p||!s.eras)return null;for(p=p.toLowerCase().trim(),w=0,ht=s.eras.length;w<ht;w+=4)if(p===s.eras[w+1].toLowerCase()){tt=w;break}if(tt===null)return null}if(u=new Date,b=s.Calendar.convert,ct=b?b.fromGregorian(u)[0]:u.getFullYear(),e===null?e=ct:s.eras&&(e+=s.eras[(tt||0)+3]),f===null&&(f=0),c===null&&(c=1),b){if(u=b.toGregorian(e,f,c),u===null)return null}else if((u.setFullYear(e,f,c),u.getDate()!==c)||l!==null&&u.getDay()!==l)return null;return it&&o<12&&(o+=12),u.setHours(o,k,d,h),g!==null&&(ut=u.getMinutes()-(g+u.getTimezoneOffset()),u.setHours(u.getHours()+parseInt(ut/60,10),ut%60)),u};Date.prototype.format=function(n){return this._toFormattedString(n,Sys.CultureInfo.InvariantCulture)};Date.prototype.localeFormat=function(n){return this._toFormattedString(n,Sys.CultureInfo.CurrentCulture)};Date.prototype._toFormattedString=function(n,t){function f(n){return n<10?"0"+n:n.toString()}function y(n){return n<10?"00"+n:n<100?"0"+n:n.toString()}function nt(n){return n<10?"000"+n:n<100?"00"+n:n<1e3?"0"+n:n.toString()}function g(){return s||k?s:(s=d.test(n),k=!0,s)}var r=t.dateTimeFormat,a=r.Calendar.convert,v,b,h,c,i,u,s,k,d,p,w,e;if(!n||!n.length||n==="i")return t&&t.name.length?a?this._toFormattedString(r.FullDateTimePattern,t):(v=new Date(this.getTime()),b=Date._getEra(this,r.eras),v.setFullYear(Date._getEraYear(this,r,b)),v.toLocaleString()):this.toString();for(h=r.eras,c=n==="s",n=Date._expandFormat(r,n),i=new Sys.StringBuilder,d=/([^d]|^)(d|dd)([^d]|$)/g,p=0,w=Date._getTokenRegExp(),!c&&a&&(e=a.fromGregorian(this));;){var tt=w.lastIndex,l=w.exec(n),it=n.slice(tt,l?l.index:n.length);if(p+=Date._appendPreOrPostMatch(it,i),!l)break;if(p%2==1){i.append(l[0]);continue}function o(n,t){if(e)return e[t];switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate()}}switch(l[0]){case"dddd":i.append(r.DayNames[this.getDay()]);break;case"ddd":i.append(r.AbbreviatedDayNames[this.getDay()]);break;case"dd":s=!0;i.append(f(o(this,2)));break;case"d":s=!0;i.append(o(this,2));break;case"MMMM":i.append(r.MonthGenitiveNames&&g()?r.MonthGenitiveNames[o(this,1)]:r.MonthNames[o(this,1)]);break;case"MMM":i.append(r.AbbreviatedMonthGenitiveNames&&g()?r.AbbreviatedMonthGenitiveNames[o(this,1)]:r.AbbreviatedMonthNames[o(this,1)]);break;case"MM":i.append(f(o(this,1)+1));break;case"M":i.append(o(this,1)+1);break;case"yyyy":i.append(nt(e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c)));break;case"yy":i.append(f((e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c))%100));break;case"y":i.append((e?e[0]:Date._getEraYear(this,r,Date._getEra(this,h),c))%100);break;case"hh":u=this.getHours()%12;u===0&&(u=12);i.append(f(u));break;case"h":u=this.getHours()%12;u===0&&(u=12);i.append(u);break;case"HH":i.append(f(this.getHours()));break;case"H":i.append(this.getHours());break;case"mm":i.append(f(this.getMinutes()));break;case"m":i.append(this.getMinutes());break;case"ss":i.append(f(this.getSeconds()));break;case"s":i.append(this.getSeconds());break;case"tt":i.append(this.getHours()<12?r.AMDesignator:r.PMDesignator);break;case"t":i.append((this.getHours()<12?r.AMDesignator:r.PMDesignator).charAt(0));break;case"f":i.append(y(this.getMilliseconds()).charAt(0));break;case"ff":i.append(y(this.getMilliseconds()).substr(0,2));break;case"fff":i.append(y(this.getMilliseconds()));break;case"z":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+Math.floor(Math.abs(u)));break;case"zz":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+f(Math.floor(Math.abs(u))));break;case"zzz":u=this.getTimezoneOffset()/60;i.append((u<=0?"+":"-")+f(Math.floor(Math.abs(u)))+":"+f(Math.abs(this.getTimezoneOffset()%60)));break;case"g":case"gg":r.eras&&i.append(r.eras[Date._getEra(this,h)+1]);break;case"/":i.append(r.DateSeparator)}}return i.toString()};String.localeFormat=function(){return String._toFormattedString(!0,arguments)};Number.parseLocale=function(n){return Number._parse(n,Sys.CultureInfo.CurrentCulture)};Number.parseInvariant=function(n){return Number._parse(n,Sys.CultureInfo.InvariantCulture)};Number._parse=function(n,t){var l,f,e,r,a,v,y,h,c;if(n=n.trim(),n.match(/^[+-]?infinity$/i))return parseFloat(n);if(n.match(/^0x[a-f0-9]+$/i))return parseInt(n);var i=t.numberFormat,o=Number._parseNumberNegativePattern(n,i,i.NumberNegativePattern),s=o[0],u=o[1];return(s===""&&i.NumberNegativePattern!==1&&(o=Number._parseNumberNegativePattern(n,i,1),s=o[0],u=o[1]),s===""&&(s="+"),e=u.indexOf("e"),e<0&&(e=u.indexOf("E")),e<0?(f=u,l=null):(f=u.substr(0,e),l=u.substr(e+1)),v=f.indexOf(i.NumberDecimalSeparator),v<0?(r=f,a=null):(r=f.substr(0,v),a=f.substr(v+i.NumberDecimalSeparator.length)),r=r.split(i.NumberGroupSeparator).join(""),y=i.NumberGroupSeparator.replace(/\u00A0/g," "),i.NumberGroupSeparator!==y&&(r=r.split(y).join("")),h=s+r,a!==null&&(h+="."+a),l!==null&&(c=Number._parseNumberNegativePattern(l,i,1),c[0]===""&&(c[0]="+"),h+="e"+c[0]+c[1]),h.match(/^[+-]?\d*\.?\d*(e[+-]?\d+)?$/))?parseFloat(h):Number.NaN};Number._parseNumberNegativePattern=function(n,t,i){var r=t.NegativeSign,u=t.PositiveSign;switch(i){case 4:r=" "+r;u=" "+u;case 3:if(n.endsWith(r))return["-",n.substr(0,n.length-r.length)];if(n.endsWith(u))return["+",n.substr(0,n.length-u.length)];break;case 2:r+=" ";u+=" ";case 1:if(n.startsWith(r))return["-",n.substr(r.length)];if(n.startsWith(u))return["+",n.substr(u.length)];break;case 0:if(n.startsWith("(")&&n.endsWith(")"))return["-",n.substr(1,n.length-2)]}return["",n]};Number.prototype.format=function(n){return this._toFormattedString(n,Sys.CultureInfo.InvariantCulture)};Number.prototype.localeFormat=function(n){return this._toFormattedString(n,Sys.CultureInfo.CurrentCulture)};Number.prototype._toFormattedString=function(n,t){function s(n,t,i){for(var r=n.length;r<t;r++)n=i?"0"+n:n+"0";return n}function h(n,t,i,r,u){var a=i[0],v=1,p=Math.pow(10,t),y=Math.round(n*p)/p,h,l;isFinite(y)||(y=n);n=y;var e=n.toString(),f="",o,c=e.split(/e/i);for(e=c[0],o=c.length>1?parseInt(c[1]):0,c=e.split("."),e=c[0],f=c.length>1?c[1]:"",o>0?(f=s(f,o,!1),e+=f.slice(0,o),f=f.substr(o)):o<0&&(o=-o,e=s(e,o+1,!0),f=e.slice(-o,e.length)+f,e=e.slice(0,-o)),t>0?(f=f.length>t?f.slice(0,t):s(f,t,!1),f=u+f):f="",h=e.length-1,l="";h>=0;){if(a===0||a>h)return l.length>0?e.slice(0,h+1)+r+l+f:e.slice(0,h+1)+f;l=l.length>0?e.slice(h-a+1,h+1)+r+l:e.slice(h-a+1,h+1);h-=a;v<i.length&&(a=i[v],v++)}return e.slice(0,h+1)+r+l+f}var i,u,r,f,c,e,l,o;if(!n||n.length===0||n==="i")return t&&t.name.length>0?this.toLocaleString():this.toString();i=t.numberFormat;u=Math.abs(this);n||(n="D");r=-1;n.length>1&&(r=parseInt(n.slice(1),10));switch(n.charAt(0)){case"d":case"D":f="n";r!==-1&&(u=s(""+u,r,!0));this<0&&(u=-u);break;case"c":case"C":f=this<0?["($n)","-$n","$-n","$n-","(n$)","-n$","n-$","n$-","-n $","-$ n","n $-","$ n-","$ -n","n- $","($ n)","(n $)"][i.CurrencyNegativePattern]:["$n","n$","$ n","n $"][i.CurrencyPositivePattern];r===-1&&(r=i.CurrencyDecimalDigits);u=h(Math.abs(this),r,i.CurrencyGroupSizes,i.CurrencyGroupSeparator,i.CurrencyDecimalSeparator);break;case"n":case"N":f=this<0?["(n)","-n","- n","n-","n -"][i.NumberNegativePattern]:"n";r===-1&&(r=i.NumberDecimalDigits);u=h(Math.abs(this),r,i.NumberGroupSizes,i.NumberGroupSeparator,i.NumberDecimalSeparator);break;case"p":case"P":f=this<0?["-n %","-n%","-%n"][i.PercentNegativePattern]:["n %","n%","%n"][i.PercentPositivePattern];r===-1&&(r=i.PercentDecimalDigits);u=h(Math.abs(this)*100,r,i.PercentGroupSizes,i.PercentGroupSeparator,i.PercentDecimalSeparator);break;default:throw Error.format(Sys.Res.formatBadFormatSpecifier);}for(c=/n|\$|-|%/g,e="";;){if(l=c.lastIndex,o=c.exec(f),e+=f.slice(l,o?o.index:f.length),!o)break;switch(o[0]){case"n":e+=u;break;case"$":e+=i.CurrencySymbol;break;case"-":/[1-9]/.test(u)&&(e+=i.NegativeSign);break;case"%":e+=i.PercentSymbol}}return e};Sys.CultureInfo=function(n,t,i){this.name=n;this.numberFormat=t;this.dateTimeFormat=i};Sys.CultureInfo.prototype={_getDateTimeFormats:function(){if(!this._dateTimeFormats){var n=this.dateTimeFormat;this._dateTimeFormats=[n.MonthDayPattern,n.YearMonthPattern,n.ShortDatePattern,n.ShortTimePattern,n.LongDatePattern,n.LongTimePattern,n.FullDateTimePattern,n.RFC1123Pattern,n.SortableDateTimePattern,n.UniversalSortableDateTimePattern]}return this._dateTimeFormats},_getIndex:function(n,t,i){var u=this._toUpper(n),r=Array.indexOf(t,u);return r===-1&&(r=Array.indexOf(i,u)),r},_getMonthIndex:function(n){return this._upperMonths||(this._upperMonths=this._toUpperArray(this.dateTimeFormat.MonthNames),this._upperMonthsGenitive=this._toUpperArray(this.dateTimeFormat.MonthGenitiveNames)),this._getIndex(n,this._upperMonths,this._upperMonthsGenitive)},_getAbbrMonthIndex:function(n){return this._upperAbbrMonths||(this._upperAbbrMonths=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthNames),this._upperAbbrMonthsGenitive=this._toUpperArray(this.dateTimeFormat.AbbreviatedMonthGenitiveNames)),this._getIndex(n,this._upperAbbrMonths,this._upperAbbrMonthsGenitive)},_getDayIndex:function(n){return this._upperDays||(this._upperDays=this._toUpperArray(this.dateTimeFormat.DayNames)),Array.indexOf(this._upperDays,this._toUpper(n))},_getAbbrDayIndex:function(n){return this._upperAbbrDays||(this._upperAbbrDays=this._toUpperArray(this.dateTimeFormat.AbbreviatedDayNames)),Array.indexOf(this._upperAbbrDays,this._toUpper(n))},_toUpperArray:function(n){for(var i=[],t=0,r=n.length;t<r;t++)i[t]=this._toUpper(n[t]);return i},_toUpper:function(n){return n.split(" ").join(" ").toUpperCase()}};Sys.CultureInfo.registerClass("Sys.CultureInfo");Sys.CultureInfo._parse=function(n){var t=n.dateTimeFormat;return t&&!t.eras&&(t.eras=n.eras),new Sys.CultureInfo(n.name,n.numberFormat,t)};Sys.CultureInfo.InvariantCulture=Sys.CultureInfo._parse({name:"",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!0,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"¤",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!0},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, dd MMMM yyyy HH:mm:ss",LongDatePattern:"dddd, dd MMMM yyyy",LongTimePattern:"HH:mm:ss",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"MM/dd/yyyy",ShortTimePattern:"HH:mm",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"yyyy MMMM",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!0,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]},eras:[1,"A.D.",null,0]});typeof __cultureInfo=="object"?(Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse(__cultureInfo),delete __cultureInfo):Sys.CultureInfo.CurrentCulture=Sys.CultureInfo._parse({name:"en-US",numberFormat:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:".",IsReadOnly:!1,CurrencyGroupSizes:[3],NumberGroupSizes:[3],PercentGroupSizes:[3],CurrencyGroupSeparator:",",CurrencySymbol:"$",NaNSymbol:"NaN",CurrencyNegativePattern:0,NumberNegativePattern:1,PercentPositivePattern:0,PercentNegativePattern:0,NegativeInfinitySymbol:"-Infinity",NegativeSign:"-",NumberDecimalDigits:2,NumberDecimalSeparator:".",NumberGroupSeparator:",",CurrencyPositivePattern:0,PositiveInfinitySymbol:"Infinity",PositiveSign:"+",PercentDecimalDigits:2,PercentDecimalSeparator:".",PercentGroupSeparator:",",PercentSymbol:"%",PerMilleSymbol:"‰",NativeDigits:["0","1","2","3","4","5","6","7","8","9"],DigitSubstitution:1},dateTimeFormat:{AMDesignator:"AM",Calendar:{MinSupportedDateTime:"@-62135568000000@",MaxSupportedDateTime:"@253402300799999@",AlgorithmType:1,CalendarType:1,Eras:[1],TwoDigitYearMax:2029,IsReadOnly:!1},DateSeparator:"/",FirstDayOfWeek:0,CalendarWeekRule:0,FullDateTimePattern:"dddd, MMMM dd, yyyy h:mm:ss tt",LongDatePattern:"dddd, MMMM dd, yyyy",LongTimePattern:"h:mm:ss tt",MonthDayPattern:"MMMM dd",PMDesignator:"PM",RFC1123Pattern:"ddd, dd MMM yyyy HH':'mm':'ss 'GMT'",ShortDatePattern:"M/d/yyyy",ShortTimePattern:"h:mm tt",SortableDateTimePattern:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",TimeSeparator:":",UniversalSortableDateTimePattern:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'",YearMonthPattern:"MMMM, yyyy",AbbreviatedDayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ShortestDayNames:["Su","Mo","Tu","We","Th","Fr","Sa"],DayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],AbbreviatedMonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthNames:["January","February","March","April","May","June","July","August","September","October","November","December",""],IsReadOnly:!1,NativeCalendarName:"Gregorian Calendar",AbbreviatedMonthGenitiveNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""],MonthGenitiveNames:["January","February","March","April","May","June","July","August","September","October","November","December",""]},eras:[1,"A.D.",null,0]});Type.registerNamespace("Sys.Serialization");Sys.Serialization.JavaScriptSerializer=function(){};Sys.Serialization.JavaScriptSerializer.registerClass("Sys.Serialization.JavaScriptSerializer");Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs=[];Sys.Serialization.JavaScriptSerializer._charsToEscape=[];Sys.Serialization.JavaScriptSerializer._dateRegEx=new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"',"g");Sys.Serialization.JavaScriptSerializer._escapeChars={};Sys.Serialization.JavaScriptSerializer._escapeRegEx=new RegExp('["\\\\\\x00-\\x1F]',"i");Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal=new RegExp('["\\\\\\x00-\\x1F]',"g");Sys.Serialization.JavaScriptSerializer._jsonRegEx=new RegExp("[^,:{}\\[\\]0-9.\\-+Eaeflnr-u \\n\\r\\t]","g");Sys.Serialization.JavaScriptSerializer._jsonStringRegEx=new RegExp('"(\\\\.|[^"\\\\])*"',"g");Sys.Serialization.JavaScriptSerializer._serverTypeFieldName="__type";Sys.Serialization.JavaScriptSerializer._init=function(){var i=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000b","\\f","\\r","\\u000e","\\u000f","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001a","\\u001b","\\u001c","\\u001d","\\u001e","\\u001f"],n,t;for(Sys.Serialization.JavaScriptSerializer._charsToEscape[0]="\\",Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs["\\"]=new RegExp("\\\\","g"),Sys.Serialization.JavaScriptSerializer._escapeChars["\\"]="\\\\",Sys.Serialization.JavaScriptSerializer._charsToEscape[1]='"',Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs['"']=new RegExp('"',"g"),Sys.Serialization.JavaScriptSerializer._escapeChars['"']='\\"',n=0;n<32;n++)t=String.fromCharCode(n),Sys.Serialization.JavaScriptSerializer._charsToEscape[n+2]=t,Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[t]=new RegExp(t,"g"),Sys.Serialization.JavaScriptSerializer._escapeChars[t]=i[n]};Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder=function(n,t){t.append(n.toString())};Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder=function(n,t){if(isFinite(n))t.append(String(n));else throw Error.invalidOperation(Sys.Res.cannotSerializeNonFiniteNumbers);};Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder=function(n,t){var r,i;if(t.append('"'),Sys.Serialization.JavaScriptSerializer._escapeRegEx.test(n))if(Sys.Serialization.JavaScriptSerializer._charsToEscape.length===0&&Sys.Serialization.JavaScriptSerializer._init(),n.length<128)n=n.replace(Sys.Serialization.JavaScriptSerializer._escapeRegExGlobal,function(n){return Sys.Serialization.JavaScriptSerializer._escapeChars[n]});else for(r=0;r<34;r++)i=Sys.Serialization.JavaScriptSerializer._charsToEscape[r],n.indexOf(i)!==-1&&(n=Sys.Browser.agent===Sys.Browser.Opera||Sys.Browser.agent===Sys.Browser.FireFox?n.split(i).join(Sys.Serialization.JavaScriptSerializer._escapeChars[i]):n.replace(Sys.Serialization.JavaScriptSerializer._charsToEscapeRegExs[i],Sys.Serialization.JavaScriptSerializer._escapeChars[i]));t.append(n);t.append('"')};Sys.Serialization.JavaScriptSerializer._serializeWithBuilder=function(n,t,i,r){var u,f,e,o,h,s;switch(typeof n){case"object":if(n)if(Number.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(n,t);else if(Boolean.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(n,t);else if(String.isInstanceOfType(n))Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(n,t);else if(Array.isInstanceOfType(n)){for(t.append("["),u=0;u<n.length;++u)u>0&&t.append(","),Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(n[u],t,!1,r);t.append("]")}else{if(Date.isInstanceOfType(n)){t.append('"\\/Date(');t.append(n.getTime());t.append(')\\/"');break}f=[];e=0;for(o in n)o.startsWith("$")||(o===Sys.Serialization.JavaScriptSerializer._serverTypeFieldName&&e!==0?(f[e++]=f[0],f[0]=o):f[e++]=o);for(i&&f.sort(),t.append("{"),h=!1,u=0;u<e;u++)s=n[f[u]],typeof s!="undefined"&&typeof s!="function"&&(h?t.append(","):h=!0,Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(f[u],t,i,r),t.append(":"),Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(s,t,i,r));t.append("}")}else t.append("null");break;case"number":Sys.Serialization.JavaScriptSerializer._serializeNumberWithBuilder(n,t);break;case"string":Sys.Serialization.JavaScriptSerializer._serializeStringWithBuilder(n,t);break;case"boolean":Sys.Serialization.JavaScriptSerializer._serializeBooleanWithBuilder(n,t);break;default:t.append("null")}};Sys.Serialization.JavaScriptSerializer.serialize=function(n){var t=new Sys.StringBuilder;return Sys.Serialization.JavaScriptSerializer._serializeWithBuilder(n,t,!1),t.toString()};Sys.Serialization.JavaScriptSerializer.deserialize=function(data,secure){if(data.length===0)throw Error.argument("data",Sys.Res.cannotDeserializeEmptyString);try{var exp=data.replace(Sys.Serialization.JavaScriptSerializer._dateRegEx,"$1new Date($2)");if(secure&&Sys.Serialization.JavaScriptSerializer._jsonRegEx.test(exp.replace(Sys.Serialization.JavaScriptSerializer._jsonStringRegEx,"")))throw null;return eval("("+exp+")")}catch(a){throw Error.argument("data",Sys.Res.cannotDeserializeInvalidJson);}};Type.registerNamespace("Sys.UI");Sys.EventHandlerList=function(){this._list={}};Sys.EventHandlerList.prototype={_addHandler:function(n,t){Array.add(this._getEvent(n,!0),t)},addHandler:function(n,t){this._addHandler(n,t)},_removeHandler:function(n,t){var i=this._getEvent(n);i&&Array.remove(i,t)},removeHandler:function(n,t){this._removeHandler(n,t)},getHandler:function(n){var t=this._getEvent(n);return!t||t.length===0?null:(t=Array.clone(t),function(n,i){for(var r=0,u=t.length;r<u;r++)t[r](n,i)})},_getEvent:function(n,t){if(!this._list[n]){if(!t)return null;this._list[n]=[]}return this._list[n]}};Sys.EventHandlerList.registerClass("Sys.EventHandlerList");Sys.CommandEventArgs=function(n,t,i){Sys.CommandEventArgs.initializeBase(this);this._commandName=n;this._commandArgument=t;this._commandSource=i};Sys.CommandEventArgs.prototype={_commandName:null,_commandArgument:null,_commandSource:null,get_commandName:function(){return this._commandName},get_commandArgument:function(){return this._commandArgument},get_commandSource:function(){return this._commandSource}};Sys.CommandEventArgs.registerClass("Sys.CommandEventArgs",Sys.CancelEventArgs);Sys.INotifyPropertyChange=function(){};Sys.INotifyPropertyChange.prototype={};Sys.INotifyPropertyChange.registerInterface("Sys.INotifyPropertyChange");Sys.PropertyChangedEventArgs=function(n){Sys.PropertyChangedEventArgs.initializeBase(this);this._propertyName=n};Sys.PropertyChangedEventArgs.prototype={get_propertyName:function(){return this._propertyName}};Sys.PropertyChangedEventArgs.registerClass("Sys.PropertyChangedEventArgs",Sys.EventArgs);Sys.INotifyDisposing=function(){};Sys.INotifyDisposing.prototype={};Sys.INotifyDisposing.registerInterface("Sys.INotifyDisposing");Sys.Component=function(){Sys.Application&&Sys.Application.registerDisposableObject(this)};Sys.Component.prototype={_id:null,_initialized:!1,_updating:!1,get_events:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_id:function(){return this._id},set_id:function(n){this._id=n},get_isInitialized:function(){return this._initialized},get_isUpdating:function(){return this._updating},add_disposing:function(n){this.get_events().addHandler("disposing",n)},remove_disposing:function(n){this.get_events().removeHandler("disposing",n)},add_propertyChanged:function(n){this.get_events().addHandler("propertyChanged",n)},remove_propertyChanged:function(n){this.get_events().removeHandler("propertyChanged",n)},beginUpdate:function(){this._updating=!0},dispose:function(){if(this._events){var n=this._events.getHandler("disposing");n&&n(this,Sys.EventArgs.Empty)}delete this._events;Sys.Application.unregisterDisposableObject(this);Sys.Application.removeComponent(this)},endUpdate:function(){this._updating=!1;this._initialized||this.initialize();this.updated()},initialize:function(){this._initialized=!0},raisePropertyChanged:function(n){if(this._events){var t=this._events.getHandler("propertyChanged");t&&t(this,new Sys.PropertyChangedEventArgs(n))}},updated:function(){}};Sys.Component.registerClass("Sys.Component",null,Sys.IDisposable,Sys.INotifyPropertyChange,Sys.INotifyDisposing);$create=Sys.Component.create=function(n,t,i,r,u){var f=u?new n(u):new n,e=Sys.Application,s=e.get_isCreatingComponents(),o;if(f.beginUpdate(),t&&Sys$Component$_setProperties(f,t),i)for(o in i)f["add_"+o](i[o]);return f.get_id()&&e.addComponent(f),s?(e._createdComponents[e._createdComponents.length]=f,r?e._addComponentToSecondPass(f,r):f.endUpdate()):(r&&Sys$Component$_setReferences(f,r),f.endUpdate()),f};Sys.UI.MouseButton=function(){throw Error.notImplemented();};Sys.UI.MouseButton.prototype={leftButton:0,middleButton:1,rightButton:2};Sys.UI.MouseButton.registerEnum("Sys.UI.MouseButton");Sys.UI.Key=function(){throw Error.notImplemented();};Sys.UI.Key.prototype={backspace:8,tab:9,enter:13,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,del:127};Sys.UI.Key.registerEnum("Sys.UI.Key");Sys.UI.Point=function(n,t){this.x=n;this.y=t};Sys.UI.Point.registerClass("Sys.UI.Point");Sys.UI.Bounds=function(n,t,i,r){this.x=n;this.y=t;this.height=r;this.width=i};Sys.UI.Bounds.registerClass("Sys.UI.Bounds");Sys.UI.DomEvent=function(n){var t=n,u=this.type=t.type.toLowerCase(),i,r;this.rawEvent=t;this.altKey=t.altKey;typeof t.button!="undefined"&&(this.button=typeof t.which!="undefined"?t.button:t.button===4?Sys.UI.MouseButton.middleButton:t.button===2?Sys.UI.MouseButton.rightButton:Sys.UI.MouseButton.leftButton);u==="keypress"?this.charCode=t.charCode||t.keyCode:this.keyCode=t.keyCode&&t.keyCode===46?127:t.keyCode;this.clientX=t.clientX;this.clientY=t.clientY;this.ctrlKey=t.ctrlKey;this.target=t.target?t.target:t.srcElement;u.startsWith("key")||(typeof t.offsetX!="undefined"&&typeof t.offsetY!="undefined"?(this.offsetX=t.offsetX,this.offsetY=t.offsetY):this.target&&this.target.nodeType!==3&&typeof t.clientX=="number"&&(i=Sys.UI.DomElement.getLocation(this.target),r=Sys.UI.DomElement._getWindow(this.target),this.offsetX=(r.pageXOffset||0)+t.clientX-i.x,this.offsetY=(r.pageYOffset||0)+t.clientY-i.y));this.screenX=t.screenX;this.screenY=t.screenY;this.shiftKey=t.shiftKey};Sys.UI.DomEvent.prototype={preventDefault:function(){this.rawEvent.preventDefault?this.rawEvent.preventDefault():window.event&&(this.rawEvent.returnValue=!1)},stopPropagation:function(){this.rawEvent.stopPropagation?this.rawEvent.stopPropagation():window.event&&(this.rawEvent.cancelBubble=!0)}};Sys.UI.DomEvent.registerClass("Sys.UI.DomEvent");var $addHandler=Sys.UI.DomEvent.addHandler=function(n,t,i,r){var u,f,e;n._events||(n._events={});u=n._events[t];u||(n._events[t]=u=[]);n.addEventListener?(f=function(t){return i.call(n,new Sys.UI.DomEvent(t))},n.addEventListener(t,f,!1)):n.attachEvent&&(f=function(){var t={};try{t=Sys.UI.DomElement._getWindow(n).event}catch(r){}return i.call(n,new Sys.UI.DomEvent(t))},n.attachEvent("on"+t,f));u[u.length]={handler:i,browserHandler:f,autoRemove:r};r&&(e=n.dispose,e!==Sys.UI.DomEvent._disposeHandlers&&(n.dispose=Sys.UI.DomEvent._disposeHandlers,typeof e!="undefined"&&(n._chainDispose=e)))},$addHandlers=Sys.UI.DomEvent.addHandlers=function(n,t,i,r){var f,u;for(f in t)u=t[f],i&&(u=Function.createDelegate(i,u)),$addHandler(n,f,u,r||!1)},$clearHandlers=Sys.UI.DomEvent.clearHandlers=function(n){Sys.UI.DomEvent._clearHandlers(n,!1)};if(Sys.UI.DomEvent._clearHandlers=function(n,t){var r,u,f,i,e;if(n._events){r=n._events;for(u in r)for(f=r[u],i=f.length-1;i>=0;i--)e=f[i],(!t||e.autoRemove)&&$removeHandler(n,u,e.handler);n._events=null}},Sys.UI.DomEvent._disposeHandlers=function(){Sys.UI.DomEvent._clearHandlers(this,!0);var n=this._chainDispose,t=typeof n;t!=="undefined"&&(this.dispose=n,this._chainDispose=null,t==="function"&&this.dispose())},$removeHandler=Sys.UI.DomEvent.removeHandler=function(n,t,i){Sys.UI.DomEvent._removeHandler(n,t,i)},Sys.UI.DomEvent._removeHandler=function(n,t,i){for(var f=null,u=n._events[t],r=0,e=u.length;r<e;r++)if(u[r].handler===i){f=u[r].browserHandler;break}n.removeEventListener?n.removeEventListener(t,f,!1):n.detachEvent&&n.detachEvent("on"+t,f);u.splice(r,1)},Sys.UI.DomElement=function(){},Sys.UI.DomElement.registerClass("Sys.UI.DomElement"),Sys.UI.DomElement.addCssClass=function(n,t){Sys.UI.DomElement.containsCssClass(n,t)||(n.className===""?n.className=t:n.className+=" "+t)},Sys.UI.DomElement.containsCssClass=function(n,t){return Array.contains(n.className.split(" "),t)},Sys.UI.DomElement.getBounds=function(n){var t=Sys.UI.DomElement.getLocation(n);return new Sys.UI.Bounds(t.x,t.y,n.offsetWidth||0,n.offsetHeight||0)},$get=Sys.UI.DomElement.getElementById=function(n,t){var u,f,r,i;if(!t)return document.getElementById(n);if(t.getElementById)return t.getElementById(n);for(u=[],f=t.childNodes,r=0;r<f.length;r++)i=f[r],i.nodeType==1&&(u[u.length]=i);while(u.length){if(i=u.shift(),i.id==n)return i;for(f=i.childNodes,r=0;r<f.length;r++)i=f[r],i.nodeType==1&&(u[u.length]=i)}return null},Sys.UI.DomElement.getLocation=document.documentElement.getBoundingClientRect?function(n){var u,e,o;if(n.self||n.nodeType===9||n===document.documentElement||n.parentNode===n.ownerDocument.documentElement||(u=n.getBoundingClientRect(),!u))return new Sys.UI.Point(0,0);var f=n.ownerDocument.documentElement,i=Math.round(u.left)+f.scrollLeft,r=Math.round(u.top)+f.scrollTop;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){try{e=n.ownerDocument.parentWindow.frameElement||null;e&&(o=e.frameBorder==="0"||e.frameBorder==="no"?2:0,i+=o,r+=o)}catch(c){}if(Sys.Browser.version===7&&!document.documentMode){var s=document.body,h=s.getBoundingClientRect(),t=(h.right-h.left)/s.clientWidth;t=Math.round(t*100);t=(t-t%5)/100;isNaN(t)||t===1||(i=Math.round(i/t),r=Math.round(r/t))}(document.documentMode||0)<8&&(i-=f.clientLeft,r-=f.clientTop)}return new Sys.UI.Point(i,r)}:Sys.Browser.agent===Sys.Browser.Safari?function(n){var r,o,s;if(n.window&&n.window===n||n.nodeType===9)return new Sys.UI.Point(0,0);for(var u=0,f=0,h=null,e=null,i,t=n;t;h=t,e=i,t=t.offsetParent)i=Sys.UI.DomElement._getCurrentStyle(t),r=t.tagName?t.tagName.toUpperCase():null,(t.offsetLeft||t.offsetTop)&&(r!=="BODY"||!e||e.position!=="absolute")&&(u+=t.offsetLeft,f+=t.offsetTop),h&&Sys.Browser.version>=3&&(u+=parseInt(i.borderLeftWidth),f+=parseInt(i.borderTopWidth));if(i=Sys.UI.DomElement._getCurrentStyle(n),o=i?i.position:null,!o||o!=="absolute")for(t=n.parentNode;t;t=t.parentNode)if(r=t.tagName?t.tagName.toUpperCase():null,r!=="BODY"&&r!=="HTML"&&(t.scrollLeft||t.scrollTop)&&(u-=t.scrollLeft||0,f-=t.scrollTop||0),i=Sys.UI.DomElement._getCurrentStyle(t),s=i?i.position:null,s&&s==="absolute")break;return new Sys.UI.Point(u,f)}:function(n){var r,o;if(n.window&&n.window===n||n.nodeType===9)return new Sys.UI.Point(0,0);for(var u=0,f=0,s=null,e=null,i=null,t=n;t;s=t,e=i,t=t.offsetParent)r=t.tagName?t.tagName.toUpperCase():null,i=Sys.UI.DomElement._getCurrentStyle(t),!(t.offsetLeft||t.offsetTop)||r==="BODY"&&(!e||e.position!=="absolute")||(u+=t.offsetLeft,f+=t.offsetTop),s!==null&&i&&(r!=="TABLE"&&r!=="TD"&&r!=="HTML"&&(u+=parseInt(i.borderLeftWidth)||0,f+=parseInt(i.borderTopWidth)||0),r==="TABLE"&&(i.position==="relative"||i.position==="absolute")&&(u+=parseInt(i.marginLeft)||0,f+=parseInt(i.marginTop)||0));if(i=Sys.UI.DomElement._getCurrentStyle(n),o=i?i.position:null,!o||o!=="absolute")for(t=n.parentNode;t;t=t.parentNode)r=t.tagName?t.tagName.toUpperCase():null,r!=="BODY"&&r!=="HTML"&&(t.scrollLeft||t.scrollTop)&&(u-=t.scrollLeft||0,f-=t.scrollTop||0,i=Sys.UI.DomElement._getCurrentStyle(t),i&&(u+=parseInt(i.borderLeftWidth)||0,f+=parseInt(i.borderTopWidth)||0));return new Sys.UI.Point(u,f)},Sys.UI.DomElement.isDomElement=function(n){return Sys._isDomElement(n)},Sys.UI.DomElement.removeCssClass=function(n,t){var i=" "+n.className+" ",r=i.indexOf(" "+t+" ");r>=0&&(n.className=(i.substr(0,r)+" "+i.substring(r+t.length+1,i.length)).trim())},Sys.UI.DomElement.resolveElement=function(n,t){var i=n;return i?(typeof i=="string"&&(i=Sys.UI.DomElement.getElementById(i,t)),i):null},Sys.UI.DomElement.raiseBubbleEvent=function(n,t){for(var r=n,i;r;){if(i=r.control,i&&i.onBubbleEvent&&i.raiseBubbleEvent){Sys.UI.DomElement._raiseBubbleEventFromControl(i,n,t);return}r=r.parentNode}},Sys.UI.DomElement._raiseBubbleEventFromControl=function(n,t,i){n.onBubbleEvent(t,i)||n._raiseBubbleEvent(t,i)},Sys.UI.DomElement.setLocation=function(n,t,i){var r=n.style;r.position="absolute";r.left=t+"px";r.top=i+"px"},Sys.UI.DomElement.toggleCssClass=function(n,t){Sys.UI.DomElement.containsCssClass(n,t)?Sys.UI.DomElement.removeCssClass(n,t):Sys.UI.DomElement.addCssClass(n,t)},Sys.UI.DomElement.getVisibilityMode=function(n){return n._visibilityMode===Sys.UI.VisibilityMode.hide?Sys.UI.VisibilityMode.hide:Sys.UI.VisibilityMode.collapse},Sys.UI.DomElement.setVisibilityMode=function(n,t){Sys.UI.DomElement._ensureOldDisplayMode(n);n._visibilityMode!==t&&(n._visibilityMode=t,Sys.UI.DomElement.getVisible(n)===!1&&(n.style.display=n._visibilityMode===Sys.UI.VisibilityMode.hide?n._oldDisplayMode:"none"),n._visibilityMode=t)},Sys.UI.DomElement.getVisible=function(n){var t=n.currentStyle||Sys.UI.DomElement._getCurrentStyle(n);return t?t.visibility!=="hidden"&&t.display!=="none":!0},Sys.UI.DomElement.setVisible=function(n,t){t!==Sys.UI.DomElement.getVisible(n)&&(Sys.UI.DomElement._ensureOldDisplayMode(n),n.style.visibility=t?"visible":"hidden",n.style.display=t||n._visibilityMode===Sys.UI.VisibilityMode.hide?n._oldDisplayMode:"none")},Sys.UI.DomElement._ensureOldDisplayMode=function(n){if(!n._oldDisplayMode){var t=n.currentStyle||Sys.UI.DomElement._getCurrentStyle(n);if(n._oldDisplayMode=t?t.display:null,!n._oldDisplayMode||n._oldDisplayMode==="none")switch(n.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":n._oldDisplayMode="block";break;case"LI":n._oldDisplayMode="list-item";break;default:n._oldDisplayMode="inline"}}},Sys.UI.DomElement._getWindow=function(n){var t=n.ownerDocument||n.document||n;return t.defaultView||t.parentWindow},Sys.UI.DomElement._getCurrentStyle=function(n){var t,i,f,e,r,u;if(n.nodeType===3)return null;if(t=Sys.UI.DomElement._getWindow(n),n.documentElement&&(n=n.documentElement),i=t&&n!==t&&t.getComputedStyle?t.getComputedStyle(n,null):n.currentStyle||n.style,!i&&Sys.Browser.agent===Sys.Browser.Safari&&n.style){f=n.style.display;e=n.style.position;n.style.position="absolute";n.style.display="block";r=t.getComputedStyle(n,null);n.style.display=f;n.style.position=e;i={};for(u in r)i[u]=r[u];i.display="none"}return i},Sys.IContainer=function(){},Sys.IContainer.prototype={},Sys.IContainer.registerInterface("Sys.IContainer"),Sys.ApplicationLoadEventArgs=function(n,t){Sys.ApplicationLoadEventArgs.initializeBase(this);this._components=n;this._isPartialLoad=t},Sys.ApplicationLoadEventArgs.prototype={get_components:function(){return this._components},get_isPartialLoad:function(){return this._isPartialLoad}},Sys.ApplicationLoadEventArgs.registerClass("Sys.ApplicationLoadEventArgs",Sys.EventArgs),Sys._Application=function(){Sys._Application.initializeBase(this);this._disposableObjects=[];this._components={};this._createdComponents=[];this._secondPassComponents=[];this._unloadHandlerDelegate=Function.createDelegate(this,this._unloadHandler);Sys.UI.DomEvent.addHandler(window,"unload",this._unloadHandlerDelegate);this._domReady()},Sys._Application.prototype={_creatingComponents:!1,_disposing:!1,_deleteCount:0,get_isCreatingComponents:function(){return this._creatingComponents},get_isDisposing:function(){return this._disposing},add_init:function(n){this._initialized?n(this,Sys.EventArgs.Empty):this.get_events().addHandler("init",n)},remove_init:function(n){this.get_events().removeHandler("init",n)},add_load:function(n){this.get_events().addHandler("load",n)},remove_load:function(n){this.get_events().removeHandler("load",n)},add_unload:function(n){this.get_events().addHandler("unload",n)},remove_unload:function(n){this.get_events().removeHandler("unload",n)},addComponent:function(n){this._components[n.get_id()]=n},beginCreateComponents:function(){this._creatingComponents=!0},dispose:function(){var t,i,n,f,r,u;if(!this._disposing){for(this._disposing=!0,this._timerCookie&&(window.clearTimeout(this._timerCookie),delete this._timerCookie),this._endRequestHandler&&(Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(this._endRequestHandler),delete this._endRequestHandler),this._beginRequestHandler&&(Sys.WebForms.PageRequestManager.getInstance().remove_beginRequest(this._beginRequestHandler),delete this._beginRequestHandler),window.pageUnload&&window.pageUnload(this,Sys.EventArgs.Empty),t=this.get_events().getHandler("unload"),t&&t(this,Sys.EventArgs.Empty),i=Array.clone(this._disposableObjects),n=0,f=i.length;n<f;n++)r=i[n],typeof r!="undefined"&&r.dispose();Array.clear(this._disposableObjects);Sys.UI.DomEvent.removeHandler(window,"unload",this._unloadHandlerDelegate);Sys._ScriptLoader&&(u=Sys._ScriptLoader.getInstance(),u&&u.dispose());Sys._Application.callBaseMethod(this,"dispose")}},disposeElement:function(n,t){var f,e,u,i;if(n.nodeType===1){for(var s=n.getElementsByTagName("*"),o=s.length,h=new Array(o),r=0;r<o;r++)h[r]=s[r];for(r=o-1;r>=0;r--)f=h[r],e=f.dispose,e&&typeof e=="function"?f.dispose():(u=f.control,u&&typeof u.dispose=="function"&&u.dispose()),i=f._behaviors,i&&this._disposeComponents(i),i=f._components,i&&(this._disposeComponents(i),f._components=null);t||(e=n.dispose,e&&typeof e=="function"?n.dispose():(u=n.control,u&&typeof u.dispose=="function"&&u.dispose()),i=n._behaviors,i&&this._disposeComponents(i),i=n._components,i&&(this._disposeComponents(i),n._components=null))}},endCreateComponents:function(){for(var i,t=this._secondPassComponents,n=0,r=t.length;n<r;n++)i=t[n].component,Sys$Component$_setReferences(i,t[n].references),i.endUpdate();this._secondPassComponents=[];this._creatingComponents=!1},findComponent:function(n,t){return t?Sys.IContainer.isInstanceOfType(t)?t.findComponent(n):t[n]||null:Sys.Application._components[n]||null},getComponents:function(){var n=[],t=this._components;for(var i in t)n[n.length]=t[i];return n},initialize:function(){if(!this.get_isInitialized()&&!this._disposing){if(Sys._Application.callBaseMethod(this,"initialize"),this._raiseInit(),this.get_stateString){Sys.WebForms&&Sys.WebForms.PageRequestManager&&(this._beginRequestHandler=Function.createDelegate(this,this._onPageRequestManagerBeginRequest),Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(this._beginRequestHandler),this._endRequestHandler=Function.createDelegate(this,this._onPageRequestManagerEndRequest),Sys.WebForms.PageRequestManager.getInstance().add_endRequest(this._endRequestHandler));var n=this.get_stateString();n!==this._currentEntry?this._navigate(n):this._ensureHistory()}this.raiseLoad()}},notifyScriptLoaded:function(){},registerDisposableObject:function(n){if(!this._disposing){var t=this._disposableObjects,i=t.length;t[i]=n;n.__msdisposeindex=i}},raiseLoad:function(){var n=this.get_events().getHandler("load"),t=new Sys.ApplicationLoadEventArgs(Array.clone(this._createdComponents),!!this._loaded);this._loaded=!0;n&&n(this,t);window.pageLoad&&window.pageLoad(this,t);this._createdComponents=[]},removeComponent:function(n){var t=n.get_id();t&&delete this._components[t]},unregisterDisposableObject:function(n){var u,t,i,r,f;if(!this._disposing&&(u=n.__msdisposeindex,typeof u=="number"&&(t=this._disposableObjects,delete t[u],delete n.__msdisposeindex,++this._deleteCount>1e3))){for(i=[],r=0,f=t.length;r<f;r++)n=t[r],typeof n!="undefined"&&(n.__msdisposeindex=i.length,i.push(n));this._disposableObjects=i;this._deleteCount=0}},_addComponentToSecondPass:function(n,t){this._secondPassComponents[this._secondPassComponents.length]={component:n,references:t}},_disposeComponents:function(n){var t,i;if(n)for(t=n.length-1;t>=0;t--)i=n[t],typeof i.dispose=="function"&&i.dispose()},_domReady:function(){function t(){u.initialize()}var n,u=this,r=function(){Sys.UI.DomEvent.removeHandler(window,"load",r);t()},f,i;if(Sys.UI.DomEvent.addHandler(window,"load",r),document.addEventListener)try{document.addEventListener("DOMContentLoaded",n=function(){document.removeEventListener("DOMContentLoaded",n,!1);t()},!1)}catch(e){}else document.attachEvent&&(window==window.top&&document.documentElement.doScroll?(i=document.createElement("div"),n=function(){try{i.doScroll("left")}catch(r){f=window.setTimeout(n,0);return}i=null;t()},n()):document.attachEvent("onreadystatechange",n=function(){document.readyState==="complete"&&(document.detachEvent("onreadystatechange",n),t())}))},_raiseInit:function(){var n=this.get_events().getHandler("init");n&&(this.beginCreateComponents(),n(this,Sys.EventArgs.Empty),this.endCreateComponents())},_unloadHandler:function(){this.dispose()}},Sys._Application.registerClass("Sys._Application",Sys.Component,Sys.IContainer),Sys.Application=new Sys._Application,$find=Sys.Application.findComponent,Sys.UI.Behavior=function(n){Sys.UI.Behavior.initializeBase(this);this._element=n;var t=n._behaviors;t?t[t.length]=this:n._behaviors=[this]},Sys.UI.Behavior.prototype={_name:null,get_element:function(){return this._element},get_id:function(){var n=Sys.UI.Behavior.callBaseMethod(this,"get_id");return n?n:!this._element||!this._element.id?"":this._element.id+"$"+this.get_name()},get_name:function(){if(this._name)return this._name;var n=Object.getTypeName(this),t=n.lastIndexOf(".");return t!==-1&&(n=n.substr(t+1)),this.get_isInitialized()||(this._name=n),n},set_name:function(n){this._name=n},initialize:function(){Sys.UI.Behavior.callBaseMethod(this,"initialize");var n=this.get_name();n&&(this._element[n]=this)},dispose:function(){var n,t,i;Sys.UI.Behavior.callBaseMethod(this,"dispose");n=this._element;n&&(t=this.get_name(),t&&(n[t]=null),i=n._behaviors,Array.remove(i,this),i.length===0&&(n._behaviors=null),delete this._element)}},Sys.UI.Behavior.registerClass("Sys.UI.Behavior",Sys.Component),Sys.UI.Behavior.getBehaviorByName=function(n,t){var i=n[t];return i&&Sys.UI.Behavior.isInstanceOfType(i)?i:null},Sys.UI.Behavior.getBehaviors=function(n){return n._behaviors?Array.clone(n._behaviors):[]},Sys.UI.Behavior.getBehaviorsByType=function(n,t){var r=n._behaviors,u=[],i,f;if(r)for(i=0,f=r.length;i<f;i++)t.isInstanceOfType(r[i])&&(u[u.length]=r[i]);return u},Sys.UI.VisibilityMode=function(){throw Error.notImplemented();},Sys.UI.VisibilityMode.prototype={hide:0,collapse:1},Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode"),Sys.UI.Control=function(n){Sys.UI.Control.initializeBase(this);this._element=n;n.control=this;var t=this.get_role();t&&n.setAttribute("role",t)},Sys.UI.Control.prototype={_parent:null,_visibilityMode:Sys.UI.VisibilityMode.hide,get_element:function(){return this._element},get_id:function(){return this._element?this._element.id:""},set_id:function(){throw Error.invalidOperation(Sys.Res.cantSetId);},get_parent:function(){if(this._parent)return this._parent;if(!this._element)return null;for(var n=this._element.parentNode;n;){if(n.control)return n.control;n=n.parentNode}return null},set_parent:function(n){this._parent=n},get_role:function(){return null},get_visibilityMode:function(){return Sys.UI.DomElement.getVisibilityMode(this._element)},set_visibilityMode:function(n){Sys.UI.DomElement.setVisibilityMode(this._element,n)},get_visible:function(){return Sys.UI.DomElement.getVisible(this._element)},set_visible:function(n){Sys.UI.DomElement.setVisible(this._element,n)},addCssClass:function(n){Sys.UI.DomElement.addCssClass(this._element,n)},dispose:function(){Sys.UI.Control.callBaseMethod(this,"dispose");this._element&&(this._element.control=null,delete this._element);this._parent&&delete this._parent},onBubbleEvent:function(){return!1},raiseBubbleEvent:function(n,t){this._raiseBubbleEvent(n,t)},_raiseBubbleEvent:function(n,t){for(var i=this.get_parent();i;){if(i.onBubbleEvent(n,t))return;i=i.get_parent()}},removeCssClass:function(n){Sys.UI.DomElement.removeCssClass(this._element,n)},toggleCssClass:function(n){Sys.UI.DomElement.toggleCssClass(this._element,n)}},Sys.UI.Control.registerClass("Sys.UI.Control",Sys.Component),Sys.HistoryEventArgs=function(n){Sys.HistoryEventArgs.initializeBase(this);this._state=n},Sys.HistoryEventArgs.prototype={get_state:function(){return this._state}},Sys.HistoryEventArgs.registerClass("Sys.HistoryEventArgs",Sys.EventArgs),Sys.Application._appLoadHandler=null,Sys.Application._beginRequestHandler=null,Sys.Application._clientId=null,Sys.Application._currentEntry="",Sys.Application._endRequestHandler=null,Sys.Application._history=null,Sys.Application._enableHistory=!1,Sys.Application._historyFrame=null,Sys.Application._historyInitialized=!1,Sys.Application._historyPointIsNew=!1,Sys.Application._ignoreTimer=!1,Sys.Application._initialState=null,Sys.Application._state={},Sys.Application._timerCookie=0,Sys.Application._timerHandler=null,Sys.Application._uniqueId=null,Sys._Application.prototype.get_stateString=function(){var n=null,t,i;return Sys.Browser.agent===Sys.Browser.Firefox?(t=window.location.href,i=t.indexOf("#"),i!==-1?t.substring(i+1):""):(n=window.location.hash,n.length>0&&n.charAt(0)==="#"&&(n=n.substring(1)),n)},Sys._Application.prototype.get_enableHistory=function(){return this._enableHistory},Sys._Application.prototype.set_enableHistory=function(n){this._enableHistory=n},Sys._Application.prototype.add_navigate=function(n){this.get_events().addHandler("navigate",n)},Sys._Application.prototype.remove_navigate=function(n){this.get_events().removeHandler("navigate",n)},Sys._Application.prototype.addHistoryPoint=function(n,t){var i,r,u,f;this._ensureHistory();i=this._state;for(r in n)u=n[r],u===null?typeof i[r]!="undefined"&&delete i[r]:i[r]=u;f=this._serializeState(i);this._historyPointIsNew=!0;this._setState(f,t);this._raiseNavigate()},Sys._Application.prototype.setServerId=function(n,t){this._clientId=n;this._uniqueId=t},Sys._Application.prototype.setServerState=function(n){this._ensureHistory();this._state.__s=n;this._updateHiddenField(n)},Sys._Application.prototype._deserializeState=function(n){var f={},t,e,u,o,i,r,s,h;for(n=n||"",t=n.indexOf("&&"),t!==-1&&t+2<n.length&&(f.__s=n.substr(t+2),n=n.substr(0,t)),e=n.split("&"),u=0,o=e.length;u<o;u++)i=e[u],r=i.indexOf("="),r!==-1&&r+1<i.length&&(s=i.substr(0,r),h=i.substr(r+1),f[s]=decodeURIComponent(h));return f},Sys._Application.prototype._enableHistoryInScriptManager=function(){this._enableHistory=!0},Sys._Application.prototype._ensureHistory=function(){if(!this._historyInitialized&&this._enableHistory){Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.documentMode<8&&(this._historyFrame=document.getElementById("__historyFrame"),this._ignoreIFrame=!0);this._timerHandler=Function.createDelegate(this,this._onIdle);this._timerCookie=window.setTimeout(this._timerHandler,100);try{this._initialState=this._deserializeState(this.get_stateString())}catch(n){}this._historyInitialized=!0}},Sys._Application.prototype._navigate=function(n){var t,r,i;if(this._ensureHistory(),t=this._deserializeState(n),this._uniqueId&&(r=this._state.__s||"",i=t.__s||"",i!==r)){this._updateHiddenField(i);__doPostBack(this._uniqueId,i);this._state=t;return}this._setState(n);this._state=t;this._raiseNavigate()},Sys._Application.prototype._onIdle=function(){delete this._timerCookie;var n=this.get_stateString();n!==this._currentEntry?this._ignoreTimer||(this._historyPointIsNew=!1,this._navigate(n)):this._ignoreTimer=!1;this._timerCookie=window.setTimeout(this._timerHandler,100)},Sys._Application.prototype._onIFrameLoad=function(n){this._ensureHistory();this._ignoreIFrame||(this._historyPointIsNew=!1,this._navigate(n));this._ignoreIFrame=!1},Sys._Application.prototype._onPageRequestManagerBeginRequest=function(){this._ignoreTimer=!0;this._originalTitle=document.title},Sys._Application.prototype._onPageRequestManagerEndRequest=function(n,t){var u=t.get_dataItems()[this._clientId],f=this._originalTitle,r,i,e;this._originalTitle=null;r=document.getElementById("__EVENTTARGET");r&&r.value===this._uniqueId&&(r.value="");typeof u!="undefined"?(this.setServerState(u),this._historyPointIsNew=!0):this._ignoreTimer=!1;i=this._serializeState(this._state);i!==this._currentEntry&&(this._ignoreTimer=!0,typeof f=="string"?(Sys.Browser.agent!==Sys.Browser.InternetExplorer||Sys.Browser.version>7?(e=document.title,document.title=f,this._setState(i),document.title=e):this._setState(i),this._raiseNavigate()):(this._setState(i),this._raiseNavigate()))},Sys._Application.prototype._raiseNavigate=function(){var u=this._historyPointIsNew,t=this.get_events().getHandler("navigate"),i={},n,r;for(n in this._state)n!=="__s"&&(i[n]=this._state[n]);if(r=new Sys.HistoryEventArgs(i),t&&t(this,r),!u)try{Sys.Browser.agent===Sys.Browser.Firefox&&window.location.hash&&(!window.frameElement||window.top.location.hash)&&(Sys.Browser.version<3.5?window.history.go(0):location.hash=this.get_stateString())}catch(f){}},Sys._Application.prototype._serializeState=function(n){var i=[],t,r,u;for(t in n)r=n[t],t==="__s"?u=r:i[i.length]=t+"="+encodeURIComponent(r);return i.join("&")+(u?"&&"+u:"")},Sys._Application.prototype._setState=function(n,t){var i,u,r,f;this._enableHistory&&(n=n||"",n!==this._currentEntry&&(window.theForm&&(i=window.theForm.action,u=i.indexOf("#"),window.theForm.action=(u!==-1?i.substring(0,u):i)+"#"+n),this._historyFrame&&this._historyPointIsNew&&(this._ignoreIFrame=!0,r=this._historyFrame.contentWindow.document,r.open("javascript:'<html><\/html>'"),r.write("<html><head><title>"+(t||document.title)+'<\/title><script type="text/javascript">parent.Sys.Application._onIFrameLoad('+Sys.Serialization.JavaScriptSerializer.serialize(n)+");<\/script><\/head><body><\/body><\/html>"),r.close()),this._ignoreTimer=!1,this._currentEntry=n,(this._historyFrame||this._historyPointIsNew)&&(f=this.get_stateString(),n!==f&&(window.location.hash=n,this._currentEntry=this.get_stateString(),typeof t!="undefined"&&t!==null&&(document.title=t))),this._historyPointIsNew=!1))},Sys._Application.prototype._updateHiddenField=function(n){if(this._clientId){var t=document.getElementById(this._clientId);t&&(t.value=n)}},window.XMLHttpRequest||(window.XMLHttpRequest=function(){for(var t=["Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP"],n=0,i=t.length;n<i;n++)try{return new ActiveXObject(t[n])}catch(r){}return null}),Type.registerNamespace("Sys.Net"),Sys.Net.WebRequestExecutor=function(){this._webRequest=null;this._resultObject=null},Sys.Net.WebRequestExecutor.prototype={get_webRequest:function(){return this._webRequest},_set_webRequest:function(n){this._webRequest=n},get_started:function(){throw Error.notImplemented();},get_responseAvailable:function(){throw Error.notImplemented();},get_timedOut:function(){throw Error.notImplemented();},get_aborted:function(){throw Error.notImplemented();},get_responseData:function(){throw Error.notImplemented();},get_statusCode:function(){throw Error.notImplemented();},get_statusText:function(){throw Error.notImplemented();},get_xml:function(){throw Error.notImplemented();},get_object:function(){return this._resultObject||(this._resultObject=Sys.Serialization.JavaScriptSerializer.deserialize(this.get_responseData())),this._resultObject},executeRequest:function(){throw Error.notImplemented();},abort:function(){throw Error.notImplemented();},getResponseHeader:function(){throw Error.notImplemented();},getAllResponseHeaders:function(){throw Error.notImplemented();}},Sys.Net.WebRequestExecutor.registerClass("Sys.Net.WebRequestExecutor"),Sys.Net.XMLDOM=function(n){var r,i,u,t,f;if(window.DOMParser)try{return f=new window.DOMParser,f.parseFromString(n,"text/xml")}catch(e){}else for(r=["Msxml2.DOMDocument.3.0","Msxml2.DOMDocument"],i=0,u=r.length;i<u;i++)try{return t=new ActiveXObject(r[i]),t.async=!1,t.loadXML(n),t.setProperty("SelectionLanguage","XPath"),t}catch(e){}return null},Sys.Net.XMLHttpExecutor=function(){Sys.Net.XMLHttpExecutor.initializeBase(this);var n=this;this._xmlHttpRequest=null;this._webRequest=null;this._responseAvailable=!1;this._timedOut=!1;this._timer=null;this._aborted=!1;this._started=!1;this._onReadyStateChange=function(){if(n._xmlHttpRequest.readyState===4){try{if(typeof n._xmlHttpRequest.status=="undefined")return}catch(t){return}n._clearTimer();n._responseAvailable=!0;try{n._webRequest.completed(Sys.EventArgs.Empty)}finally{n._xmlHttpRequest!=null&&(n._xmlHttpRequest.onreadystatechange=Function.emptyMethod,n._xmlHttpRequest=null)}}};this._clearTimer=function(){n._timer!=null&&(window.clearTimeout(n._timer),n._timer=null)};this._onTimeout=function(){n._responseAvailable||(n._clearTimer(),n._timedOut=!0,n._xmlHttpRequest.onreadystatechange=Function.emptyMethod,n._xmlHttpRequest.abort(),n._webRequest.completed(Sys.EventArgs.Empty),n._xmlHttpRequest=null)}},Sys.Net.XMLHttpExecutor.prototype={get_timedOut:function(){return this._timedOut},get_started:function(){return this._started},get_responseAvailable:function(){return this._responseAvailable},get_aborted:function(){return this._aborted},executeRequest:function(){var t,n,i,r,u,f;if(this._webRequest=this.get_webRequest(),t=this._webRequest.get_body(),n=this._webRequest.get_headers(),this._xmlHttpRequest=new XMLHttpRequest,this._xmlHttpRequest.onreadystatechange=this._onReadyStateChange,i=this._webRequest.get_httpVerb(),this._xmlHttpRequest.open(i,this._webRequest.getResolvedUrl(),!0),this._xmlHttpRequest.setRequestHeader("X-Requested-With","XMLHttpRequest"),n)for(r in n)u=n[r],typeof u!="function"&&this._xmlHttpRequest.setRequestHeader(r,u);i.toLowerCase()==="post"&&(n!==null&&n["Content-Type"]||this._xmlHttpRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),t||(t=""));f=this._webRequest.get_timeout();f>0&&(this._timer=window.setTimeout(Function.createDelegate(this,this._onTimeout),f));this._xmlHttpRequest.send(t);this._started=!0},getResponseHeader:function(n){var t;try{t=this._xmlHttpRequest.getResponseHeader(n)}catch(i){}return t||(t=""),t},getAllResponseHeaders:function(){return this._xmlHttpRequest.getAllResponseHeaders()},get_responseData:function(){return this._xmlHttpRequest.responseText},get_statusCode:function(){var n=0;try{n=this._xmlHttpRequest.status}catch(t){}return n},get_statusText:function(){return this._xmlHttpRequest.statusText},get_xml:function(){var n=this._xmlHttpRequest.responseXML;if(n&&n.documentElement)navigator.userAgent.indexOf("MSIE")!==-1&&n.setProperty("SelectionLanguage","XPath");else if(n=Sys.Net.XMLDOM(this._xmlHttpRequest.responseText),!n||!n.documentElement)return null;return n.documentElement.namespaceURI==="http://www.mozilla.org/newlayout/xml/parsererror.xml"&&n.documentElement.tagName==="parsererror"?null:n.documentElement.firstChild&&n.documentElement.firstChild.tagName==="parsererror"?null:n},abort:function(){this._aborted||this._responseAvailable||this._timedOut||(this._aborted=!0,this._clearTimer(),this._xmlHttpRequest&&!this._responseAvailable&&(this._xmlHttpRequest.onreadystatechange=Function.emptyMethod,this._xmlHttpRequest.abort(),this._xmlHttpRequest=null,this._webRequest.completed(Sys.EventArgs.Empty)))}},Sys.Net.XMLHttpExecutor.registerClass("Sys.Net.XMLHttpExecutor",Sys.Net.WebRequestExecutor),Sys.Net._WebRequestManager=function(){this._defaultTimeout=0;this._defaultExecutorType="Sys.Net.XMLHttpExecutor"},Sys.Net._WebRequestManager.prototype={add_invokingRequest:function(n){this._get_eventHandlerList().addHandler("invokingRequest",n)},remove_invokingRequest:function(n){this._get_eventHandlerList().removeHandler("invokingRequest",n)},add_completedRequest:function(n){this._get_eventHandlerList().addHandler("completedRequest",n)},remove_completedRequest:function(n){this._get_eventHandlerList().removeHandler("completedRequest",n)},_get_eventHandlerList:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_defaultTimeout:function(){return this._defaultTimeout},set_defaultTimeout:function(n){this._defaultTimeout=n},get_defaultExecutorType:function(){return this._defaultExecutorType},set_defaultExecutorType:function(n){this._defaultExecutorType=n},executeRequest:function(webRequest){var executor=webRequest.get_executor(),failed,executorType,evArgs,handler;if(!executor){failed=!1;try{executorType=eval(this._defaultExecutorType);executor=new executorType}catch(a){failed=!0}webRequest.set_executor(executor)}executor.get_aborted()||(evArgs=new Sys.Net.NetworkRequestEventArgs(webRequest),handler=this._get_eventHandlerList().getHandler("invokingRequest"),handler&&handler(this,evArgs),evArgs.get_cancel()||executor.executeRequest())}},Sys.Net._WebRequestManager.registerClass("Sys.Net._WebRequestManager"),Sys.Net.WebRequestManager=new Sys.Net._WebRequestManager,Sys.Net.NetworkRequestEventArgs=function(n){Sys.Net.NetworkRequestEventArgs.initializeBase(this);this._webRequest=n},Sys.Net.NetworkRequestEventArgs.prototype={get_webRequest:function(){return this._webRequest}},Sys.Net.NetworkRequestEventArgs.registerClass("Sys.Net.NetworkRequestEventArgs",Sys.CancelEventArgs),Sys.Net.WebRequest=function(){this._url="";this._headers={};this._body=null;this._userContext=null;this._httpVerb=null;this._executor=null;this._invokeCalled=!1;this._timeout=0},Sys.Net.WebRequest.prototype={add_completed:function(n){this._get_eventHandlerList().addHandler("completed",n)},remove_completed:function(n){this._get_eventHandlerList().removeHandler("completed",n)},completed:function(n){var t=Sys.Net.WebRequestManager._get_eventHandlerList().getHandler("completedRequest");t&&t(this._executor,n);t=this._get_eventHandlerList().getHandler("completed");t&&t(this._executor,n)},_get_eventHandlerList:function(){return this._events||(this._events=new Sys.EventHandlerList),this._events},get_url:function(){return this._url},set_url:function(n){this._url=n},get_headers:function(){return this._headers},get_httpVerb:function(){return this._httpVerb===null?this._body===null?"GET":"POST":this._httpVerb},set_httpVerb:function(n){this._httpVerb=n},get_body:function(){return this._body},set_body:function(n){this._body=n},get_userContext:function(){return this._userContext},set_userContext:function(n){this._userContext=n},get_executor:function(){return this._executor},set_executor:function(n){this._executor=n;this._executor._set_webRequest(this)},get_timeout:function(){return this._timeout===0?Sys.Net.WebRequestManager.get_defaultTimeout():this._timeout},set_timeout:function(n){this._timeout=n},getResolvedUrl:function(){return Sys.Net.WebRequest._resolveUrl(this._url)},invoke:function(){Sys.Net.WebRequestManager.executeRequest(this);this._invokeCalled=!0}},Sys.Net.WebRequest._resolveUrl=function(n,t){var r,i,u,f,e;return n&&n.indexOf("://")!==-1?n:(t&&t.length!==0||(r=document.getElementsByTagName("base")[0],t=r&&r.href&&r.href.length>0?r.href:document.URL),i=t.indexOf("?"),i!==-1&&(t=t.substr(0,i)),i=t.indexOf("#"),i!==-1&&(t=t.substr(0,i)),t=t.substr(0,t.lastIndexOf("/")+1),!n||n.length===0)?t:n.charAt(0)==="/"?(u=t.indexOf("://"),f=t.indexOf("/",u+3),t.substr(0,f)+n):(e=t.lastIndexOf("/"),t.substr(0,e+1)+n)},Sys.Net.WebRequest._createQueryString=function(n,t,i){t=t||encodeURIComponent;var e=0,u,o,f,r=new Sys.StringBuilder;if(n)for(f in n)(u=n[f],typeof u!="function")&&(o=Sys.Serialization.JavaScriptSerializer.serialize(u),e++&&r.append("&"),r.append(f),r.append("="),r.append(t(o)));return i&&(e&&r.append("&"),r.append(i)),r.toString()},Sys.Net.WebRequest._createUrl=function(n,t,i){if(!t&&!i)return n;var r=Sys.Net.WebRequest._createQueryString(t,null,i);return r.length?n+(n&&n.indexOf("?")>=0?"&":"?")+r:n},Sys.Net.WebRequest.registerClass("Sys.Net.WebRequest"),Sys._ScriptLoaderTask=function(n,t){this._scriptElement=n;this._completedCallback=t},Sys._ScriptLoaderTask.prototype={get_scriptElement:function(){return this._scriptElement},dispose:function(){this._disposed||(this._disposed=!0,this._removeScriptElementHandlers(),Sys._ScriptLoaderTask._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);Sys.Browser.agent!==Sys.Browser.InternetExplorer?(this._scriptElement.readyState="loaded",$addHandler(this._scriptElement,"load",this._scriptLoadDelegate)):$addHandler(this._scriptElement,"readystatechange",this._scriptLoadDelegate);this._scriptElement.addEventListener&&(this._scriptErrorDelegate=Function.createDelegate(this,this._scriptErrorHandler),this._scriptElement.addEventListener("error",this._scriptErrorDelegate,!1))},_removeScriptElementHandlers:function(){if(this._scriptLoadDelegate){var n=this.get_scriptElement();Sys.Browser.agent!==Sys.Browser.InternetExplorer?$removeHandler(n,"load",this._scriptLoadDelegate):$removeHandler(n,"readystatechange",this._scriptLoadDelegate);this._scriptErrorDelegate&&(this._scriptElement.removeEventListener("error",this._scriptErrorDelegate,!1),this._scriptErrorDelegate=null);this._scriptLoadDelegate=null}},_scriptErrorHandler:function(){this._disposed||this._completedCallback(this.get_scriptElement(),!1)},_scriptLoadHandler:function(){if(!this._disposed){var n=this.get_scriptElement();(n.readyState==="loaded"||n.readyState==="complete")&&this._completedCallback(n,!0)}}},Sys._ScriptLoaderTask.registerClass("Sys._ScriptLoaderTask",null,Sys.IDisposable),Sys._ScriptLoaderTask._clearScript=function(n){Sys.Debug.isDebug||n.parentNode.removeChild(n)},Type.registerNamespace("Sys.Net"),Sys.Net.WebServiceProxy=function(){},Sys.Net.WebServiceProxy.prototype={get_timeout:function(){return this._timeout||0},set_timeout:function(n){if(n<0)throw Error.argumentOutOfRange("value",n,Sys.Res.invalidTimeout);this._timeout=n},get_defaultUserContext:function(){return typeof this._userContext=="undefined"?null:this._userContext},set_defaultUserContext:function(n){this._userContext=n},get_defaultSucceededCallback:function(){return this._succeeded||null},set_defaultSucceededCallback:function(n){this._succeeded=n},get_defaultFailedCallback:function(){return this._failed||null},set_defaultFailedCallback:function(n){this._failed=n},get_enableJsonp:function(){return!!this._jsonp},set_enableJsonp:function(n){this._jsonp=n},get_path:function(){return this._path||null},set_path:function(n){this._path=n},get_jsonpCallbackParameter:function(){return this._callbackParameter||"callback"},set_jsonpCallbackParameter:function(n){this._callbackParameter=n},_invoke:function(n,t,i,r,u,f,e){return u=u||this.get_defaultSucceededCallback(),f=f||this.get_defaultFailedCallback(),(e===null||typeof e=="undefined")&&(e=this.get_defaultUserContext()),Sys.Net.WebServiceProxy.invoke(n,t,i,r,u,f,e,this.get_timeout(),this.get_enableJsonp(),this.get_jsonpCallbackParameter())}},Sys.Net.WebServiceProxy.registerClass("Sys.Net.WebServiceProxy"),Sys.Net.WebServiceProxy.invoke=function(n,t,i,r,u,f,e,o,s,h){function it(n){var r,i,o,h,s,c;if(n.get_responseAvailable()){r=n.get_statusCode();i=null;try{o=n.getResponseHeader("Content-Type");i=o.startsWith("application/json")?n.get_object():o.startsWith("text/xml")?n.get_xml():n.get_responseData()}catch(l){}h=n.getResponseHeader("jsonerror");s=h==="true";s?i&&(i=new Sys.Net.WebServiceError(!1,i.Message,i.StackTrace,i.ExceptionType,i)):o.startsWith("application/json")&&(i=!i||typeof i.d=="undefined"?i:i.d);r<200||r>=300||s?f&&(i&&s||(i=new Sys.Net.WebServiceError(!1,String.format(Sys.Res.webServiceFailedNoMsg,t))),i._statusCode=r,f(i,e,t)):u&&u(i,e,t)}else c=n.get_timedOut()?String.format(Sys.Res.webServiceTimedOut,t):String.format(Sys.Res.webServiceFailedNoMsg,t),f&&f(new Sys.Net.WebServiceError(n.get_timedOut(),c,"",""),e,t)}var y=s!==!1?Sys.Net.WebServiceProxy._xdomain.exec(n):null,l,p=y&&y.length===3&&(y[1]!==location.protocol||y[2]!==location.host),w,c;i=p||i;p&&(h=h||"callback",l="_jsonp"+Sys._jsonp++);r||(r={});w=r;i&&w||(w={});var d,v,a=null,b,k=null,g=Sys.Net.WebRequest._createUrl(t?n+"/"+encodeURIComponent(t):n,w,p?h+"=Sys."+l:null);if(p){d=document.createElement("script");d.src=g;b=new Sys._ScriptLoaderTask(d,function(n,i){(!i||l)&&nt({Message:String.format(Sys.Res.webServiceFailedNoMsg,t)},-1)});function tt(){a!==null&&(a=null,v=new Sys.Net.WebServiceError(!0,String.format(Sys.Res.webServiceTimedOut,t)),b.dispose(),delete Sys[l],f&&f(v,e,t))}function nt(n,i){a!==null&&(window.clearTimeout(a),a=null);b.dispose();delete Sys[l];l=null;typeof i!="undefined"&&i!==200?f&&(v=new Sys.Net.WebServiceError(!1,n.Message||String.format(Sys.Res.webServiceFailedNoMsg,t),n.StackTrace||null,n.ExceptionType||null,n),v._statusCode=i,f(v,e,t)):u&&u(n,e,t)}return Sys[l]=nt,o=o||Sys.Net.WebRequestManager.get_defaultTimeout(),o>0&&(a=window.setTimeout(tt,o)),b.execute(),null}return c=new Sys.Net.WebRequest,c.set_url(g),c.get_headers()["Content-Type"]="application/json; charset=utf-8",i||(k=Sys.Serialization.JavaScriptSerializer.serialize(r),k==="{}"&&(k="")),c.set_body(k),c.add_completed(it),o&&o>0&&c.set_timeout(o),c.invoke(),c},Sys.Net.WebServiceProxy._generateTypedConstructor=function(n){return function(t){if(t)for(var i in t)this[i]=t[i];this.__type=n}},Sys._jsonp=0,Sys.Net.WebServiceProxy._xdomain=/^\s*([a-zA-Z0-9\+\-\.]+\:)\/\/([^?#\/]+)/,Sys.Net.WebServiceError=function(n,t,i,r,u){this._timedOut=n;this._message=t;this._stackTrace=i;this._exceptionType=r;this._errorObject=u;this._statusCode=-1},Sys.Net.WebServiceError.prototype={get_timedOut:function(){return this._timedOut},get_statusCode:function(){return this._statusCode},get_message:function(){return this._message},get_stackTrace:function(){return this._stackTrace||""},get_exceptionType:function(){return this._exceptionType||""},get_errorObject:function(){return this._errorObject||null}},Sys.Net.WebServiceError.registerClass("Sys.Net.WebServiceError"),Type.registerNamespace("Sys"),Sys.Res={argumentInteger:"Value must be an integer.",invokeCalledTwice:"Cannot call invoke more than once.",webServiceFailed:"The server method '{0}' failed with the following error: {1}",argumentType:"Object cannot be converted to the required type.",argumentNull:"Value cannot be null.",scriptAlreadyLoaded:"The script '{0}' has been referenced multiple times. If referencing Microsoft AJAX scripts explicitly, set the MicrosoftAjaxMode property of the ScriptManager to Explicit.",scriptDependencyNotFound:"The script '{0}' failed to load because it is dependent on script '{1}'.",formatBadFormatSpecifier:"Format specifier was invalid.",requiredScriptReferenceNotIncluded:"'{0}' requires that you have included a script reference to '{1}'.",webServiceFailedNoMsg:"The server method '{0}' failed.",argumentDomElement:"Value must be a DOM element.",invalidExecutorType:"Could not create a valid Sys.Net.WebRequestExecutor from: {0}.",cannotCallBeforeResponse:"Cannot call {0} when responseAvailable is false.",actualValue:"Actual value was {0}.",enumInvalidValue:"'{0}' is not a valid value for enum {1}.",scriptLoadFailed:"The script '{0}' could not be loaded.",parameterCount:"Parameter count mismatch.",cannotDeserializeEmptyString:"Cannot deserialize empty string.",formatInvalidString:"Input string was not in a correct format.",invalidTimeout:"Value must be greater than or equal to zero.",cannotAbortBeforeStart:"Cannot abort when executor has not started.",argument:"Value does not fall within the expected range.",cannotDeserializeInvalidJson:"Cannot deserialize. The data does not correspond to valid JSON.",invalidHttpVerb:"httpVerb cannot be set to an empty or null string.",nullWebRequest:"Cannot call executeRequest with a null webRequest.",eventHandlerInvalid:"Handler was not added through the Sys.UI.DomEvent.addHandler method.",cannotSerializeNonFiniteNumbers:"Cannot serialize non finite numbers.",argumentUndefined:"Value cannot be undefined.",webServiceInvalidReturnType:"The server method '{0}' returned an invalid type. Expected type: {1}",servicePathNotSet:"The path to the web service has not been set.",argumentTypeWithTypes:"Object of type '{0}' cannot be converted to type '{1}'.",cannotCallOnceStarted:"Cannot call {0} once started.",badBaseUrl1:"Base URL does not contain ://.",badBaseUrl2:"Base URL does not contain another /.",badBaseUrl3:"Cannot find last / in base URL.",setExecutorAfterActive:"Cannot set executor after it has become active.",paramName:"Parameter name: {0}",nullReferenceInPath:"Null reference while evaluating data path: '{0}'.",cannotCallOutsideHandler:"Cannot call {0} outside of a completed event handler.",cannotSerializeObjectWithCycle:"Cannot serialize object with cyclic reference within child properties.",format:"One of the identified items was in an invalid format.",assertFailedCaller:"Assertion Failed: {0}\r\nat {1}",argumentOutOfRange:"Specified argument was out of the range of valid values.",webServiceTimedOut:"The server method '{0}' timed out.",notImplemented:"The method or operation is not implemented.",assertFailed:"Assertion Failed: {0}",invalidOperation:"Operation is not valid due to the current state of the object.",breakIntoDebugger:"{0}\r\n\r\nBreak into debugger?"},window.hlErrorHandler=function(n,t){if(!t&&typeof keepSession=="function"){window.keepSession(n);return}if(n!=null&&$("#reconnectMessage").length===0){if(typeof n!="string"&&(!n.status||n.status>500)){window.handleReconnect(!1);return}var i=$("<div />");i.html(n.statusText||n);window.Helpline.Web.WebDesk.ShowMessage({content:i.html(),width:400,resizable:!0,closable:!0,maximizable:!1,dialogClass:"hlErrorDialog",title:window.errorString})}},$.ajaxSetup({cache:!1}),$(document).ready(function(){oldHeight=$(window).height();oldWrapper=($("#wrapper").outerHeight()||0)-40;$(window).resize()}),lightbox_resize=!1,$(window).resize(function(){lightbox_resize&&clearTimeout(lightbox_resize);lightbox_resize=window.setTimeout(resizeWidgets,0);checkMenuSize();resizeAbsolutebox()}),$("#searchReadingPane").keyup(function(n){if(n.keyCode==13)return $(".searchField",this.parentNode).click(),!1;n.keyCode==27&&(this.value="search",this.style.color="#B2B2B2",$("#searchReadingPane").focus(function(){this.value=="search"&&(this.value="",this.style.color="#000000")}),$("#searchReadingPane").blur(function(){this.value==""&&(this.value="search",this.style.color="#B2B2B2")}))}),widgets=[],Widget.prototype.render=function(){var t="",n;return this.isAdminWidget&&(t=" adminWidget"),n=$('<div class="hlfloatBox rounded-corners supportBorder'+t+'" style="position: absolute;" data-left="'+this.left+'" data-top="'+this.top+'" data-height="'+this.height+'" data-width="'+this.width+'" data-id="'+this.id+'">'),this.isVisibleTitle&&n.append('<div class="hlfloatBoxHeader accentBackground supportColor">'+this.title+"<\/div>"),n.append('<div class="hlfloatBoxContent"><iframe class="widgetIframe" scrolling="auto" frameborder="0" src="'+this.url+'"><\/iframe><\/div>'),n.append("<\/div>"),n},Tab.prototype.renderButton=function(){var i=this,t="",n;return this.isActive&&(t="active"),n=$('<div class="mainmenuItem '+t+'" tabindex="0" title="'+this.caption+'"><div class="icon-Menu'+this.className+' supportColor"><\/div><div class="tabItem supportColor">'+this.caption+"<\/div><\/div>"),n.click(function(){MainMenu.SelectedItem=i}),n.keydown(function(n){var t=n.keyCode;(t===13||t===32)&&this.click()}),n},Tab.prototype.renderContent=function(){return this.id===0?$('<div id="tab'+this.id+'" class="resizableFrame"><div id="widgets"><\/div><\/div>'):this.content!=null?$('<div id="tab'+this.id+'" class="pluginTab" style="overflow: auto;">'+this.content+"<\/div>"):$('<div id="tab'+this.id+'" class="pluginTab" style="overflow: auto;"><\/div>')},MainMenu={_selectedItem:null,SelectedItem:null,IsConnected:!1,IsAdmin:!1,Items:null,Init:function(n,t,i,r){this.Items=n;this.IsConnected=i;this.IsAdmin=r;this._selectedItem=t;this.SetProperties();this.Render()},SetProperties:function(){Object.defineProperty(this,"SelectedItem",{get:function(){return this._selectedItem},set:function(n){n!==this._selectedItem&&(this._selectedItem.isActive=!1,this._selectedItem=n,this._selectedItem.isActive=!0,this.RemoveTemporaryItems());history.pushState({options:{tab:this._selectedItem.id,action:null}},"",window.home_index_url+"?tab="+this._selectedItem.id);window.resetTimer();this.Render()}})},Render:function(){var u=this,n=$("#jqxTabs"),i=null,t=null,r=$('<div id="hltabcontent"><\/div>');this.IsConnected&&this.IsAdmin&&(i=$('<nav id="hltabmenu" class="mainmenu"><div id="topNavigation"><\/div><div id="bottomNavigation"><\/div><\/nav>'),t=$(i).find("#topNavigation"));this.Items.forEach(function(n){t!=null&&t.append(n.renderButton());u._selectedItem===n&&r.append(n.renderContent())});n.find("#hltabmenu").length>0?(n.find("#hltabmenu #topNavigation").replaceWith(t),n.find("#hltabcontent > div").not("#tab0").remove(),(this._selectedItem.id!==0||n.find("#hltabcontent > div#tab0").length===0)&&n.find("#hltabcontent").append(r.children())):(n.html(i),n.append(r));this._selectedItem.id===0&&(!this.IsConnected||this.IsAdmin)?openHomeTab():this._selectedItem.id!==0&&this._selectedItem.content==null&&onTabClick(this._selectedItem)},RemoveTemporaryItems:function(){var n=this;this.Items.forEach(function(t){t.isTemporary&&t!==n._selectedItem&&MainMenu.Items.splice(MainMenu.Items.indexOf(t),1)})}},jQuery.fn.hlTicker=function(n){return n=jQuery.extend({tickerspeed:.14},n),this.each(function(){function f(n,i){t.animate({left:"-="+n},i,"linear",function(){t.css("left",e);f(r,u)})}var t=jQuery(this),i=1,r,u;t.find("li").each(function(n){i+=jQuery(this,n).outerWidth(!0)});var o=t.wrap("<div class='mask'><\/div>"),s=t.parent().wrap("<div class='tickercontainer'><\/div>"),e=t.parent().parent().width();t.width(i);r=i+e;u=r/n.tickerspeed;f(r,u);t.hover(function(){jQuery(this).stop()},function(){var r=jQuery(this).offset(),t=r.left+i,u=t/n.tickerspeed;f(t,u)})})},$(document).ready(function(){function e(){$(".startPage .slide").height($("#hlcontent").height()*.7)}function s(n){var i=new RegExp("[\\?&]"+n+"=([^&#]*)"),t=i.exec(location.search);return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}var i,u,f,r;if($(".startPage").length!==0){$(window).resize(function(){e()});e();$(".slideArrow").click(function(){var n,t,i;$(this).closest(".pinnedContentSection").length>0||(n=$(this).siblings(".slideTitle"),t=$(this).parent().height()-n.find(".icon-arrow-down").height()-n.find(".myItemTitle").height(),n.addClass("down"),i=$(this).siblings(".slideTitle").find(".slideArrowUp"),n.animate({marginTop:t+"px"},500,"easeOutQuad",function(){$(i).css("visibility","visible").fadeTo(500,1)}))});$(".slideArrowUp").click(function(){$(this).closest(".slide").hasClass("activeSlide")||($(this).fadeTo(500,0,function(){$(this).css("visibility","hidden")}),$(this).parent().animate({marginTop:"0px"},500,"easeOutQuad"),$(this).parent().removeClass("down"))});$(".slideUrl").click(function(){window.resetTimer();var n=$(this).closest(".slide");if(n.hasClass("activeSlide")){window.Helpline.Web.Portal.Index.OpenStartPage();return}$(".activeSlide").removeClass("activeSlide");n.addClass("activeSlide");$(this).attr("data-url")==="Widgets"?window.Helpline.Web.Portal.Index.OpenWidgets():window.Helpline.Web.Portal.Index.OpenView($(this).attr("data-url"),!0)});$(".slide").click(function(n){$(n.target).closest(".slideUrl").length===0&&($(n.target).closest(".slideArrow, .slideArrowUp").length===0||$(this).closest(".slide").hasClass("activeSlide"))&&$(this).find(".slideInfo > .slideUrl").click()});$("#startPageButton > img").click(function(){window.resetTimer();window.Helpline.Web.Portal.Index.OpenStartPage()});var n=s("tab"),t=$(".slide").length,o=function(i){var u=$(".slide"),h;i&&u.css("top",window.screen.availHeight+"px").show();var r=u.eq(0).css("float")==="none",l=$("#hlcontent").height()*.7,c=l/3,e=$("#hlcontent").width()/(r?1:t)-2,f=Math.max(Math.min(e,c),130),s=Math.max(Math.min(($("#hlcontent").width()-f*t)/t,f*.2),10);e-=r?$("#hlcontent").width()*.1:s+f*.2/t;u.each(function(n){$(this).css("width",e+"px");$(this).css("max-width",r?"":c+"px");r&&$(this).css("height",e/5+"px");!r&&n<u.length-1&&$(this).css("margin-right",s*t/(t-1)+"px");$("h1, h3, h4, h6",this).each(function(){var i,n,t;if(!$(this).hasClass("slideCounterIcon")&&(i=Math.ceil($(this).width()),$(this).css("font-size",""),!r))while(this.scrollWidth>i)if(n=$(this).css("font-size"),t=parseFloat(n)-1,this.style.setProperty("font-size",t+"px","important"),t<15||$(this).css("font-size")===n)break})});$(".startPage").css("width",r?"":f*t+s*t-(f*.2-s)+2+"px");i&&($(window).resize(function(){o(!1)}),n.length===0&&u.addClass("slideAnimated"),u.each(function(t){var i=this;setTimeout(function(){$(i).css("top","0")},(n.length>0?0:100)*t)}),$("#flipContainerLeft, #flipContainerRight").animate({"margin-left":"0","margin-right":"0"},750,"easeOutQuad"),h=function(n){var t=$("#user-flip"),i=t.find(".flipList"),r=i.width()+3,u=parseInt(t.css("margin-left")),f=t.find(".flipList").is(":visible");i.css("left",-r+"px");t.animate({"margin-left":n||u>0&&f?"0":r+"px"},200,"easeOutQuad");n||f&&u?i.fadeOut(200):i.fadeIn(200)},$("#user-flip").click(function(){h(!1)}),$(document).click(function(n){$(n.target).closest("#user-flip").length===0&&h(!0);$(n.target).closest("#search-flip").length===0&&$("#search-flip").removeClass("search-flip-out")}))};n.length===0&&$(".contentSection").css("display","table");o(!0);n.length>0?n==="Widgets"?window.Helpline.Web.Portal.Index.OpenWidgets():(i=window.home_index_url+n,isNaN(parseInt(n))||(u=$(".slideUrl[data-position="+n+"]"),u.length>0&&(i=u.attr("data-url"),f=i.indexOf("?"),f>=0&&(i=i.substring(0,f)))),r=i+window.location.search.replace("?tab="+n+"&","?").replace("?tab="+n,""),$(".slideUrl[data-url='"+r+"']").closest(".slide").addClass("activeSlide"),history.replaceState({tab:r,prevTab:history.state!=null?history.state.tab:null},"",window.home_index_url+"?tab="+r.replace(window.home_index_url,"").replace("?","&")),window.Helpline.Web.Portal.Index.OpenView(r,!1)):(history.replaceState({tab:"Startpage",prevTab:"Startpage"},"",window.location.href),window.Helpline.Web.Portal.Index.LoadCounters($(".myItemCount")))}}),function(){var n=window.alert;window.alert=function(t){if(t.substr(0,8)!=="proxied;")window.Helpline.Web.Portal.ShowMessage({content:t});else return t=t.substr(8),n.apply(this,arguments)}}(),hlBusyBarScript==null)var hlBusyBarScript=!0,hlShowBusyBar=function(n){var t=$(n).find(".hlBusyBar");t.show()},hlPrepareBusyBar=function(n){var t=$(n).find(".hlBusyBar");t.attr("data-ready","false")},hlStartBusyBar=function(n){var t=$(n).find(".hlBusyBar");t.attr("data-ready")!="true"&&t.show()},hlHideBusyBar=function(n){var t=$(n).find(".hlBusyBar");t.length>0?(t.hide(),t.attr("data-ready","true")):$(".hlBusyBar").hide()};if(hlBusyIndicatorScript==null)var hlBusyIndicatorScript=!0,hlShowBusyIndicator=function(n,t){var i=$(n).find(".hlBusyIndicator"),r,u,f;i.length>0?i.data("count",i.data("count")+1):($(n).append('<div class="hlBusyIndicator"><div class="loader"><div class="circle"><\/div><div class="circle"><\/div><div class="circle"><\/div><div class="circle"><\/div><div class="circle"><\/div><div class="hlBusyIndicatorProgress"><\/div><\/div><\/div>'),i=$(n).find(".hlBusyIndicator"),i.show(),i.height($(n).height()),i.width($(n).width()),i.offset({top:$(n).offset().top,left:$(n).offset().left}),i.height($(n).height()),i.width($(n).width()),i.data("count",1));t==null&&(t=!1);i.toggleClass("hlBusyIndicatorBackground",t);r=$(i).find("img");r.length>0&&(u=($(i).height()-$(r).height())/2,u+=$(n).offset().top,f=($(i).width()-$(r).width())/2,f+=$(n).offset().left,$(r).offset({top:u,left:f}))},hlSetBusyIndicatorProgress=function(n,t){t=t|0;var i=$(n).find(".hlBusyIndicator");i.length>0&&i.find(".hlBusyIndicatorProgress").text(t+"%")},hlHideBusyIndicator=function(n){var t=$(n).find(".hlBusyIndicator");t.length>0&&t.data("count")!==1?t.data("count",t.data("count")-1):t.remove()};Helpline=window.Helpline||{};Helpline.Web=Helpline.Web||{};Helpline.Web.Portal=Helpline.Web.Portal||{ShowDialog:function(n){if(n!=null&&(typeof n!="object"||typeof n.content=="undefined"))return this.ShowDialogOld.apply(this,arguments);n.context=n.context||window;var t=n.context.$("<div />"),i=!1;if(n.content!=null&&typeof n.content=="string"||n.content!=null&&typeof n.content=="object"&&n.content instanceof jQuery)t.html(n.content);else if(n.content!=null&&typeof n.content=="object"&&n.content.done!=null)i=!0,setTimeout(function(){i&&window.hlShowBusyIndicator(t.css("min-height","100px"),!1,!0)},1e3),n.content.done(function(r){i=!1;t.is(":visible")&&t.css("min-height","").html(n.context.$(r).html())}),n.content.fail(function(n){i=!1;t.dialog("destroy").remove();window.hlErrorHandler(n)});else return!1;return t.dialog({modal:n.modal!=null?n.modal:!0,closeOnEscape:n.closeOnEscape!=null?n.closeOnEscape:!0,draggable:n.draggable!=null?n.draggable:!0,resizable:n.resizable!=null?n.resizable:!1,hide:n.animation!=null?n.animation:!1,show:n.animation!=null?n.animation:!1,width:n.width!=null?n.width:400,height:n.height!=null?n.height:"auto",maxWidth:n.maxWidth!=null?n.maxWidth:n.context.$(window).width(),maxHeight:n.maxHeight!=null?n.maxHeight:n.context.$(window).height(),minWidth:n.minWidth!=null?n.minWidth:150,minHeight:n.minHeight!=null?n.minHeight:150,position:n.position!=null?n.position:{my:"center",at:"center",of:window},dialogClass:n.dialogClass!=null?n.dialogClass:"",open:function(){n.context.$(".ui-widget-overlay").last().css("z-index",t.parent().css("z-index")-1);t.css("overflow","auto");t.dialog("option","title",n.title||"");i&&n.content.done!=null?n.content.done(function(){t.is(":visible")&&t.dialog("option","buttons",n.buttons);n.forceFocus&&($.ui.dialog.prototype._focusTabbable=$.noop,$(".ui-dialog").last().find(".acceptbtn").focus());n.open&&n.open.call(t)}):(t.dialog("option","buttons",n.buttons),n.forceFocus&&($.ui.dialog.prototype._focusTabbable=$.noop,$(".ui-dialog").last().find(".acceptbtn").focus()),n.open&&n.open.call(t))},close:function(){n.close&&n.close.call(n.context.$(this));n.context.$(this).dialog("destroy").remove()}}).dialogExtend({maximizable:n.maximizable!=null?n.maximizable:n.resizable!=null?n.resizable:!1,closable:n.closable!=null?n.closable:!1,dblclick:n.maximizable||n.resizable?"maximize":!1,icons:n.icons!=null?n.icons:{close:"ui-icon-closethick",maximize:"ui-icon-arrow-4-diag",restore:"ui-icon-arrow-4-diag"}}),t},ShowMessage:function(n,t){if(n!=null&&(typeof n!="object"||typeof n.content=="undefined"))return this.ShowMessageOld.apply(this,arguments);n=n||{};n.context=n.context||window;n.buttons=n.buttons||{Accept:{"class":"acceptbtn",click:function(){t&&t.call(n.context.$(this));n.close&&n.close.call(n.context.$(this));n.context.$(this).dialog("destroy").remove()}}};n.animation={effect:"fade",duration:200};n.close=n.close||t;n.open=function(){$(".ui-dialog").last().wrapInner('<div class="ui-dialog-inner"><\/div>')};try{return this.ShowDialog(n)}catch(i){console.log("ShowDialog failed: "+i.toString());alert("proxied;"+n.title+": "+n.content);t&&t()}},ShowConfirm:function(n,t,i){var r,u;if(n!=null&&(typeof n!="object"||typeof n.content=="undefined"))return this.ShowConfirmOld.apply(this,arguments);n=n||{};n.context=n.context||window;r=!1;n.buttons=n.buttons||{Accept:{"class":"acceptbtn",click:function(){r=!0;var i=null;(t&&(i=t.call(n.context.$(this))),i!==!1&&n.beforeClose&&(i=n.beforeClose.call(n.context.$(this))),i!==!1)&&(n.close&&n.close.call(n.context.$(this)),n.context.$(this).dialog("destroy").remove())}},Cancel:{"class":"cancelbtn",click:function(){r=!0;var t=null;(i&&(t=i.call(n.context.$(this))),t!==!1&&n.beforeClose&&(t=n.beforeClose.call(n.context.$(this))),t!==!1)&&(n.close&&n.close.call(n.context.$(this)),n.context.$(this).dialog("destroy").remove())}}};n.animation={effect:"fade",duration:200};n.close=n.close||function(){return r||!i||i.call(n.context.$(this))};n.closable=!0;try{return this.ShowDialog(n)}catch(f){u=confirm(n.content);u&&t?t():!u&&i&&i()}},ShowDialogOld:function(n,t,i,r,u,f,e,o,s,h){var c=f!=null?f.$("<div />"):$("<div />");return c.html(n),c.dialog({modal:o!=null?o:!0,closeOnEscape:s!=null?s:!0,draggable:!1,resizable:!1,hide:e!=null?e:!1,show:e!=null?e:!1,width:r!=null?r:400,height:u!=null?u:"auto",buttons:i,open:function(){c.css("overflow","auto");c.css("white-space","pre-wrap");c.dialog("option","title",t);h&&h.call(c)}}),c},ShowMessageOld:function(n,t,i,r,u,f){try{return this.ShowDialogOld(n,t,{Accept:{"class":"acceptbtn",click:function(){f!=null?f.$(this).dialog("destroy").remove():$(this).dialog("destroy").remove();i&&i()}}},r,u,f,{effect:"fade",duration:200})}catch(e){alert(t+": "+n);i&&i()}},ShowConfirmOld:function(n,t,i,r,u,f,e){try{return this.ShowDialogOld(n,t,{Accept:{"class":"acceptbtn",click:function(){e!=null?e.$(this).dialog("destroy").remove():$(this).dialog("destroy").remove();i&&i()}},Cancel:{"class":"cancelbtn",click:function(){e!=null?e.$(this).dialog("destroy").remove():$(this).dialog("destroy").remove();r&&r()}}},u,f,e,{effect:"fade",duration:200})}catch(s){var o=confirm(n);o&&i?i():!o&&r&&r()}},ResolveAction:function(n,t){return window.url_content_root+t+"/"+n},ResolveApi:function(n,t){return window.url_content_root+t+"/webapi/"+n},HandleAjaxError:function(n){window.hlErrorHandler(n)}};Helpline.Web.Portal.Index=Helpline.Web.Portal.Index||{_viewIsLoading:!1,PendingNavigation:null,LastCounterUpdate:new Number(0),OpenView:function(n,t){var i=this,r,f,u,e;if(!this.IsNavigationEnabled()){this.PendingNavigation={Url:n,PushState:t};return}n==="Startpage"?this.OpenStartPage():n==="Widgets"?this.OpenWidgets():(i.ViewIsLoading=!0,r=!1,f=null,$(".slideUrl").each(function(){var t=$(this).attr("data-url");(n===t||n===t+"/"||n.indexOf(t+"?")!==-1)&&(r=!0,f=$(this))}),u=function(){var u,e;window.setTimeout(function(){i.ViewIsLoading&&window.hlShowBusyIndicator($(document.body))},500);u=$(".startPageLogo, .hlTicker");u.hide();e=n.indexOf(window.home_index_url+"/App/")===0;e?window.location=n:$.ajax({url:n+(n.indexOf("?")>0?"&":"?")+i.GetAdditionalParameter(n)+"display=noCss",type:"GET",success:function(u){var s;if(!i.ViewIsLoading)return!1;var o=$("#hlcontent").length>0?$("#hlcontent"):$("body"),h=$("#pluginContent, #actionBar, #sideBarLeft, #sideBarRight"),e=$("<div/>").append(u),c=e.find("#actionBar, #sideBarLeft, #sideBarRight");e=e.find("#pluginContent");s=$("#jqxTabs");$(document).trigger("beforeOpenView").off("beforeOpenView").off("afterOpenView");h.remove();r?($("#startPageButton").hide(),$(".contentSection").css("display","table"),$(".activeSlide").removeClass("activeSlide"),f.closest(".slide").addClass("activeSlide"),i.SetBreadCrumb(null)):($("#startPageButton").show(),$(".contentSection").css("display","none"));s.hide();$(document.body).css("background","white");$("#startPageButton > img").show();o.addClass("overflowHidden").append(c);e.insertAfter(o.children("section"));$(window).resize();i.ViewIsLoading=!1;window.hlHideBusyIndicator($(document.body));$(document).trigger("afterOpenView");t&&history.pushState({tab:n,prevTab:history.state!=null?history.state.tab:null},"",window.home_index_url+"?tab="+n.replace(window.home_index_url,"").replace("?","&"))},error:function(n){window.hlErrorHandler(n);i.ViewIsLoading=!1;window.hlHideBusyIndicator($(document.body));r&&i.OpenStartPage()}})},e=$(document.body).css("background-image")!=="none",!r&&e?t?($(document.body).append('<div class="startPageWhiteBackground" style="opacity:0;"><\/div>'),$(".contentSection").fadeTo(400,0),$(".startPageWhiteBackground").fadeTo(400,1,function(){$(document.body).css("background","white");$(this).remove();u()})):($(document.body).css("background","white"),$(".contentSection").css("display","none"),u()):this.MoveSlides(!0,u,!t||!e))},OpenStartPage:function(){var n;if(!this.IsNavigationEnabled()){this.PendingNavigation={Url:"Startpage"};return}n=$(".startPageLogo, .hlTicker");$(document).trigger("beforeOpenView").off("beforeOpenView").off("afterOpenView");var t=$("#jqxTabs"),i=$("#hlcontent").length>0?$("#hlcontent"):$("body"),r=$("#pluginContent, #actionBar, #sideBarLeft, #sideBarRight");r.remove();Helpline.Web.Plugins=null;t.hide();$(document.body).removeAttr("style");$("#startPageButton").hide();$("#startPageButton > img").hide();this.SetBreadCrumb(null);$(".activeSlide").removeClass("activeSlide");i.removeClass("overflowHidden");n.show();$(".contentSection").css("display","table");this.MoveSlides(!1);this.LoadCounters($(".myItemCount"));history.pushState({tab:"Startpage",prevTab:history.state!=null?history.state.tab:null},"",window.home_index_url)},OpenWidgets:function(){if(!this.IsNavigationEnabled()){this.PendingNavigation={Url:"Widgets"};return}this.MoveSlides(!0,function(){$(document).trigger("beforeOpenView").off("beforeOpenView").off("afterOpenView");var n=$(".startPageLogo, .hlTicker"),t=$("#jqxTabs"),i=$("#hlcontent").length>0?$("#hlcontent"):$("body"),r=$("#pluginContent, #actionBar, #sideBarLeft, #sideBarRight");$("#startPageButton").hide();$("#startPageButton > img").show();$(".contentSection").css("display","table");$(".activeSlide").removeClass("activeSlide");$(".slideUrl[data-url=Widgets]").closest(".slide").addClass("activeSlide");r.remove();Helpline.Web.Plugins=null;n.hide();$(document.body).css("background","white");i.addClass("overflowHidden");t.show();window.openHomeTab();history.pushState({tab:"Widgets",prevTab:history.state!=null?history.state.tab:null},"",window.home_index_url+"?tab=Widgets")})},OpenLastView:function(n){this.OpenView(window.history.state!=null&&window.history.state.prevTab!=null&&window.history.state.prevTab!==window.history.state.tab?window.history.state.prevTab:n,!0)},LoadCounters:function(n){this.LastCounterUpdate=Date.now();this.UpdateTicker();n.each(function(){var t=$(this).attr("data-countUrl"),i=$(this).attr("data-searchOrgUnit"),n=localStorage.getItem(window.url_content_root+"SearchOrgUnit"),r=n=="true"||n=="false"?n:i;$.ajax({url:t+($(this).hasClass("myItemCountCases")?"?searchOrgUnit="+r:""),type:"GET",dataType:"json",success:function(n){$.each(n,function(n,t){$("."+n).text(t)})},error:function(n){window.hlErrorHandler(n)}})})},LoadContent:function(n,t,i){$.ajax({url:n,type:"GET",dataType:"html",success:function(n){t&&$(t).html(n);i&&i(n)}})},LoadJSON:function(n,t){$.getJSON(n,function(n){t(n)})},UpdateTicker:function(){var n=$(".hlTicker"),t,r,i;if(n.length>0){n.children().remove();t=$('<ul class="hlTickerItems"><\/ul>').appendTo(n);n.hasClass("newsMgmtTicker")?Helpline.Web.Portal.Index.LoadJSON(Helpline.Web.Portal.ResolveApi("News?targetGroup=1&priority=100&searchText=","NewsManagement"),function(n){n.forEach(function(n,i){i>0&&$("<li>+++<\/li>").appendTo(t);$("<li onclick=\"Helpline.Web.Portal.Index.OpenView(window.home_index_url + '/News/News?id="+n.Id+"', true);\">"+n.Title+"<\/li>").appendTo(t)});t.hlTicker()}):(r=$("<li><\/li>").appendTo(t),Helpline.Web.Portal.Index.LoadContent(window.startpage_ticker_url,r,function(){t.hlTicker()}));i=$(".startPageLogo");i.children("img").on("load",function(){n.css({left:$(this).parent().width()+15+"px",bottom:$(this).parent().height()/2+"px"})});n.css({left:(i.width()||0)+15+"px",bottom:(i.height()||0)/2+"px"})}},IsNavigationEnabled:function(){return!this.ViewIsLoading},GetAdditionalParameter:function(n){return n.indexOf("/Search/Search")>0?"searchOrgUnit="+(localStorage.getItem(window.url_content_root+"SearchOrgUnit")!=="false"?"true":"false")+"&":""},MoveSlides:function(n,t,i){var r=$(".contentSection"),e=n?-620:0,u=r.hasClass("pinnedContentSection"),f;n&&u||($(document.body).append('<div class="startPageWhiteBackground" style="opacity:'+(n?0:1)+';"><\/div>'),$(".startPageWhiteBackground").fadeTo(i?0:400,n?1:0,function(){n?$(document.body).css("background","white"):$(document.body).removeAttr("style");$(this).remove()}));n&&u||(n?r.addClass("pinnedContentSection"):r.removeClass("pinnedContentSection"),r.animate({"margin-top":e+"px",height:n?"670px":"100%",opacity:1},i?0:400,"easeOutQuad"));f=$(".slide");f.each(function(){(function(t){var i=$(t).find(".slideArrowUp");n||($(t).removeClass("activeSlide"),$(i).fadeTo(0,0,function(){$(i).css("visibility","hidden")}));$(i).parent().css({marginTop:"0"});$(i).parent().removeClass("down")})(this)});n?setTimeout(function(){f.each(function(){(function(n){var t=n.find(".slideTitle"),i=t.find(".slideArrowUp");t.addClass("down");$(i).css("visibility","visible").fadeTo(0,1)})($(this))});t!=null&&t();$(window).resize()},i||u?0:400):$(window).resize()},SetBreadCrumb:function(n){n||(n={Caption:"",Crumbs:[]});var t=$(".navBreadCrumb");$("#navTitle").html(n.Caption);t.empty();n.Crumbs.forEach(function(n,i,r){r.length>2&&r.length-i>2&&(n.Tooltip=n.Caption,n.Caption="...");$('<a href="'+(window.home_index_url+"?tab="+n.View.replace("?","&"))+'" class="navBreadCrumbItem"'+(n.Tooltip!=null?' title="'+n.Tooltip+'"':"")+">"+n.Caption+"<\/span>").appendTo(t).click(function(t){if(t.which===1)return t.preventDefault(),Helpline.Web.Common.NavigationService.OpenView(window.home_index_url+n.View,!0),!1});$('<span class="bs-icon bs-icon-chevron-right content-dark-blue-color bs-icon-16"><\/span>').appendTo(t)});window.resizeAbsolutebox()}};Object.defineProperty(Helpline.Web.Portal.Index,"ViewIsLoading",{get:function(){return this._viewIsLoading},set:function(n){this._viewIsLoading=n;this._viewIsLoading||this.PendingNavigation==null||(this.OpenView(this.PendingNavigation.Url,this.PendingNavigation.PushState),this.PendingNavigation=null)}});Helpline.Web.WebDesk=Helpline.Web.WebDesk||Helpline.Web.Portal;Helpline.Web.Common=Helpline.Web.Common||{OpenWindow:function(n,t,i){if(window.services&&window.services.dialogService&&window.services.dialogService.openPopup&&typeof window.services.dialogService.openPopup=="function"){window.services.dialogService.openPopup(n);return}var r=window.screenLeft!=undefined?window.screenLeft:screen.left,u=window.screenTop!=undefined?window.screenTop:screen.top,f=(screen.width-t)/2+Math.floor(r/screen.width)*screen.width,e=(screen.height-i)/2+Math.floor(u/screen.height)*screen.height;window.open(n,"_blank","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes,height="+i+",width="+t+",left="+f+",top="+e).focus()},NavigationService:Helpline.Web.Portal.Index};typeof checkMenuSize!="undefined"&&window.Sys.Application.add_load(window.checkMenuSize);width=$(window).width();userActivityLogged=!1;$(window).resize(function(){$("body > .ui-dialog:visible > .ui-dialog-content").each(function(n,t){$(t).dialog("option","position",$(t).dialog("option","position"))})});$(document).ready(function(){if(typeof isConnected!="undefined"&&window.isConnected){document.cookie=(window.applicationName||"helpLinePortal")+"_expiretime="+window.expire+"; path=/; secure";document.onmousedown=onUserActivityHandler;document.onkeypress=onUserActivityHandler;window.nextTimeoutTime=window.localStorage.getItem(window.applicationName+"_nextTimeoutTime");var n=Date.now();(!window.nextTimeoutTime||window.nextTimeoutTime<n-12e4)&&(window.nextTimeoutTime=n+window.sessionTimeout*1e3);window.keepSessionTimer=setTimeout(keepSession,window.nextTimeoutTime-n-12e4)}})