function MaskedEditSetMessage(n,t,i){n.errormessage=t;n.text=i==""?t:i;n.innerHTML=n.text}function MaskedEditMessageShow(n,t){if(typeof n.display=="string"){if(n.display=="None")return;if(n.display=="Dynamic"){n.style.display=t?"none":"inline";return}}n.style.visibility=t?"hidden":"visible"}function MaskedEditSetCssClass(n,t){var i=$get(n.TargetValidator);Sys.UI.DomElement.removeCssClass(i,n.InvalidValueCssClass);Sys.UI.DomElement.removeCssClass(i,n.CssBlurNegative);Sys.UI.DomElement.removeCssClass(i,n.CssFocus);Sys.UI.DomElement.removeCssClass(i,n.CssFocusNegative);t!=""&&Sys.UI.DomElement.addCssClass(i,t)}function MaskedEditValidatorDateTime(n){var i,t,r,o,u,f,e,s;if(MaskedEditSetMessage(n,"",""),MaskedEditSetCssClass(n,""),MaskedEditMessageShow(n,!0),n.IsMaskedEdit=="false")return!0;if(i=$get(n.TargetValidator),n.ValidEmpty=="false"&&Sys.Extended.UI.TextBoxWrapper.get_Wrapper(i).get_Value()==n.InitialValue)return MaskedEditSetMessage(n,n.EmptyValueMessage,n.EmptyValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass),MaskedEditMessageShow(n,!1),!1;if(Sys.Extended.UI.TextBoxWrapper.get_Wrapper(i).get_Value()=="")return!0;if(t=!0,r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(i).get_Value(),n.ValidationExpression!=""&&(o=new RegExp(n.ValidationExpression),u=o.exec(r),t=u!=null&&r==u[0],!t))return MaskedEditSetMessage(n,n.InvalidValueMessage,n.InvalidValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass),MaskedEditMessageShow(n,!1),!1;var l=i.MaskedEditBehavior.AutoFormatDate(),a=i.MaskedEditBehavior.AutoFormatTime(),h="",c="";return n.MinimumValue!=""&&(h=n.MinimumValue.split(" ")[0],c=n.MinimumValue.split(" ")[1]),f="",e="",n.MaximumValue!=""&&(f=n.MaximumValue.split(" ")[0],e=n.MaximumValue.split(" ")[1]),t=MaskedEditValidatorPartDate(n,l,h,f),t&&(t=MaskedEditValidatorPartTime(n,a,c,e)),t&&n.ClientValidationFunction!=""&&(s={Value:r,IsValid:!0},eval(n.ClientValidationFunction+"(value, args);"),t=s.IsValid,t||(MaskedEditSetMessage(n,n.InvalidValueMessage,n.InvalidValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass))),t||MaskedEditMessageShow(n,t),t}function MaskedEditValidatorPartTime(n,t,i,r){var s=!0,h=n.TimeSeparator,g=n.AmPmSymbol,b=g.split(";"),nt=g.replace(";","|"),tt="^(^([0][0-9]|[1][0-2])"+h+"([0-5][0-9])"+h+"([0-5][0-9])\\s("+nt+")$)|(^([0][0-9]|[1][0-2])"+h+"([0-5][0-9])\\s("+nt+")$)$",it="^(^([0-1][0-9]|[2][0-3])"+h+"([0-5][0-9])"+h+"([0-5][0-9])$)|(^([0-1][0-9]|[2][0-3])"+h+"([0-5][0-9])$)$",e=-1,v=-1,w=-1,y="",p=t.split(h),k=new RegExp(tt),c=k.exec(t),d=new RegExp(it),l=d.exec(t),u,o,a,f;return c&&c[0]==t?(y=t.substring(t.length-2).substring(0,1),e=parseInt(p[0],10),y.toUpperCase()==b[1].substring(0,1).toUpperCase()&&(e+=12,e==24&&(e=12)),v=parseInt(p[1],10),w=n.length>9?parseInt(p[2].substring(0,2),10):0):l&&l[0]==t&&(e=parseInt(p[0],10),v=parseInt(p[1],10),w=t.length>5?parseInt(p[2],10):0),(e==-1||v==-1||w==-1)&&(s=!1),s||(MaskedEditSetMessage(n,n.InvalidValueMessage,n.InvalidValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass)),s&&(r!=""||i!="")&&(i!=""&&(u=-1,o=-1,a=-1,f=i.split(h),c=k.exec(i),l=d.exec(i),c&&c[0]==i?(y=i.substring(i.length-2).substring(0,1),u=parseInt(f[0],10),y.toUpperCase()==b[1].substring(0,1).toUpperCase()&&(u+=12,u==24&&(u=0)),o=parseInt(f[1],10),a=i.length>9?parseInt(f[2].substring(0,2),10):0):l&&l[0]==i&&(u=parseInt(f[0],10),o=parseInt(f[1],10),a=i.length>5?parseInt(f[2],10):0),s=e>u||e==u&&v>o||e==u&&v==o&&w>=a,s||(MaskedEditSetMessage(n,n.MinimumValueMessage,n.MinimumValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass))),r!=""&&s&&(u=-1,o=-1,a=-1,f=r.split(h),c=k.exec(r),l=d.exec(r),c&&c[0]==r?(y=r.substring(r.length-2).substring(0,1),u=parseInt(f[0],10),y.toUpperCase()==b[1].substring(0,1).toUpperCase()&&(u+=12,u==24&&(u=0)),o=parseInt(f[1],10),a=r.length>9?parseInt(f[2].substring(0,2),10):0):l&&l[0]==r&&(u=parseInt(f[0],10),o=parseInt(f[1],10),a=r.length>5?parseInt(f[2],10):0),s=e0&&s>0&&e>0&&(l<=[,31,28,31,30,31,30,31,31,30,31,30,31][s]||l==29&&s==2&&e%4==0&&(e%100>0||e%400==0))),f||(MaskedEditSetMessage(n,n.InvalidValueMessage,n.InvalidValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass)),f&&(r!=""||i!="")){var h,a=-1,c=-1,o=-1;i!=""&&(h=i.split(y),a=parseInt(h[u.indexOf("D")],10),c=parseInt(h[u.indexOf("M")],10),o=parseInt(h[u.indexOf("Y")],10),f=a>0&&c>0&&o>0&&e>o||e==o&&s>c||e==o&&s==c&&l>=a,f||(MaskedEditSetMessage(n,n.MinimumValueMessage,n.MinimumValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass)));f&&r!=""&&(h=r.split(y),a=parseInt(h[u.indexOf("D")],10),c=parseInt(h[u.indexOf("M")],10),o=parseInt(h[u.indexOf("Y")],10),f=a>0&&c>0&&o>0&&ei&&(t=!1,MaskedEditSetMessage(n,n.MaximumValueMessage,n.MaximumValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass))),t&&n.MinimumValue!=""&&(i=parseInt(n.MinimumValue,10),i==(isNaN(i)?null:i)&&f0?r[2]:"0")+"."+r[4]:(r[2].length>0?r[2]:"0")+"."+r[4],f=parseFloat(c),t=f==(isNaN(f)?null:f)),t||(MaskedEditSetMessage(n,n.InvalidValueMessage,n.InvalidValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass)),t&&(n.MaximumValue!=""&&(i=parseFloat(n.MaximumValue),i==(isNaN(i)?null:i)&&f>i&&(t=!1,MaskedEditSetMessage(n,n.MaximumValueMessage,n.MaximumValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass))),t&&n.MinimumValue!=""&&(i=parseFloat(n.MinimumValue),i==(isNaN(i)?null:i)&&fi&&(t=!1,MaskedEditSetMessage(n,n.MaximumValueMessage,n.MaximumValueText),MaskedEditSetCssClass(n,n.InvalidValueCssClass))),t&&n.MinimumValue!=""&&n.MinimumValue.match(e)!=null&&(i=parseInt(n.MinimumValue,10),i==(isNaN(i)?null:i)&&r.lengthSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._borderStyleNames[t],r=this.getCurrentStyle(n,i);return r!="none"},getMargin:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._marginWidthNames[t],r=this.getCurrentStyle(n,i);try{return this.parsePadding(r)}catch(u){return 0}},getBorderWidth:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));if(!this.isBorderVisible(n,t))return 0;var i=this._borderWidthNames[t],r=this.getCurrentStyle(n,i);return this.parseBorderWidth(r)},getPadding:function(n,t){if(!n)throw Error.argumentNull("element");if(tSys.Extended.UI.BoxSide.Left)throw Error.argumentOutOfRange(String.format(Sys.Res.enumInvalidValue,t,"Sys.Extended.UI.BoxSide"));var i=this._paddingWidthNames[t],r=this.getCurrentStyle(n,i);return this.parsePadding(r)},parseBorderWidth:function(n){var r,t,i,u,f;if(this._borderThicknesses||(r={},t=document.createElement("div"),t.style.visibility="hidden",t.style.position="absolute",t.style.fontSize="1px",document.body.appendChild(t),i=document.createElement("div"),i.style.height="0px",i.style.overflow="hidden",t.appendChild(i),u=t.offsetHeight,i.style.borderTop="solid black",i.style.borderTopWidth="thin",r.thin=t.offsetHeight-u,i.style.borderTopWidth="medium",r.medium=t.offsetHeight-u,i.style.borderTopWidth="thick",r.thick=t.offsetHeight-u,t.removeChild(i),document.body.removeChild(t),this._borderThicknesses=r),n){switch(n){case"thin":case"medium":case"thick":return this._borderThicknesses[n];case"inherit":return 0}return f=this.parseUnit(n),Sys.Debug.assert(f.type=="px",String.format(Sys.Extended.UI.Resources.Common_InvalidBorderWidthUnit,f.type)),f.size}return 0},parsePadding:function(n){if(n){if(n=="inherit")return 0;var t=this.parseUnit(n);return t.type!=="px"&&Sys.Debug.fail(String.format(Sys.Extended.UI.Resources.Common_InvalidPaddingUnit,t.type)),t.size}return 0},parseUnit:function(n){var f,t,r,i,e,u;if(!n)throw Error.argumentNull("value");for(n=n.trim().toLowerCase(),f=n.length,t=-1,r=0;r"9")&&i!="-"&&i!="."&&i!=",")break;t=r}if(t==-1)throw Error.create(Sys.Extended.UI.Resources.Common_UnitHasNoDigits);return e=t0){var t;if((t=window[n])instanceof Function||(t=eval(n))instanceof Function)return t}}return null},addCssClasses:function(n,t){for(var i=0;i=n.x&&t=n.y&&it&&(f=r=="l"?f.substr(f.length-t,t):f.substr(0,t)),f},__DOMEvents:{focusin:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focusin",!0,!1,window,1)}},focusout:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focusout",!0,!1,window,1)}},activate:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("activate",!0,!0,window,1)}},focus:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("focus",!1,!1,window,1)}},blur:{eventGroup:"UIEvents",init:function(n){n.initUIEvent("blur",!1,!1,window,1)}},click:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("click",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},dblclick:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("click",!0,!0,window,2,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousedown:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousedown",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseup:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mouseup",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseover:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mouseover",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mousemove:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},mouseout:{eventGroup:"MouseEvents",init:function(n,t){n.initMouseEvent("mousemove",!0,!0,window,1,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null)}},load:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("load",!1,!1)}},unload:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("unload",!1,!1)}},select:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("select",!0,!1)}},change:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("change",!0,!1)}},submit:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("submit",!0,!0)}},reset:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("reset",!0,!1)}},resize:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("resize",!0,!1)}},scroll:{eventGroup:"HTMLEvents",init:function(n){n.initEvent("scroll",!0,!1)}}},tryFireRawEvent:function(n,t){try{if(n.fireEvent)return n.fireEvent("on"+t.type,t),!0;if(n.dispatchEvent)return n.dispatchEvent(t),!0}catch(i){}return!1},tryFireEvent:function(n,t,i){var u,r;try{if(document.createEventObject)return r=document.createEventObject(),$common.applyProperties(r,i||{}),n.fireEvent("on"+t,r),!0;if(document.createEvent&&(u=$common.__DOMEvents[t],u))return r=document.createEvent(u.eventGroup),u.init(r,i||{}),n.dispatchEvent(r),!0}catch(r){}return!1},wrapElement:function(n,t,i){var r=n.parentNode;r.replaceChild(t,n);(i||t).appendChild(n)},unwrapElement:function(n,t){var i=t.parentNode;i!=null&&($common.removeElement(n),i.replaceChild(n,t))},removeElement:function(n){var t=n.parentNode;t!=null&&t.removeChild(n)},applyProperties:function(n,t){var r,i,u;for(r in t)i=t[r],i!=null&&Object.getType(i)===Object?(u=n[r],$common.applyProperties(u,i)):n[r]=i},createElementFromTemplate:function(n,t,i){var f,h,r,e,s,c,o,u;if(typeof n.nameTable!="undefined"&&(f=n.nameTable,String.isInstanceOfType(f)&&(f=i[f]),f!=null&&(i=f)),h=null,typeof n.name!="undefined"&&(h=n.name),r=document.createElement(n.nodeName),typeof n.name!="undefined"&&i&&(i[n.name]=r),typeof n.parent!="undefined"&&t==null&&(e=n.parent,String.isInstanceOfType(e)&&(e=i[e]),e!=null&&(t=e)),typeof n.properties!="undefined"&&n.properties!=null&&$common.applyProperties(r,n.properties),typeof n.cssClasses!="undefined"&&n.cssClasses!=null&&$common.addCssClasses(r,n.cssClasses),typeof n.events!="undefined"&&n.events!=null&&$addHandlers(r,n.events),typeof n.visible!="undefined"&&n.visible!=null&&this.setVisible(r,n.visible),t&&t.appendChild(r),typeof n.opacity!="undefined"&&n.opacity!=null&&$common.setElementOpacity(r,n.opacity),typeof n.children!="undefined"&&n.children!=null)for(s=0;s100&&(n=100),this._percentComplete=n,this.raisePropertyChanged("percentComplete"),t)this.onStep(n);n===100&&this.stop(!1)},setOwner:function(n){this._owner=n},raiseStarted:function(){var n=this.get_events().getHandler("started");n&&n(this,Sys.EventArgs.Empty)},add_started:function(n){this.get_events().addHandler("started",n)},remove_started:function(n){this.get_events().removeHandler("started",n)},raiseEnded:function(){var n=this.get_events().getHandler("ended");n&&n(this,Sys.EventArgs.Empty)},add_ended:function(n){this.get_events().addHandler("ended",n)},remove_ended:function(n){this.get_events().removeHandler("ended",n)},raiseStep:function(){var n=this.get_events().getHandler("step");n&&n(this,Sys.EventArgs.Empty)},add_step:function(n){this.get_events().addHandler("step",n)},remove_step:function(n){this.get_events().removeHandler("step",n)},get_target:function(){return!this._target&&this._parentAnimation?this._parentAnimation.get_target():this._target},set_target:function(n){this._target!=n&&(this._target=n,this.raisePropertyChanged("target"))},set_animationTarget:function(n){var i=null,t=$get(n),r;if(t?i=t:(r=$find(n),r&&(t=r.get_element(),t&&(i=t))),i)this.set_target(i);else throw Error.argument("id",String.format(Sys.Extended.UI.Resources.Animation_TargetNotFound,n));},get_duration:function(){return this._duration},set_duration:function(n){n=this._getFloat(n);this._duration!=n&&(this._duration=n,this.raisePropertyChanged("duration"))},get_fps:function(){return this._fps},set_fps:function(n){n=this._getInteger(n);this.fps!=n&&(this._fps=n,this.raisePropertyChanged("fps"))},get_isActive:function(){return this._timer!==null},get_isPlaying:function(){return this._timer!==null&&this._timer.get_enabled()},get_percentComplete:function(){return this._percentComplete},_getBoolean:function(n){return String.isInstanceOfType(n)?Boolean.parse(n):n},_getInteger:function(n){return String.isInstanceOfType(n)?parseInt(n):n},_getFloat:function(n){return String.isInstanceOfType(n)?parseFloat(n):n},_getEnum:function(n,t){return String.isInstanceOfType(n)&&t&&t.parse?t.parse(n):n}};$AA.Animation.registerClass("Sys.Extended.UI.Animation.Animation",Sys.Component);$AA.registerAnimation("animation",$AA.Animation);$AA.ParentAnimation=function(n,t,i,r){if($AA.ParentAnimation.initializeBase(this,[n,t,i]),this._animations=[],r&&r.length)for(var u=0;u=0;n--)this._animations[n].dispose(),this._animations[n]=null;Array.clear(this._animations);this._animations=[];this.raisePropertyChanged("animations")}}};$AA.ParentAnimation.registerClass("Sys.Extended.UI.Animation.ParentAnimation",$AA.Animation);$AA.registerAnimation("parent",$AA.ParentAnimation);$AA.ParallelAnimation=function(n,t,i,r){$AA.ParallelAnimation.initializeBase(this,[n,t,i,r])};$AA.ParallelAnimation.prototype={add:function(n){$AA.ParallelAnimation.callBaseMethod(this,"add",[n]);n.setOwner(this)},onStart:function(){var t,n;for($AA.ParallelAnimation.callBaseMethod(this,"onStart"),t=this.get_animations(),n=0;n=1||this._iterations<=0?(this._remainingIterations--,this._index=0,i=n[0],i.add_ended(this._handler),i.play()):this.stop()},onStep:function(){throw Error.invalidOperation(Sys.Extended.UI.Resources.Animation_CannotNestSequence);},onEnd:function(){this._remainingIterations=0;$AA.SequenceAnimation.callBaseMethod(this,"onEnd")},get_isActive:function(){return!0},get_isPlaying:function(){return this._playing&&!this._paused},get_iterations:function(){return this._iterations},set_iterations:function(n){n=this._getInteger(n);this._iterations!=n&&(this._iterations=n,this.raisePropertyChanged("iterations"))},get_isInfinite:function(){return this._iterations<=0}};$AA.SequenceAnimation.registerClass("Sys.Extended.UI.Animation.SequenceAnimation",$AA.ParentAnimation);$AA.registerAnimation("sequence",$AA.SequenceAnimation);$AA.SelectionAnimation=function(n,t,i,r){$AA.SelectionAnimation.initializeBase(this,[n,t,i,r]);this._selectedIndex=-1;this._selected=null};$AA.SelectionAnimation.prototype={getSelectedIndex:function(){throw Error.notImplemented();},onStart:function(){$AA.SelectionAnimation.callBaseMethod(this,"onStart");var n=this.get_animations();this._selectedIndex=this.getSelectedIndex();this._selectedIndex>=0&&this._selectedIndex0)try{n=eval(this._conditionScript)?0:1}catch(t){}return n},get_conditionScript:function(){return this._conditionScript},set_conditionScript:function(n){this._conditionScript!=n&&(this._conditionScript=n,this.raisePropertyChanged("conditionScript"))}};$AA.ConditionAnimation.registerClass("Sys.Extended.UI.Animation.ConditionAnimation",$AA.SelectionAnimation);$AA.registerAnimation("condition",$AA.ConditionAnimation);$AA.CaseAnimation=function(n,t,i,r,u){$AA.CaseAnimation.initializeBase(this,[n,t,i,r]);this._selectScript=u};$AA.CaseAnimation.prototype={getSelectedIndex:function(){var t=-1,n;if(this._selectScript&&this._selectScript.length>0)try{n=eval(this._selectScript);n!==undefined&&(t=n)}catch(i){}return t},get_selectScript:function(){return this._selectScript},set_selectScript:function(n){this._selectScript!=n&&(this._selectScript=n,this.raisePropertyChanged("selectScript"))}};$AA.CaseAnimation.registerClass("Sys.Extended.UI.Animation.CaseAnimation",$AA.SelectionAnimation);$AA.registerAnimation("case",$AA.CaseAnimation);$AA.FadeEffect=function(){throw Error.invalidOperation();};$AA.FadeEffect.prototype={FadeIn:0,FadeOut:1};$AA.FadeEffect.registerEnum("Sys.Extended.UI.Animation.FadeEffect",!1);$AA.FadeAnimation=function(n,t,i,r,u,f,e){$AA.FadeAnimation.initializeBase(this,[n,t,i]);this._effect=r!==undefined?r:$AA.FadeEffect.FadeIn;this._max=f!==undefined?f:1;this._min=u!==undefined?u:0;this._start=this._min;this._end=this._max;this._layoutCreated=!1;this._forceLayoutInIE=e===undefined||e===null?!0:e;this._currentTarget=null;this._resetOpacities()};$AA.FadeAnimation.prototype={_resetOpacities:function(){this._effect==$AA.FadeEffect.FadeIn?(this._start=this._min,this._end=this._max):(this._start=this._max,this._end=this._min)},_createLayout:function(){var n=this._currentTarget,t;n&&(this._originalWidth=$common.getCurrentStyle(n,"width"),t=$common.getCurrentStyle(n,"height"),this._originalBackColor=$common.getCurrentStyle(n,"backgroundColor"),this._originalWidth&&this._originalWidth!=""&&this._originalWidth!="auto"||t&&t!=""&&t!="auto"||(n.style.width=n.offsetWidth+"px"),this._originalBackColor&&this._originalBackColor!=""&&this._originalBackColor!="transparent"&&this._originalBackColor!="rgba(0, 0, 0, 0)"||(n.style.backgroundColor=$common.getInheritedBackgroundColor(n)),this._layoutCreated=!0)},onStart:function(){$AA.FadeAnimation.callBaseMethod(this,"onStart");this._currentTarget=this.get_target();this.setValue(this._start);this._forceLayoutInIE&&!this._layoutCreated&&Sys.Browser.agent==Sys.Browser.InternetExplorer&&this._createLayout()},getAnimatedValue:function(n){return this.interpolate(this._start,this._end,n)},setValue:function(n){this._currentTarget&&$common.setElementOpacity(this._currentTarget,n)},get_effect:function(){return this._effect},set_effect:function(n){n=this._getEnum(n,$AA.FadeEffect);this._effect!=n&&(this._effect=n,this._resetOpacities(),this.raisePropertyChanged("effect"))},get_minimumOpacity:function(){return this._min},set_minimumOpacity:function(n){n=this._getFloat(n);this._min!=n&&(this._min=n,this._resetOpacities(),this.raisePropertyChanged("minimumOpacity"))},get_maximumOpacity:function(){return this._max},set_maximumOpacity:function(n){n=this._getFloat(n);this._max!=n&&(this._max=n,this._resetOpacities(),this.raisePropertyChanged("maximumOpacity"))},get_forceLayoutInIE:function(){return this._forceLayoutInIE},set_forceLayoutInIE:function(n){n=this._getBoolean(n);this._forceLayoutInIE!=n&&(this._forceLayoutInIE=n,this.raisePropertyChanged("forceLayoutInIE"))},set_startValue:function(n){n=this._getFloat(n);this._start=n}};$AA.FadeAnimation.registerClass("Sys.Extended.UI.Animation.FadeAnimation",$AA.Animation);$AA.registerAnimation("fade",$AA.FadeAnimation);$AA.FadeInAnimation=function(n,t,i,r,u,f){$AA.FadeInAnimation.initializeBase(this,[n,t,i,$AA.FadeEffect.FadeIn,r,u,f])};$AA.FadeInAnimation.prototype={onStart:function(){$AA.FadeInAnimation.callBaseMethod(this,"onStart");this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}};$AA.FadeInAnimation.registerClass("Sys.Extended.UI.Animation.FadeInAnimation",$AA.FadeAnimation);$AA.registerAnimation("fadeIn",$AA.FadeInAnimation);$AA.FadeOutAnimation=function(n,t,i,r,u,f){$AA.FadeOutAnimation.initializeBase(this,[n,t,i,$AA.FadeEffect.FadeOut,r,u,f])};$AA.FadeOutAnimation.prototype={onStart:function(){$AA.FadeOutAnimation.callBaseMethod(this,"onStart");this._currentTarget&&this.set_startValue($common.getElementOpacity(this._currentTarget))}};$AA.FadeOutAnimation.registerClass("Sys.Extended.UI.Animation.FadeOutAnimation",$AA.FadeAnimation);$AA.registerAnimation("fadeOut",$AA.FadeOutAnimation);$AA.PulseAnimation=function(n,t,i,r,u,f,e){$AA.PulseAnimation.initializeBase(this,[n,t,i,null,r!==undefined?r:3]);this._out=new $AA.FadeOutAnimation(n,t,i,u,f,e);this.add(this._out);this._in=new $AA.FadeInAnimation(n,t,i,u,f,e);this.add(this._in)};$AA.PulseAnimation.prototype={get_minimumOpacity:function(){return this._out.get_minimumOpacity()},set_minimumOpacity:function(n){n=this._getFloat(n);this._out.set_minimumOpacity(n);this._in.set_minimumOpacity(n);this.raisePropertyChanged("minimumOpacity")},get_maximumOpacity:function(){return this._out.get_maximumOpacity()},set_maximumOpacity:function(n){n=this._getFloat(n);this._out.set_maximumOpacity(n);this._in.set_maximumOpacity(n);this.raisePropertyChanged("maximumOpacity")},get_forceLayoutInIE:function(){return this._out.get_forceLayoutInIE()},set_forceLayoutInIE:function(n){n=this._getBoolean(n);this._out.set_forceLayoutInIE(n);this._in.set_forceLayoutInIE(n);this.raisePropertyChanged("forceLayoutInIE")},set_duration:function(n){n=this._getFloat(n);$AA.PulseAnimation.callBaseMethod(this,"set_duration",[n]);this._in.set_duration(n);this._out.set_duration(n)},set_fps:function(n){n=this._getInteger(n);$AA.PulseAnimation.callBaseMethod(this,"set_fps",[n]);this._in.set_fps(n);this._out.set_fps(n)}};$AA.PulseAnimation.registerClass("Sys.Extended.UI.Animation.PulseAnimation",$AA.SequenceAnimation);$AA.registerAnimation("pulse",$AA.PulseAnimation);$AA.PropertyAnimation=function(n,t,i,r,u){$AA.PropertyAnimation.initializeBase(this,[n,t,i]);this._property=r;this._propertyKey=u;this._currentTarget=null};$AA.PropertyAnimation.prototype={onStart:function(){$AA.PropertyAnimation.callBaseMethod(this,"onStart");this._currentTarget=this.get_target()},setValue:function(n){var t=this._currentTarget;t&&this._property&&this._property.length>0&&(this._propertyKey&&this._propertyKey.length>0&&t[this._property]?t[this._property][this._propertyKey]=n:t[this._property]=n)},getValue:function(){var t=this.get_target(),n;return t&&this._property&&this._property.length>0&&(n=t[this._property],n)?this._propertyKey&&this._propertyKey.length>0?n[this._propertyKey]:n:null},get_property:function(){return this._property},set_property:function(n){this._property!=n&&(this._property=n,this.raisePropertyChanged("property"))},get_propertyKey:function(){return this._propertyKey},set_propertyKey:function(n){this._propertyKey!=n&&(this._propertyKey=n,this.raisePropertyChanged("propertyKey"))}};$AA.PropertyAnimation.registerClass("Sys.Extended.UI.Animation.PropertyAnimation",$AA.Animation);$AA.registerAnimation("property",$AA.PropertyAnimation);$AA.DiscreteAnimation=function(n,t,i,r,u,f){$AA.DiscreteAnimation.initializeBase(this,[n,t,i,r,u]);this._values=f&&f.length?f:[]};$AA.DiscreteAnimation.prototype={getAnimatedValue:function(n){var t=Math.floor(this.interpolate(0,this._values.length-1,n));return this._values[t]},get_values:function(){return this._values},set_values:function(n){this._values!=n&&(this._values=n,this.raisePropertyChanged("values"))}};$AA.DiscreteAnimation.registerClass("Sys.Extended.UI.Animation.DiscreteAnimation",$AA.PropertyAnimation);$AA.registerAnimation("discrete",$AA.DiscreteAnimation);$AA.InterpolatedAnimation=function(n,t,i,r,u,f,e){$AA.InterpolatedAnimation.initializeBase(this,[n,t,i,r!==undefined?r:"style",u]);this._startValue=f;this._endValue=e};$AA.InterpolatedAnimation.prototype={get_startValue:function(){return this._startValue},set_startValue:function(n){n=this._getFloat(n);this._startValue!=n&&(this._startValue=n,this.raisePropertyChanged("startValue"))},get_endValue:function(){return this._endValue},set_endValue:function(n){n=this._getFloat(n);this._endValue!=n&&(this._endValue=n,this.raisePropertyChanged("endValue"))}};$AA.InterpolatedAnimation.registerClass("Sys.Extended.UI.Animation.InterpolatedAnimation",$AA.PropertyAnimation);$AA.registerAnimation("interpolated",$AA.InterpolatedAnimation);$AA.ColorAnimation=function(n,t,i,r,u,f,e){$AA.ColorAnimation.initializeBase(this,[n,t,i,r,u,f,e]);this._start=null;this._end=null;this._interpolateRed=!1;this._interpolateGreen=!1;this._interpolateBlue=!1};$AA.ColorAnimation.prototype={onStart:function(){$AA.ColorAnimation.callBaseMethod(this,"onStart");this._start=$AA.ColorAnimation.getRGB(this.get_startValue());this._end=$AA.ColorAnimation.getRGB(this.get_endValue());this._interpolateRed=this._start.Red!=this._end.Red;this._interpolateGreen=this._start.Green!=this._end.Green;this._interpolateBlue=this._start.Blue!=this._end.Blue},getAnimatedValue:function(n){var t=this._start.Red,i=this._start.Green,r=this._start.Blue;return this._interpolateRed&&(t=Math.round(this.interpolate(t,this._end.Red,n))),this._interpolateGreen&&(i=Math.round(this.interpolate(i,this._end.Green,n))),this._interpolateBlue&&(r=Math.round(this.interpolate(r,this._end.Blue,n))),$AA.ColorAnimation.toColor(t,i,r)},set_startValue:function(n){this._startValue!=n&&(this._startValue=n,this.raisePropertyChanged("startValue"))},set_endValue:function(n){this._endValue!=n&&(this._endValue=n,this.raisePropertyChanged("endValue"))}};$AA.ColorAnimation.getRGB=function(n){if(!n||n.length!=7)throw String.format(Sys.Extended.UI.Resources.Animation_InvalidColor,n);return{Red:parseInt(n.substr(1,2),16),Green:parseInt(n.substr(3,2),16),Blue:parseInt(n.substr(5,2),16)}};$AA.ColorAnimation.toColor=function(n,t,i){var r=n.toString(16),u=t.toString(16),f=i.toString(16);return r.length==1&&(r="0"+r),u.length==1&&(u="0"+u),f.length==1&&(f="0"+f),"#"+r+u+f};$AA.ColorAnimation.registerClass("Sys.Extended.UI.Animation.ColorAnimation",$AA.InterpolatedAnimation);$AA.registerAnimation("color",$AA.ColorAnimation);$AA.LengthAnimation=function(n,t,i,r,u,f,e,o){$AA.LengthAnimation.initializeBase(this,[n,t,i,r,u,f,e]);this._unit=o!=null?o:"px"};$AA.LengthAnimation.prototype={getAnimatedValue:function(n){var t=this.interpolate(this.get_startValue(),this.get_endValue(),n);return Math.round(t)+this._unit},get_unit:function(){return this._unit},set_unit:function(n){this._unit!=n&&(this._unit=n,this.raisePropertyChanged("unit"))}};$AA.LengthAnimation.registerClass("Sys.Extended.UI.Animation.LengthAnimation",$AA.InterpolatedAnimation);$AA.registerAnimation("length",$AA.LengthAnimation);$AA.MoveAnimation=function(n,t,i,r,u,f,e){$AA.MoveAnimation.initializeBase(this,[n,t,i,null]);this._horizontal=r?r:0;this._vertical=u?u:0;this._relative=f===undefined?!0:f;this._horizontalAnimation=new $AA.LengthAnimation(n,t,i,"style","left",null,null,e);this._verticalAnimation=new $AA.LengthAnimation(n,t,i,"style","top",null,null,e);this.add(this._verticalAnimation);this.add(this._horizontalAnimation)};$AA.MoveAnimation.prototype={onStart:function(){$AA.MoveAnimation.callBaseMethod(this,"onStart");var n=this.get_target();this._horizontalAnimation.set_startValue(n.offsetLeft);this._horizontalAnimation.set_endValue(this._relative?n.offsetLeft+this._horizontal:this._horizontal);this._verticalAnimation.set_startValue(n.offsetTop);this._verticalAnimation.set_endValue(this._relative?n.offsetTop+this._vertical:this._vertical)},get_horizontal:function(){return this._horizontal},set_horizontal:function(n){n=this._getFloat(n);this._horizontal!=n&&(this._horizontal=n,this.raisePropertyChanged("horizontal"))},get_vertical:function(){return this._vertical},set_vertical:function(n){n=this._getFloat(n);this._vertical!=n&&(this._vertical=n,this.raisePropertyChanged("vertical"))},get_relative:function(){return this._relative},set_relative:function(n){n=this._getBoolean(n);this._relative!=n&&(this._relative=n,this.raisePropertyChanged("relative"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(n){var t=this._horizontalAnimation.get_unit();t!=n&&(this._horizontalAnimation.set_unit(n),this._verticalAnimation.set_unit(n),this.raisePropertyChanged("unit"))}};$AA.MoveAnimation.registerClass("Sys.Extended.UI.Animation.MoveAnimation",$AA.ParallelAnimation);$AA.registerAnimation("move",$AA.MoveAnimation);$AA.ResizeAnimation=function(n,t,i,r,u,f){$AA.ResizeAnimation.initializeBase(this,[n,t,i,null]);this._width=r;this._height=u;this._horizontalAnimation=new $AA.LengthAnimation(n,t,i,"style","width",null,null,f);this._verticalAnimation=new $AA.LengthAnimation(n,t,i,"style","height",null,null,f);this.add(this._horizontalAnimation);this.add(this._verticalAnimation)};$AA.ResizeAnimation.prototype={onStart:function(){$AA.ResizeAnimation.callBaseMethod(this,"onStart");var n=this.get_target();this._horizontalAnimation.set_startValue(n.offsetWidth);this._verticalAnimation.set_startValue(n.offsetHeight);this._horizontalAnimation.set_endValue(this._width!==null&&this._width!==undefined?this._width:n.offsetWidth);this._verticalAnimation.set_endValue(this._height!==null&&this._height!==undefined?this._height:n.offsetHeight)},get_width:function(){return this._width},set_width:function(n){n=this._getFloat(n);this._width!=n&&(this._width=n,this.raisePropertyChanged("width"))},get_height:function(){return this._height},set_height:function(n){n=this._getFloat(n);this._height!=n&&(this._height=n,this.raisePropertyChanged("height"))},get_unit:function(){this._horizontalAnimation.get_unit()},set_unit:function(n){var t=this._horizontalAnimation.get_unit();t!=n&&(this._horizontalAnimation.set_unit(n),this._verticalAnimation.set_unit(n),this.raisePropertyChanged("unit"))}};$AA.ResizeAnimation.registerClass("Sys.Extended.UI.Animation.ResizeAnimation",$AA.ParallelAnimation);$AA.registerAnimation("resize",$AA.ResizeAnimation);$AA.ScaleAnimation=function(n,t,i,r,u,f,e,o){$AA.ScaleAnimation.initializeBase(this,[n,t,i]);this._scaleFactor=r!==undefined?r:1;this._unit=u!==undefined?u:"px";this._center=f;this._scaleFont=e;this._fontUnit=o!==undefined?o:"pt";this._element=null;this._initialHeight=null;this._initialWidth=null;this._initialTop=null;this._initialLeft=null;this._initialFontSize=null};$AA.ScaleAnimation.prototype={getAnimatedValue:function(n){return this.interpolate(1,this._scaleFactor,n)},onStart:function(){$AA.ScaleAnimation.callBaseMethod(this,"onStart");this._element=this.get_target();this._element&&(this._initialHeight=this._element.offsetHeight,this._initialWidth=this._element.offsetWidth,this._center&&(this._initialTop=this._element.offsetTop,this._initialLeft=this._element.offsetLeft),this._scaleFont&&(this._initialFontSize=parseFloat($common.getCurrentStyle(this._element,"fontSize"))))},setValue:function(n){var i,r,t;this._element&&(i=Math.round(this._initialWidth*n),r=Math.round(this._initialHeight*n),this._element.style.width=i+this._unit,this._element.style.height=r+this._unit,this._center&&(this._element.style.top=this._initialTop+Math.round((this._initialHeight-r)/2)+this._unit,this._element.style.left=this._initialLeft+Math.round((this._initialWidth-i)/2)+this._unit),this._scaleFont&&(t=this._initialFontSize*n,(this._fontUnit=="px"||this._fontUnit=="pt")&&(t=Math.round(t)),this._element.style.fontSize=t+this._fontUnit))},onEnd:function(){this._element=null;this._initialHeight=null;this._initialWidth=null;this._initialTop=null;this._initialLeft=null;this._initialFontSize=null;$AA.ScaleAnimation.callBaseMethod(this,"onEnd")},get_scaleFactor:function(){return this._scaleFactor},set_scaleFactor:function(n){n=this._getFloat(n);this._scaleFactor!=n&&(this._scaleFactor=n,this.raisePropertyChanged("scaleFactor"))},get_unit:function(){return this._unit},set_unit:function(n){this._unit!=n&&(this._unit=n,this.raisePropertyChanged("unit"))},get_center:function(){return this._center},set_center:function(n){n=this._getBoolean(n);this._center!=n&&(this._center=n,this.raisePropertyChanged("center"))},get_scaleFont:function(){return this._scaleFont},set_scaleFont:function(n){n=this._getBoolean(n);this._scaleFont!=n&&(this._scaleFont=n,this.raisePropertyChanged("scaleFont"))},get_fontUnit:function(){return this._fontUnit},set_fontUnit:function(n){this._fontUnit!=n&&(this._fontUnit=n,this.raisePropertyChanged("fontUnit"))}};$AA.ScaleAnimation.registerClass("Sys.Extended.UI.Animation.ScaleAnimation",$AA.Animation);$AA.registerAnimation("scale",$AA.ScaleAnimation);$AA.Action=function(n,t,i){$AA.Action.initializeBase(this,[n,t,i]);t===undefined&&this.set_duration(0)};$AA.Action.prototype={onEnd:function(){this.doAction();$AA.Action.callBaseMethod(this,"onEnd")},doAction:function(){throw Error.notImplemented();},getAnimatedValue:function(){},setValue:function(){}};$AA.Action.registerClass("Sys.Extended.UI.Animation.Action",$AA.Animation);$AA.registerAnimation("action",$AA.Action);$AA.EnableAction=function(n,t,i,r){$AA.EnableAction.initializeBase(this,[n,t,i]);this._enabled=r!==undefined?r:!0};$AA.EnableAction.prototype={doAction:function(){var n=this.get_target();n&&(n.disabled=!this._enabled)},get_enabled:function(){return this._enabled},set_enabled:function(n){n=this._getBoolean(n);this._enabled!=n&&(this._enabled=n,this.raisePropertyChanged("enabled"))}};$AA.EnableAction.registerClass("Sys.Extended.UI.Animation.EnableAction",$AA.Action);$AA.registerAnimation("enableAction",$AA.EnableAction);$AA.HideAction=function(n,t,i,r){$AA.HideAction.initializeBase(this,[n,t,i]);this._visible=r};$AA.HideAction.prototype={doAction:function(){var n=this.get_target();n&&$common.setVisible(n,this._visible)},get_visible:function(){return this._visible},set_visible:function(n){this._visible!=n&&(this._visible=n,this.raisePropertyChanged("visible"))}};$AA.HideAction.registerClass("Sys.Extended.UI.Animation.HideAction",$AA.Action);$AA.registerAnimation("hideAction",$AA.HideAction);$AA.StyleAction=function(n,t,i,r,u){$AA.StyleAction.initializeBase(this,[n,t,i]);this._attribute=r;this._value=u};$AA.StyleAction.prototype={doAction:function(){var n=this.get_target();n&&(n.style[this._attribute]=this._value)},get_attribute:function(){return this._attribute},set_attribute:function(n){this._attribute!=n&&(this._attribute=n,this.raisePropertyChanged("attribute"))},get_value:function(){return this._value},set_value:function(n){this._value!=n&&(this._value=n,this.raisePropertyChanged("value"))}};$AA.StyleAction.registerClass("Sys.Extended.UI.Animation.StyleAction",$AA.Action);$AA.registerAnimation("styleAction",$AA.StyleAction);$AA.OpacityAction=function(n,t,i,r){$AA.OpacityAction.initializeBase(this,[n,t,i]);this._opacity=r};$AA.OpacityAction.prototype={doAction:function(){var n=this.get_target();n&&$common.setElementOpacity(n,this._opacity)},get_opacity:function(){return this._opacity},set_opacity:function(n){n=this._getFloat(n);this._opacity!=n&&(this._opacity=n,this.raisePropertyChanged("opacity"))}};$AA.OpacityAction.registerClass("Sys.Extended.UI.Animation.OpacityAction",$AA.Action);$AA.registerAnimation("opacityAction",$AA.OpacityAction);$AA.ScriptAction=function(n,t,i,r){$AA.ScriptAction.initializeBase(this,[n,t,i]);this._script=r};$AA.ScriptAction.prototype={doAction:function(){try{eval(this._script)}catch(n){}},get_script:function(){return this._script},set_script:function(n){this._script!=n&&(this._script=n,this.raisePropertyChanged("script"))}};$AA.ScriptAction.registerClass("Sys.Extended.UI.Animation.ScriptAction",$AA.Action);$AA.registerAnimation("scriptAction",$AA.ScriptAction)}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedAnimations",["ExtendedCommon","ExtendedTimer"],n):n()}(),function(){function n(){var n=Sys.version;if(!n&&!Sys._versionChecked){Sys._versionChecked=!0;throw new Error("AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the ToolkitScriptManager in AjaxControlToolkit.dll.");}Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.BehaviorBase=function(n){Sys.Extended.UI.BehaviorBase.initializeBase(this,[n]);this._clientStateFieldID=null;this._pageRequestManager=null;this._partialUpdateBeginRequestHandler=null;this._partialUpdateEndRequestHandler=null};Sys.Extended.UI.BehaviorBase.prototype={initialize:function(){Sys.Extended.UI.BehaviorBase.callBaseMethod(this,"initialize")},dispose:function(){Sys.Extended.UI.BehaviorBase.callBaseMethod(this,"dispose");this._pageRequestManager&&(this._partialUpdateBeginRequestHandler&&(this._pageRequestManager.remove_beginRequest(this._partialUpdateBeginRequestHandler),this._partialUpdateBeginRequestHandler=null),this._partialUpdateEndRequestHandler&&(this._pageRequestManager.remove_endRequest(this._partialUpdateEndRequestHandler),this._partialUpdateEndRequestHandler=null),this._pageRequestManager=null)},get_ClientStateFieldID:function(){return this._clientStateFieldID},set_ClientStateFieldID:function(n){this._clientStateFieldID!=n&&(this._clientStateFieldID=n,this.raisePropertyChanged("ClientStateFieldID"))},get_ClientState:function(){if(this._clientStateFieldID){var n=document.getElementById(this._clientStateFieldID);if(n)return n.value}return null},set_ClientState:function(n){if(this._clientStateFieldID){var t=document.getElementById(this._clientStateFieldID);t&&(t.value=n)}},registerPartialUpdateEvents:function(){Sys&&Sys.WebForms&&Sys.WebForms.PageRequestManager&&(this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance(),this._pageRequestManager&&(this._partialUpdateBeginRequestHandler=Function.createDelegate(this,this._partialUpdateBeginRequest),this._pageRequestManager.add_beginRequest(this._partialUpdateBeginRequestHandler),this._partialUpdateEndRequestHandler=Function.createDelegate(this,this._partialUpdateEndRequest),this._pageRequestManager.add_endRequest(this._partialUpdateEndRequestHandler)))},_partialUpdateBeginRequest:function(){},_partialUpdateEndRequest:function(){}};Sys.Extended.UI.BehaviorBase.registerClass("Sys.Extended.UI.BehaviorBase",Sys.UI.Behavior);Sys.Extended.UI.DynamicPopulateBehaviorBase=function(n){Sys.Extended.UI.DynamicPopulateBehaviorBase.initializeBase(this,[n]);this._DynamicControlID=null;this._DynamicContextKey=null;this._DynamicServicePath=null;this._DynamicServiceMethod=null;this._cacheDynamicResults=!1;this._dynamicPopulateBehavior=null;this._populatingHandler=null;this._populatedHandler=null};Sys.Extended.UI.DynamicPopulateBehaviorBase.prototype={initialize:function(){Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(this,"initialize");this._populatingHandler=Function.createDelegate(this,this._onPopulating);this._populatedHandler=Function.createDelegate(this,this._onPopulated)},dispose:function(){this._populatedHandler&&(this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.remove_populated(this._populatedHandler),this._populatedHandler=null);this._populatingHandler&&(this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.remove_populating(this._populatingHandler),this._populatingHandler=null);this._dynamicPopulateBehavior&&(this._dynamicPopulateBehavior.dispose(),this._dynamicPopulateBehavior=null);Sys.Extended.UI.DynamicPopulateBehaviorBase.callBaseMethod(this,"dispose")},populate:function(n){this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.get_element()!=$get(this._DynamicControlID)&&(this._dynamicPopulateBehavior.dispose(),this._dynamicPopulateBehavior=null);!this._dynamicPopulateBehavior&&this._DynamicControlID&&this._DynamicServiceMethod&&(this._dynamicPopulateBehavior=$create(Sys.Extended.UI.DynamicPopulateBehavior,{id:this.get_id()+"_DynamicPopulateBehavior",ContextKey:this._DynamicContextKey,ServicePath:this._DynamicServicePath,ServiceMethod:this._DynamicServiceMethod,cacheDynamicResults:this._cacheDynamicResults},null,null,$get(this._DynamicControlID)),this._dynamicPopulateBehavior.add_populating(this._populatingHandler),this._dynamicPopulateBehavior.add_populated(this._populatedHandler));this._dynamicPopulateBehavior&&this._dynamicPopulateBehavior.populate(n?n:this._DynamicContextKey)},_onPopulating:function(n,t){this.raisePopulating(t)},_onPopulated:function(n,t){this.raisePopulated(t)},get_dynamicControlID:function(){return this._DynamicControlID},get_DynamicControlID:this.get_dynamicControlID,set_dynamicControlID:function(n){this._DynamicControlID!=n&&(this._DynamicControlID=n,this.raisePropertyChanged("dynamicControlID"),this.raisePropertyChanged("DynamicControlID"))},set_DynamicControlID:this.set_dynamicControlID,get_dynamicContextKey:function(){return this._DynamicContextKey},get_DynamicContextKey:this.get_dynamicContextKey,set_dynamicContextKey:function(n){this._DynamicContextKey!=n&&(this._DynamicContextKey=n,this.raisePropertyChanged("dynamicContextKey"),this.raisePropertyChanged("DynamicContextKey"))},set_DynamicContextKey:this.set_dynamicContextKey,get_dynamicServicePath:function(){return this._DynamicServicePath},get_DynamicServicePath:this.get_dynamicServicePath,set_dynamicServicePath:function(n){this._DynamicServicePath!=n&&(this._DynamicServicePath=n,this.raisePropertyChanged("dynamicServicePath"),this.raisePropertyChanged("DynamicServicePath"))},set_DynamicServicePath:this.set_dynamicServicePath,get_dynamicServiceMethod:function(){return this._DynamicServiceMethod},get_DynamicServiceMethod:this.get_dynamicServiceMethod,set_dynamicServiceMethod:function(n){this._DynamicServiceMethod!=n&&(this._DynamicServiceMethod=n,this.raisePropertyChanged("dynamicServiceMethod"),this.raisePropertyChanged("DynamicServiceMethod"))},set_DynamicServiceMethod:this.set_dynamicServiceMethod,get_cacheDynamicResults:function(){return this._cacheDynamicResults},set_cacheDynamicResults:function(n){this._cacheDynamicResults!=n&&(this._cacheDynamicResults=n,this.raisePropertyChanged("cacheDynamicResults"))},add_populated:function(n){this.get_events().addHandler("populated",n)},remove_populated:function(n){this.get_events().removeHandler("populated",n)},raisePopulated:function(n){var t=this.get_events().getHandler("populated");t&&t(this,n)},add_populating:function(n){this.get_events().addHandler("populating",n)},remove_populating:function(n){this.get_events().removeHandler("populating",n)},raisePopulating:function(n){var t=this.get_events().getHandler("populating");t&&t(this,n)}};Sys.Extended.UI.DynamicPopulateBehaviorBase.registerClass("Sys.Extended.UI.DynamicPopulateBehaviorBase",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.ControlBase=function(n){Sys.Extended.UI.ControlBase.initializeBase(this,[n]);this._clientStateField=null;this._callbackTarget=null;this._onsubmit$delegate=Function.createDelegate(this,this._onsubmit);this._oncomplete$delegate=Function.createDelegate(this,this._oncomplete);this._onerror$delegate=Function.createDelegate(this,this._onerror)};Sys.Extended.UI.ControlBase.__doPostBack=function(n,t){if(!Sys.WebForms.PageRequestManager.getInstance().get_isInAsyncPostBack())for(var i=0;i7&&Sys.Browser.documentMode!=0};Sys.Extended.UI.AccordionBehavior.prototype={initialize:function(){var t,i,n,r,u;for(Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"initialize"),this._headerClickHandler=Function.createDelegate(this,this._onHeaderClick),t=this.get_ClientState(),t!==null&&t!==""&&this._changeSelectedIndex(parseInt(t),!1,!0),i=this.get_element().childNodes,n={},n.value=0;n.value0&&this._changeSelectedIndex(0,!1,!0);this._initializeLayout()},_getNextDiv:function(n,t){for(var i=null;t.value=7,(!i||i&&n.height&&n.height.length>0)&&(n.height="auto"),(!i||i&&n.overflow&&n.overflow.length>0)&&(n.overflow="auto")):(this._addResizeHandler(),n.height=u.offsetHeight+"px",n.overflow="hidden"),t=0;t=0;t--)n=this._panes[t],n&&(n.header&&(n.header._index=null,$removeHandler(n.header,"click",this._headerClickHandler),n.header=null),n.content&&(n.content._original=null,n.content=null),this._panes[t]=null,delete this._panes[t]);this._panes=null;this._headerClickHandler=null;Sys.Extended.UI.AccordionBehavior.callBaseMethod(this,"dispose")},_disposeResizeHandler:function(){this._resizeHandler&&($removeHandler(window,"resize",this._resizeHandler),this._resizeHandler=null)},_disposeAnimations:function(){for(var n,t=0;t0&&(t=Math.min(t,r)))),t},_getTotalSize:function(n){var t=$common.getSize(n),i=$common.getMarginBox(n);return t.width+=i.horizontal,t.height+=i.vertical,t},_getGutterSize:function(n){var i={width:0,height:0},t;try{t=$common.getPaddingBox(n);i.width+=t.horizontal;i.height+=t.vertical}catch(r){}try{t=$common.getBorderBox(n);i.width+=t.horizontal;i.height+=t.vertical}catch(r){}return t=$common.getMarginBox(n),i.width+=t.horizontal,i.height+=t.vertical,i},add_selectedIndexChanging:function(n){this.get_events().addHandler("selectedIndexChanging",n)},remove_selectedIndexChanging:function(n){this.get_events().removeHandler("selectedIndexChanging",n)},raiseSelectedIndexChanging:function(n){var t=this.get_events().getHandler("selectedIndexChanging");t&&t(this,n)},add_selectedIndexChanged:function(n){this.get_events().addHandler("selectedIndexChanged",n)},remove_selectedIndexChanged:function(n){this.get_events().removeHandler("selectedIndexChanged",n)},raiseSelectedIndexChanged:function(n){var t=this.get_events().getHandler("selectedIndexChanged");t&&t(this,n)},get_Pane:function(n){return(n===undefined||n===null)&&(n=this._selectedIndex),this._panes&&n>=0&&ni&&(s=Math.ceil(o.size/i)),e={id:u.generateGuid(),value:r[f],type:u.getFileType(r[f]),uploaded:!1,slices:s},n.fileTypeIsValid(e.type)){if(!n.addFileToQueue(e))break}else n.confirmFileIsInvalid(e);t.inputFile.value=null};this.cancelUpload=function(){f&&f.abort();n.cancelUpload()};this.startUpload=function(){var i=n.getNextFile();i?(i._sliceIndex===0&&n.setPercent(0),$common.setVisible(t.progressBarContainer,!0),this.upload(i)):(n._currentFileId=null,n.setPercent(0),$common.setVisible(t.progressBarContainer,!1),n.done())};this.upload=function(r){var o,s;if(n._isUploading){$common.setVisible(t.progressBar,!0);n.setAsUploading(r);var f=r.get_inputElementValue(),a=r._fileName,h=r._slices&&r._slices>0,v=r._sliceIndex==0;h&&(o=r._sliceIndex*i,s=o+i,f=f.slice(o,s>f.size?f.size:s));var c=new FormData,l=n._currentFileId=r._id,u=new XMLHttpRequest,y=this,e=function(n){return function(t){n.call(y,l,t)}};u.upload.addEventListener("progress",e(this.onProgressHandler),!1);u.addEventListener("load",e(this.onUploadCompleteHandler),!1);u.addEventListener("error",e(this.onUploadFailedHandler),!1);u.addEventListener("abort",e(this.onUploadCanceledHandler),!1);u.open("POST",n._uploadUrl+"?contextKey="+n._contextKey+"&fileId="+l+"&fileName="+a+"&chunked="+(h?"true":"false")+"&firstChunk="+v+"&storeToAzure="+n.get_storeToAzure()+"&acn="+n.get_azureContainerName(),!0);c.append("act-file-data",f);u.send(c)}};this.onProgressHandler=function(t,i){if(n._isUploading&&i.lengthComputable){r=i.loaded;var u=n.getFileItem(t),f=u._slices,e=u._bytesUploaded+r,o=f-u._sliceIndex==1?e:i.total*f,s=f==0?(i.loaded*100/i.total).toFixed(2):(e/o*100).toFixed(2);n.setPercent(s)}};this.onUploadCompleteHandler=function(t){var e=this,i=n.getFileItem(t),f=i.get_inputElementValue();i._slices&&i._slices>0&&i._sliceIndex+10&&this._filesInQueue.length>=i?(alert(Sys.Extended.UI.Resources.AjaxFileUpload_MaxNumberOfFilesExceeded),!1):(t=new Sys.Extended.UI.AjaxFileUpload.Item(this.get_id(),n,Function.createDelegate(this,this.removeFileFromQueueHandler)),t.appendNodeTo(this._elements.queueContainer),t.setStatus("pending",Sys.Extended.UI.Resources.AjaxFileUpload_Pending),$common.setVisible(this._elements.queueContainer,!0),$common.setVisible(this._elements.uploadOrCancelButton,!0),this._filesInQueue.push(t),this._showFilesCount(),!0)},_showFilesCount:function(){var n=this._filesInQueue.length==0;this.setStatusMessage(n?Sys.Extended.UI.Resources.AjaxFileUpload_SelectFileToUpload:String.format(Sys.Extended.UI.Resources.AjaxFileUpload_FileInQueue,this._filesInQueue.length.toString()))},fileTypeIsValid:function(n){var i,t,r;if(!this._allowedFileTypes)return!0;for(i=this._allowedFileTypes.split(","),t=0;t=100&&(n="100");t.style.width=n+"%";$common.setText(t,String.format(Sys.Extended.UI.Resources.AjaxFileUpload_UploadedPercentage,n))},get_allowedFileTypes:function(){return this._allowedFileTypes},set_allowedFileTypes:function(n){this._allowedFileTypes=n},get_contextKey:function(){return this._contextKey},set_contextKey:function(n){this._contextKey=n},get_postBackUrl:function(){return this._postBackUrl},set_postBackUrl:function(n){this._postBackUrl=n},get_mode:function(){return this._mode},set_mode:function(n){this._mode=n},get_serverPollingSupport:function(){return this._serverPollingSupport},set_serverPollingSupport:function(n){this._serverPollingSupport=n},get_throbber:function(){return this._throbber},set_throbber:function(n){this._throbber=n},get_maximumNumberOfFiles:function(){return this._maximumNumberOfFiles},set_maximumNumberOfFiles:function(n){this._maximumNumberOfFiles=n},get_chunkSize:function(){return this._chunkSize},set_chunkSize:function(n){this._chunkSize=n},get_storeToAzure:function(){return this._storeToAzure},set_storeToAzure:function(n){this._storeToAzure=n},get_azureContainerName:function(){return this._azureContainerName},set_azureContainerName:function(n){this._azureContainerName=n},add_uploadStart:function(n){this.get_events().addHandler("uploadStart",n)},remove_uploadStart:function(n){this.get_events().removeHandler("uploadStart",n)},add_uploadComplete:function(n){this.get_events().addHandler("uploadComplete",n)},remove_uploadComplete:function(n){this.get_events().removeHandler("uploadComplete",n)},add_uploadCompleteAll:function(n){this.get_events().addHandler("uploadCompleteAll",n)},remove_uploadCompleteAll:function(n){this.get_events().removeHandler("uploadCompleteAll",n)},raiseUploadStart:function(n){var t=this.get_events().getHandler("uploadStart"),i;t&&(i=new Sys.Extended.UI.AjaxFileUploadStartEventArgs(n.FilesInQueue,n.ServerArguments),t(this,i))},raiseUploadComplete:function(n){var t=this.getCurrentFileItem(),i,r,u;if(!t||!n||n.FileId!==t._id)throw"Invalid finalizing upload server response.";this.setFileStatus(t,"uploaded",Sys.Extended.UI.Resources.AjaxFileUpload_Uploaded);this.setStatusMessage("Uploaded "+this._currentQueueIndex+" of "+this._filesInQueue.length+" file(s)");t._isUploaded=!0;t._isUploading=!1;t.hide();i=this.get_events().getHandler("uploadComplete");i&&(r=Array.indexOf(this._filesInQueue,t),u=new Sys.Extended.UI.AjaxFileUploadEventArgs(n.FileId,"Success",n.FileName,n.FileSize,n.ContentType,n.PostedUrl,r,this._filesInQueue.length),i(this,u))},raiseUploadCompleteAll:function(n){var t=this.get_events().getHandler("uploadCompleteAll"),i;t&&(i=new Sys.Extended.UI.AjaxFileUploadCompleteAllEventArgs(n.FilesInQueue,n.FilesUploaded,n.Reason,n.ServerArguments),t(this,i))},add_uploadError:function(n){this.get_events().addHandler("uploadError",n)},remove_uploadError:function(n){this.get_events().removeHandler("uploadError",n)},raiseUploadError:function(n){var t=this.get_events().getHandler("uploadError");t&&t(this,n);this._canceled=!1;this._isUploading=!1;this.enableControls(!0)},getCurrentFileItem:function(){return this.getFileItem(this._currentFileId)},getNextFile:function(){var n,t;if(!this._isUploading)return null;for(n=0;n=0?n.lastIndexOf("\\"):n.lastIndexOf("/"),t=n.substring(i);return(t.indexOf("\\")===0||t.indexOf("/")===0)&&(t=t.substring(1)),t}return""};this.getFileType=function(n){if(!n)throw"file must defined or not null";if(!n.value&&n.name)return n.name.substring(n.name.lastIndexOf(".")+1);if(n.value&&(n=n.value),typeof n!="string")throw"can't resolve file type.";return n.substring(n.lastIndexOf(".")+1)};this.sizeToString=function(n){if(!n||n<=0)return"0 Kb";var t=Math.floor(Math.log(n)/Math.log(1024));return(n/Math.pow(1024,Math.floor(t))).toFixed(2)+" "+["bytes","kb","MB","GB","TB","PB"][t]};this.checkHtml5BrowserSupport=function(){var n=Sys.Browser;return n.name=="Microsoft Internet Explorer"&&n.version<=10?!1:window.File&&window.FileReader&&window.FileList&&window.Blob&&(new XMLHttpRequest).upload}},Type.registerNamespace("Sys.Extended.UI.AjaxFileUpload"),Type.registerNamespace("AjaxFileUpload"),Sys.Extended.UI.AjaxFileUpload.Processor=function(n,t){var r=new Sys.Extended.UI.AjaxFileUpload.Utils,i=new XMLHttpRequest;this._iframe=null;this._iframeName=n.get_id()+"_uploadIframe";this._form=null;this.initialize=function(){this.attachEvents();this.createIFrame();this.createForm()};this.attachEvents=function(){this.onFileSelected$delegate=Function.createDelegate(this,this.onFileSelectedHandler);this.attachFileInputEvents(t.inputFile,!0);var r=this;i.onreadystatechange=function(){if(i.readyState==4&&i.status==200){var t=i.responseText;t&&(t=parseFloat(t).toFixed(2),n.setPercent(t));t<100&&setTimeout(function(){r.pollingServerProgress(!0)},500)}}};this.attachFileInputEvents=function(n,t){t?$addHandlers(n,{change:this.onFileSelected$delegate}):$common.removeHandlers(n,{change:this.onFileSelected$delegate})};this.onFileSelectedHandler=function(){var i={id:r.generateGuid(),value:t.inputFile,type:r.getFileType(t.inputFile.value)};n.fileTypeIsValid(i.type)?(n.addFileToQueue(i),this.createInputFileElement()):n.confirmFileIsInvalid(i)};this.createInputFileElement=function(){var i=t.inputFile,f,u;i.style.zIndex=-999;$common.setLocation(i,{x:-99999,y:-99999});this.attachFileInputEvents(i,!1);f=n.get_id()+"_file_"+r.generateGuid();u=$common.createElementFromTemplate({nodeName:"input",properties:{id:f,name:"act-file-data",type:"file",style:{zIndex:0,cursor:"pointer",position:"absolute"}}},i.parentNode);$common.setElementOpacity(u,0);this.attachFileInputEvents(u,!0);t.inputFile=u};this.startUpload=function(){var t=this._form,i=n.getNextFile(),r;if(!i){n._currentFileId=null;this.setThrobber(!1);n.done();return}for(n.setAsUploading(i),r=i.get_inputElementValue(),n._currentFileId=i._id,this.setThrobber(!0);t.firstChild;)t.removeChild(t.firstChild);r.name="act-file-data";t.appendChild(r);t.setAttribute("action",n._uploadUrl+"?contextKey="+n._contextKey+"&fileId="+n._currentFileId+"&fileName="+i._fileName+"&usePoll="+(n.get_serverPollingSupport()?"true":"false")+"&storeToAzure="+n.get_storeToAzure()+"&acn="+n.get_azureContainerName());t.submit()};this.cancelUpload=function(){var t=new XMLHttpRequest,r=this;i&&i.abort();t.open("POST","?contextKey="+n._contextKey+"&cancel=1&guid="+n._currentFileId,!0);t.onreadystatechange=function(){if(r.setThrobber(!1),t.readyState==4)if(t.status==200)n.cancelUpload();else{r.raiseUploadError(t);throw"Failed to cancel upload.";}};t.send(null)};this.createIFrame=function(){var t=this._iframeName,n=document.createElement("IFRAME");n.width="0";n.height="0";n.style.display="none";n.src="about:blank";n.id=t;n.name=t;n.security="restricted";document.body.appendChild(n);n.contentWindow.name=t;$addHandlers(n,{load:Function.createDelegate(this,this.onIFrameLoadedHandler)});this._iframe=n};this.onIFrameLoadedHandler=function(t){if(n._currentFileId)try{var i=this._iframe,r=null;if(i.contentDocument?r=i.contentDocument:i.contentWindow?r=i.contentWindow.document:i.document&&(r=i.document),r==null)throw"Document not initialized";n.doneAndUploadNextFile(n.getCurrentFileItem())}catch(t){if(!n._canceled||!(t.message&&(t.message.indexOf("Access is denied")>-1||t.message.indexOf("Permission denied")>-1))){this.raiseUploadError(t);throw t;}}};this.setThrobber=function(i){if(n.get_serverPollingSupport()){n.setPercent(0);$common.setVisible(t.progressBar,i?!0:!1);$common.setVisible(t.progressBarContainer,i?!0:!1);this.pollingServerProgress(i);return}n.get_throbber()!=null&&(n.get_throbber().style.display=i?"":"none")};this.pollingServerProgress=function(t){t&&n._currentFileId&&(i.open("GET","?contextKey="+n._contextKey+"&poll=1&guid="+n._currentFileId,!0),i.send(null))};this.createForm=function(){var t,i="___postForm"+n.get_id();try{t=document.createElement('
')}catch(r){t=document.createElement("form");t.setAttribute("id",i);t.setAttribute("method","post");t.setAttribute("target",this._iframe.id);t.setAttribute("enctype","multipart/form-data")}t.style.visibility="hidden";t.style.display="none";document.body.appendChild(t);this._form=t};this.raiseUploadError=function(t){n.raiseUploadError(t);n.setFileStatus(n._currentFileId,"error",Sys.Extended.UI.Resources.AjaxFileUpload_error);i&&i.abort();n._currentFileId=null}},Type.registerNamespace("Sys.Extended.UI.AjaxFileUpload"),Type.registerNamespace("AjaxFileUpload"),Sys.Extended.UI.AjaxFileUpload.Item=function(n,t,i){this._deleteButton=null;this._parentId=n;this._inputElementValue=t.value;this._id=t.id;this._slices=t.slices;this._sliceIndex=0;this._fileInfoContainer=null;this._fileStatusText=null;this._isUploaded=!1;this._isUploading=!1;this._fileSize=0;this._fileName="";this._fileType="";this._bytesUploaded=0;this._ui=this.initUI(i)},Sys.Extended.UI.AjaxFileUpload.Item.prototype={initUI:function(n){var c=this,t=this._inputElementValue,e=new Sys.Extended.UI.AjaxFileUpload.Utils,l=e.checkHtml5BrowserSupport(),i=this._id,r=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemContainer_"+i},cssClasses:["ajax__fileupload_fileItemInfo"]}),u=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileInfoContainer_"+i,style:{display:"inline-block"}}}),o=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemInfo_"+i},cssClasses:["ajax__fileupload_fileItemInfo"]}),s=$common.createElementFromTemplate({nodeName:"span",properties:{id:this._parentId+"_FileItemStatus_"+i},cssClasses:["uploadstatus"]}),f=$common.createElementFromTemplate({nodeName:"div",properties:{id:this._parentId+"_FileItemDeleteButton_"+i},cssClasses:["removeButton"]}),h;return this._fileName=e.getFileName(t),l?(this._fileSize=t.size,h=t.type?'('+t.type+")<\/span>":"",o.innerHTML=''+this._fileName+"<\/span> "+h+' - '+e.sizeToString(t.size)+"<\/span> ",this._fileType=t.type):(o.innerHTML=''+this._fileName+"<\/span>",this._fileType=e.getFileType(t)),u.appendChild(o),u.appendChild(s),$common.setText(f,Sys.Extended.UI.Resources.AjaxFileUpload_Remove),$addHandlers(f,{click:Function.createDelegate(this,function(){n(c)})}),Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<=8?(r.appendChild(f),r.appendChild(u)):(r.appendChild(u),r.appendChild(f)),this._fileInfoContainer=u,this._deleteButton=f,this._fileStatusText=s,r},setStatus:function(n,t){$common.setText(this._fileStatusText," ("+t+")");this._fileInfoContainer.setAttribute("class",n+"State")},disabled:function(n){this._deleteButton.disabled=n?"disabled":""},hide:function(){this._deleteButton.style.visibility="hidden"},destroy:function(){$common.removeElement(this._inputElementValue);$common.removeElement(this._deleteButton);$common.removeElement(this._ui)},get_inputElementValue:function(){return this._inputElementValue},appendNodeTo:function(n){n.appendChild(this._ui)},removeNodeFrom:function(n){n.removeChild(this._ui)}},function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.HorizontalSide=function(){throw Error.invalidOperation();};Sys.Extended.UI.HorizontalSide.prototype={Left:0,Center:1,Right:2};Sys.Extended.UI.HorizontalSide.registerEnum("Sys.Extended.UI.HorizontalSide",!1);Sys.Extended.UI.VerticalSide=function(){throw Error.invalidOperation();};Sys.Extended.UI.VerticalSide.prototype={Top:0,Middle:1,Bottom:2};Sys.Extended.UI.VerticalSide.registerEnum("Sys.Extended.UI.VerticalSide",!1);Sys.Extended.UI.AlwaysVisibleControlBehavior=function(n){Sys.Extended.UI.AlwaysVisibleControlBehavior.initializeBase(this,[n]);this._horizontalOffset=0;this._horizontalSide=Sys.Extended.UI.HorizontalSide.Left;this._verticalOffset=0;this._verticalSide=Sys.Extended.UI.VerticalSide.Top;this._scrollEffectDuration=.1;this._repositionHandler=null;this._animate=!1;this._animation=null};Sys.Extended.UI.AlwaysVisibleControlBehavior.prototype={initialize:function(){Sys.Extended.UI.AlwaysVisibleControlBehavior.callBaseMethod(this,"initialize");var n=this.get_element();if(!n)throw Error.invalidOperation(Sys.Extended.UI.Resources.AlwaysVisible_ElementRequired);this._repositionHandler=Function.createDelegate(this,this._reposition);Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7&&(this._animate=!0);this._animate?(this._animation=new Sys.Extended.UI.Animation.MoveAnimation(n,this._scrollEffectDuration,25,0,0,!1,"px"),n.style.position="absolute"):n.style.position="fixed";$addHandler(window,"resize",this._repositionHandler);this._animate&&$addHandler(window,"scroll",this._repositionHandler);this._reposition()},dispose:function(){this._repositionHandler&&(this._animate&&$removeHandler(window,"scroll",this._repositionHandler),$removeHandler(window,"resize",this._repositionHandler),this._repositionHandler=null);this._animation&&(this._animation.dispose(),this._animation=null);Sys.Extended.UI.AlwaysVisibleControlBehavior.callBaseMethod(this,"dispose")},_reposition:function(){var i=this.get_element(),n,t;if(i){this.raiseRepositioning(Sys.EventArgs.Empty);n=0;t=0;this._animate&&(document.documentElement&&document.documentElement.scrollTop?(n=document.documentElement.scrollLeft,t=document.documentElement.scrollTop):(n=document.body.scrollLeft,t=document.body.scrollTop));var r=$common.getClientBounds(),u=r.width,f=r.height;switch(this._horizontalSide){case Sys.Extended.UI.HorizontalSide.Center:n=Math.max(0,Math.floor(n+u/2-i.offsetWidth/2-this._horizontalOffset));break;case Sys.Extended.UI.HorizontalSide.Right:n=Math.max(0,n+u-i.offsetWidth-this._horizontalOffset);break;case Sys.Extended.UI.HorizontalSide.Left:default:n+=this._horizontalOffset}switch(this._verticalSide){case Sys.Extended.UI.VerticalSide.Middle:t=Math.max(0,Math.floor(t+f/2-i.offsetHeight/2-this._verticalOffset));break;case Sys.Extended.UI.VerticalSide.Bottom:t=Math.max(0,t+f-i.offsetHeight-this._verticalOffset);break;case Sys.Extended.UI.VerticalSide.Top:default:t+=this._verticalOffset}this._animate&&this._animation?(this._animation.stop(),this._animation.set_horizontal(n),this._animation.set_vertical(t),this._animation.play()):(i.style.left=n+"px",i.style.top=t+"px");this.raiseRepositioned(Sys.EventArgs.Empty)}},get_HorizontalOffset:function(){return this._horizontalOffset},set_HorizontalOffset:function(n){this._horizontalOffset!=n&&(this._horizontalOffset=n,this._reposition(),this.raisePropertyChanged("HorizontalOffset"))},get_HorizontalSide:function(){return this._horizontalSide},set_HorizontalSide:function(n){this._horizontalSide!=n&&(this._horizontalSide=n,this._reposition(),this.raisePropertyChanged("HorizontalSide"))},get_VerticalOffset:function(){return this._verticalOffset},set_VerticalOffset:function(n){this._verticalOffset!=n&&(this._verticalOffset=n,this._reposition(),this.raisePropertyChanged("VerticalOffset"))},get_VerticalSide:function(){return this._verticalSide},set_VerticalSide:function(n){this._verticalSide!=n&&(this._verticalSide=n,this._reposition(),this.raisePropertyChanged("VerticalSide"))},get_ScrollEffectDuration:function(){return this._scrollEffectDuration},set_ScrollEffectDuration:function(n){this._scrollEffectDuration!=n&&(this._scrollEffectDuration=n,this._animation&&this._animation.set_duration(n),this.raisePropertyChanged("ScrollEffectDuration"))},get_useAnimation:function(){return this._animate},set_useAnimation:function(n){n|=Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version<7;this._animate!=n&&(this._animate=n,this.raisePropertyChanged("useAnimation"))},add_repositioning:function(n){this.get_events().addHandler("repositioning",n)},remove_repositioning:function(n){this.get_events().removeHandler("repositioning",n)},raiseRepositioning:function(n){var t=this.get_events().getHandler("repositioning");t&&t(this,n)},add_repositioned:function(n){this.get_events().addHandler("repositioned",n)},remove_repositioned:function(n){this.get_events().removeHandler("repositioned",n)},raiseRepositioned:function(n){var t=this.get_events().getHandler("repositioned");t&&t(this,n)}};Sys.Extended.UI.AlwaysVisibleControlBehavior.registerClass("Sys.Extended.UI.AlwaysVisibleControlBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.AlwaysVisibleControlBehavior,{name:"alwaysVisible"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedAlwaysVisible",["ExtendedAnimations","ExtendedBase"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI.Animation");Sys.Extended.UI.Animation.AnimationBehavior=function(n){Sys.Extended.UI.Animation.AnimationBehavior.initializeBase(this,[n]);this._onLoad=null;this._onClick=null;this._onMouseOver=null;this._onMouseOut=null;this._onHoverOver=null;this._onHoverOut=null;this._onClickHandler=null;this._onMouseOverHandler=null;this._onMouseOutHandler=null};Sys.Extended.UI.Animation.AnimationBehavior.prototype={initialize:function(){Sys.Extended.UI.Animation.AnimationBehavior.callBaseMethod(this,"initialize");var n=this.get_element();n&&(this._onClickHandler=Function.createDelegate(this,this.OnClick),$addHandler(n,"click",this._onClickHandler),this._onMouseOverHandler=Function.createDelegate(this,this.OnMouseOver),$addHandler(n,"mouseover",this._onMouseOverHandler),this._onMouseOutHandler=Function.createDelegate(this,this.OnMouseOut),$addHandler(n,"mouseout",this._onMouseOutHandler))},dispose:function(){var n=this.get_element();n&&(this._onClickHandler&&($removeHandler(n,"click",this._onClickHandler),this._onClickHandler=null),this._onMouseOverHandler&&($removeHandler(n,"mouseover",this._onMouseOverHandler),this._onMouseOverHandler=null),this._onMouseOutHandler&&($removeHandler(n,"mouseout",this._onMouseOutHandler),this._onMouseOutHandler=null));this._onLoad=null;this._onClick=null;this._onMouseOver=null;this._onMouseOut=null;this._onHoverOver=null;this._onHoverOut=null;Sys.Extended.UI.Animation.AnimationBehavior.callBaseMethod(this,"dispose")},get_OnLoad:function(){return this._onLoad?this._onLoad.get_json():null},set_OnLoad:function(n){this._onLoad||(this._onLoad=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onLoad.initialize());this._onLoad.set_json(n);this.raisePropertyChanged("OnLoad");this._onLoad.play()},get_OnLoadBehavior:function(){return this._onLoad},get_OnClick:function(){return this._onClick?this._onClick.get_json():null},set_OnClick:function(n){this._onClick||(this._onClick=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onClick.initialize());this._onClick.set_json(n);this.raisePropertyChanged("OnClick")},get_OnClickBehavior:function(){return this._onClick},OnClick:function(){this._onClick&&this._onClick.play()},get_OnMouseOver:function(){return this._onMouseOver?this._onMouseOver.get_json():null},set_OnMouseOver:function(n){this._onMouseOver||(this._onMouseOver=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onMouseOver.initialize());this._onMouseOver.set_json(n);this.raisePropertyChanged("OnMouseOver")},get_OnMouseOverBehavior:function(){return this._onMouseOver},OnMouseOver:function(){this._mouseHasEntered||(this._onMouseOver&&this._onMouseOver.play(),this._onHoverOver&&(this._onHoverOut&&this._onHoverOut.quit(),this._onHoverOver.play()),this._mouseHasEntered=!0)},get_OnMouseOut:function(){return this._onMouseOut?this._onMouseOut.get_json():null},set_OnMouseOut:function(n){this._onMouseOut||(this._onMouseOut=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onMouseOut.initialize());this._onMouseOut.set_json(n);this.raisePropertyChanged("OnMouseOut")},get_OnMouseOutBehavior:function(){return this._onMouseOut},OnMouseOut:function(n){var r=n.rawEvent,t=this.get_element(),u=n.target,i;u.nodeName===t.nodeName&&(i=r.relatedTarget||r.toElement,t==i||this._isChild(t,i)||(this._mouseHasEntered=!1,this._onMouseOut&&this._onMouseOut.play(),this._onHoverOut&&(this._onHoverOver&&this._onHoverOver.quit(),this._onHoverOut.play())))},_isChild:function(n,t){for(var i=document.body;t&&n!=t&&i!=t;)try{t=t.parentNode}catch(r){return!1}return n==t},get_OnHoverOver:function(){return this._onHoverOver?this._onHoverOver.get_json():null},set_OnHoverOver:function(n){this._onHoverOver||(this._onHoverOver=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onHoverOver.initialize());this._onHoverOver.set_json(n);this.raisePropertyChanged("OnHoverOver")},get_OnHoverOverBehavior:function(){return this._onHoverOver},get_OnHoverOut:function(){return this._onHoverOut?this._onHoverOut.get_json():null},set_OnHoverOut:function(n){this._onHoverOut||(this._onHoverOut=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onHoverOut.initialize());this._onHoverOut.set_json(n);this.raisePropertyChanged("OnHoverOut")},get_OnHoverOutBehavior:function(){return this._onHoverOut}};Sys.Extended.UI.Animation.AnimationBehavior.registerClass("Sys.Extended.UI.Animation.AnimationBehavior",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.Animation.GenericAnimationBehavior=function(n){Sys.Extended.UI.Animation.GenericAnimationBehavior.initializeBase(this,[n]);this._json=null;this._animation=null};Sys.Extended.UI.Animation.GenericAnimationBehavior.prototype={dispose:function(){this.disposeAnimation();Sys.Extended.UI.Animation.GenericAnimationBehavior.callBaseMethod(this,"dispose")},disposeAnimation:function(){this._animation&&this._animation.dispose();this._animation=null},play:function(){this._animation&&!this._animation.get_isPlaying()&&(this.stop(),this._animation.play())},stop:function(){this._animation&&this._animation.get_isPlaying()&&this._animation.stop(!0)},quit:function(){this._animation&&this._animation.get_isPlaying()&&this._animation.stop(!1)},get_json:function(){return this._json},set_json:function(n){if(this._json!=n){this._json=n;this.raisePropertyChanged("json");this.disposeAnimation();var t=this.get_element();t&&(this._animation=Sys.Extended.UI.Animation.buildAnimation(this._json,t),this._animation&&this._animation.initialize(),this.raisePropertyChanged("animation"))}},get_animation:function(){return this._animation}};Sys.Extended.UI.Animation.GenericAnimationBehavior.registerClass("Sys.Extended.UI.Animation.GenericAnimationBehavior",Sys.Extended.UI.BehaviorBase)}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedAnimationBehavior",["ExtendedAnimations","ExtendedBase"],n):n()}(),Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.AreaChart=function(n){Sys.Extended.UI.AreaChart.initializeBase(this,[n]);var t=this.get_id();t=t.replace("_ctl00","");this._parentDiv=document.getElementById(t+"__ParentDiv");this._chartWidth="300";this._chartHeight="300";this._chartTitle="";this._categoriesAxis="";this._series=null;this._chartType=Sys.Extended.UI.AreaChartType.Basic;this._theme="AreaChart";this._valueAxisLines=9;this._chartTitleColor="";this._valueAxisLineColor="";this._categoryAxisLineColor="";this._baseLineColor="";this.yMax=0;this.yMin=0;this.roundedTickRange=0;this.startX=0;this.startY=0;this.endX=0;this.endY=0;this.xInterval=0;this.yInterval=0;this.arrXAxis;this.arrXAxisLength=0;this.charLength=3.5;this.arrCombinedData=null},Sys.Extended.UI.AreaChart.prototype={initialize:function(){if(Sys.Extended.UI.AreaChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Current version of browser does not support SVG.";this._valueAxisLines==0&&(this._valueAxisLines=9);this.generateAreaChart()},dispose:function(){Sys.Extended.UI.AreaChart.callBaseMethod(this,"dispose")},generateAreaChart:function(){this.arrXAxis=this._categoriesAxis.split(",");this.arrXAxisLength=this.arrXAxis.length;this.calculateMinMaxValues();this.calculateInterval();this.calculateValueAxis();var n=this.initializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLines();n=n+this.drawBackgroundVerticalLines();n=n+this.drawBaseLines();n=n+this.drawLegendArea();n=n+this.drawAxisValues();this._parentDiv.innerHTML=n;this.drawAreas()},calculateInterval:function(){this.startX=this._chartWidth/10+.5;this.endX=parseInt(this._chartWidth)-4.5;this.startY=this.yMin>=0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*24/100)+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*12/100)/2+.5;this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValues:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.AreaChartType.Basic)for(n=0;nthis.yMax&&(this.yMax=u),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t);this.startX=this.startX+(this.roundedTickRange*10*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLines:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._categoryAxisLineColor);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._categoryAxisLineColor);return t},drawBackgroundVerticalLines:function(){var t="",n;for(this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength),n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLines:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),t=0;t<\/path>',parseInt(this._chartWidth)-5-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0)for(n=n+String.format('<\/path>',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);return n},drawLegendArea:function(){for(var t="",o=parseInt(this._chartHeight)*82/100+5,i=7.5,u=5,c=0,r,l,n=0;nparseInt(this._chartWidth)/2&&(r=r/2,l=!0);t=t+"";t=t+String.format('<\/path>',parseInt(this._chartWidth)/2-r/2,o,Math.round(parseInt(this._chartWidth)/2+c*5)+Math.round((i+u*2)*this._series.length),Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)*40/100-r/2+i+u,s=e,f=parseInt(this._chartWidth)*40/100-r/2,h=f;for(n=0;n<\/path>',f,o+7.5,f+i,o+15,n+1,this._series[n].AreaColor),t=t+String.format('{2}<\/text>',e,o+15,this._series[n].Name),this._series[n].Name.length>10?(h=f+this._series[n].Name.length*5+i+u*2,s=e+this._series[n].Name.length*5+i+u*2):(h=h+this._series[n].Name.length*6+i+u*2,s=s+this._series[n].Name.length*6+i+u*2);return t+"<\/g>"},drawAxisValues:function(){for(var t="",i=0,n=0;n{2}<\/text>',Math.round(this.startX+this.xInterval*10*n/10+this.xInterval/2-i),this.startY+Math.round(this.yInterval*65/100),this.arrXAxis[n]);for(n=0;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-15,this.startY-this.yInterval*10*n/10+3.5,this.roundedTickRange*10*n/10);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('-{2}<\/text>',this.startX-i-19,this.startY+this.yInterval*10*n/10,this.roundedTickRange*10*n/10);return t},initializeSVG:function(){var n=String.format('',this._theme);return n=n+String.format('',this._chartWidth,this._chartHeight),n=n+"",n=n+'',n=n+'<\/stop>',n=n+'<\/stop>',n=n+'<\/stop><\/linearGradient>',n=n+"<\/defs>",n=n+String.format('<\/path>',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('<\/path>',this._chartWidth,this._chartHeight),n+String.format('<\/path>',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawAreas:function(){for(var r="",t=[],e=[],o=[],u=[],n,f,s,i=0;i0?r+String.format('{2}<\/text>',this.startX+this.xInterval*i+this.xInterval/2-t[n].toString().length*this.charLength,this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))-7.5,t[n]):r+String.format('{2}<\/text>',this.startX+this.xInterval*i+this.xInterval/2-t[n].toString().length*this.charLength,this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))+7.5,t[n]);e[n]=this.startX+this.xInterval*i+this.xInterval/2;o[n]=this.startY-Math.round(t[n]*(this.yInterval/this.roundedTickRange))}this._parentDiv.innerHTML=this._parentDiv.innerHTML+r;s=this._parentDiv.innerHTML;this.drawArea(this,u,0)},drawArea:function(n,t,i){n._parentDiv.innerHTML=n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/path><\/g><\/svg>',t[i],i+1,n._series[i].AreaColor);i++;i0){if(t[0]=="error"){this._onError(t[1]);return}u=parseInt(t[0])}t.length>1&&(i=t[1]);this.get_completeBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor());this.raiseUploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,u,i,null))},_onload:function(n){var l=!0,f=this,i=document.getElementById(this._formName),t,a,u,e,v,o,r,s,h,y,c,n;try{if(t=this._iframe.contentWindow.document,t==null||t.location==null){n={message:Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem};throw n;}else if(t.location.href=="about:blank"){if(this._removeTimer(),this.get_uploadingBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_uploadingBackColor():this._inputFile.style.backgroundColor=this.get_uploadingBackColor()),a=this._onStart(this._inputFile.value),a)return u=this._postBackUrl,u+=u.indexOf("?")===-1?"?":"&",i.action=u+"AsyncFileUploadID="+this.get_element().id+"&rnd="+Math.random().toString().replace(/\./g,""),i.target=this._iframeName,l=!1,this.setThrobber(!0),setTimeout(function(){i.submit();f._waitTimer=setTimeout(function(){f._wait()},100)},0),!0}else{if(t.body.innerHTML=="")return!0;if(e=t.getElementById(this.get_element().id),o="",e!=null){if(r=e.innerHTML.split("------"),r.length>0){if(r[0]=="error"){n={message:r[1]};throw n;}v=parseInt(r[0])}r.length>1&&(o=r[1])}else{s=Sys.Extended.UI.Resources.AsyncFileUpload_UnknownServerError;function w(n,t){return s=t,""}if(t.body.innerHTML.replace(/Exception\]:([^\n\r]+)[\n\r]/,w),h=Sys.Extended.UI.Resources.AsyncFileUpload_ServerResponseError+": '"+s+"'",y=confirm(h+"\n\n"+Sys.Extended.UI.Resources.AsyncFileUpload_ConfirmToSeeErrorPage),y){c=window.open("","NotFoundInAnswer","toolbar=0,status=1,scrollbars=1,resizable=1,width=600,height=400");function p(){try{c.document||setTimeout(p,100)}catch(i){return}var n=c.document;n.open();n.write(""+t.body.innerHTML+"<\/body>");n.close()}setTimeout(p,0)}n={message:h};throw n;}this._removeTimer();i.target="_top";i.action=this._postBackUrl;this.get_completeBackColor()!=""&&(this._innerTB!=null?this._innerTB.style.backgroundColor=this.get_completeBackColor():this._inputFile.style.backgroundColor=this.get_completeBackColor());this.setThrobber(!1);this.raiseUploadComplete(new Sys.Extended.UI.AsyncFileUploadEventArgs(this._inputFile.value,v,o,null))}}catch(b){this._removeTimer();i.target="_top";i.action=this._postBackUrl;this._onError(b.message)}finally{l&&setTimeout(function(){f._removeIframe()},100)}},_wait:function(){var n;if(this._waitTimer!=null){n=this;try{var t=this._iframe.contentWindow.document,i=t.location,r=i.href;this._waitTimer=setTimeout(function(){n._wait()},100)}catch(u){setTimeout(function(){n._removeIframe()},100);setTimeout(function(){n._onError(Sys.Extended.UI.Resources.AsyncFileUpload_UploadingProblem)},0);this._waitTimer=null}}}},Sys.Extended.UI.AsyncFileUpload.registerClass("Sys.Extended.UI.AsyncFileUpload",Sys.Extended.UI.ControlBase),Sys.Extended.UI.AsyncFileUploadEventArgs=function(n,t,i,r){if(arguments.length!=4)throw Error.parameterCount();Sys.Extended.UI.AsyncFileUploadEventArgs.initializeBase(this);this._fileName=n;this._length=t;this._contentType=i;this._errorMessage=r},Sys.Extended.UI.AsyncFileUploadEventArgs.prototype={get_fileName:function(){var n=this._fileName.lastIndexOf("/"),t=this._fileName.lastIndexOf("\\");return this._fileName.substr((n>t?n:t)+1)},get_path:function(){return this._fileName},get_length:function(){return this._length},get_contentType:function(){return this._contentType},get_errorMessage:function(){return this._errorMessage}},Sys.Extended.UI.AsyncFileUploadEventArgs.registerClass("Sys.Extended.UI.AsyncFileUploadEventArgs",Sys.EventArgs),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.PopupBehavior=function(n){Sys.Extended.UI.PopupBehavior.initializeBase(this,[n]);this._x=0;this._y=0;this._positioningMode=Sys.Extended.UI.PositioningMode.Absolute;this._parentElement=null;this._parentElementID=null;this._moveHandler=null;this._firstPopup=!0;this._originalParent=null;this._visible=!1;this._onShow=null;this._onHide=null;this._onShowEndedHandler=Function.createDelegate(this,this._onShowEnded);this._onHideEndedHandler=Function.createDelegate(this,this._onHideEnded)};Sys.Extended.UI.PopupBehavior.prototype={initialize:function(){Sys.Extended.UI.PopupBehavior.callBaseMethod(this,"initialize");this._hidePopup();this.get_element().style.position="absolute"},dispose:function(){var n=this.get_element();n&&(this._visible&&this.hide(),this._originalParent&&(n.parentNode.removeChild(n),this._originalParent.appendChild(n),this._originalParent=null),n._hideWindowedElementsIFrame=null);this._parentElement=null;this._onShow&&this._onShow.get_animation()&&this._onShow.get_animation().remove_ended(this._onShowEndedHandler);this._onShow=null;this._onHide&&this._onHide.get_animation()&&this._onHide.get_animation().remove_ended(this._onHideEndedHandler);this._onHide=null;Sys.Extended.UI.PopupBehavior.callBaseMethod(this,"dispose")},show:function(){var n,t;this._visible||(n=new Sys.CancelEventArgs,this.raiseShowing(n),n.get_cancel())||(this._visible=!0,t=this.get_element(),$common.setVisible(t,!0),this.setupPopup(),this._onShow?($common.setVisible(t,!1),this.onShow()):this.raiseShown(Sys.EventArgs.Empty))},hide:function(){if(this._visible){var n=new Sys.CancelEventArgs;(this.raiseHiding(n),n.get_cancel())||(this._visible=!1,this._onHide?this.onHide():(this._hidePopup(),this._hideCleanup()))}},getBounds:function(){var i=this.get_element(),s=i.offsetParent||document.documentElement,f,n,e,r,u,o,t;this.get_parentElement()?(n=$common.getBounds(this.get_parentElement()),e=$common.getLocation(s),f={x:n.x-e.x,y:n.y-e.y}):(n=$common.getBounds(s),f={x:0,y:0});r=i.offsetWidth-(i.clientLeft?i.clientLeft*2:0);u=i.offsetHeight-(i.clientTop?i.clientTop*2:0);this._firstpopup&&(i.style.width=r+"px",this._firstpopup=!1);switch(this._positioningMode){case Sys.Extended.UI.PositioningMode.Center:t={x:Math.round(n.width/2-r/2),y:Math.round(n.height/2-u/2),altX:Math.round(n.width/2-r/2),altY:Math.round(n.height/2-u/2)};break;case Sys.Extended.UI.PositioningMode.BottomLeft:t={x:0,y:n.height,altX:n.width-r,altY:0-u};break;case Sys.Extended.UI.PositioningMode.BottomRight:t={x:n.width-r,y:n.height,altX:0,altY:0-u};break;case Sys.Extended.UI.PositioningMode.TopLeft:t={x:0,y:-i.offsetHeight,altX:n.width-r,altY:n.height};break;case Sys.Extended.UI.PositioningMode.TopRight:t={x:n.width-r,y:-i.offsetHeight,altX:0,altY:n.height};break;case Sys.Extended.UI.PositioningMode.Right:t={x:n.width,y:0,altX:-i.offsetWidth,altY:n.height-u};break;case Sys.Extended.UI.PositioningMode.Left:t={x:-i.offsetWidth,y:0,altX:n.width,altY:n.height-u};break;default:t={x:0,y:0,altX:0,altY:0}}return t.x+=this._x+f.x,t.altX+=this._x+f.x,t.y+=this._y+f.y,t.altY+=this._y+f.y,o=this._verifyPosition(t,r,u,n),new Sys.UI.Bounds(o.x,o.y,r,u)},_verifyPosition:function(n,t,i){var u=0,f=0,r=this._getWindowBounds(),e;return n.x+t>r.x+r.width||n.xn.altX&&(u=n.x):r.width+r.x-n.altXn.altX?Math.abs(r.x-n.x):r.x-n.x,er.y+r.height||n.yi-r.height-r.y+n.y&&(f=n.y):r.height+r.y-n.altY<\/html>';",n.style.position="absolute",n.style.display="none",n.scrolling="no",n.frameBorder="0",n.tabIndex="-1",n.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)",t.parentNode.insertBefore(n,t),t._hideWindowedElementsIFrame=n,this._moveHandler=Function.createDelegate(this,this._onMove),Sys.UI.DomEvent.addHandler(t,"move",this._moveHandler)),$common.setBounds(n,$common.getBounds(t)),n.style.left=t.style.left,n.style.top=t.style.top,n.style.display=t.style.display,t.currentStyle&&t.currentStyle.zIndex?n.style.zIndex=t.currentStyle.zIndex:t.style.zIndex&&(n.style.zIndex=t.style.zIndex))},setupPopup:function(){var n=this.get_element(),t=this.getBounds();$common.setLocation(n,t);this.adjustPopupPosition(t);n.style.zIndex=1e3;this.addBackgroundIFrame()},_hidePopup:function(){var n=this.get_element();$common.setVisible(n,!1);n.originalWidth&&(n.style.width=n.originalWidth+"px",n.originalWidth=null)},_hideCleanup:function(){var t=this.get_element(),n;this._moveHandler&&(Sys.UI.DomEvent.removeHandler(t,"move",this._moveHandler),this._moveHandler=null);Sys.Browser.agent===Sys.Browser.InternetExplorer&&(n=t._hideWindowedElementsIFrame,n&&(n.style.display="none"));this.raiseHidden(Sys.EventArgs.Empty)},_onMove:function(){var n=this.get_element();n._hideWindowedElementsIFrame&&(n.parentNode.insertBefore(n._hideWindowedElementsIFrame,n),n._hideWindowedElementsIFrame.style.top=n.style.top,n._hideWindowedElementsIFrame.style.left=n.style.left)},get_onShow:function(){return this._onShow?this._onShow.get_json():null},set_onShow:function(n){this._onShow||(this._onShow=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onShow.initialize());this._onShow.set_json(n);var t=this._onShow.get_animation();t&&t.add_ended(this._onShowEndedHandler);this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._onShow},onShow:function(){this._onShow&&(this._onHide&&this._onHide.quit(),this._onShow.play())},_onShowEnded:function(){this.adjustPopupPosition();this.addBackgroundIFrame();this.raiseShown(Sys.EventArgs.Empty)},get_onHide:function(){return this._onHide?this._onHide.get_json():null},set_onHide:function(n){this._onHide||(this._onHide=new Sys.Extended.UI.Animation.GenericAnimationBehavior(this.get_element()),this._onHide.initialize());this._onHide.set_json(n);var t=this._onHide.get_animation();t&&t.add_ended(this._onHideEndedHandler);this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._onHide},onHide:function(){this._onHide&&(this._onShow&&this._onShow.quit(),this._onHide.play())},_onHideEnded:function(){this._hideCleanup()},get_parentElement:function(){return!this._parentElement&&this._parentElementID&&this.set_parentElement($get(this._parentElementID)),this._parentElement},set_parentElement:function(n){this._parentElement=n;this.raisePropertyChanged("parentElement")},get_parentElementID:function(){return this._parentElement?this._parentElement.id:this._parentElementID},set_parentElementID:function(n){this._parentElementID=n;this.get_isInitialized()&&this.set_parentElement($get(n))},get_positioningMode:function(){return this._positioningMode},set_positioningMode:function(n){this._positioningMode=n;this.raisePropertyChanged("positioningMode")},get_x:function(){return this._x},set_x:function(n){n!=this._x&&(this._x=n,this._visible&&this.setupPopup(),this.raisePropertyChanged("x"))},get_y:function(){return this._y},set_y:function(n){n!=this._y&&(this._y=n,this._visible&&this.setupPopup(),this.raisePropertyChanged("y"))},get_visible:function(){return this._visible},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raiseShowing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},add_shown:function(n){this.get_events().addHandler("shown",n)},remove_shown:function(n){this.get_events().removeHandler("shown",n)},raiseShown:function(n){var t=this.get_events().getHandler("shown");t&&t(this,n)},add_hiding:function(n){this.get_events().addHandler("hiding",n)},remove_hiding:function(n){this.get_events().removeHandler("hiding",n)},raiseHiding:function(n){var t=this.get_events().getHandler("hiding");t&&t(this,n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raiseHidden:function(n){var t=this.get_events().getHandler("hidden");t&&t(this,n)}};Sys.Extended.UI.PopupBehavior.registerClass("Sys.Extended.UI.PopupBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.PopupBehavior,{name:"popup"});Sys.Extended.UI.PositioningMode=function(){throw Error.invalidOperation();};Sys.Extended.UI.PositioningMode.prototype={Absolute:0,Center:1,BottomLeft:2,BottomRight:3,TopLeft:4,TopRight:5,Right:6,Left:7};Sys.Extended.UI.PositioningMode.registerEnum("Sys.Extended.UI.PositioningMode")}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedPopup",["ExtendedAnimations","ExtendedAnimationBehavior"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.AutoCompleteBehavior=function(n){Sys.Extended.UI.AutoCompleteBehavior.initializeBase(this,[n]);this._servicePath=null;this._serviceMethod=null;this._contextKey=null;this._useContextKey=!1;this._minimumPrefixLength=3;this._completionSetCount=10;this._completionInterval=1e3;this._completionListElementID=null;this._completionListElement=null;this._textColor="windowtext";this._textBackground="window";this._popupBehavior=null;this._popupBehaviorHiddenHandler=null;this._onShowJson=null;this._onHideJson=null;this._timer=null;this._cache=null;this._currentPrefix=null;this._selectIndex=-1;this._focusHandler=null;this._blurHandler=null;this._bodyClickHandler=null;this._completionListBlurHandler=null;this._keyDownHandler=null;this._mouseDownHandler=null;this._mouseUpHandler=null;this._mouseOverHandler=null;this._tickHandler=null;this._enableCaching=!0;this._flyoutHasFocus=!1;this._textBoxHasFocus=!1;this._completionListCssClass=null;this._completionListItemCssClass=null;this._highlightedItemCssClass=null;this._delimiterCharacters=null;this._firstRowSelected=!1;this._showOnlyCurrentWordInCompletionListItem=!1;this._webRequest=null};Sys.Extended.UI.AutoCompleteBehavior.prototype={initialize:function(){Sys.Extended.UI.AutoCompleteBehavior.callBaseMethod(this,"initialize");$common.prepareHiddenElementForATDeviceUpdate();this._popupBehaviorHiddenHandler=Function.createDelegate(this,this._popupHidden);this._tickHandler=Function.createDelegate(this,this._onTimerTick);this._focusHandler=Function.createDelegate(this,this._onGotFocus);this._blurHandler=Function.createDelegate(this,this._onLostFocus);this._keyDownHandler=Function.createDelegate(this,this._onKeyDown);this._mouseDownHandler=Function.createDelegate(this,this._onListMouseDown);this._mouseUpHandler=Function.createDelegate(this,this._onListMouseUp);this._mouseOverHandler=Function.createDelegate(this,this._onListMouseOver);this._completionListBlurHandler=Function.createDelegate(this,this._onCompletionListBlur);this._bodyClickHandler=Function.createDelegate(this,this._onCompletionListBlur);this._timer=new Sys.Timer;this.initializeTimer(this._timer);var n=this.get_element();this.initializeTextBox(n);this._completionListElementID!==null&&(this._completionListElement=$get(this._completionListElementID));this._completionListElement==null&&(this._completionListElement=document.createElement("ul"),this._completionListElement.id=this.get_id()+"_completionListElem",Sys.Browser.agent===Sys.Browser.Safari?document.body.appendChild(this._completionListElement):n.parentNode.insertBefore(this._completionListElement,n.nextSibling));this.initializeCompletionList(this._completionListElement);this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"PopupBehavior",parentElement:n,positioningMode:Sys.Extended.UI.PositioningMode.BottomLeft},null,null,this._completionListElement);this._popupBehavior.add_hidden(this._popupBehaviorHiddenHandler);this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson)},dispose:function(){this._onShowJson=null;this._onHideJson=null;this._popupBehavior&&(this._popupBehaviorHiddenHandler&&this._popupBehavior.remove_hidden(this._popupBehaviorHiddenHandler),this._popupBehavior.dispose(),this._popupBehavior=null);this._timer&&(this._timer.dispose(),this._timer=null);var n=this.get_element();n&&($removeHandler(n,"focus",this._focusHandler),$removeHandler(n,"blur",this._blurHandler),$removeHandler(n,"keydown",this._keyDownHandler),$removeHandler(this._completionListElement,"blur",this._completionListBlurHandler),$removeHandler(this._completionListElement,"mousedown",this._mouseDownHandler),$removeHandler(this._completionListElement,"mouseup",this._mouseUpHandler),$removeHandler(this._completionListElement,"mouseover",this._mouseOverHandler));this._bodyClickHandler&&($removeHandler(document.body,"click",this._bodyClickHandler),this._bodyClickHandler=null);this._popupBehaviorHiddenHandler=null;this._tickHandler=null;this._focusHandler=null;this._blurHandler=null;this._keyDownHandler=null;this._completionListBlurHandler=null;this._mouseDownHandler=null;this._mouseUpHandler=null;this._mouseOverHandler=null;Sys.Extended.UI.AutoCompleteBehavior.callBaseMethod(this,"dispose")},initializeTimer:function(n){n.set_interval(this._completionInterval);n.add_tick(this._tickHandler)},initializeTextBox:function(n){n.autocomplete="off";$addHandler(n,"focus",this._focusHandler);$addHandler(n,"blur",this._blurHandler);$addHandler(n,"keydown",this._keyDownHandler)},initializeCompletionList:function(n){if(this._completionListCssClass)Sys.UI.DomElement.addCssClass(n,this._completionListCssClass);else{var t=n.style;t.textAlign="left";t.visibility="hidden";t.cursor="default";t.listStyle="none";t.padding="0px";t.margin="0px! important";Sys.Browser.agent===Sys.Browser.Safari?(t.border="solid 1px gray",t.backgroundColor="white",t.color="black"):(t.border="solid 1px buttonshadow",t.backgroundColor=this._textBackground,t.color=this._textColor)}$addHandler(n,"mousedown",this._mouseDownHandler);$addHandler(n,"mouseup",this._mouseUpHandler);$addHandler(n,"mouseover",this._mouseOverHandler);$addHandler(n,"blur",this._completionListBlurHandler);$addHandler(document.body,"click",this._bodyClickHandler)},_currentCompletionWord:function(){var u=this.get_element(),t=u.value,r=t,n,i;return this.get_isMultiWord()&&(n=this._getCurrentWordStartIndex(),i=this._getCurrentWordEndIndex(n),r=i<=n?t.substring(n):t.substring(n,i)),r},_getCursorIndex:function(){return this.get_element().selectionStart},_getCurrentWordStartIndex:function(){for(var u=this.get_element(),f=u.value.substring(0,this._getCursorIndex()),n=0,t=-1,i,r=0;rt&&(t=i);return n=t,n>=this._getCursorIndex()&&(n=0),n<0?0:n+1},_getCurrentWordEndIndex:function(n){for(var u=this.get_element(),f=u.value.substring(n),t=0,i,r=0;r0&&(i0&&(f=r.substring(0,t));u>t&&(e=r.substring(u));i=f+n+e}return i},_hideCompletionList:function(){var n=new Sys.CancelEventArgs;(this.raiseHiding(n),n.get_cancel())||this.hidePopup()},showPopup:function(){this._popupBehavior.show();this.raiseShown(Sys.EventArgs.Empty)},hidePopup:function(){this._popupBehavior?this._popupBehavior.hide():this._popupHidden()},_popupHidden:function(){this._completionListElement.innerHTML="";this._selectIndex=-1;this._flyoutHasFocus=!1;this.raiseHidden(Sys.EventArgs.Empty)},_highlightItem:function(n){for(var r=this._completionListElement.childNodes,t,i=0;i0&&(this._selectIndex--,this._handleScroll(this._completionListElement.childNodes[this._selectIndex],this._selectIndex),this._highlightItem(this._completionListElement.childNodes[this._selectIndex]),n.stopPropagation(),n.preventDefault()):t===Sys.UI.Key.down?this._selectIndex=0&&(i.scrollTop+=r.height*t-(i.clientHeight+i.scrollTop)+r.height);r.height*(u-(t+1))-(i.scrollHeight-i.scrollTop)>=0&&(i.scrollTop-=r.height*(u-(t+1))-(i.scrollHeight-i.scrollTop)+r.height);i.scrollTop%r.height!=0&&(r.height*(t+1)-(i.clientHeight+i.scrollTop)>=0?i.scrollTop-=i.scrollTop%r.height:i.scrollTop+=r.height-i.scrollTop%r.height)},_handleFlyoutFocus:function(){this._textBoxHasFocus||this._flyoutHasFocus||(this._webRequest&&(this._webRequest.get_executor().abort(),this._webRequest=null),this._hideCompletionList())},_onLostFocus:function(){this._textBoxHasFocus=!1;this._timer.set_enabled(!1);window.setTimeout(Function.createDelegate(this,this._handleFlyoutFocus),500)},_onMethodComplete:function(n,t){this._webRequest=null;this._update(t,n,!0)},_onMethodFailed:function(){this._webRequest=null},_onTimerTick:function(n,t){var i,t,r;if(this._timer.set_enabled(!1),this._servicePath&&this._serviceMethod){if(i=this._currentCompletionWord(),i.trim().length0&&f-r>c-l?u{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLinesForColumnType();n=n+this.drawBackgroundVerticalLinesForColumnType();n=n+this.drawBaseLinesForColumnType();n=n+this.drawLegendArea();n=n+this.drawAxisValuesForColumnType();n=n+this.drawBarsForColumnType();n=n+"<\/svg>";this._parentDiv.innerHTML=n},calculateIntervalForColumnType:function(){this.startX=this._chartWidth/10+.5;this.endX=parseInt(this._chartWidth)-4.5;this.startY=this.yMin>=0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*24/100)+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*12/100)/2+.5;this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValuesForColumnType:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.BarChartType.Column)for(n=0;nthis.yMax&&(this.yMax=u),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t);this.startX=this.startX+(this.roundedTickRange*10*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLinesForColumnType:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._categoryAxisLineColor);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._categoryAxisLineColor);return t},drawBackgroundVerticalLinesForColumnType:function(){var t="",n;for(this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength),n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLinesForColumnType:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),t=0;t<\/path>',parseInt(this._chartWidth)-5-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0)for(n=n+String.format('<\/path>',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);return n},drawAxisValuesForColumnType:function(){for(var t="",i=0,n=0;n{2}<\/text>',Math.round(this.startX+this.xInterval*10*n/10+this.xInterval/2-i),this.startY+Math.round(this.yInterval*65/100),this.arrXAxis[n]);for(n=0;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-15,this.startY-this.yInterval*10*n/10+3.5,this.roundedTickRange*10*n/10);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)i=(this.roundedTickRange*10*n/10).toString().length*5.5,t=t+String.format('-{2}<\/text>',this.startX-i-19,this.startY+this.yInterval*10*n/10,this.roundedTickRange*10*n/10);return t},drawBarsForColumnType:function(){var i="",o=this._series.length,e=this.xInterval/10,r,s,t,u,f,n;for(r=this._chartType==Sys.Extended.UI.BarChartType.Column?Math.round((this.xInterval*80/100-e*o)/o):Math.round(this.xInterval*80/100),s="",t=0;t",this._chartType==Sys.Extended.UI.BarChartType.Column)for(n=0;n',this.startX+this.xInterval*t+this.xInterval*15/100+(e+r)*n,this.startX+this.xInterval*t+this.xInterval*15/100+(e+r)*n+r,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*t+this.xInterval*12.5/100+(e+r)*n,this.startX+this.xInterval*t+this.xInterval*12.5/100+(e+r)*n+r,this.startY,this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor),i=this.yVal>0?i+String.format('{2}<\/text>',this.startX+this.xInterval*t+this.xInterval/5+(e+r)*n+r/10-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))-7.5,this.yVal):i+String.format('{2}<\/text>',this.startX+this.xInterval*t+this.xInterval/5+(e+r)*n+r/10-Math.round(this.yVal.toString().length*this.charLength/2),this.startY-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))+7.5,this.yVal);else for(u=this.startY,f=this.startY,n=0;n0?i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100,this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100+r,u,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100,this.startX+this.xInterval*10*t/10+this.xInterval*7.5/100+r,f,f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):this.yVal>0?i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval/20,this.startX+this.xInterval*10*t/10+this.xInterval/20+r,u,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor):i+String.format('',this.startX+this.xInterval*10*t/10+this.xInterval/20,this.startX+this.xInterval*10*t/10+this.xInterval/20+r,f,f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)),n+1,this._series[n].BarColor),this.yVal>0?(i=i+String.format('{2}<\/text>',this.startX+this.xInterval*10*t/10+this.xInterval*30/100+r/10,u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)/2),this.yVal),u=u-Math.round(this.yVal*(this.yInterval/this.roundedTickRange))):(i=i+String.format('{2}<\/text>',this.startX+this.xInterval*10*t/10+this.xInterval*30/100+r/10,f+Math.round(Math.abs(this.yVal)*(this.yInterval/this.roundedTickRange)/2),this.yVal),f=f-Math.round(this.yVal*(this.yInterval/this.roundedTickRange)));i=i+"<\/g>"}return i},initializeSVG:function(){var n=String.format('',this._theme);return n=n+String.format('',this._chartWidth,this._chartHeight),n=n+"",n=n+'',n=n+'<\/stop>',n=n+'<\/stop>',n=n+'<\/stop><\/linearGradient>',n=n+"<\/defs>",n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('',this._chartWidth,this._chartHeight),n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawLegendArea:function(){for(var i="",o=parseInt(this._chartHeight)*84/100+5,r=7.5,u=5,l=0,t,c,n=0;nparseInt(this._chartWidth)/2&&(t=t/2,c=!0);i=i+"";i=i+String.format('<\/path>',Math.round(parseInt(this._chartWidth)/2-t/2),o,Math.round(parseInt(this._chartWidth)/2+t/2),Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)*40/100-t/2+r+u,s=e,f=parseInt(this._chartWidth)*40/100-t/2,h=f;for(n=0;n<\/path>',f,o+7.5,f+r,o+15,n+1,this._series[n].BarColor),i=i+String.format('{2}<\/text>',e,o+15,this._series[n].Name),this._series[n].Name.length>10?(h=f+this._series[n].Name.length*5+r+u*2,s=e+this._series[n].Name.length*5+r+u*2):(h=h+this._series[n].Name.length*6+r+u*2,s=s+this._series[n].Name.length*6+r+u*2);return i+"<\/g>"},generateBarChart:function(){this.arrYAxis=this._categoriesAxis.split(",");this.arrYAxisLength=this.arrYAxis.length;this.calculateMinMaxValuesForBarType();this.calculateIntervalForBarType();this.calculateValueAxisForBarType();var n=this.initializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLinesForBarType();n=n+this.drawBackgroundVerticalLinesForBarType();n=n+this.drawBaseLinesForBarType();n=n+this.drawLegendArea();n=n+this.drawAxisValuesForBarType();n=n+this.drawBarsForBarType();n=n+"<\/svg>";this._parentDiv.innerHTML=n},calculateIntervalForBarType:function(){this.startY=Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/5)+.5;this.endY=parseInt(this._chartHeight)*8/100+5;this.endX=parseInt(this._chartWidth)-10+.5;this.startX=this.xMin>=0?this._chartWidth*15/100+.5:Math.round(parseInt(this._chartWidth)/2)+.5;this.xInterval=Math.round((this.endX-this.startX)/this._valueAxisLines)},calculateMinMaxValuesForBarType:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.BarChartType.Bar)for(n=0;nthis.xMax&&(this.xMax=u),i=0?this.xMax:this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t)},drawBackgroundVerticalLinesForBarType:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);if(this.xMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.startY-this.yInterval*this.arrYAxisLength,this._categoryAxisLineColor);return t},drawBackgroundHorizontalLinesForBarType:function(){var t="",n;for(this.yInterval=Math.round((this.startY-this.endY)/this.arrYAxisLength),n=0;n<=this.arrYAxisLength;n++)t=t+String.format('<\/path>',this.startX,this.startX+this.xInterval*this._valueAxisLines,this.startY-this.yInterval*n,this._valueAxisLineColor);if(this.xMin<0)for(n=0;n<=this.arrYAxisLength;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY-this.yInterval*n,this._valueAxisLineColor);return t},drawBaseLinesForBarType:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startX-4,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.endX,this.startY,this._baseLineColor),t=0;t<\/path>',this.startX,this.startX-4,this.startY-this.yInterval*t,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX+this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0)for(n=n+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);return n},drawAxisValuesForBarType:function(){for(var t="",i=0,n=0;n{2}<\/text>',this.startX-this.xInterval*15/100-i,Math.round(this.startY-this.yInterval*(n+1)+this.yInterval*60/100),this.arrYAxis[n]);for(n=0;n<=this._valueAxisLines;n++)t=t+String.format('{2}<\/text>',this.startX+this.xInterval*n-(this.roundedTickRange*n).toString().length*this.charLength,this.startY+this.yInterval*35/100,this.roundedTickRange*n);if(this.xMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('-{2}<\/text>',this.startX-this.xInterval*n-(this.roundedTickRange*n).toString().length*this.charLength,this.startY+this.yInterval*35/100,this.roundedTickRange*n);return t},drawBarsForBarType:function(){for(var i="",o=this._series.length,e=this.yInterval/10,r=this._chartType==Sys.Extended.UI.BarChartType.Bar?Math.round((this.yInterval*80/100-e*o)/o):Math.round(this.yInterval*80/100),u,f,n,t=0;t",this._chartType==Sys.Extended.UI.BarChartType.Bar)for(n=0;n',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*15/100-(e+r)*n,this.startY-this.yInterval*t-this.yInterval*15/100-(e+r)*n-r,n+1,this._series[n].BarColor):i+String.format('',this.startX,this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*12.5/100-(e+r)*n,this.startY-this.yInterval*t-this.yInterval*12.5/100-(e+r)*n-r,n+1,this._series[n].BarColor),i=this.xVal>0?i+String.format('{2}<\/text>',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))+this.xVal.toString().length*this.charLength,this.startY-this.yInterval*t-this.yInterval/5-(e+r)*n-r/10,this.xVal):i+String.format('{2}<\/text>',this.startX+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))-(this.xVal.toString().length+1)*this.charLength-5,this.startY-this.yInterval*t-this.yInterval/5-(e+r)*n-r/10,this.xVal);else for(u=this.startX,f=this.startX,n=0;n0?i+String.format('',u,u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval/10,this.startY-this.yInterval*t-this.xInterval/10-r,n+1,this._series[n].BarColor):i+String.format('',f,f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval/10,this.startY-this.yInterval*t-this.xInterval/10-r,n+1,this._series[n].BarColor):this.xVal>0?i+String.format('',u,u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*7.55/100,this.startY-this.yInterval*t-this.xInterval*7.5/100-r,n+1,this._series[n].BarColor):i+String.format('',f,f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)),this.startY-this.yInterval*t-this.yInterval*7.55/100,this.startY-this.yInterval*t-this.xInterval*7.5/100-r,n+1,this._series[n].BarColor),this.xVal>0?(i=i+String.format('{2}<\/text>',u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*t-this.yInterval*30/100-r/10,this.xVal),u=u+Math.round(this.xVal*(this.xInterval/this.roundedTickRange))):(i=i+String.format('{2}<\/text>',f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)/2),this.startY-this.yInterval*t-this.yInterval*30/100-r/10,this.xVal),f=f+Math.round(this.xVal*(this.xInterval/this.roundedTickRange)));i=i+"<\/g>"}return i},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(n){this._chartWidth=n},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(n){this._chartHeight=n},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(n){this._chartTitle=n},get_categoriesAxis:function(){return this._categoriesAxis},set_categoriesAxis:function(n){this._categoriesAxis=n},get_ClientSeries:function(){return this._series},set_ClientSeries:function(n){this._series=n},get_chartType:function(){return this._chartType},set_chartType:function(n){this._chartType=n},get_theme:function(){return this._theme},set_theme:function(n){this._theme=n},get_valueAxisLines:function(){return this._valueAxisLines},set_valueAxisLines:function(n){this._valueAxisLines=n},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(n){this._chartTitleColor=n},get_valueAxisLineColor:function(){return this._valueAxisLineColor},set_valueAxisLineColor:function(n){this._valueAxisLineColor=n},get_categoryAxisLineColor:function(){return this._categoryAxisLineColor},set_categoryAxisLineColor:function(n){this._categoryAxisLineColor=n},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(n){this._baseLineColor=n}},Sys.Extended.UI.BarChart.registerClass("Sys.Extended.UI.BarChart",Sys.Extended.UI.ControlBase),Sys.registerComponent(Sys.Extended.UI.BarChart,{name:"BarChart",parameters:[{name:"ClientSeries",type:"BarChartSeries[]"}]}),Sys.Extended.UI.BarChartType=function(){throw Error.invalidOperation();},Sys.Extended.UI.BarChartType.prototype={Column:0,Bar:1,StackedColumn:2,StackedBar:3},Sys.Extended.UI.BarChartType.registerEnum("Sys.Extended.UI.BarChartType",!1),Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.BubbleChart=function(n){Sys.Extended.UI.BubbleChart.initializeBase(this,[n]);var t=this.get_id();t=t.replace("_ctl00","");this._parentDiv=document.getElementById(t+"__ParentDiv");this._chartWidth="300";this._chartHeight="200";this._chartTitle="";this._bubbleChartClientValues=null;this._theme="BubbleChart";this._yAxisLines=6;this._xAxisLines=6;this._bubbleSizes=5;this._chartTitleColor="";this._yAxisLineColor="";this._xAxisLineColor="";this._baseLineColor="";this._tooltipBackgroundColor="#ffffff";this._tooltipFontColor="#0E426C";this._tooltipBorderColor="#B85B3E";this._xAxisLabel="";this._yAxisLabel="";this._bubbleLabel="";this._axislabelFontColor="#000000";this.yMax=0;this.yMin=0;this.xMax=0;this.xMin=0;this.dataMax=0;this.dataMin=0;this.yRoundedIntervalLabelSize=0;this.xRoundedIntervalLabelSize=0;this.roundedBubbleSize=0;this.startX=0;this.startY=0;this.endX=0;this.endY=0;this.xInterval=0;this.yInterval=0;this.charLength=3.5;this._divTooltip=null},Sys.Extended.UI.BubbleChart.prototype={initialize:function(){if(Sys.Extended.UI.BubbleChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Current version of browser does not support SVG.";this._yAxisLines==0&&(this._yAxisLines=6);this._xAxisLines==0&&(this._xAxisLines=6);this._bubbleSizes==0&&(this._bubbleSizes=5);this.generateTooltipDiv();this.generateBubbleChart()},dispose:function(){Sys.Extended.UI.BubbleChart.callBaseMethod(this,"dispose")},generateTooltipDiv:function(){this._divTooltip=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_tooltipDiv",style:{position:"absolute",backgroundColor:this._tooltipBackgroundColor,borderStyle:"solid",borderWidth:"5px",borderColor:this._tooltipBorderColor,left:"0px",top:"0px",color:this._tooltipFontColor,visibility:"hidden",zIndex:"10000",padding:"10px"}}},this._parentDiv)},generateBubbleChart:function(){this.calculateMinMaxValues();this.calculateBubbleSize();this.calculateAxisValues();var n=this.intializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);this.calculateIntervals();n=n+this.drawBackgroundHorizontalLines();n=n+this.drawBackgroundVerticalLines();n=n+this.drawBaseLines();n=n+this.drawAxisValues();this._parentDiv.innerHTML=this._parentDiv.innerHTML+n;this.drawBubbles(this,0)},intializeSVG:function(){var n=String.format('',this._theme);return n=String.format('',this._chartWidth,this._chartHeight,parseFloat(this._chartWidth)*.99,parseFloat(this._chartHeight)*.99),n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('',this._chartWidth,parseInt(this._chartHeight)-5),n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawBubbles:function(n,t){n._parentDiv.innerHTML=n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle><\/svg>',n.startX+Math.round(parseFloat(n._bubbleChartClientValues[t].X)/n.xRoundedIntervalLabelSize*n.xInterval),n.startY+Math.round(-1*parseFloat(n._bubbleChartClientValues[t].Y)/n.yRoundedIntervalLabelSize*n.yInterval),Math.round(parseFloat(n._bubbleChartClientValues[t].Data)/n.roundedBubbleSize*n._bubbleSizes),n._bubbleChartClientValues[t].BubbleColor,t+1,n._bubbleChartClientValues[t].Category,n._bubbleChartClientValues[t].Data,n._bubbleLabel);t++;tthis.dataMax&&(this.dataMax=parseFloat(this._bubbleChartClientValues[n].Data)),parseFloat(this._bubbleChartClientValues[n].Data)this.xMax&&(this.xMax=parseFloat(this._bubbleChartClientValues[n].X)),parseFloat(this._bubbleChartClientValues[n].Data)this.yMax&&(this.yMax=parseFloat(this._bubbleChartClientValues[n].Y)),parseFloat(this._bubbleChartClientValues[n].Y)Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin):this.yMax;n=i/(this._yAxisLines-1);n<1?this.yRoundedIntervalLabelSize=n.toFixed(1):(x=Math.ceil(Math.log(n)/Math.log(10)-1),pow10x=Math.pow(10,x),this.yRoundedIntervalLabelSize=Math.ceil(n/pow10x)*pow10x);r=this.xMin<0?this.xMax>Math.abs(this.xMin)?this.xMax:Math.abs(this.xMin):this.xMax;t=r/(this._xAxisLines-1);n<1?this.xRoundedIntervalLabelSize=t.toFixed(1):(x=Math.ceil(Math.log(t)/Math.log(10)-1),pow10x=Math.pow(10,x),this.xRoundedIntervalLabelSize=Math.ceil(t/pow10x)*pow10x)},calculateIntervals:function(){this.endX=parseFloat(this._chartWidth)-parseFloat(this._chartWidth)/20;this.startX=this.xMin<0?Math.round(parseFloat(this._chartWidth)+parseFloat(this._chartWidth)/10)/2+.5:parseFloat(this._chartWidth)/5+.5;this.xInterval=this.xMin<0?(this.endX-this.startX)/this._xAxisLines:Math.round((this.endX-this.startX)/this._xAxisLines);this.startY=this.yMin<0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/20)/2+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)/5)+.5;this.yInterval=this.startY/(this._yAxisLines+1);this.endY=this.startY-this.yInterval*this._yAxisLines},drawBackgroundHorizontalLines:function(){for(var t="",n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._xAxisLineColor);if(this.yMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._xAxisLineColor);if(this.xMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY-this.yInterval*n,this._xAxisLineColor);if(this.xMin<0&&this.yMin<0)for(n=1;n<=this._yAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY+this.yInterval*n,this._xAxisLineColor);return t},drawBackgroundVerticalLines:function(){for(var t="",n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.endY,this._yAxisLineColor);if(this.xMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.endY,this._yAxisLineColor);if(this.yMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX+this.xInterval*n,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);if(this.xMin<0&&this.yMin<0)for(n=1;n<=this._xAxisLines;n++)t=t+String.format('<\/path>',this.startX-this.xInterval*n,this.startY,this.startY+this.yInterval*this._yAxisLines,this._yAxisLineColor);return t},drawBaseLines:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.endY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startX+4,this._baseLineColor),t=0;t<=this._yAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0){for(t=1;t<=this._yAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);n=n+String.format('<\/path>',this.startX-this.xInterval*this._xAxisLines,this.startY,this.startY+4,this._baseLineColor);n=n+String.format('<\/path>',this.startX,this.startY,this.startY+this.yInterval*this._yAxisLines,this._baseLineColor)}for(t=0;t<=this._xAxisLines;t++)n=n+String.format('<\/path>',this.startX+this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);if(this.xMin<0){for(t=1;t<=this._xAxisLines;t++)n=n+String.format('<\/path>',this.startX-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);n=n+String.format('<\/path>',this.startX,this.startX-this.xInterval*this._xAxisLines,this.startY,this._baseLineColor)}return n},drawAxisValues:function(){for(var t="",i=0,r,n=1;n<=this._yAxisLines;n++)i=(this.yRoundedIntervalLabelSize*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',this.startX-i-10,this.startY-this.yInterval*n+4,this.yRoundedIntervalLabelSize*10*n/10);if(this.yMin<0)for(n=1;n<=this._yAxisLines;n++)i=(this.yRoundedIntervalLabelSize*10*n/10).toString().length*5.5+5.5,t=t+String.format('-{2}<\/text>',this.startX-i-10,this.startY+this.yInterval*n+4,this.yRoundedIntervalLabelSize*10*n/10);for(n=1;n<=this._xAxisLines;n++)i=(this.xRoundedIntervalLabelSize*10*n/10).toString().length*5.5,t=t+String.format('{2}<\/text>',Math.round(this.startX+this.xInterval*n-i/2),this.startY+Math.round(this.yInterval/4)+5,this.xRoundedIntervalLabelSize*10*n/10);if(this.xMin<0)for(n=1;n<=this._xAxisLines;n++)i=(this.xRoundedIntervalLabelSize*10*n/10).toString().length*5.5+5.5,t=t+String.format('-{2}<\/text>',Math.round(this.startX-this.xInterval*n-i/2),this.startY+Math.round(this.yInterval/4)+5,this.xRoundedIntervalLabelSize*10*n/10);return r=this.yMin<0?Math.round(this.startY+this.yInterval*this._yAxisLines-(this.startY-this.yInterval*this._yAxisLines))/2:Math.round((this.startY-this.endY)/2),t=t+String.format('{2}<\/text>',Math.round(parseFloat(this._chartWidth)/20),r+this._yAxisLabel.toString().length*this.charLength,this._yAxisLabel,this._axislabelFontColor),t+String.format('{2}<\/text>',Math.round(parseInt(this._chartWidth)/2-this._xAxisLabel.toString().length*this.charLength/2),Math.round(parseInt(this._chartHeight)*90/100+5),this._xAxisLabel,this._axislabelFontColor)},get_chartWidth:function(){return this._chartWidth},set_chartWidth:function(n){this._chartWidth=n},get_chartHeight:function(){return this._chartHeight},set_chartHeight:function(n){this._chartHeight=n},get_chartTitle:function(){return this._chartTitle},set_chartTitle:function(n){this._chartTitle=n},get_BubbleChartClientValues:function(){return this._bubbleChartClientValues},set_BubbleChartClientValues:function(n){this._bubbleChartClientValues=n},get_theme:function(){return this._theme},set_theme:function(n){this._theme=n},get_yAxisLines:function(){return this._yAxisLines},set_yAxisLines:function(n){this._yAxisLines=n},get_xAxisLines:function(){return this._xAxisLines},set_xAxisLines:function(n){this._xAxisLines=n},get_chartTitleColor:function(){return this._chartTitleColor},set_chartTitleColor:function(n){this._chartTitleColor=n},get_yAxisLineColor:function(){return this._yAxisLineColor},set_yAxisLineColor:function(n){this._yAxisLineColor=n},get_xAxisLineColor:function(){return this._xAxisLineColor},set_xAxisLineColor:function(n){this._xAxisLineColor=n},get_bubbleSizes:function(){return this._bubbleSizes},set_bubbleSizes:function(n){this._bubbleSizes=n},get_baseLineColor:function(){return this._baseLineColor},set_baseLineColor:function(n){this._baseLineColor=n},get_tooltipBackgroundColor:function(){return this.tooltipBackgroundColor},set_tooltipBackgroundColor:function(n){this.tooltipBackgroundColor=n},get_tooltipFontColor:function(){return this._tooltipFontColor},set_tooltipFontColor:function(n){this._tooltipFontColor=n},get_tooltipBorderColor:function(){return this._tooltipBorderColor},set_tooltipBorderColor:function(n){this._tooltipBorderColor=n},get_xAxisLabel:function(){return this._xAxisLabel},set_xAxisLabel:function(n){this._xAxisLabel=n},get_yAxisLabel:function(){return this._yAxisLabel},set_yAxisLabel:function(n){this._yAxisLabel=n},get_bubbleLabel:function(){return this._bubbleLabel},set_bubbleLabel:function(n){this._bubbleLabel=n},get_axislabelFontColor:function(){return this._axislabelFontColor},set_axislabelFontColor:function(n){this._axislabelFontColor=n}},Sys.Extended.UI.BubbleChart.registerClass("Sys.Extended.UI.BubbleChart",Sys.Extended.UI.ControlBase),Sys.registerComponent(Sys.Extended.UI.BubbleChart,{name:"BubbleChart",parameters:[{name:"BubbleChartClientValues",type:"BubbleChartValue[]"}]}),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.TimeSpan=function(){if(arguments.length==0)this._ctor$0.apply(this,arguments);else if(arguments.length==1)this._ctor$1.apply(this,arguments);else if(arguments.length==3)this._ctor$2.apply(this,arguments);else if(arguments.length==4)this._ctor$3.apply(this,arguments);else if(arguments.length==5)this._ctor$4.apply(this,arguments);else throw Error.parameterCount();};Sys.Extended.UI.TimeSpan.prototype={_ctor$0:function(){this._ticks=0},_ctor$1:function(n){this._ctor$0();this._ticks=n},_ctor$2:function(n,t,i){this._ctor$0();this._ticks=n*Sys.Extended.UI.TimeSpan.TicksPerHour+t*Sys.Extended.UI.TimeSpan.TicksPerMinute+i*Sys.Extended.UI.TimeSpan.TicksPerSecond},_ctor$3:function(n,t,i,r){this._ctor$0();this._ticks=n*Sys.Extended.UI.TimeSpan.TicksPerDay+t*Sys.Extended.UI.TimeSpan.TicksPerHour+i*Sys.Extended.UI.TimeSpan.TicksPerMinute+r*Sys.Extended.UI.TimeSpan.TicksPerSecond},_ctor$4:function(n,t,i,r,u){this._ctor$0();this._ticks=n*Sys.Extended.UI.TimeSpan.TicksPerDay+t*Sys.Extended.UI.TimeSpan.TicksPerHour+i*Sys.Extended.UI.TimeSpan.TicksPerMinute+r*Sys.Extended.UI.TimeSpan.TicksPerSecond+u*Sys.Extended.UI.TimeSpan.TicksPerMillisecond},getDays:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerDay)},getHours:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerHour)%24},getMinutes:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMinute)%60},getSeconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerSecond)%60},getMilliseconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMillisecond)%1e3},getDuration:function(){return new Sys.Extended.UI.TimeSpan(Math.abs(this._ticks))},getTicks:function(){return this._ticks},getTotalDays:function(){Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerDay)},getTotalHours:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerHour)},getTotalMinutes:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMinute)},getTotalSeconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerSecond)},getTotalMilliseconds:function(){return Math.floor(this._ticks/Sys.Extended.UI.TimeSpan.TicksPerMillisecond)},add:function(n){return new Sys.Extended.UI.TimeSpan(this._ticks+n.getTicks())},subtract:function(n){return new Sys.Extended.UI.TimeSpan(this._ticks-n.getTicks())},negate:function(){return new Sys.Extended.UI.TimeSpan(-this._ticks)},equals:function(n){return this._ticks==n.getTicks()},compareTo:function(n){return this._ticks>n.getTicks()?1:this._ticks0?this._layoutRequested=!0:this._performLayout()},_buildCalendar:function(){var t=this.get_element(),n=this.get_id();this._container=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_container"},cssClasses:[this._cssClass],visible:!1},t.parentNode);this._popupDiv=$common.createElementFromTemplate({nodeName:"div",events:this._popup$delegates,properties:{id:n+"_popupDiv"},cssClasses:["ajax__calendar_container"]},this._container)},_buildHeader:function(){var n=this.get_id(),t,i,r;this._header=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_header"},cssClasses:["ajax__calendar_header"]},this._popupDiv);t=$common.createElementFromTemplate({nodeName:"div"},this._header);this._prevArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_prevArrow",mode:"prev"},events:this._cell$delegates,cssClasses:["ajax__calendar_prev"]},t);i=$common.createElementFromTemplate({nodeName:"div"},this._header);this._nextArrow=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_nextArrow",mode:"next"},events:this._cell$delegates,cssClasses:["ajax__calendar_next"]},i);r=$common.createElementFromTemplate({nodeName:"div"},this._header);this._title=$common.createElementFromTemplate({nodeName:"div",properties:{id:n+"_title",mode:"title"},events:this._cell$delegates,cssClasses:["ajax__calendar_title"]},r)},_buildBody:function(){this._body=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_body"},cssClasses:["ajax__calendar_body"]},this._popupDiv);this._buildDays();this._buildMonths();this._buildYears()},_buildFooter:function(){var n=$common.createElementFromTemplate({nodeName:"div"},this._popupDiv);this._today=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_today",mode:"today"},events:this._cell$delegates,cssClasses:["ajax__calendar_footer","ajax__calendar_today"]},n)},_buildDays:function(){var e=Sys.CultureInfo.CurrentCulture.dateTimeFormat,t=this.get_id(),n,u,i,r,f;for(this._days=$common.createElementFromTemplate({nodeName:"div",properties:{id:t+"_days"},cssClasses:["ajax__calendar_days"]},this._body),this._modes.days=this._days,this._daysTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:t+"_daysTable",cellPadding:0,cellSpacing:0,border:0,style:{margin:"auto"}}},this._days),this._daysTableHeader=$common.createElementFromTemplate({nodeName:"thead",properties:{id:t+"_daysTableHeader"}},this._daysTable),this._daysTableHeaderRow=$common.createElementFromTemplate({nodeName:"tr",properties:{id:t+"_daysTableHeaderRow"}},this._daysTableHeader),n=0;n<7;n++)r=$common.createElementFromTemplate({nodeName:"td"},this._daysTableHeaderRow),f=$common.createElementFromTemplate({nodeName:"div",cssClasses:["ajax__calendar_dayname"]},r);for(this._daysBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:t+"_daysBody"}},this._daysTable),n=0;n<6;n++)for(u=$common.createElementFromTemplate({nodeName:"tr"},this._daysBody),i=0;i<7;i++)r=$common.createElementFromTemplate({nodeName:"td"},u),f=$common.createElementFromTemplate({nodeName:"div",properties:{mode:"day",id:t+"_day_"+n+"_"+i,innerHTML:" "},events:this._cell$delegates,cssClasses:["ajax__calendar_day"]},r)},_buildMonths:function(){var f=Sys.CultureInfo.CurrentCulture.dateTimeFormat,i=this.get_id(),n,r,t,u,e;for(this._months=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_months"},cssClasses:["ajax__calendar_months"],visible:!1},this._body),this._modes.months=this._months,this._monthsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:i+"_monthsTable",cellPadding:0,cellSpacing:0,border:0,style:{margin:"auto"}}},this._months),this._monthsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:i+"_monthsBody"}},this._monthsTable),n=0;n<3;n++)for(r=$common.createElementFromTemplate({nodeName:"tr"},this._monthsBody),t=0;t<4;t++)u=$common.createElementFromTemplate({nodeName:"td"},r),e=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_month_"+n+"_"+t,mode:"month",month:n*4+t,innerHTML:"
"+f.AbbreviatedMonthNames[n*4+t]},events:this._cell$delegates,cssClasses:["ajax__calendar_month"]},u)},_buildYears:function(){var i=this.get_id(),n,r,t,u,f;for(this._years=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_years"},cssClasses:["ajax__calendar_years"],visible:!1},this._body),this._modes.years=this._years,this._yearsTable=$common.createElementFromTemplate({nodeName:"table",properties:{id:i+"_yearsTable",cellPadding:0,cellSpacing:0,border:0,style:{margin:"auto"}}},this._years),this._yearsBody=$common.createElementFromTemplate({nodeName:"tbody",properties:{id:i+"_yearsBody"}},this._yearsTable),n=0;n<3;n++)for(r=$common.createElementFromTemplate({nodeName:"tr"},this._yearsBody),t=0;t<4;t++)u=$common.createElementFromTemplate({nodeName:"td"},r),f=$common.createElementFromTemplate({nodeName:"div",properties:{id:i+"_year_"+n+"_"+t,mode:"year",year:n*4+t-1},events:this._cell$delegates,cssClasses:["ajax__calendar_year"]},u)},_isInDateRange:function(n,t){switch(t){case"d":if(this._startDate&&this._getDateOnly(n)this._getDateOnly(this._endDate))return!1;break;case"M":if(this._startDate&&this._getMonthOnly(n)this._getMonthOnly(this._endDate))return!1;break;case"y":if(this._startDate&&n.getUTCFullYear()this._endDate.getUTCFullYear())return!1}return!0},_getDateOnly:function(n){return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},_getMonthOnly:function(n){return new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),1))},_convertToUTC:function(n){return n&&(n=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()))),n},_convertToLocal:function(n){var t=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds());return t.getDate()!=n.getUTCDate()&&(t=new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours()+1,n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds())),t},_performLayout:function(){var p=this.get_element(),a,s,h,u,c,y,l,t,e,r,o,f,n;if(p&&this.get_isInitialized()&&this._isOpen){var w=Sys.CultureInfo.CurrentCulture.dateTimeFormat,b=this.get_selectedDate(),i=this._getEffectiveVisibleDate(),v=this.get_todaysDate();switch(this._mode){case"days":for(a=this._getFirstDayOfWeek(),s=i.getUTCDay()-a,s<=0&&(s+=7),h=new Date(i),h.setUTCDate(h.getUTCDate()-s),u=new Date(h),r=0;r<7;r++)t=this._daysTableHeaderRow.cells[r].firstChild,t.firstChild&&t.removeChild(t.firstChild),t.appendChild(document.createTextNode(w.ShortestDayNames[(r+a)%7]));for(c=0;c<6;c++)for(y=this._daysBody.rows[c],l=0;l<7;l++)t=y.cells[l].firstChild,t.firstChild&&t.removeChild(t.firstChild),t.appendChild(document.createTextNode(u.getUTCDate())),t.title=this._convertToLocal(u).localeFormat("D"),t.date=u,$common.removeCssClasses(t.parentNode,["ajax__calendar_other","ajax__calendar_active","ajax__calendar_today"]),this._isInDateRange(u,"d")?($common.removeCssClasses(t.parentNode,["ajax__calendar_invalid","ajax__calendar_other","ajax__calendar_active",""]),Sys.UI.DomElement.addCssClass(t.parentNode,this._getCssClass(t.date,"d"))):($common.removeCssClasses(t.parentNode,["ajax__calendar_other","ajax__calendar_active"]),Sys.UI.DomElement.addCssClass(t.parentNode,"ajax__calendar_invalid")),u=new Date(u),u.setUTCDate(u.getUTCDate()+1);this._prevArrow.date=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()-1,1));this._nextArrow.date=new Date(Date.UTC(i.getUTCFullYear(),i.getUTCMonth()+1,1));this._title.firstChild&&this._title.removeChild(this._title.firstChild);this._title.appendChild(document.createTextNode(this._convertToLocal(i).localeFormat(this.get_daysModeTitleFormat())));this._title.date=i;break;case"months":for(r=0;rn?($common.setLocation(r,{x:-162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(r),this._modeChangeMoveTopOrLeftAnimation.set_startValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_endValue(0),$common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(i),this._modeChangeMoveBottomOrRightAnimation.set_startValue(0),this._modeChangeMoveBottomOrRightAnimation.set_endValue(this._width)):($common.setLocation(i,{x:0,y:0}),$common.setVisible(i,!0),this._modeChangeMoveTopOrLeftAnimation.set_propertyKey("left"),this._modeChangeMoveTopOrLeftAnimation.set_target(i),this._modeChangeMoveTopOrLeftAnimation.set_endValue(-this._width),this._modeChangeMoveTopOrLeftAnimation.set_startValue(0),$common.setLocation(r,{x:162,y:0}),$common.setVisible(r,!0),this._modeChangeMoveBottomOrRightAnimation.set_propertyKey("left"),this._modeChangeMoveBottomOrRightAnimation.set_target(r),this._modeChangeMoveBottomOrRightAnimation.set_endValue(0),this._modeChangeMoveBottomOrRightAnimation.set_startValue(this._width)),this._visibleDate=n,this.invalidate(),f=Function.createDelegate(this,function(){this._body.removeChild(i);i=null;this._isAnimating=!1;this._modeChangeAnimation.remove_ended(f)}),this._modeChangeAnimation.add_ended(f),this._modeChangeAnimation.play()):(this._visibleDate=n,this.invalidate()))},_canSwitchMonth:function(n){switch(this._mode){case"days":if(!this._isInDateRange(n,"M"))return!1;break;case"months":if(!this._isInDateRange(n,"y"))return!1;break;case"years":if(!this._isInDateRange(n,"y"))return!1}return!0},_switchMode:function(n,t){var u;if(!this._isAnimating&&this._mode!=n){var f=this._modeOrder[this._mode]1:n>0},_setOptions:function(n,t,i){var r,s,h,o,f,e,u,l;if(this.get_isInitialized()){if(r=this.get_element(),this._clearItems(),h="",i&&this._loadingText?(s=this._loadingText,this._selectedValue&&(h=this._selectedValue)):!i&&n&&0==n.length&&null!=this._emptyText?(s=this._emptyText,this._emptyValue&&(h=this._emptyValue)):this._promptText&&(s=this._promptText,this._promptValue&&(h=this._promptValue)),s&&(o=new Option(s,h),r.options[r.options.length]=o),f=null,e=-1,n){for(u=0;u0)?t||f||i||this.set_SelectedValue("",""):this.set_SelectedValue(r.options[0].value,r.options[0].text):(r.options[e].selected=!0,this.set_SelectedValue(r.options[e].value,r.options[e].text)),r.childDropDown&&!i)for(u=0;u=0&&(n.height=this.get_textBoxControl().offsetHeight+"px");n.width==""&&(n.width=n.height);n.margin==""&&(n.margin="0px");n.padding==""&&(n.padding="0px");this._buttonControl.style.visibility="visible"},initializeOptionList:function(){var h,t,c,r,o,u,l,f,i,e;if(this.get_optionListControl()==null&&(h=document.createElement("ul"),this.get_element().appendChild(h),this.set_optionListControl(h)),t=this.get_optionListControl(),Sys.Browser.agent===Sys.Browser.Safari||Sys.Browser.agent===Sys.Browser.WebKit){for(c=t.parentNode,c!=null&&c.removeChild(t),r=this.get_element().parentNode;typeof r!=typeof document.forms[0];)r=r.parentNode;o=document.createElement("div");o.className=this.get_element().className;o.appendChild(t);r.appendChild(o)}for(u=t.style,u.display="block",u.zIndex="10000",this._optionListItems=[],l=t.childNodes,f=0;f=0;)n=n.substring(0,s).trim()+" "+n.substring(s+1,n.length).trim(),s=n.indexOf("\r");for(e=n.indexOf("\n");e>=0;)n=n.substring(0,e).trim()+" "+n.substring(e+1,n.length).trim(),e=n.indexOf("\n");n=n.replace(/\&/g,"&").replace(/\"/g,'"').replace(/\>/g,">").replace(/\</g,"<");a.text=n.trim();Array.add(this._optionListItems,a);this.initializeOptionListItem(i)}u.width=this._getOptionListBounds().width+"px";u.width="0px";this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{id:this.get_id()+"_PopupBehavior",parentElement:this.get_textBoxControl(),positioningMode:Sys.Extended.UI.PositioningMode.BottomLeft},null,null,t);this._popupBehavior.add_showing(this._popupShowingHandler);this._popupBehavior.add_shown(this._popupShownHandler);this._popupBehavior.add_hiding(this._popupHidingHandler);this.get_selectedIndex()>=0?(this._highlightListItem(this.get_selectedIndex()),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):this.get_textBoxControl().value="";this._popupShowing();t.style.display="none"},initializeOptionListItem:function(n){n._textIsEmpty=!1;n.innerHTML.length<1&&(n.innerHTML=" ",n._textIsEmpty=!0)},_popupShowing:function(){var t=this._getWindowBounds(),i=Sys.UI.DomElement.getBounds(this.get_comboTableControl()),c=this._getOptionListBounds(),v=t.y+t.height/2,y=i.y+i.height,p=t.x+t.width/2,w=i.x+i.width/2,r=i.y-t.y,s="Top",h,n,e,f,u,o,a,l;y<=v&&(s="Bottom",r=t.height-i.height-r);h=this._getOptionListItemHeight();r=r>=c.height?c.height:h*(Math.floor(r/h)-2);a=r/h;l=a=f&&(n=f)):n>=f&&(n=f);e=="Right"&&n=1?1:-1:n.rawEvent.wheelDelta>1?-1:1,this.get_optionListControl().scrollTop+=this._getOptionListItemHeight()*t,n.stopPropagation(),n.preventDefault(),!1},_onListMouseOver:function(n){var r=this.get_optionListControl(),u,i,t;if(n.target!==r)for(u=n.target,i=r.childNodes,t=0;t=0?(this.set_selectedIndex(this._highlightedIndex),this.get_textBoxControl().value=this._optionListItems[this.get_selectedIndex()].text):n==-3&&i.length>0&&this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.DropDownList?this.set_selectedIndex(-2):this._optionListItems.length<1&&(i==""||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList)?(this.set_selectedIndex(-1),this.get_textBoxControl().value=""):this._optionListItems.length>=0&&n==-3&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList?(this.set_selectedIndex(0),this.get_textBoxControl().value=this._optionListItems[0].text):n>=0&&(this.set_selectedIndex(n),this.get_textBoxControl().value=this._optionListItems[n].text);this._popupBehavior.hide();this.get_autoPostBack()!=!0||this._doingPostBack||this._originalSelectedIndex==this.get_selectedIndex()||(this._doingPostBack=!0,__doPostBack(this.get_element().id,""))},_onTextBoxKeyDown:function(n){var i=this._handleEnterKey(n),t;return i!=null?i:(this._handleArrowKey(n),t=this._handleErasureKeys(n),t!=null)?t:!0},_onTextBoxKeyPress:function(n){var h=this._handleEnterKey(n),e,o,r,s;if(h!=null)return h;if(e=this._handleArrowKey(n),e!=null)return e;if(o=this._handleNonCharacterKey(n),o!=null)return o;if(this.get_dropDownStyle()!=Sys.Extended.UI.ComboBoxStyle.Simple||this._popupBehavior._visible||this._popupBehavior.show(),this.get_selectedIndex()==-1&&this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDownList)return this.get_textBoxControl().value="",n.preventDefault(),n.stopPropagation(),!1;var t=this._getTextSelectionInfo(this.get_textBoxControl(),n),u=t.selectionStart,f=t.selectionEnd,c=t.selectionPrefix+t.typedCharacter+t.selectionText.substring(1)+t.selectionSuffix,i=t.selectionPrefix+t.typedCharacter;return(i.length>this.get_textBoxControl().maxLength&&(i=i.substring(0,this.get_textBoxControl().maxLength)),r=this._suggestIndex(c,i),(this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.Suggest||this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend)&&(this._highlightSuggestedItem=!0,this._popupBehavior._visible||this._popupBehavior.show()),r>=0?this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.Append||this.get_autoCompleteMode()==Sys.Extended.UI.ComboBoxAutoCompleteMode.SuggestAppend?(this.get_textBoxControl().value=this._optionListItems[r].text,u=t.selectionStart+1,f=this.get_textBoxControl().value.length):(this.get_textBoxControl().value=this._optionListItems[r].text.substring(0,i.length),u=this.get_textBoxControl().value.length,f=this.get_textBoxControl().value.length):(this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDown)&&(this.get_textBoxControl().value=i,u=i.length,f=i.length),s=this._handleErasureKeys(n),s!=null)?s:(this._ensureHighlightedIndex(),this._ensureScrollTop(),this._setTextSelectionRange(this.get_textBoxControl(),u,f),n.preventDefault(),n.stopPropagation(),!1)},_onDocumentClick:function(){this._popupBehavior._visible&&this._popupBehavior.hide()},_onDocumentMouseWheel:function(){return this._popupBehavior&&this._popupBehavior.hide(),!0},_handleTextBoxFocus:function(n){!this._supressFocusHide&&this._popupBehavior._visible&&(this._popupBehavior.hide(),this._supressFocusHide=!0,this.get_autoPostBack()&&!this._doingPostBack&&this._originalSelectedIndex!=this.get_selectedIndex()&&(this._doingPostBack=!0,__doPostBack(this.get_element().id,"")));this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple&&this._popupBehavior.show();this._setTextSelectionRange(this.get_textBoxControl(),0,this.get_textBoxControl().value.length);n!=null&&(n.preventDefault(),n.stopPropagation())},_highlightListItem:function(n,t){if(n==undefined||n<0){this._highlightedIndex!=undefined&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1);return}var r=this.get_optionListControl().childNodes,i=r[n];if(t==!0){if(this._highlightedIndex==n)return;n>=0&&(this.get_listItemHoverCssClass()==undefined||this.get_listItemHoverCssClass()==""?(i.style.backgroundColor="Highlight",i.style.color="HighlightText"):i.className=this.get_listItemHoverCssClass);this._highlightedIndex!=null&&this._highlightedIndex!=n&&this._highlightedIndex>=0&&this._highlightListItem(this._highlightedIndex,!1);this._highlightedIndex=n}else this.get_listItemHoverCssClass()==undefined||this.get_listItemHoverCssClass()==""?(i.style.backgroundColor="",i.style.color=""):i.className="",n==this._highlightedIndex&&(this._highlightedIndex=-1)},_suggestIndex:function(n,t){for(var f=-1,i=!1,u=!1,e,o,r=0;r0||i==1&&this._highlightedIndex=0&&(this.get_textBoxControl().value=this._optionListItems[this._highlightedIndex].text,this.set_selectedIndex(this._highlightedIndex),__doPostBack(this.get_element().id,"")),this._popupBehavior.hide(),n.preventDefault(),n.stopPropagation(),!1):this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.Simple||this.get_dropDownStyle()==Sys.Extended.UI.ComboBoxStyle.DropDown||this._highlightedIndex==this.get_selectedIndex()?!0:(n.preventDefault(),n.stopPropagation(),!1):null},_handleErasureKeys:function(n){var o=this._getKeyboardCode(n),s=o==Sys.UI.Key.backspace,f=o==Sys.UI.Key.del,t,r,u,i,e,h;return(typeof window.event=="undefined"&&n.type=="keypress"&&(f=n.rawEvent.keyCode==46),s||f)?(t=this._getTextSelectionInfo(this.get_textBoxControl(),n),t.selectionStart0?(e=1,t.selectionPrefix.charCodeAt(t.selectionPrefix.length-1)==8&&(e=2),i=t.selectionPrefix.substr(0,t.selectionPrefix.length-e),i+=t.selectionSuffix,this.get_textBoxControl().value=i,r=t.selectionStart-1,u=t.selectionStart-1):f&&t.selectionStart=0&&(h=this._isExactMatch(this._optionListItems[this._highlightedIndex].text,this.get_textBoxControl().value),h||this._highlightListItem(this._highlightedIndex,!1)),n.preventDefault(),n.stopPropagation(),!1):null},_handleNonCharacterKey:function(n){var t=this._getKeyboardCode(n),r=t==Sys.UI.Key.backspace,i=t==Sys.UI.Key.del;return(n.type=="keypress"&&(i=n.rawEvent.code==46),r||i)?null:this._isNonCharacterKey(n)?t==Sys.UI.Key.esc?(this._popupBehavior.hide(),this.get_textBoxControl().blur(),n.preventDefault(),n.stopPropagation(),!1):!0:null},_isNonCharacterKey:function(n){var t=this._getKeyboardCode(n);if(t==Sys.UI.Key.enter||t==Sys.UI.Key.esc)return!0;if(Sys.Browser.agent==Sys.Browser.Safari&&Sys.Browser.version<500){if(t==8||t==9||t==63272||t==63276||t==63277||t==63275||t==63273||t==63234||t==63235||t>=63236&&t<=63243||t==63248)return!0}else if(Sys.Browser.agent==Sys.Browser.WebKit){if(t==8||t==9||t==19||t==33||t==34||t==35||t==36||t==37||t==39||t==45||t==46||t==91||t==92||t==93||t==113||t==115||t==118||t==119||t==120||t==122||t==145)return!0}else if(Sys.Browser.agent!=Sys.Browser.InternetExplorer)if(t==8||t==9||t==33||t==34||t==35||t==36||t==37||t==39||t==45||t==46){if(!n.shiftKey)return!0}else{if(t==145||t==19)return!0;if(Sys.Browser.agent==Sys.Browser.Opera){if(t==0||t==16||t==17)return!0}else if(Sys.Browser.agent==Sys.Browser.Firefox&&(t==91||t==92||t==93))return!0}else if(Sys.Browser.agent==Sys.Browser.InternetExplorer&&t==46)return!0;return!1},_ensureScrollTop:function(){var n=this.get_optionListControl();if(this._highlightedIndex>=0){var t=this._getOptionListItemHeight(),i=t*this._highlightedIndex,r=n.scrollTop+n.clientHeight;(i<=n.scrollTop||i>=r)&&(n.scrollTop=this._highlightedIndex*t)}},_ensureSelectedIndex:function(){var n=this.get_hiddenFieldControl().value;n==""&&(n=this._optionListItems.length>0?0:-1,this.get_hiddenFieldControl().value=n.toString());this._originalSelectedIndex==null&&(this._originalSelectedIndex=parseInt(n))},_ensureHighlightedIndex:function(){var i=this.get_textBoxControl().value,t,r,n,u;if(this._highlightedIndex==null||!(this._highlightedIndex>=0)||!this._isExactMatch(this._optionListItems[this._highlightedIndex].text,i)){for(t=-1,r=!1,n=0;n=i.selectionStart?i.textBoxValue.substring(0,i.selectionStart):"",i.selectionText=i.textBoxValue.length>=i.selectionEnd?i.textBoxValue.substring(i.selectionStart,i.selectionEnd):"",i.selectionSuffix=i.textBoxValue.length>=i.selectionEnd?i.textBoxValue.substring(i.selectionEnd,i.textBoxValue.length):"",i.selectionTextFirst=i.selectionText.substring(0,1),i},_getOptionListItemHeight:function(){var n=this.get_optionListControl();return this._optionListItemHeight==null&&n.scrollHeight>0?this._optionListItemHeight=Math.round(n.scrollHeight/this._optionListItems.length):Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7&&Math.round(n.scrollHeight/this._optionListItems.length)0&&(this._scrollDeltaX=this._scrollDeltaY=0,t.clientXn.width-this._scrollEdgeConst&&(this._scrollDeltaX=this._scrollByConst),t.clientYn.height-this._scrollEdgeConst&&(this._scrollDeltaY=this._scrollByConst),this._scrollDeltaX!=0||this._scrollDeltaY!=0?this._scroller.set_enabled(!0):this._scroller.set_enabled(!1))},_onScrollerTick:function(){var t=document.body.scrollLeft,i=document.body.scrollTop;window.scrollBy(this._scrollDeltaX,this._scrollDeltaY);var r=document.body.scrollLeft,u=document.body.scrollTop,n=this._activeDragVisual,f={x:parseInt(n.style.left)+(r-t),y:parseInt(n.style.top)+(u-i)};$common.setLocation(n,f)}};Sys.Extended.UI.GenericDragDropManager.registerClass("Sys.Extended.UI.GenericDragDropManager",Sys.Extended.UI.IEDragDropManager)}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedDragDrop",["ExtendedTimer","ExtendedCommon"],n):n()}(),function(){function n(){Sys.Extended.UI.FloatingBehavior=function(n){function o(n){window._event=n;var t=this.get_element();this.checkCanDrag(n.target)&&(u=$common.getLocation(t),n.preventDefault(),this.startDragDrop(t))}Sys.Extended.UI.FloatingBehavior.initializeBase(this,[n]);var i,t,u,f,e,r=Function.createDelegate(this,o);this.add_move=function(n){this.get_events().addHandler("move",n)};this.remove_move=function(n){this.get_events().removeHandler("move",n)};this.get_handle=function(){return i};this.set_handle=function(n){i!=null&&$removeHandler(i,"mousedown",r);i=n;$addHandler(i,"mousedown",r)};this.get_profileProperty=function(){return f};this.set_profileProperty=function(n){f=n};this.get_profileComponent=function(){return e};this.set_profileComponent=function(n){e=n};this.get_location=function(){return t};this.set_location=function(n){t!=n&&(t=n,this.get_isInitialized()&&$common.setLocation(this.get_element(),t),this.raisePropertyChanged("location"))};this.initialize=function(){Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"initialize");Sys.Extended.UI.DragDropManager.registerDropTarget(this);var n=this.get_element();t||(t=$common.getLocation(n));n.style.position="fixed";$common.setLocation(n,t)};this.dispose=function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this);i&&r&&$removeHandler(i,"mousedown",r);r=null;Sys.Extended.UI.FloatingBehavior.callBaseMethod(this,"dispose")};this.checkCanDrag=function(n){var t=n.tagName;return t.toLowerCase()=="a"&&n.href!=null&&n.href.length>0?!1:Array.indexOf(["input","button","select","textarea","label"],t.toLowerCase())>-1?!1:!0};this.get_dragDataType=function(){return"_floatingObject"};this.getDragData=function(){return null};this.get_dragMode=function(){return Sys.Extended.UI.DragMode.Move};this.onDragStart=function(){};this.onDrag=function(){};this.onDragEnd=function(n){var i,r,f;n||(i=this.get_events().getHandler("move"),i&&(r=new Sys.CancelEventArgs,i(this,r),n=r.get_cancel()));f=this.get_element();n?$common.setLocation(f,u):(t=$common.getLocation(f),this.raisePropertyChanged("location"))};this.startDragDrop=function(n){Sys.Extended.UI.DragDropManager.startDragDrop(this,n,null)};this.get_dropTargetElement=function(){return document.body};this.canDrop=function(n,t){return t=="_floatingObject"};this.drop=function(){};this.onDragEnterTarget=function(){};this.onDragLeaveTarget=function(){};this.onDragInTarget=function(){}};Sys.Extended.UI.FloatingBehavior.registerClass("Sys.Extended.UI.FloatingBehavior",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);Sys.registerComponent(Sys.Extended.UI.FloatingBehavior,{name:"draggable"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedFloating",["ExtendedBase","ExtendedCommon","ExtendedDragDrop"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.HoverBehavior=function(n){Sys.Extended.UI.HoverBehavior.initializeBase(this,[n]);this._elementHandlers=null;this._hoverElementHandlers=null;this._hoverElement=null;this._hoverCount=0;this._unhoverDelay=0;this._hoverDelay=0;this._hoverScript=null;this._unhoverScript=null;this._hoverFired=!1};Sys.Extended.UI.HoverBehavior.prototype={_setupHandlersArray:function(){var n=[];return n[0]=Function.createDelegate(this,this._onHover),n[1]=Function.createDelegate(this,this._onUnhover),n},get_elementHandlers:function(){return this._elementHandlers||(this._elementHandlers=this._setupHandlersArray()),this._elementHandlers},get_hoverElementHandlers:function(){return this._hoverElementHandlers||(this._hoverElementHandlers=this._setupHandlersArray()),this._hoverElementHandlers},get_hoverElement:function(){return this._hoverElement},set_hoverElement:function(n){n!=this._hoverElement&&(this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!1),this._hoverElement=n,this._hoverElement&&this._setupHandlers(this._hoverElement,this.get_hoverElementHandlers(),!0))},get_hoverDelay:function(){return this._hoverDelay},set_hoverDelay:function(n){this._hoverDelay=n;this.raisePropertyChanged("hoverDelay")},get_hoverScript:function(){return this._hoverScript},set_hoverScript:function(n){this._hoverScript=n},get_unhoverDelay:function(){return this._unhoverDelay},set_unhoverDelay:function(n){this._unhoverDelay=n;this.raisePropertyChanged("unhoverDelay")},get_unhoverScript:function(){return this._unhoverScript},set_unhoverScript:function(n){this._unhoverScript=n},dispose:function(){var t=this.get_element(),n;this._elementHandlers&&(n=this.get_elementHandlers(),this._setupHandlers(t,n,!1),this._elementHandlers=null);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!1),this._hoverElement=null);Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.HoverBehavior.callBaseMethod(this,"initialize");var n=this.get_elementHandlers();this._setupHandlers(this.get_element(),n,!0);this._hoverElement&&(n=this.get_hoverElementHandlers(),this._setupHandlers(this._hoverElement,n,!0))},add_hover:function(n){this.get_events().addHandler("hover",n)},remove_hover:function(n){this.get_events().removeHandler("hover",n)},_fireHover:function(){if(this._hoverCount&&!this._hoverFired){var n=this.get_events().getHandler("hover");n&&n(this,Sys.EventArgs.Empty);this._hoverScript&&eval(this._hoverScript);this._hoverFired=!0}},_onHover:function(){this._hoverCount++;this._hoverDelay?window.setTimeout(Function.createDelegate(this,this._fireHover),this._hoverDelay):this._fireHover()},add_unhover:function(n){this.get_events().addHandler("unhover",n)},remove_unhover:function(n){this.get_events().removeHandler("unhover",n)},_fireUnhover:function(){if(this._hoverFired&&!this._hoverCount){this._hoverFired=!1;var n=this.get_events().getHandler("unhover");n&&n(this,Sys.EventArgs.Empty);this._unhoverScript&&eval(this._unhoverScript)}},_onUnhover:function(){this._hoverCount--;this._hoverCount<=0&&(this._hoverCount=0,this._unhoverDelay?window.setTimeout(Function.createDelegate(this,this._fireUnhover),this._unhoverDelay):this._fireUnhover())},_setupHandlers:function(n,t,i){this.get_isInitialized()&&n&&(i?($addHandler(n,"mouseover",t[0]),$addHandler(n,"focus",t[0]),$addHandler(n,"mouseout",t[1]),$addHandler(n,"blur",t[1])):($removeHandler(n,"mouseover",t[0]),$removeHandler(n,"focus",t[0]),$removeHandler(n,"mouseout",t[1]),$removeHandler(n,"blur",t[1])))}};Sys.Extended.UI.HoverBehavior.descriptor={properties:[{name:"hoverElement",isDomElement:!0},{name:"unhoverDelay",type:Number}],events:[{name:"hover"},{name:"unhover"}]};Sys.Extended.UI.HoverBehavior.registerClass("Sys.Extended.UI.HoverBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.HoverBehavior,{name:"hover"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedHover",["ExtendedBase","ExtendedCommon"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DropDownBehavior=function(n){if(Sys.Extended.UI.DropDownBehavior.initializeBase(this,[n]),this._dropDownControl=null,this._highlightBorderColor="#2353B2",this._highlightBackgroundColor="#FFF3DB",this._dropArrowBackgroundColor="#C6E1FF",this._dropArrowImageUrl=null,Sys.loader){var t=Sys.loader.basePath;t&&(t.charAt(t.length-1)!=="/"&&(t+="/"),this._dropArrowImageUrl=t+"extended/dropdown/drop-arrow.gif")}this._dropArrowWidth="16px";this._oldBackgroundColor=null;this._dropFrame=null;this._dropArrow=null;this._dropArrowImage=null;this._dropWrapper=null;this._isOpen=!1;this._isOver=!1;this._wasClicked=null;this._dropWrapperHoverBehavior=null;this._dropPopupPopupBehavior=null;this._onShowJson=null;this._onHideJson=null;this._dropDownControl$delegates={click:Function.createDelegate(this,this._dropDownControl_onclick),contextmenu:Function.createDelegate(this,this._dropDownControl_oncontextmenu)};this._dropFrame$delegates={click:Function.createDelegate(this,this._dropFrame_onclick),contextmenu:Function.createDelegate(this,this._dropFrame_oncontextmenu)};this._dropWrapper$delegates={click:Function.createDelegate(this,this._dropWrapper_onclick),contextmenu:Function.createDelegate(this,this._dropWrapper_oncontextmenu)};this._document$delegates={click:Function.createDelegate(this,this._document_onclick),contextmenu:Function.createDelegate(this,this._document_oncontextmenu)};this._dropWrapperHoverBehavior$delegates={hover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onhover),unhover:Function.createDelegate(this,this._dropWrapperHoverBehavior_onunhover)}};Sys.Extended.UI.DropDownBehavior.prototype={initialize:function(){var n,t,i;Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"initialize");n=this.get_element();t=n.parentNode;this._dropDownControl==null&&$common.createElementFromTemplate({parent:t,nameTable:this,name:"_dropDownControl",nodeName:"div",visible:!1,cssClasses:this._dropDownControl?null:["ajax__dropdown_panel"],properties:{__GENERATED:!0}});$addHandlers(this._dropDownControl,this._dropDownControl$delegates);i={};this._dropArrowImageUrl&&(i.src=this._dropArrowImageUrl);$common.createElementFromTemplate({parent:t,nameTable:this,name:"_dropFrame",nodeName:"span",visible:!1,children:[{name:"_dropFrameTop",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameRight",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameBottom",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropFrameLeft",nodeName:"div",cssClasses:["ajax__dropdown_frame_line"]},{name:"_dropArrow",nodeName:"div",cssClasses:this._dropArrowImageUrl?["ajax__dropdown_arrow"]:["ajax__dropdown_arrow","ajax__dropdown_arrow_image"],properties:{style:{width:this._dropArrowWidth,backgroundColor:this._dropArrowBackgroundColor}},events:this._dropFrame$delegates,children:[{name:"_dropArrowWrapper",nodeName:"div",visible:!!this._dropArrowImageUrl,cssClasses:["ajax__dropdown_arrow_wrapper"],children:[{name:"_dropArrowImage",nodeName:"img",properties:i}]}]}]});$common.createElementFromTemplate({parent:null,nameTable:this,name:"_dropWrapper",nodeName:"span",properties:{id:n.id+"_dropWrapper",style:{cursor:"default"}},events:this._dropWrapper$delegates,content:n});this._dropPopupPopupBehavior=$create(Sys.Extended.UI.PopupBehavior,{positioningMode:Sys.Extended.UI.PositioningMode.BottomRight,parentElement:n,y:-1},null,null,this._dropDownControl);this._onShowJson&&this._dropPopupPopupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._dropPopupPopupBehavior.set_onHide(this._onHideJson);this._dropWrapperHoverBehavior=$create(Sys.Extended.UI.HoverBehavior,{hoverElement:this._dropFrame},this._dropWrapperHoverBehavior$delegates,null,this._dropWrapper);$addHandlers(document,this._document$delegates)},dispose:function(){var n=this.get_element();this._isOpen&&(this.hide(),this.unhover(),this._isOpen=!1);$common.removeHandlers(document,this._document$delegates);this._onShowJson=null;this._onHideJson=null;this._dropPopupPopupBehavior&&(this._dropPopupPopupBehavior.dispose(),this._dropPopupPopupBehavior=null);this._dropWrapperHoverBehavior&&(this._dropWrapperHoverBehavior.dispose(),this._dropWrapperHoverBehavior=null);this._dropFrame&&($common.removeElement(this._dropFrame),this._dropFrame=null,this._dropFrameTop=null,this._dropFrameRight=null,this._dropFrameBottom=null,this._dropFrameLeft=null,this._dropArrow=null,this._dropArrowWrapper=null,this._dropArrowImage=null);this._dropWrapper&&($common.removeHandlers(this._dropWrapper,this._dropWrapper$delegates),$common.unwrapElement(n,this._dropWrapper),this._dropWrapper=null);this._dropDownControl&&($common.removeHandlers(this._dropDownControl,this._dropDownControl$delegates),this._dropDownControl.__GENERATED&&$common.removeElement(this._dropDownControl),this._dropDownControl=null);Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"dispose")},hover:function(){var t=this.get_element(),n,i;this._isOver||(this._isOver=!0,this.raiseHoverOver(Sys.EventArgs.Empty),n=$common.getBounds(t),$common.setLocation(this._dropFrame,{x:0,y:0}),$common.setVisible(this._dropFrame,!0),i=$common.getLocation(this._dropFrame),$common.setVisible(this._dropFrame,!1),n.x-=i.x,n.y-=i.y,$common.setBounds(this._dropFrameTop,{x:n.x,y:n.y,width:n.width,height:1}),$common.setBounds(this._dropFrameRight,{x:n.x+n.width-1,y:n.y,width:1,height:n.height}),$common.setBounds(this._dropFrameBottom,{x:n.x,y:n.y+n.height-1,width:n.width,height:1}),$common.setBounds(this._dropFrameLeft,{x:n.x,y:n.y,width:1,height:n.height}),$common.setBounds(this._dropArrow,{x:n.x+n.width-17,y:n.y+1,width:16,height:n.height-2}),this._dropFrameTop.style.backgroundColor=this._highlightBorderColor,this._dropFrameRight.style.backgroundColor=this._highlightBorderColor,this._dropFrameBottom.style.backgroundColor=this._highlightBorderColor,this._dropFrameLeft.style.backgroundColor=this._highlightBorderColor,$common.setVisible(this._dropFrame,!0),this._oldBackgroundColor||(this._oldBackgroundColor=$common.getCurrentStyle(t,"backgroundColor")),t.style.backgroundColor=this._highlightBackgroundColor)},unhover:function(){var n=this.get_element();(this._isOver||!this._isOpen)&&(this._isOver=!1,this._isOpen||($common.setVisible(this._dropFrame,!1),this._oldBackgroundColor?(n.style.backgroundColor=this._oldBackgroundColor,this._oldBackgroundColor=null):n.style.backgroundColor="transparent"),this.raiseHoverOut(Sys.EventArgs.Empty))},show:function(){if(!this._isOpen){this.hover();var n=new Sys.CancelEventArgs;if(this.raiseShowing(n),this.raisePopup(n),n.get_cancel())return;this._isOpen=!0;this.populate();(!this._dynamicPopulateBehavior||this._dynamicPopulateBehavior._populated&&this._cacheDynamicResults)&&this._showPopup()}},_showPopup:function(){this._dropPopupPopupBehavior.show();this.raiseShown(Sys.EventArgs.Empty)},hide:function(){if(this._isOpen){var n=new Sys.CancelEventArgs;if(this.raiseHiding(n),n.get_cancel())return;this._isOpen=!1;this._dropPopupPopupBehavior.hide();this.raiseHidden(Sys.EventArgs.Empty)}},_dropWrapperHoverBehavior_onhover:function(){this.hover()},_dropWrapperHoverBehavior_onunhover:function(){this.unhover()},_dropWrapper_onclick:function(n){n.target.tagName!="A"&&(this._isOpen?this.hide():this.show(),this._wasClicked=!0)},_dropWrapper_oncontextmenu:function(n){n.target.tagName!="A"&&(this._wasClicked=!0,n.preventDefault(),this.show())},_dropFrame_onclick:function(){this._isOpen?this.hide():this.show();this._wasClicked=!0},_dropFrame_oncontextmenu:function(n){this._wasClicked=!0;n.preventDefault();this.show()},_dropDownControl_onclick:function(){},_dropDownControl_oncontextmenu:function(n){this._wasClicked=!0;n.preventDefault()},_document_onclick:function(){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_document_oncontextmenu:function(){this._wasClicked?this._wasClicked=!1:this._isOpen&&(this.hide(),this.unhover())},_onPopulated:function(n,t){Sys.Extended.UI.DropDownBehavior.callBaseMethod(this,"_onPopulated",[n,t]);this._isOpen&&this._showPopup()},get_onShow:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShow():this._onShowJson},set_onShow:function(n){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onShow(n):this._onShowJson=n;this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onShowBehavior():null},onShow:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onShow()},get_onHide:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHide():this._onHideJson},set_onHide:function(n){this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.set_onHide(n):this._onHideJson=n;this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._dropPopupPopupBehavior?this._dropPopupPopupBehavior.get_onHideBehavior():null},onHide:function(){this._dropPopupPopupBehavior&&this._dropPopupPopupBehavior.onHide()},get_dropDownControl:function(){return this._dropDownControl},set_dropDownControl:function(n){this._dropDownControl!=n&&(this._dropDownControl=n,this.raisePropertyChanged("dropDownControl"))},get_highlightBorderColor:function(){return this._highlightBorderColor},set_highlightBorderColor:function(n){this._highlightBorderColor!=n&&(this._highlightBorderColor=n,this.raisePropertyChanged("highlightBorderColor"))},get_highlightBackgroundColor:function(){return this._highlightBackgroundColor},set_highlightBackgroundColor:function(n){this._highlightBackgroundColor!=n&&(this._highlightBackgroundColor=n,this.get_isInitialized()&&this._isOpen&&(this._dropWrapper.style.backgroundColor=n),this.raisePropertyChanged("highlightBackgroundColor"))},get_dropArrowBackgroundColor:function(){return this._dropArrowBackgroundColor},set_dropArrowBackgroundColor:function(n){this._dropArrowBackgroundColor!=n&&(this._dropArrowBackgroundColor=n,this.get_isInitialized()&&(this._dropArrow.style.backgroundColor=n),this.raisePropertyChanged("dropArrowBackgroundColor"))},get_dropArrowImageUrl:function(){return this._dropArrowImageUrl},set_dropArrowImageUrl:function(n){this._dropArrowImageUrl!=n&&(this._dropArrowImageUrl=n,this.get_isInitialized()&&(this._dropArrow.className&&(this._dropArrow.className="",this._dropArrowWrapper.style.display="block"),this._dropArrowImage.src=n),this.raisePropertyChanged("dropArrowImageUrl"))},get_dropArrowWidth:function(){return this._dropArrowWidth},set_dropArrowWidth:function(n){this._dropArrowWidth!=n&&(this._dropArrowWidth=n,this.get_isInitialized()&&(this._dropArrow.style.width=n),this.raisePropertyChanged("dropArrowWidth"))},get_isOver:function(){return this._isOver},get_isOpen:function(){return this._isOpen},add_showing:function(n){this.get_events().addHandler("showing",n)},remove_showing:function(n){this.get_events().removeHandler("showing",n)},raiseShowing:function(n){var t=this.get_events().getHandler("showing");t&&t(this,n)},add_shown:function(n){this.get_events().addHandler("shown",n)},remove_shown:function(n){this.get_events().removeHandler("shown",n)},raiseShown:function(n){var t=this.get_events().getHandler("shown");t&&t(this,n)},add_popup:function(n){this.get_events().addHandler("popup",n)},remove_popup:function(n){this.get_events().removeHandler("popup",n)},raisePopup:function(n){var t=this.get_events().getHandler("popup");t&&t(this,n)},add_hiding:function(n){this.get_events().addHandler("hiding",n)},remove_hiding:function(n){this.get_events().removeHandler("hiding",n)},raiseHiding:function(n){var t=this.get_events().getHandler("hiding");t&&t(this,n)},add_hidden:function(n){this.get_events().addHandler("hidden",n)},remove_hidden:function(n){this.get_events().removeHandler("hidden",n)},raiseHidden:function(n){var t=this.get_events().getHandler("hidden");t&&t(this,n)},add_hoverOver:function(n){this.get_events().addHandler("hoverOver",n)},remove_hoverOver:function(n){this.get_events().removeHandler("hoverOver",n)},raiseHoverOver:function(n){var t=this.get_events().getHandler("hoverOver");t&&t(this,n)},add_hoverOut:function(n){this.get_events().addHandler("hoverOut",n)},remove_hoverOut:function(n){this.get_events().removeHandler("hoverOut",n)},raiseHoverOut:function(n){var t=this.get_events().getHandler("hoverOut");t&&t(this,n)}};Sys.Extended.UI.DropDownBehavior.registerClass("Sys.Extended.UI.DropDownBehavior",Sys.Extended.UI.DynamicPopulateBehaviorBase);Sys.registerComponent(Sys.Extended.UI.DropDownBehavior,{name:"dropDown"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedDropDown",["ExtendedDynamicPopulate","ExtendedAnimationBehavior","ExtendedPopup","ExtendedHover"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.BoxCorners=function(){throw Error.invalidOperation();};Sys.Extended.UI.BoxCorners.prototype={None:0,TopLeft:1,TopRight:2,BottomRight:4,BottomLeft:8,Top:3,Right:6,Bottom:12,Left:9,All:15};Sys.Extended.UI.BoxCorners.registerEnum("Sys.Extended.UI.BoxCorners",!0);Sys.Extended.UI.RoundedCornersBehavior=function(n){Sys.Extended.UI.RoundedCornersBehavior.initializeBase(this,[n]);this._corners=Sys.Extended.UI.BoxCorners.All;this._radius=5;this._color=null;this._parentDiv=null;this._originalStyle=null;this._borderColor=null;this._isDirty=!0};Sys.Extended.UI.RoundedCornersBehavior.prototype={initialize:function(){Sys.Extended.UI.RoundedCornersBehavior.callBaseMethod(this,"initialize");this.update()},dispose:function(){this.disposeParentDiv();Sys.Extended.UI.RoundedCornersBehavior.callBaseMethod(this,"dispose")},update:function(){var n=this.get_element(),f,s,r,u;if(n&&this._isDirty&&!this.get_isUpdating())if(this.disposeParentDiv(),n.style.borderRadius!=undefined)n.style.borderRadius=this._radius+"px",this._borderColor?(n.style.border="solid",n.style.borderWidth="1px",n.style.borderColor=this._borderColor):(n.style.border="none",n.style.borderWidth="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopLeft)||(n.style.borderTopLeftRadius="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomLeft)||(n.style.borderBottomLeftRadius="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopRight)||(n.style.borderTopRightRadius="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomRight)||(n.style.borderBottomRightRadius="0px");else if(n.style.MozBorderRadius!=undefined)n.style.MozBorderRadius=this._radius+"px",this._borderColor?(n.style.border="solid",n.style.borderWidth="1px",n.style.borderColor=this._borderColor):(n.style.border="none",n.style.borderWidth="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopLeft)||(n.style.MozBorderRadiusTopleft="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomLeft)||(n.style.MozBorderRadiusBottomleft="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopRight)||(n.style.MozBorderRadiusTopright="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomRight)||(n.style.MozBorderRadiusBottomright="0px");else if(n.style.WebkitBorderRadius!=undefined)n.style.WebkitBorderRadius=this._radius+"px",this._borderColor?(n.style.border="solid",n.style.borderWidth="1px",n.style.borderColor=this._borderColor):(n.style.border="none",n.style.borderWidth="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopLeft)||(n.style.WebkitBorderRadiusTopLeft="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomLeft)||(n.style.WebkitBorderRadiusBottomLeft="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.TopRight)||(n.style.WebkitBorderRadiusTopRight="0px"),this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomRight)||(n.style.WebkitBorderRadiusBottomRight="0px");else{var v=this.getBackgroundColor(),c=n.offsetWidth,t=n.cloneNode(!1);this.moveChildren(n,t);this._originalStyle=n.style.cssText;n.style.backgroundColor="transparent";n.style.verticalAlign="top";n.style.padding="0";n.style.overflow="";n.style.className="";n.style.height&&n.style.height!="auto"?n.style.height=parseInt($common.getCurrentStyle(n,"height"))+this._radius*2+"px":!n.style.width&&00;f--){var y=Math.acos(f/h),o=h-Math.round(Math.sin(y)*h),i=document.createElement("DIV");i.__roundedDiv=!0;i.style.backgroundColor=v;i.style.marginLeft=o+"px";i.style.marginRight=o-(this._borderColor?2:0)+"px";i.style.height="1px";i.style.fontSize="1px";i.style.overflow="hidden";this._borderColor&&(i.style.borderLeftStyle="solid",i.style.borderRightStyle="solid",i.style.borderLeftColor=this._borderColor,i.style.borderRightColor=this._borderColor,s=Math.max(0,a-o-1),i.style.borderLeftWidth=s+1+"px",i.style.borderRightWidth=s+1+"px",f==l&&(i.__roundedDivNoBorder=!0,i.style.backgroundColor=this._borderColor));n.insertBefore(i,e);r=i;i=i.cloneNode(!0);i.__roundedDiv=!0;n.insertBefore(i,e);u=i;e=i;a=o;this.isCornerSet(Sys.Extended.UI.BoxCorners.TopLeft)||(r.style.marginLeft="0",this._borderColor&&(r.style.borderLeftWidth="1px"));this.isCornerSet(Sys.Extended.UI.BoxCorners.TopRight)||(r.style.marginRight="0",this._borderColor&&(r.style.borderRightWidth="1px",r.style.marginRight="-2px"));this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomLeft)||(u.style.marginLeft="0",this._borderColor&&(u.style.borderLeftWidth="1px"));this.isCornerSet(Sys.Extended.UI.BoxCorners.BottomRight)||(u.style.marginRight="0",this._borderColor&&(u.style.borderRightWidth="1px",u.style.marginRight="-2px"))}n.insertBefore(t,e);this._parentDiv=t;this._isDirty=!1}},disposeParentDiv:function(){var n,r,i,t;if(this._parentDiv){for(n=this.get_element(),r=n.childNodes,i=r.length-1;i>=0;i--)if(t=r[i],t){t==this._parentDiv&&this.moveChildren(t,n);try{n.removeChild(t)}catch(n){}}this._originalStyle&&(n.style.cssText=this._originalStyle,this._originalStyle=null);this._parentDiv=null}},getBackgroundColor:function(){return this._color?this._color:$common.getCurrentStyle(this.get_element(),"backgroundColor")},moveChildren:function(n,t){for(var r=0,i;n.hasChildNodes();)i=n.childNodes[0],i=n.removeChild(i),t.appendChild(i),r++;return r},isCornerSet:function(n){return(this._corners&n)!=Sys.Extended.UI.BoxCorners.None},setCorner:function(n,t){t?this.set_Corners(this._corners|n):this.set_Corners(this._corners&~n)},get_Color:function(){return this._color},set_Color:function(n){n!=this._color&&(this._color=n,this._isDirty=!0,this.update(),this.raisePropertyChanged("Color"))},get_Radius:function(){return this._radius},set_Radius:function(n){n!=this._radius&&(this._radius=n,this._isDirty=!0,this.update(),this.raisePropertyChanged("Radius"))},get_Corners:function(){return this._corners},set_Corners:function(n){n!=this._corners&&(this._corners=n,this._isDirty=!0,this.update(),this.raisePropertyChanged("Corners"))},get_BorderColor:function(){return this._borderColor},set_BorderColor:function(n){n!=this._borderColor&&(this._borderColor=n,this._isDirty=!0,this.update(),this.raisePropertyChanged("BorderColor"))}};Sys.Extended.UI.RoundedCornersBehavior.registerClass("Sys.Extended.UI.RoundedCornersBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.RoundedCornersBehavior,{name:"rounded"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedRoundedCorners",["ExtendedBase","ExtendedCommon"],n):n()}(),function(){function t(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DropShadowBehavior=function(n){Sys.Extended.UI.DropShadowBehavior.initializeBase(this,[n]);this._opacity=1;this._width=5;this._shadowDiv=null;this._trackPosition=null;this._trackPositionDelay=50;this._timer=null;this._tickHandler=null;this._roundedBehavior=null;this._shadowRoundedBehavior=null;this._rounded=!1;this._radius=5;this._lastX=null;this._lastY=null;this._lastW=null;this._lastH=null};Sys.Extended.UI.DropShadowBehavior.prototype={initialize:function(){Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"initialize");n=this.get_element();$common.getCurrentStyle(n,"position",n.style.position)!="absolute"&&(n.style.position="relative");this._rounded&&this.setupRounded();this._trackPosition&&this.startTimer();this.setShadow()},dispose:function(){this.stopTimer();this.disposeShadowDiv();Sys.Extended.UI.DropShadowBehavior.callBaseMethod(this,"dispose")},buildShadowDiv:function(){if((n=this.get_element(),this.get_isInitialized()&&n&&this._width)&&n.style.boxShadow==undefined&&n.style.MozBoxShadow==undefined&&n.style.WebkitBoxShadow==undefined){var t=document.createElement("DIV");t.style.backgroundColor="black";t.style.position="absolute";n.id&&(t.id=n.id+"_DropShadow");this._shadowDiv=t;n.parentNode.appendChild(t);this._rounded?(this._shadowDiv.style.height=Math.max(0,n.offsetHeight-2*this._radius)+"px",this._shadowRoundedBehavior?this._shadowRoundedBehavior.set_Radius(this._radius):this._shadowRoundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,{Radius:this._radius},null,null,this._shadowDiv)):this._shadowRoundedBehavior&&this._shadowRoundedBehavior.set_Radius(0);this._opacity!=1&&this.setupOpacity();this.setShadow(!1,!0);this.updateZIndex()}},disposeShadowDiv:function(){this._shadowDiv&&(this._shadowDiv.parentNode&&this._shadowDiv.parentNode.removeChild(this._shadowDiv),this._shadowDiv=null);this._shadowRoundedBehavior&&(this._shadowRoundedBehavior.dispose(),this._shadowRoundedBehavior=null)},onTimerTick:function(){this.setShadow()},startTimer:function(){this._timer||(this._tickHandler||(this._tickHandler=Function.createDelegate(this,this.onTimerTick)),this._timer=new Sys.Timer,this._timer.set_interval(this._trackPositionDelay),this._timer.add_tick(this._tickHandler),this._timer.set_enabled(!0))},stopTimer:function(){this._timer&&(this._timer.remove_tick(this._tickHandler),this._timer.set_enabled(!1),this._timer.dispose(),this._timer=null)},setShadow:function(t,i){var f,r,e,u,o;(n=this.get_element(),this.get_isInitialized()&&n&&(this._width||t))&&(n.style.boxShadow==undefined&&n.style.MozBoxShadow==undefined&&n.style.WebkitBoxShadow==undefined?(f=this._shadowDiv,f||this.buildShadowDiv(),r={x:n.offsetLeft,y:n.offsetTop},(t||this._lastX!=r.x||this._lastY!=r.y||!f)&&(this._lastX=r.x,this._lastY=r.y,u=this.get_Width(),r.x+=u,r.y+=u,$common.setLocation(this._shadowDiv,r)),e=n.offsetHeight,u=n.offsetWidth,(t||e!=this._lastH||u!=this._lastW||!f)&&(this._lastW=u,this._lastH=e,this._rounded&&f&&!i?(this.disposeShadowDiv(),this.setShadow()):(this._shadowDiv.style.width=u+"px",this._shadowDiv.style.height=e+"px")),this._shadowDiv&&(this._shadowDiv.style.visibility=$common.getCurrentStyle(n,"visibility"))):(o=this._opacity==".25"?this._width+"px "+this._width+"px "+this._width+"px #D3D3D3":this._opacity==".5"?this._width+"px "+this._width+"px "+this._width+"px #778899":this._opacity==".75"?this._width+"px "+this._width+"px "+this._width+"px #808080":this._width+"px "+this._width+"px "+this._width+"px #000",n.style.boxShadow!=undefined?n.style.boxShadow=o:n.style.MozBoxShadow!=undefined?n.style.MozBoxShadow=o:n.style.WebkitBoxShadow!=undefined&&(n.style.WebkitBoxShadow=o)))},setupOpacity:function(){this.get_isInitialized()&&this._shadowDiv&&$common.setElementOpacity(this._shadowDiv,this._opacity)},setupRounded:function(){!this._roundedBehavior&&this._rounded&&(this._roundedBehavior=$create(Sys.Extended.UI.RoundedCornersBehavior,null,null,null,this.get_element()));this._roundedBehavior&&this._roundedBehavior.set_Radius(this._rounded?this._radius:0)},updateZIndex:function(){if(this._shadowDiv){var i=this.get_element(),n=i.style.zIndex,t=this._shadowDiv.style.zIndex;t&&n&&n>t||(n=Math.max(2,n),t=n-1,i.style.zIndex=n,this._shadowDiv.style.zIndex=t)}},updateRoundedCorners:function(){this.get_isInitialized()&&(this.setupRounded(),this.disposeShadowDiv(),this.setShadow())},get_Opacity:function(){return this._opacity},set_Opacity:function(n){this._opacity!=n&&(this._opacity=n,this.setShadow(),this.setupOpacity(),this.raisePropertyChanged("Opacity"))},get_Rounded:function(){return this._rounded},set_Rounded:function(n){n!=this._rounded&&(this._rounded=n,this.updateRoundedCorners(),this.raisePropertyChanged("Rounded"))},get_Radius:function(){return this._radius},set_Radius:function(n){n!=this._radius&&(this._radius=n,this.updateRoundedCorners(),this.raisePropertyChanged("Radius"))},get_Width:function(){return this._width},set_Width:function(n){n!=this._width&&(this._width=n,this._shadowDiv&&$common.setVisible(this._shadowDiv,n>0),this.setShadow(!0),this.raisePropertyChanged("Width"))},get_TrackPositionDelay:function(){return this._trackPositionDelay},set_TrackPositionDelay:function(t){t!=this._trackPositionDelay&&(this._trackPositionDelay=t,n||(n=this.get_element()),n.style.boxShadow==undefined&&n.style.MozBoxShadow==undefined&&n.style.WebkitBoxShadow==undefined&&(this._trackPosition&&(this.stopTimer(),this.startTimer()),this.raisePropertyChanged("TrackPositionDelay")))},get_TrackPosition:function(){return this._trackPosition},set_TrackPosition:function(t){t!=this._trackPosition&&(this._trackPosition=t,n||(n=this.get_element()),n.style.boxShadow==undefined&&n.style.MozBoxShadow==undefined&&n.style.WebkitBoxShadow==undefined&&(this.get_element()&&(t?this.startTimer():this.stopTimer()),this.raisePropertyChanged("TrackPosition")))}};Sys.Extended.UI.DropShadowBehavior.registerClass("Sys.Extended.UI.DropShadowBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.DropShadowBehavior,{name:"dropShadow"})}var n=null;window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedDropShadow",["ExtendedBase","ExtendedCommon","ExtendedTimer","ExtendedRoundedCorners"],t):t()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.FilteredTextBoxBehavior=function(n){Sys.Extended.UI.FilteredTextBoxBehavior.initializeBase(this,[n]);this._keypressHandler=null;this._changeHandler=null;this._intervalID=null;this._filterType=Sys.Extended.UI.FilterTypes.Custom;this._filterMode=Sys.Extended.UI.FilterModes.ValidChars;this._validChars=null;this._invalidChars=null;this._filterInterval=250;this.charTypes={};this.charTypes.LowercaseLetters="abcdefghijklmnopqrstuvwxyz";this.charTypes.UppercaseLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";this.charTypes.Numbers="0123456789"};Sys.Extended.UI.FilteredTextBoxBehavior.prototype={initialize:function(){var n,t;Sys.Extended.UI.FilteredTextBoxBehavior.callBaseMethod(this,"initialize");n=this.get_element();this._keypressHandler=Function.createDelegate(this,this._onkeypress);$addHandler(n,"keypress",this._keypressHandler);this._changeHandler=Function.createDelegate(this,this._onchange);$addHandler(n,"change",this._changeHandler);t=Function.createDelegate(this,this._intervalCallback);this._intervalID=window.setInterval(t,this._filterInterval)},dispose:function(){var n=this.get_element();$removeHandler(n,"keypress",this._keypressHandler);this._keypressHandler=null;$removeHandler(n,"change",this._changeHandler);this._changeHandler=null;window.clearInterval(this._intervalID);Sys.Extended.UI.FilteredTextBoxBehavior.callBaseMethod(this,"dispose")},_getValidChars:function(){if(this._validChars)return this._validChars;this._validChars="";for(type in this.charTypes){var n=Sys.Extended.UI.FilterTypes.toString(this._filterType);n.indexOf(type)!=-1&&(this._validChars+=this.charTypes[type])}return this._validChars},_getInvalidChars:function(){return this._invalidChars||(this._invalidChars=this.charTypes.Custom),this._invalidChars},_onkeypress:function(n){var t,i;if((n.rawEvent.charCode!=0&&(n.rawEvent.keyCode!=n.rawEvent.which||n.rawEvent.charCode!=undefined)||n.rawEvent.keyCode!=Sys.UI.Key.pageUp&&n.rawEvent.keyCode!=Sys.UI.Key.pageDown&&n.rawEvent.keyCode!=Sys.UI.Key.up&&n.rawEvent.keyCode!=Sys.UI.Key.down&&n.rawEvent.keyCode!=Sys.UI.Key.left&&n.rawEvent.keyCode!=Sys.UI.Key.right&&n.rawEvent.keyCode!=Sys.UI.Key.home&&n.rawEvent.keyCode!=Sys.UI.Key.end&&n.rawEvent.keyCode!=46)&&!n.ctrlKey){if(n.rawEvent.keyIdentifier){if(n.rawEvent.ctrlKey||n.rawEvent.altKey||n.rawEvent.metaKey)return;if(n.rawEvent.keyIdentifier.substring(0,2)!="U+")return;if(t=n.rawEvent.charCode,t==63272)return}else t=n.charCode;t&&t>=32&&(i=String.fromCharCode(t),this._processKey(i)||n.preventDefault())}},_processKey:function(n){var t="",i=!1,r;return(this._filterMode==Sys.Extended.UI.FilterModes.ValidChars?(t=this._getValidChars(),i=t&&t.length>0&&t.indexOf(n)==-1):(t=this._getInvalidChars(),i=t&&t.length>0&&t.indexOf(n)>-1),r=new Sys.Extended.UI.FilteredTextBoxProcessKeyEventArgs(n,Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value(),i),this.raiseProcessKey(r),r.get_allowKey())?!0:(this.raiseFiltered(new Sys.Extended.UI.FilteredTextBoxEventArgs(n)),!1)},_onchange:function(){for(var t=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),u=t.get_Value()||"",i=new Sys.StringBuilder,r,n=0;n]*?"+t+'=")([^"]*?)"',"ig"),f),r==""&&n.outerHTML.replace(new RegExp("^(?:<[^>]*?"+t+"=')([^']*?)'","ig"),f),r==""&&n.outerHTML.replace(new RegExp("^(?:<[^>]*?"+t+"=)([^s>]*?)","ig"),f),u!=r&&r!=""&&(u=r,u=u.replace(/&/g,"&")),u},Sys.Extended.UI.HTMLEditor.getRealAttribute=function(n,t){var e=t.toLowerCase(),f=n.attributes,r="",u,t;for(i=0;i=0)i--,t.parentNode.removeChild(t);else{var r=t.tagName.toLowerCase(),a=!1,v=Sys.Extended.UI.HTMLEditor.enabledWordTags.length;for(e=0;e0&&(t.style.width=t.getAttribute("width"));t.width&&t.width.length>0&&(t.style.width=t.width);t.width="";try{t.removeAttribute("width")}catch(y){}t.getAttribute("height")&&t.getAttribute("height").length>0&&(t.style.height=t.getAttribute("height"));t.height&&t.height.length>0&&(t.style.height=t.height);t.height="";try{t.removeAttribute("height")}catch(y){}if(r=="table"&&(t.style.borderLeftWidth="1px",t.style.borderLeftColor="black",t.style.borderLeftStyle="solid",t.style.borderTopWidth="1px",t.style.borderTopColor="black",t.style.borderTopStyle="solid",t.style.backgroundColor=o,t.style.color=s),r=="td"&&(t.style.borderRightWidth="1px",t.style.borderRightColor="black",t.style.borderRightStyle="solid",t.style.borderBottomWidth="1px",t.style.borderBottomColor="black",t.style.borderBottomStyle="solid",t.style.backgroundColor=o,t.style.color=s),r=="font"||r=="span"){for(t.style.backgroundColor=o,t.style.color=s,c=t.attributes,f=0,h=0;h]*?)>/gi,"").replace(/<\/html(?:[^>]*?)>[^\u0000]*$/gi,"").replace(/]*?)>[^\u0000]*?<\/head(?:[^>]*?)>/gi,"").replace(/]*?>([^\u0000]*?)<\/body(?:[^>]*?)>/gi,"$1").replace(/<\/?html(?:[^>]*?)>/gi,"").replace(/<\/?head(?:[^>]*?)>/gi,"").replace(/<\/?body(?:[^>]*?)>/gi,"").replace(//ig,"").replace(/(<[\/]?)(?:o|v|x|p|w|\?xml):(\w+)([^>]*?>)/ig,"$1$2$3").replace(/<(IMAGEDATA)([^>]*?)>/ig,"").replace(/]*>

 <\/p><\/p>/ig,"
").replace(/]*?\/>/ig,"").replace(/<(p|div)[^>]*?> <\/(\1)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?><\/(\1)[^>]*?>/ig,""),i;do r=t,t=t.replace(/<([^>]*)(?:class|size|lang|face|start|type|border|[ovwxp]:\w+)=(?:\'[^\']*\'|\"[^\"]*\"|[^> ]+)([^>]*)>/ig,"<$1$2>");while(t!=r);i=document.createElement("div");i.innerHTML=t;u(i);t=Sys.Extended.UI.HTMLEditor.Trim(i.innerHTML);delete i;t=t.replace(/<[\/]?(xml|del|ins)[^>]*?>/ig,"").replace(/<(p|div)[^>]*?>/ig,"").replace(/<\/(p|div)[^>]*?>/ig,"
");do r=t,t=t.replace(/<\/b>/ig,"").replace(/<\/i>/ig,"").replace(/<\/u>/ig,"").replace(/<\/strong>/ig,"").replace(/<\/em>/ig,"").replace(/<\/sub>/ig,"").replace(/<\/sup>/ig,""),t=t.replace(/]*?><\/span>/ig,"").replace(/([^<]+?)<\/span>/ig,"$1"),t=t.replace(/]*?><\/font>/ig,"").replace(/([^<]+?)<\/font>/ig,"$1");while(t!=r);return t=t.replace(/’/g,"'").replace(/‘/g,"'").replace(/–/g,"-").replace(/—/g,"-").replace(/…/g,"...").replace(/"/g,'"').replace(/“/g,'"').replace(/”/g,'"').replace(//g,"").replace(/•/g,"").replace(/[ \s]+/g," ").replace(/(( )+)/g," "),document.all&&(t=t.replace(/^[\x00-\x1F]* /,"")),t},Sys.Extended.UI.HTMLEditor.spanJoiner=function(n,t,i,r,u){var y=0,h=n.childNodes.length,c,f,p,w,a,o,b,e,l,s;for(typeof i!="undefined"&&i!=null&&(y=i),typeof r!="undefined"&&r!=null&&(h=r),c=y;c0||f.getAttribute("class")&&f.getAttribute("class").length>0)&&!Sys.Extended.UI.HTMLEditor.isTempElement(f)){n.removeChild(f);c--;h--;continue}if(f.tagName.toUpperCase()=="SPAN"){while(f.childNodes.length==1&&f.firstChild.nodeType==1){if(f.firstChild.tagName.toUpperCase()!="SPAN"||Sys.Extended.UI.HTMLEditor.isTempElement(f.firstChild))f.firstChild.tagName.toUpperCase()=="SPAN"&&Sys.Extended.UI.HTMLEditor.isTempElement(f.firstChild)&&(w=f.firstChild,f.parentNode.insertBefore(f.firstChild,f),f.parentNode.removeChild(f),f=w);else{for(var l=Sys.Extended.UI.HTMLEditor.differAttr(f.firstChild,[]),s=Sys.Extended.UI.HTMLEditor.differStyle(f.firstChild),v=f.firstChild,k=v.childNodes;v.firstChild!=null;)f.insertBefore(v.firstChild,v);for(e=0;e=0)f.style[s[e][0]]=s[e][1];else try{p=f.style[s[e][0]];f.style[s[e][0]]=f.style[s[e][0]]+" "+s[e][1];p==f.style[s[e][0]]&&(f.style[s[e][0]]=s[e][1])}catch(d){f.style[s[e][0]]=s[e][1]}else f.style[s[e][0]]=s[e][1]}catch(g){}for(e=0;e0||f.getAttribute("class")&&f.getAttribute("class").length>0||Sys.Extended.UI.HTMLEditor.isTempElement(f))Sys.Extended.UI.HTMLEditor.spanJoiner(f,t);else{n.removeChild(f);c--;h--;continue}}},Sys.Extended.UI.HTMLEditor._styleTags=["strong","em","u","strike","s","span","font","b","sub","sup","a","i"],Sys.Extended.UI.HTMLEditor.isStyleTag=function(n){if(!n)return!1;for(var t=0;t0&&n.id.indexOf(Sys.Extended.UI.HTMLEditor.smartClassName)>=0?!0:!1},Sys.Extended.UI.HTMLEditor.differAttr=function(n,t,i){var s=[],u=n.parentNode,f,r,h,e,o;if(typeof i!="undefined"&&(u=i),u&&u.tagName&&Sys.Extended.UI.HTMLEditor.isStyleTag(u.tagName)||(u=null),n.attributes)for(f=0;f/ig,"
")},Sys.Extended.UI.HTMLEditor._needsClosingTag=function(n){return" script style div span a del strong em u strike font b sub sup p iframe li ul ol placeholder textarea td tr ".indexOf(" "+n.tagName.toLowerCase()+" ")!=-1},Sys.Extended.UI.HTMLEditor._encodeText_=function(n){return n.replace(/&/ig,"&").replace(//ig,">").replace(/\"/ig,""").replace(/\xA0/ig," ")},Sys.Extended.UI.HTMLEditor._noNeedsClosingTag=function(n){return" hr br ".indexOf(" "+n.tagName.toLowerCase()+" ")!=-1},Sys.Extended.UI.HTMLEditor.canBeInsideP=function(n,t){var r,i;if(n&&n.style&&n.style.display&&n.style.display.toLowerCase()=="inline")return!0;if(r=n.tagName.toUpperCase(),r.length==2&&r.substr(0,1)=="H"&&parseInt(r.substr(1,1))>0)return!1;switch(r){case"TBODY":case"TR":case"TD":if(typeof t!="undefined"){for(i=n.parentNode;i&&i.tagName&&i.tagName.toUpperCase()!="TABLE";)i=i.parentNode;if(i.tagName.toUpperCase()=="TABLE"&&i.style&&i.style.display&&i.style.display.toLowerCase()=="inline")return!0}case"P":case"PRE":case"TABLE":case"OL":case"UL":case"LI":case"HR":case"DIV":case"BLOCKQUOTE":case"FORM":case"FIELDSET":case"LEGEND":return!1;default:return!0}},Sys.Extended.UI.HTMLEditor.convertAlign=function(n){var t,i;try{i=parseInt(n)-1}catch(r){return n}switch(i){case 1:t="left";break;case 2:t="right";break;case 3:t="texttop";break;case 4:t="absmiddle";break;case 5:t="baseline";break;case 6:t="absbottom";break;case 7:t="bottom";break;case 8:t="middle";break;case 9:t="top";break;default:t=n.replace(/\"/g,""")}return t},Sys.Extended.UI.HTMLEditor.getHTML=function(n,t,i){try{if(typeof i=="undefined")if(t||n.nodeType!=1){if(t&&n.nodeType==1&&Sys.Extended.UI.HTMLEditor.isIE)return n.outerHTML}else return n.innerHTML}catch(u){}var r=new Sys.Extended.UI.HTMLEditor.jsDocument(!0);return Sys.Extended.UI.HTMLEditor._getHTML_(r,n,t),r.toString()},Sys.Extended.UI.HTMLEditor._getHTML_=function(n,t,i){var h,l,y,e,f,p,c,w,b,v,a,u,o,r,k,s;switch(t.nodeType){case 1:case 11:if(t.tagName&&t.tagName.indexOf("/")>=0){if(Sys.Extended.UI.HTMLEditor.isIE){if(f=t.tagName.toLowerCase().substr(t.tagName.indexOf("/")+1),h=t.previousSibling,f=="embed")return;while(h!=null){if(h.nodeType==t.nodeType&&h.tagName&&h.tagName.toLowerCase()==f){n.append("<\/teo"+Sys.Extended.UI.HTMLEditor.smartClassName+":"+t.tagName.toLowerCase().substr(t.tagName.indexOf("/")+1)+">");return}h=h.previousSibling}}return}if(i&&t.tagName.length>0){if(f=t.tagName.toLowerCase(),l=!(t.hasChildNodes()||Sys.Extended.UI.HTMLEditor._needsClosingTag(t)),y=!0,p="",Sys.Extended.UI.HTMLEditor.isIE&&t.scopeName&&typeof t.scopeName!="undefined"&&(p=t.scopeName.toUpperCase()=="HTML"?"":t.scopeName+":"),Sys.Extended.UI.HTMLEditor.isIE&&(l||f=="placeholder")&&!Sys.Extended.UI.HTMLEditor._noNeedsClosingTag(t)&&f!="embed")for(c=t.nextSibling;c!=null;){if(c.nodeType==t.nodeType&&c.tagName&&(w=c.tagName,w.indexOf("/")>=0&&w.toLowerCase().substr(w.indexOf("/")+1)==f)){l=!1;y=!1;break}c=c.nextSibling}for(Sys.Extended.UI.HTMLEditor.canBeInsideP(t)||n.append("\n"),n.append("<"+(!l&&!y?"teo"+Sys.Extended.UI.HTMLEditor.smartClassName+":":p)+f),Sys.Extended.UI.HTMLEditor.isIE&&t.name&&t.name.length>0&&n.append(' name="'+t.name.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.value&&t.value.length>0&&f!="textarea"&&n.append(' value="'+t.value.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.className&&t.className.length>0&&n.append(' class="'+t.className.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.align&&t.align.length>0&&n.append(' align="'+t.align.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.color&&t.color.length>0&&n.append(' color="'+t.color.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.size&&t.size.length>0&&t.size!="+0"&&n.append(' size="'+t.size.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.shape&&t.shape.length>0&&n.write(' shape="'+t.shape.replace(/\"/g,""")+'"'),Sys.Extended.UI.HTMLEditor.isIE&&t.coords&&t.coords.length>0&&n.write(' coords="'+t.coords.replace(/\"/g,""")+'"'),b=t.attributes,v=null,e=0;e]*?width=)([\\d]+)","ig"),function(n,t){o=t}),r!=o&&(r=o));else if(u=="height")r=t.height,Sys.Extended.UI.HTMLEditor.isIE&&r==0&&(o=0,t.outerHTML.replace(new RegExp("^(?:<[^>]*?height=)([\\d]+)","ig"),function(n,t){o=t}),r!=o&&(r=o));else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="name"&&t.name&&t.name.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="value"&&t.value&&t.value.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="align"&&t.align&&t.align.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="class"&&t.className&&t.className.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="color"&&t.color&&t.color.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="size"&&t.size&&t.size.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="shape"&&t.shape&&t.shape.length>0)continue;else if(Sys.Extended.UI.HTMLEditor.isIE&&u=="coords"&&t.coords&&t.coords.length>0)continue;else if(f=="embed"&&u=="align"&&Sys.Extended.UI.HTMLEditor.isIE)r=Sys.Extended.UI.HTMLEditor.convertAlign(a.value);else{if(r=a.value,Sys.Extended.UI.HTMLEditor.isSafari&&u=="class"&&/apple-style/ig.test(r))continue;(u=="src"||u=="href")&&(Sys.Extended.UI.HTMLEditor.isIE&&(r=Sys.Extended.UI.HTMLEditor.getRealAttributeIE(t,u,r)),r=r.replace(/(\(S\([A-Za-z0-9_]+\)\)\/)/,""));r=r.replace(/\"/g,""")}else{Sys.Extended.UI.HTMLEditor.isSafari&&(v=a.value);continue}s='"';(""+r+"").indexOf('"')>=0&&(s="'");u!=null&&n.append(" "+u+"="+s+r+s)}if(t.style.cssText.length>0||v!=null){var u="style",d=/(url\((?:[^\)]*)\))/ig,g=[];function nt(n,t){g.push(t)}r=(v!=null?v:t.style.cssText).toLowerCase();r.replace(d,nt);k=0;function tt(){var n=g[k];return k++,n}if(r=Sys.Extended.UI.HTMLEditor.tryReplaceRgb(r.replace(d,tt)).replace(/(font-weight\s*:\s*)(700)/ig,"$1bold").replace(/([\s]*-moz-[^;]*[;][\s]*)/ig,"").replace(/(-moz-.*)$/i,"").replace(/(background-position: 0% 0%[;]*[\s]*)/ig,""),Sys.Extended.UI.HTMLEditor.isSafari){function it(n,t,i,r){return t+i.replace(/(,)/g,"")+r}r=r.replace(/(text-decoration:)([^;$]+)([;$])/ig,it)}if(Sys.Extended.UI.HTMLEditor.isSafari||Sys.Extended.UI.HTMLEditor.isOpera){function rt(n,t,i,r){return t+i.replace(/(['"])/g,"")+r}r=r.replace(/(font-family:)([^;]+)([;]*)/ig,rt)}r.length>0&&(s='"',(""+r+"").indexOf('"')>=0&&(s="'"),n.append(" "+u+"="+s+r+s))}n.append(l?" />":">");f=="br"&&n.append("\n")}if(t.tagName&&t.tagName.toUpperCase()=="SCRIPT"&&n.append(t.text),t.tagName&&t.tagName.toUpperCase()=="STYLE")n.append(t.innerHTML);else for(e=t.firstChild;e;e=e.nextSibling)Sys.Extended.UI.HTMLEditor._getHTML_(n,e,!0);i&&t.tagName.length>0&&!l&&y&&n.append("<\/"+p+t.tagName.toLowerCase()+">");break;case 3:n.append(Sys.Extended.UI.HTMLEditor._encodeText_(""+t.data+""));break;case 8:t.length>0?n.append(""):n.append("")}},Sys.Extended.UI.HTMLEditor.RemoveContextMenu=function(){var n=this,t=n._contextElement.parentNode.removeChild(n._contextElement);t&&delete t;n._contextElement=null;n._contextTable=null;n.__saved_range__&&(n.__saved_range__.select(),n.__saved_range__=null)},Sys.Extended.UI.HTMLEditor.contentEditable=function(n,t){for(var i,r;n!=null;){try{if(i=null,n.contentEditable==null||typeof n.contentEditable=="undefined"||Sys.Extended.UI.HTMLEditor.isSafari||Sys.Extended.UI.HTMLEditor.isOpera?(r=n.getAttribute("contenteditable"),typeof r=="boolean"?i=r:typeof r=="string"&&r.toLowerCase()=="false"&&(i=!1)):i=n.contentEditable&&n.contentEditable!="false"?!0:!1,i!=null&&typeof i=="boolean"&&!i)return n}catch(u){}if(typeof t!="undefined"&&t)return null;if(n.tagName!=null&&typeof n.tagName!="undefined"&&(n.tagName.toUpperCase()=="BODY"||n.tagName.toUpperCase()=="HTML"))break;n=n.parentNode}return null},Sys.Extended.UI.HTMLEditor.getSelParent=function(n){var r=n._getSelection(),i=n._createRange(r),t=null,u;return Sys.Extended.UI.HTMLEditor.isIE?t=r.type.toLowerCase()=="control"?i.item(0):n._getParent(i):(t=n._getParent(i),t.nodeType!=3&&i.startContainer==i.endContainer&&(u=t,t=t.childNodes.item(i.startOffset),t==null&&(t=u))),t},Sys.Extended.UI.HTMLEditor.__getIndex=function(n){var t=0;if(n.parentNode)for(;t0)return!1;switch(t){case"BR":case"TBODY":case"TR":case"TD":case"P":case"PRE":case"TABLE":case"OL":case"UL":case"LI":case"HR":case"DIV":case"BLOCKQUOTE":case"FORM":case"FIELDSET":case"LEGEND":return!1;default:return!0}},Sys.Extended.UI.HTMLEditor.capLock=function(n){var t=n.charCode,i=n.shiftKey?n.shiftKey:t==16?!0:!1;return t>=65&&t<=90&&!i||t>=97&&t<=122&&i?!0:!1},Sys.Extended.UI.HTMLEditor.operateAnchors=function(n,t,i){for(var h=t.getElementsByTagName("A"),c=!1,r,e,o,u,f,s=0;s0){for(e=[],o=0;o0)r.removeChild(e.pop());i||(f=t.createElement("IMG"),f.title=r.name,f.src=n._editPanel.get_imagePath_anchor(),f.setAttribute(n.noContextMenuAttributeName(),"yes"),r.appendChild(f))}return c},Sys.Extended.UI.HTMLEditor.operatePlaceHolders=function(n,t,i){var v=!1,c,l,e,o,f,r,u,a,s,h;if(i){for(o=t.getElementsByTagName("IMG"),f=[],r=0;r0&&c.toLowerCase()=="placeholder"&&(l=t.createElement("PLACEHOLDER"),e=u.title,(e==null||typeof e=="undefined")&&(e=u.getAttribute("title")),l.name=e,l.setAttribute("name",e),u.parentNode.insertBefore(l,u),u.parentNode.removeChild(u),v=!0)}else{for(o=t.getElementsByTagName("PLACEHOLDER"),f=[],r=0;r0&&(a=!1)}catch(y){}a&&(s=u.name,(s==null||typeof s=="undefined")&&(s=u.getAttribute("name")),h=t.createElement("IMG"),h.title=s,h.src=n._editPanel.get_imagePath_placeHolder(),h.setAttribute("dummytag","placeholder"),h.setAttribute("title",s),u.parentNode.insertBefore(h,u),u.parentNode.removeChild(u))}}return v},Sys.Extended.UI.HTMLEditor.inspectForShadows=function(n){for(var i=n.getElementsByTagName("IMG"),t=0;t0){try{Sys.Extended.UI.HTMLEditor.isIE?$removeHandler(i[t],"dragstart",Sys.Extended.UI.HTMLEditor.stopDrag):$removeHandler(i[t],"draggesture",Sys.Extended.UI.HTMLEditor.stopDrag)}catch(r){}Sys.Extended.UI.HTMLEditor.isIE?$addHandler(i[t],"dragstart",Sys.Extended.UI.HTMLEditor.stopDrag):$addHandler(i[t],"draggesture",Sys.Extended.UI.HTMLEditor.stopDrag)}},Sys.Extended.UI.HTMLEditor.attachedIdAttribute="obout-attached-id",Sys.Extended.UI.HTMLEditor.stopDrag=function(n){return n&&n.stopPropagation(),n.preventDefault(),!1},Sys.Extended.UI.HTMLEditor.replacingRules=[["strong","font-weight","bold"],["b","font-weight","bold"],["strong","font-weight","700"],["em","font-style","italic"],["i","font-style","italic"],["u","text-decoration","underline"],["strike","text-decoration","line-through"]],Sys.Extended.UI.HTMLEditor.replaceOldTags=function(n,t){for(var c=n.innerHTML,l=!1,a,o,i,f,s,r,h,e,u=0;u]","ig"),a.test(c)){l=!0;break}if(l||/]/ig.test(c))for(o=0;o0)e.appendChild(r),i=r;else{while(r.firstChild)e.appendChild(r.firstChild);n.removeChild(r);i=e}else i=r}Sys.Extended.UI.HTMLEditor.replaceOldTags(i,t)}},Sys.Extended.UI.HTMLEditor.getStyle=function(n,t){var i="";if(n.nodeType==1)if(n.ownerDocument&&n.ownerDocument.defaultView&&n.ownerDocument.defaultView.getComputedStyle)i=n.ownerDocument.defaultView.getComputedStyle(n,"").getPropertyValue(t);else if(n.currentStyle)try{t=t.replace(/\-(\w)/g,function(n,t){return t.toUpperCase()});i=n.currentStyle[t]}catch(r){i=n.style[t]}else i=n.style[t];return i},Sys.Extended.UI.HTMLEditor._Marker=function(n,t,i){var r,u;if(Sys.Extended.UI.HTMLEditor.isIE)if(this._nArr=Sys.Extended.UI.HTMLEditor.getNames(n._doc.body),this._save=n._doc.body.innerHTML,this._tree=null,i.type.toLowerCase()=="control")try{for(r=t.item(0),this._tree=[];r&&(r.nodeType==3||!r.tagName||r.tagName.toUpperCase()!="BODY");){for(u=0;r.previousSibling;)u++,r=r.previousSibling;this._tree.push(u);r=r.parentNode}}catch(f){}else this._offsetLeft=t.offsetLeft,this._offsetTop=t.offsetTop;else{this._save=Sys.Extended.UI.HTMLEditor.isOpera?Sys.Extended.UI.HTMLEditor.Trim(n._doc.body.innerHTML):n._doc.body.cloneNode(!0);this._tree=[];this._offset=0;try{for(r=t.startContainer,this._offset=t.startOffset,r&&r.nodeType==1&&r.tagName.toUpperCase()=="HTML"&&(r=n._doc.body,setTimeout(function(){try{i=n._getSelection();t=n._createRange();n._removeAllRanges(i);t.setStart(r,0);t.setEnd(r,0);n._selectRange(i,t)}catch(u){}},0));r&&r.nodeType&&(r.nodeType==3||!r.tagName||r.tagName.toUpperCase()!="BODY");){for(u=0;r.previousSibling;)u++,Sys.Extended.UI.HTMLEditor.isOpera&&r.nodeType==3&&r.previousSibling!=null&&r.previousSibling.nodeType==3&&u--,r=r.previousSibling;this._tree.push(u);r=r.parentNode}}catch(f){}}},Sys.Extended.UI.HTMLEditor.__stackMaxSize=30,Sys.Extended.UI.HTMLEditor.getNames=function(n){for(var f=n.all,e=[],o=[],t,i,u=0;u0){var r=t.tagName,s=n.getElementsByTagName(r),h=0;for(i=0;it[i][1]&&(n.getElementsByTagName(t[i][0])[t[i][1]].name=t[i][2])},Sys.Extended.UI.HTMLEditor._lookChild=function(n,t){for(var i,r=0;r=0)return r;return-1},Sys.Extended.UI.HTMLEditor.getHrefsText=function(n){function i(n,i,r,u,f,e){for(var s=i.replace(/^<([^\s>]+)/,"$1"),h=!0,o=0;o<]+)([^><]*?)(href=)(\"|')([^\\4]*?)(\\4)((?:[^><]*?)>)","ig");return n.replace(r,i),t},Sys.Extended.UI.HTMLEditor.setHrefsText=function(n,t){for(var r,f,i,e,u=0;u0&&(Sys.Extended.UI.HTMLEditor.isIE&&(e=r[i].innerHTML),r[i].href=t[u][f].replace(/&/ig,"&"),Sys.Extended.UI.HTMLEditor.isIE&&(r[i].innerHTML=e)),f++)},Sys.Extended.UI.HTMLEditor.getImagesText=function(n){function i(n,i,r,u){return t.push(u),n}var t=[];return n.replace(/()/ig,i),t},Sys.Extended.UI.HTMLEditor.setImagesText=function(n,t){for(var u=n.getElementsByTagName("IMG"),i=0,r=0;r0&&(u[r].src=t[i].replace(/&/ig,"&")),i++)},Sys.Extended.UI.HTMLEditor.canHaveChildren=function(n){return Sys.Extended.UI.HTMLEditor.isIE?n.canHaveChildren:!/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/.test(n.tagName.toLowerCase())},Sys.Extended.UI.HTMLEditor._setCursor=function(n,t){var r=n,e,f,u,i;if(Sys.Extended.UI.HTMLEditor.isIE){u=t._getSelection();i=t._createRange(u);u.type.toLowerCase()=="control"&&(i.remove(0),u.empty(),i=t._createRange());e=r.nodeType==3;e&&(f=t._doc.createElement("SPAN"),f.innerHTML=" ",r.parentNode.insertBefore(f,r),r=f);var o=$common.getLocation(r),s=o.x,h=o.y;e&&f.parentNode.removeChild(f);try{i.moveToPoint(s,h)}catch(c){}i.select()}else u=t._getSelection(),i=t._createRange(),i.setStart(r,0),i.setEnd(r,0),t._removeAllRanges(u),t._selectRange(u,i),t.focusEditor()},Sys.Extended.UI.HTMLEditor.myClone=function(n,t,i){var r,u;if(Sys.Extended.UI.HTMLEditor.isIE&&n.tagName&&(n.tagName.toUpperCase()=="EMBED"||n.tagName.toUpperCase()=="OBJECT")){u=t.createElement("DIV");try{u.innerHTML=n.outerHTML;r=u.firstChild}catch(f){r=n}delete u}else r=n.cloneNode(i);return r},Sys.Extended.UI.HTMLEditor.unStyle=function(n){var t=n.parentNode!=null&&typeof n.parentNode!="undefined"?n.parentNode:null,i,s,r;if(t){for(i=null;t&&t.tagName&&t.tagName.toUpperCase()!="BODY"&&Sys.Extended.UI.HTMLEditor.isStyleTag(t.tagName)&&t.tagName.toUpperCase()!="A";)i=t,t=t.parentNode;if(i){function o(n,t,r,u,f){var e=r.cloneNode(!1),h,v,l,c,a,s;if(n)if(n.push&&typeof n.push=="function")for(h=0;h0)&&(t.nodeType==1&&t.tagName&&Sys.Extended.UI.HTMLEditor.isStyleTag(t.tagName)&&t.childNodes.length==0&&!Sys.Extended.UI.HTMLEditor.isTempElement(t)&&(t=null),t&&(e.childNodes.length!=0&&u?e.insertBefore(t,e.firstChild):e.appendChild(t))),t=v;if(e.childNodes.length==0)delete e,e=null;else if(e.childNodes.length==1&&e.firstChild.nodeType==3&&(""+e.firstChild.data+"").length==0)delete e,e=null;else if(!f&&e.tagName&&Sys.Extended.UI.HTMLEditor.isStyleTag(e.tagName)&&e.tagName.toUpperCase()!="A"&&!Sys.Extended.UI.HTMLEditor.isTempElement(e)){for(l=e.childNodes.length,c=0;c0&&(n=t);var f=o(null,n.previousSibling,n.parentNode,!0,!1),e=o(null,n.nextSibling,n.parentNode,!1,!1),u=i.parentNode;if(f)if(f.push&&typeof f.push=="function")for(r=0;r0&&n.id.indexOf(Sys.Extended.UI.HTMLEditor.smartClassName)>=0?!0:!1},Sys.Extended.UI.HTMLEditor._moveTagsUp=function(n,t){function r(n){var t,i;if(Sys.Extended.UI.HTMLEditor.isInlineElement(n)&&n.nodeType!=3){if(n.tagName&&Sys.Extended.UI.HTMLEditor.isStyleTag(n.tagName)&&n.tagName.toUpperCase()!="A"&&!Sys.Extended.UI.HTMLEditor.isTempElement(n))for(t=n.firstChild;t!=null;)i=t.nextSibling,r(t),t=i}else Sys.Extended.UI.HTMLEditor.unStyle(n)}for(var i=n,u;i!=null&&i!=t;)u=i.nextSibling,r(i),i=u},Sys.Extended.UI.HTMLEditor._commonTotalParent=function(n,t){for(var i=n.parentNode,e=n,u,f,r;i;){if(i.tagName&&!Sys.Extended.UI.HTMLEditor.isStyleTag(i.tagName)&&(u=Sys.Extended.UI.HTMLEditor._lookChild(i,t),u>=0)){for(f=0,r=0;r=0){for(f=0,r=0;r=0;u--)if(r(e.substr(u,1)))break}else for(u=0;u=0&&u0||i&&u==0)&&(u0&&(this.text[this.text.length-1]!="\n"||n!="\n"))&&(this.text[this.text.length]=n)};this.append=this.write;this.writeln=function(n){this.text[this.text.length]=n+"\n"};this.toString=function(){return this.text.join("")};this.clear=function(){delete this.text;this.text=null;this.text=[]}},Sys.Extended.UI.HTMLEditor.isHeader=function(n){var t=n.tagName.toUpperCase();return t.length==2&&t.substr(0,1)=="H"&&parseInt(t.substr(1,1))>0?!0:!1},Sys.Extended.UI.HTMLEditor._getReallyFirst=function(n){return typeof n.firstChild!="undefined"&&n.firstChild!=null&&typeof n.firstChild.childNodes!="undefined"&&n.firstChild.childNodes!=null?Sys.Extended.UI.HTMLEditor._getReallyFirst(n.firstChild):n},Sys.Extended.UI.HTMLEditor._getReallyLast=function(n){return typeof n.lastChild!="undefined"&&n.lastChild!=null&&typeof n.lastChild.childNodes!="undefined"&&n.lastChild.childNodes!=null?Sys.Extended.UI.HTMLEditor._getReallyLast(n.lastChild):n},Sys.Extended.UI.HTMLEditor._reallyFirst=function(n,t){if(n.firstChild){if(n.firstChild==t)return!0;if(n.firstChild.childNodes&&Sys.Extended.UI.HTMLEditor._lookChild(n.firstChild,t)==0)return Sys.Extended.UI.HTMLEditor._reallyFirst(n.firstChild,t)}return!1},Sys.Extended.UI.HTMLEditor._reallyLast=function(n,t){if(n.lastChild){if(n.lastChild==t)return!0;if(n.lastChild.childNodes&&Sys.Extended.UI.HTMLEditor._lookChild(n.lastChild,t)==n.lastChild.childNodes.length-1)return Sys.Extended.UI.HTMLEditor._reallyLast(n.lastChild,t)}return!1},Sys.Extended.UI.HTMLEditor.getContainer=function(n,t){var r,i,u;if(t==n)return n;if(n.nodeType==1)for(r=0;r=0))return i.tagName&&Sys.Extended.UI.HTMLEditor.isStyleTag(i.tagName)&&i.tagName.toUpperCase()!="A"&&!Sys.Extended.UI.HTMLEditor.isTempElement(i)?Sys.Extended.UI.HTMLEditor.getContainer(i,t):i}return null},Sys.Extended.UI.HTMLEditor._TryTransformFromPxToPt=function(n,t,i){var f=n.replace(/^(\d+)\.(\d+)px/i,"$1px"),e,o,r,s,u;if(!Sys.Extended.UI.HTMLEditor.isIE&&f&&f.length>0){if(e=f.toLowerCase().split(",")[0],typeof i!="undefined"&&(o=document.getElementById(i),o!=null)){for(r=0;r]+\>/g,n=n.replace(u,function(n){var t="",i="";return n.toLowerCase().substring(0,2)!="]*)/g,n.replace(t,'="$1"').replace(i,"=$1")):n})),f=this._rgbToHex,i=function(){n=n.replace(/(\<[^\>]+)(rgb\s?\(\d{1,3}\s?\,\s?\d{1,3}\s?\,\s?\d{1,3}\s?\))([^\>]*\>)/gi,function(n,t,i,r){return(t||"")+(i&&f(i)||"")+(r||"")})},i(),i(),n=n.replace(/\sclass\=\"\"/gi,"").replace(/\sid\=\"\"/gi,""),n=n.replace(/\<(\/?)strong\>/gi,"<$1b>").replace(/\<(\/?)em\>/gi,"<$1i>"),n=n.replace(/&/ig,"&").replace(/\xA0/ig," "),n=n.replace(//ig,">").replace(/\'/ig,"'").replace(/\"/ig,""")},_editableDiv_submit:function(){var t=3,n=null;setTimeout(function(){this._editableDiv!=null&&this._editableDiv.focus()},0);Sys.Browser.agent!=Sys.Browser.Firefox&&(document.selection?(n=document.selection.createRange(),n.moveStart("character",t),n.select()):(n=window.getSelection(),n.collapse(this._editableDiv.firstChild,t)));this._textbox._element.value=this._encodeHtml()},_executeCommand:function(n){var u,f,c,t,e,l,o,i,s;if(n.target.name!=undefined)if(u=Sys.Browser.agent==Sys.Browser.Firefox,f=Function.createDelegate(this,this._colorPicker_onchange),u&&document.execCommand("styleWithCSS",!1,!1),c={JustifyRight:1,JustifyLeft:1,JustifyCenter:1,JustifyFull:1,Indent:1,Outdent:1},c[n.target.name])try{document.execCommand(n.target.name,!1,null)}catch(h){if(h&&h.result==2147500037){var a=window.getSelection().getRangeAt(0),r=document.createElement("div"),v=!1;for(r.style.height="1px;",a.startContainer.contentEditable=="true"&&(window.getSelection().collapseToEnd(),v=!0),t=window.getSelection().getRangeAt(0).startContainer;t&&t.contentEditable!="true";)t=t.parentNode;if(!t)throw"Selected node is not editable!";t.insertBefore(r,t.childNodes[0]);document.execCommand(n.target.name,!1,null);r.parentNode.removeChild(r);v&&window.getSelection().addRange(a)}else window.console&&window.console.log&&window.console.log(h)}else if(n.target.name=="createLink")e=prompt("Please insert URL",""),e&&document.execCommand("createLink",!1,e);else if(n.target.name=="ForeColor")this._commandName=n.target.name,this.saveSelection(),this._foreColorPicker||(this._foreColorPicker=$create(Sys.Extended.UI.ColorPickerBehavior,{unselectable:"on"},{},{},this._foreColor),this._foreColorPicker.set_sample(this._foreColor.parentNode),this._foreColorPicker.add_colorSelectionChanged(f)),this._foreColorPicker.show();else if(n.target.name=="BackColor")this._commandName=n.target.name,this.saveSelection(),this._backColorPicker||(this._backColorPicker=$create(Sys.Extended.UI.ColorPickerBehavior,{unselectable:"on"},{},{},this._backColor),this._backColorPicker.set_sample(this._backColor.parentNode),this._backColorPicker.add_colorSelectionChanged(f)),this._backColorPicker.show();else if(n.target.name=="UnSelect")u?(this._editableDiv.focus(),l=window.getSelection(),l.collapse(this._editableDiv.firstChild,0)):document.execCommand(n.target.name,!1,null);else if(n.target.name=="InsertImage"){for(this._isFocusInEditableDiv||this._editableDiv.focus(),this.saveSelection(),o=Sys.Application.getComponents(),i=0;i0&&n.removeAllRanges();n.addRange(this._savedRange)}else document.createRange?window.getSelection().addRange(this._savedRange):document.selection&&this._savedRange.select()},_elementVisible:function(n,t){n.tagName!="FORM"&&(t?(n.style.display=="none"&&(n.style.display="block",n.setAttribute("displayChanged",!0)),n.style.visibility=="hidden"&&(n.style.visibility="visible",n.setAttribute("visibleChanged",!0)),this._elementVisible(n.parentNode,!0)):(n.getAttribute("displayChanged")&&(n.style.display="none",n.removeAttribute("displayChanged")),n.getAttribute("visibleChanged")&&n.removeAttribute("visibleChanged"),this._elementVisible(n.parentNode,!1)))},_raiseEvent:function(n,t){var i=this.get_events().getHandler(n);i&&(t||(t=Sys.EventArgs.Empty),i(this,t))},get_ButtonWidth:function(){return this._ButtonWidth},set_ButtonWidth:function(n){this._ButtonWidth!=n&&(this._ButtonWidth=n,this.raisePropertyChanged("ButtonWidth"))},get_ButtonHeight:function(){return this._ButtonHeight},set_ButtonHeight:function(n){this._ButtonHeight!=n&&(this._ButtonHeight=n,this.raisePropertyChanged("ButtonHeight"))},get_ToolbarButtons:function(){return this._toolbarButtons},set_ToolbarButtons:function(n){this._toolbarButtons!=n&&(this._toolbarButtons=n,this.raisePropertyChanged("ToolbarButtons"))},get_displaySourceTab:function(){return this._displaySourceTab},set_displaySourceTab:function(n){this._displaySourceTab!=n&&(this._displaySourceTab=n,this.raisePropertyChanged("DisplaySourceTab"))},add_change:function(n){this.get_events().addHandler("change",n)},remove_change:function(n){this.get_events().removeHandler("change",n)},get_isDirty:function(){return this._isDirty}};Sys.Extended.UI.HtmlEditorExtenderBehavior.registerClass("Sys.Extended.UI.HtmlEditorExtenderBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.HtmlEditorExtenderBehavior,{name:"HtmlEditorExtender",parameters:[{name:"ToolbarButtons",type:"HtmlEditorExtenderButton[]"}]});var n=[];Sys.Extended.UI.HtmlEditorExtenderBehavior.WebForm_OnSubmit=function(){var r=Sys.Extended.UI.HtmlEditorExtenderBehavior._originalWebForm_OnSubmit(),t,n,i;if(r)for(t=Sys.Application.getComponents(),n=0;n")}catch(s){r=document.createElement("img");r.src=f;i._savedRange.insertNode(r)}else r=document.createElement("img"),r.src=f,i._savedRange.insertNode(r);if(n._filesInQueue.length==n._currentQueueIndex+1){while(n._filesInQueue.length>=1)n._filesInQueue[0].removeNodeFrom(n._queueContainer),Array.removeAt(n._filesInQueue,0);n._showFilesCount();n._reset();i._popupBehavior.hide()}}}}window.Sys&&Sys.loader?Sys.loader.registerScript("HtmlEditorExtenderBehavior",["ExtendedBase","ExtendedCommon"],n):n()})();Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.LineChart=function(n){Sys.Extended.UI.LineChart.initializeBase(this,[n]);var t=this.get_id();t=t.replace("_ctl00","");this._parentDiv=document.getElementById(t+"__ParentDiv");this._chartWidth="300";this._chartHeight="300";this._chartTitle="";this._categoriesAxis="";this._series=null;this._chartType=Sys.Extended.UI.LineChartType.Basic;this._theme="LineChart";this._valueAxisLines=9;this._chartTitleColor="";this._valueAxisLineColor="";this._categoryAxisLineColor="";this._baseLineColor="";this._tooltipBackgroundColor="#ffffff";this._tooltipFontColor="#0E426C";this._tooltipBorderColor="#B85B3E";this._areaDataLabel="";this.yMax=0;this.yMin=0;this.roundedTickRange=0;this.startX=0;this.startY=0;this.endX=0;this.endY=0;this.xInterval=0;this.yInterval=0;this.arrXAxis;this.arrXAxisLength=0;this.charLength=3.5;this.arrCombinedData=null;this._toolTipDiv};Sys.Extended.UI.LineChart.prototype={initialize:function(){if(Sys.Extended.UI.LineChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Browser does not support SVG.";this._valueAxisLines==0&&(this._valueAxisLines=9);this.generateTooltipDiv();this.generateLineChart()},dispose:function(){Sys.Extended.UI.LineChart.callBaseMethod(this,"dispose")},generateTooltipDiv:function(){this._divTooltip=$common.createElementFromTemplate({nodeName:"div",properties:{id:this.get_id()+"_tooltipDiv",style:{position:"absolute",backgroundColor:this._tooltipBackgroundColor,borderStyle:"solid",borderWidth:"5px",borderColor:this._tooltipBorderColor,left:"0px",top:"0px",color:this._tooltipFontColor,visibility:"hidden",zIndex:"10000",padding:"10px"}}},this._parentDiv)},generateLineChart:function(){this.arrXAxis=this._categoriesAxis.split(",");this.arrXAxisLength=this.arrXAxis.length;this.calculateMinMaxValues();this.calculateInterval();this.calculateValueAxis();var n=this.initializeSVG();n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);n=n+this.drawBackgroundHorizontalLines();n=n+this.drawBackgroundVerticalLines();n=n+this.drawBaseLines();n=n+this.drawLegendArea();n=n+this.drawAxisValues();this._parentDiv.innerHTML=this._parentDiv.innerHTML+n;this.drawLines()},calculateInterval:function(){this.startX=this._chartWidth/10+.5;this.endX=parseInt(this._chartWidth)-4.5;this.startY=this.yMin>=0?Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*24/100)+.5:Math.round(parseInt(this._chartHeight)-parseInt(this._chartHeight)*12/100)/2+.5;this.yInterval=this.startY/(this._valueAxisLines+1)},calculateMinMaxValues:function(){var u,i,r,t,n;if(this._chartType==Sys.Extended.UI.LineChartType.Basic)for(n=0;nthis.yMax&&(this.yMax=u),i=0?this.yMax:this.yMax>Math.abs(this.yMin)?this.yMax:Math.abs(this.yMin);n=i/(this._valueAxisLines-1);n<1?this.roundedTickRange=n.toFixed(1):(r=Math.ceil(Math.log(n)/Math.log(10)-1),t=Math.pow(10,r),this.roundedTickRange=Math.ceil(n/t)*t);this.startX=this.startX+(this.roundedTickRange*10*this._valueAxisLines/10).toString().length*this.charLength},drawBackgroundHorizontalLines:function(){for(var t="",n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY-this.yInterval*n,this._categoryAxisLineColor);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('<\/path>',this.startX,this.endX,this.startY+this.yInterval*n,this._categoryAxisLineColor);return t},drawBackgroundVerticalLines:function(){var t="",n;for(this.xInterval=Math.round((parseInt(this._chartWidth)-this.startX)/this.arrXAxisLength),n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);if(this.yMin<0)for(n=0;n<\/path>',parseInt(this._chartWidth)-5-this.xInterval*n,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._valueAxisLineColor);return t},drawBaseLines:function(){var n="",t;for(n=n+String.format('<\/path>',this.startX,this.startY,this.endX,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY-this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),n=n+String.format('<\/path>',this.startX,this.startY,this.startY+4,this._baseLineColor),t=0;t<\/path>',parseInt(this._chartWidth)-5-this.xInterval*t,this.startY,this.startY+4,this._baseLineColor);for(t=0;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY-this.yInterval*t,this._baseLineColor);if(this.yMin<0)for(n=n+String.format('<\/path>',this.startX,this.startY+this.yInterval*this._valueAxisLines,this.startY,this._baseLineColor),t=1;t<=this._valueAxisLines;t++)n=n+String.format('<\/path>',this.startX-4,this.startX,this.startY+this.yInterval*t,this._baseLineColor);return n},drawLegendArea:function(){for(var t="",o=parseInt(this._chartHeight)*82/100+5,i=7.5,u=5,c=0,r,l,n=0;nparseInt(this._chartWidth)/2&&(r=r/2,l=!0);t=t+"";t=t+String.format('<\/path>',parseInt(this._chartWidth)/2-r/2,o,Math.round(parseInt(this._chartWidth)/2+c*5)+Math.round((i+u*2)*this._series.length),Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)/2-r/2+5+i+u,s=e,f=parseInt(this._chartWidth)/2-r/2+5,h=f;for(n=0;n<\/path>',f,o+7.5,f+i,o+15,n+1,this._series[n].LineColor),t=t+String.format('{2}<\/text>',e,o+15,this._series[n].Name),this._series[n].Name.length>10?(h=f+this._series[n].Name.length*5+i+u*2,s=e+this._series[n].Name.length*5+i+u*2):(h=h+this._series[n].Name.length*6+i+u*2,s=s+this._series[n].Name.length*6+i+u*2);return t+"<\/g>"},drawAxisValues:function(){for(var t="",i=0,n=0;n{2}<\/text>',Math.round(this.startX+this.xInterval*n+this.xInterval/2-i),this.startY+Math.round(this.yInterval*65/100),this.arrXAxis[n]);for(n=0;n<=this._valueAxisLines;n++)t=t+String.format('{2}<\/text>',this.startX-(this.roundedTickRange*10*n/10).toString().length*5.5-10,this.startY-this.yInterval*n+3.5,this.roundedTickRange*10*n/10);if(this.yMin<0)for(n=1;n<=this._valueAxisLines;n++)t=t+String.format('-{2}<\/text>',this.startX-(this.roundedTickRange*10*n/10).toString().length*5.5-15,this.startY+this.yInterval*n,this.roundedTickRange*10*n/10);return t},initializeSVG:function(){var n=String.format('',this._theme);return n=n+String.format('',this._chartWidth,this._chartHeight),n=n+"",n=n+'',n=n+'<\/stop>',n=n+'<\/stop>',n=n+'<\/stop><\/linearGradient>',n=n+"<\/defs>",n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10),n=n+String.format('',this._chartWidth,this._chartHeight),n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10)},drawLines:function(){var t,i,n;for(t=[],i=[],n=0;n0?u>0?n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('<\/path>',t[f],i[f],n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))-7.5,r):n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))-7.5,r):u>0?n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('<\/path>',t[f],i[f],n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))+7.5,r):n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))+7.5,r):r>0?u>0?n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('<\/path>',t[f],i[f],n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))-7.5,r):n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))-7.5,r):u>0?n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('<\/path>',t[f],i[f],n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))+7.5,r):n._parentDiv.innerHTML.replace("<\/svg>","")+String.format('<\/circle>',n.startX+n.xInterval*u+n.xInterval/2,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange)),f+1,n._series[f].LineColor,r,n._areaDataLabel)+String.format('{2}<\/text>',n.startX+n.xInterval*u+n.xInterval/5,n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))+7.5,r);t[f]=n.startX+n.xInterval*u+n.xInterval/2+3;i[f]=n.startY-Math.round(r*(n.yInterval/n.roundedTickRange))}u++;u0?this._promptText:Sys.Extended.UI.Resources.ListSearch_DefaultPrompt,this._showingPromptText=!0,this._promptCssClass&&(this._promptDiv.className=this._promptCssClass),n.parentNode.insertBefore(this._promptDiv,n.nextSibling),this._promptDiv.style.overflow="hidden",this._promptDiv.style.height=this._promptDiv.offsetHeight+"px",this._promptDiv.style.width=n.offsetWidth+"px");this._popupBehavior||(this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{parentElement:n},{},{},this._promptDiv));this._promptPosition&&this._promptPosition==Sys.Extended.UI.ListSearchPromptPosition.Bottom?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.BottomLeft):this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopLeft);this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson);this._popupBehavior.show();this._updatePromptDiv(this._promptText)},_onBlur:function(){this._disposePopupBehavior();var n=this._promptDiv,t=this.get_element();n&&(this._promptDiv=null,n.parentNode.removeChild(n));this._raiseImmediateOnChange||this._focusIndex==t.selectedIndex||this._raiseOnChange(t)},_disposePopupBehavior:function(){this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null)},_onKeyDown:function(n){var t=this.get_element(),i=this._promptDiv;t&&i&&(this._originalIndex=t.selectedIndex,this._showingPromptText&&(i.innerHTML="",this._searchText="",this._showingPromptText=!1,this._binarySearch=this._checkIfSorted(t.options)),n.keyCode==Sys.UI.Key.backspace?(n.preventDefault(),n.stopPropagation(),this._removeCharacterFromPromptDiv(),this._searchForTypedText(t),this._searchText&&this._searchText.length!=0||this._stopTimer()):n.keyCode==Sys.UI.Key.esc?(n.preventDefault(),n.stopPropagation(),i.innerHTML="",this._searchText="",this._searchForTypedText(t),this._stopTimer()):n.keyCode!=Sys.UI.Key.enter||this._raiseImmediateOnChange||this._focusIndex==t.selectedIndex||(this._focusIndex=t.selectedIndex,this._raiseOnChange(t)))},_onKeyUp:function(){var n=this.get_element(),t=this._promptDiv;if(n&&t){if(this._newIndex==-1||!n||!t||t.innerHTML==""){this._newIndex=-1;return}n.selectedIndex=this._newIndex;this._newIndex=-1}},_onKeyPress:function(n){var t=this.get_element(),i=this._promptDiv;if(t&&i){if(!this._isNormalChar(n)){n.charCode==Sys.UI.Key.backspace&&(n.preventDefault(),n.stopPropagation(),this._searchText&&this._searchText.length==0&&this._stopTimer());return}n.preventDefault();n.stopPropagation();this._addCharacterToPromptDiv(n.charCode);this._searchForTypedText(t);this._stopTimer();this._searchText&&this._searchText.length!=0&&this._startTimer()}},_isNormalChar:function(n){return Sys.Browser.agent==Sys.Browser.Firefox&&n.rawEvent.keyCode?!1:Sys.Browser.agent==Sys.Browser.Opera&&n.rawEvent.which==0?!1:n.charCode&&(n.charCode6e3)?!1:!0},_updatePromptDiv:function(n){var t=this._promptDiv,i,r,u;if(t&&this.get_element()&&(i=typeof n=="undefined"?this._searchText:n,r=t.firstChild,r?r.nodeValue=i:(r=document.createTextNode(i),t.appendChild(r)),!(t.scrollWidth<=t.offsetWidth)||!(t.scrollHeight<=t.offsetHeight)))for(u=i.length-1;u>0&&(t.scrollWidth>t.offsetWidth||t.scrollHeight>t.offsetHeight);u--)r.nodeValue=this._ellipsis+i.substring(i.length-u,i.length)},_addCharacterToPromptDiv:function(n){this._searchText+=String.fromCharCode(n);this._updatePromptDiv()},_removeCharacterFromPromptDiv:function(){this._searchText&&this._searchText!=""&&(this._searchText=this._searchText.substring(0,this._searchText.length-1),this._updatePromptDiv())},_searchForTypedText:function(n){var u=this._searchText,t=n.options,r=u?u.toLowerCase():"",i;this._matchFound=!1;r.length==0?t.length>0&&(n.selectedIndex=0,this._newIndex=0):(i=-1,i=this._binarySearch&&this._queryPattern==Sys.Extended.UI.ListSearchQueryPattern.StartsWith?this._doBinarySearch(t,r,0,t.length-1):this._doLinearSearch(t,r,0,t.length-1),i==-1?this._newIndex=this._originalIndex:(n.selectedIndex=i,this._newIndex=i,this._matchFound=!0));this._raiseImmediateOnChange&&this._originalIndex!=n.selectedIndex&&this._raiseOnChange(n)},_raiseOnChange:function(n){if(document.createEvent){var t=document.createEvent("HTMLEvents");t.initEvent("change",!0,!1);n.dispatchEvent(t)}else document.createEventObject&&n.fireEvent("onchange")},_compareStrings:function(n,t){return n==t?0:n0)i=u+1;else if(f<0)r=u-1;else{while(u>0&&n[u-1].text.toLowerCase().startsWith(t))u--;return u}}return-1},_doLinearSearch:function(n,t,i,r){var u;if(this._queryPattern==Sys.Extended.UI.ListSearchQueryPattern.Contains){for(u=i;u<=r;u++)if(n[u].text.toLowerCase().indexOf(t)>=0)return u}else if(this._queryPattern==Sys.Extended.UI.ListSearchQueryPattern.StartsWith)for(u=i;u<=r;u++)if(n[u].text.toLowerCase().startsWith(t))return u;return-1},_onTimerTick:function(){this._stopTimer();this._matchFound||(this._searchText="",this._updatePromptDiv())},_startTimer:function(){this._queryTimeout>0&&(this._timer=window.setTimeout(Function.createDelegate(this,this._onTimerTick),this._queryTimeout))},_stopTimer:function(){this._timer!=null&&window.clearTimeout(this._timer);this._timer=null},get_onShow:function(){return this._popupBehavior?this._popupBehavior.get_onShow():this._onShowJson},set_onShow:function(n){this._popupBehavior?this._popupBehavior.set_onShow(n):this._onShowJson=n;this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onShowBehavior():null},onShow:function(){this._popupBehavior&&this._popupBehavior.onShow()},get_onHide:function(){return this._popupBehavior?this._popupBehavior.get_onHide():this._onHideJson},set_onHide:function(n){this._popupBehavior?this._popupBehavior.set_onHide(n):this._onHideJson=n;this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onHideBehavior():null},onHide:function(){this._popupBehavior&&this._popupBehavior.onHide()},get_promptText:function(){return this._promptText},set_promptText:function(n){this._promptText!=n&&(this._promptText=n,this.raisePropertyChanged("promptText"))},get_promptCssClass:function(){return this._promptCssClass},set_promptCssClass:function(n){this._promptCssClass!=n&&(this._promptCssClass=n,this.raisePropertyChanged("promptCssClass"))},get_promptPosition:function(){return this._promptPosition},set_promptPosition:function(n){this._promptPosition!=n&&(this._promptPosition=n,this.raisePropertyChanged("promptPosition"))},get_raiseImmediateOnChange:function(){return this._raiseImmediateOnChange},set_raiseImmediateOnChange:function(n){this._raiseImmediateOnChange!=n&&(this._raiseImmediateOnChange=n,this.raisePropertyChanged("raiseImmediateOnChange"))},get_queryTimeout:function(){return this._queryTimeout},set_queryTimeout:function(n){this._queryTimeout!=n&&(this._queryTimeout=n,this.raisePropertyChanged("queryTimeout"))},get_isSorted:function(){return this._isSorted},set_isSorted:function(n){this._isSorted!=n&&(this._isSorted=n,this.raisePropertyChanged("isSorted"))},get_queryPattern:function(){return this._queryPattern},set_queryPattern:function(n){this._queryPattern!=n&&(this._queryPattern=n,this.raisePropertyChanged("queryPattern"))}};Sys.Extended.UI.ListSearchBehavior.registerClass("Sys.Extended.UI.ListSearchBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.ListSearchBehavior,{name:"listSearch"});Sys.Extended.UI.ListSearchPromptPosition=function(){throw Error.invalidOperation();};Sys.Extended.UI.ListSearchPromptPosition.prototype={Top:0,Bottom:1};Sys.Extended.UI.ListSearchPromptPosition.registerEnum("Sys.Extended.UI.ListSearchPromptPosition");Sys.Extended.UI.ListSearchQueryPattern=function(){throw Error.invalidOperation();};Sys.Extended.UI.ListSearchQueryPattern.prototype={StartsWith:0,Contains:1};Sys.Extended.UI.ListSearchQueryPattern.registerEnum("Sys.Extended.UI.ListSearchQueryPattern")}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedListSearch",["ExtendedPopupBehavior"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.MaskedEditBehavior=function(n){Sys.Extended.UI.MaskedEditBehavior.initializeBase(this,[n]);this._Mask="";this._MaskType=Sys.Extended.UI.MaskedEditType.None;this._Filtered="";this._PromptChar="_";this._InputDirection=Sys.Extended.UI.MaskedEditInputDirections.LeftToRight;this._MessageValidatorTip=!0;this._ShowMessageErrorFloat=!1;this._CssMessageErrorFloat="";this._AutoComplete=!0;this._AutoCompleteValue="";this._ClearTextOnInvalid=!1;this._ClearMaskOnLostfocus=!0;this._AcceptAmPm=Sys.Extended.UI.MaskedEditShowSymbol.None;this._AcceptNegative=Sys.Extended.UI.MaskedEditShowSymbol.None;this._DisplayMoney=Sys.Extended.UI.MaskedEditShowSymbol.None;this._OnFocusCssClass="MaskedEditFocus";this._OnInvalidCssClass="MaskedEditError";this._OnFocusCssNegative="MaskedEditFocusNegative";this._OnBlurCssNegative="MaskedEditBlurNegative";this._CultureName=Sys.CultureInfo.CurrentCulture.name;this._UserDateFormat=Sys.Extended.UI.MaskedEditUserDateFormat.None;this._UserTimeFormat=Sys.Extended.UI.MaskedEditUserTimeFormat.None;this._CultureDatePlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.DateSeparator;this._CultureTimePlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.TimeSeparator;this._CultureDecimalPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.NumberDecimalSeparator;this._CultureThousandsPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.NumberGroupSeparator;this._CultureDateFormat="MDY";var t=Sys.CultureInfo.CurrentCulture.dateTimeFormat.ShortDatePattern.split(this._CultureDatePlaceholder);t.length>=3&&(this._CultureDateFormat=t[0].substr(0,1).toUpperCase()+t[1].substr(0,1).toUpperCase()+t[2].substr(0,1).toUpperCase());this._CultureCurrencySymbolPlaceholder=Sys.CultureInfo.CurrentCulture.numberFormat.CurrencySymbol;this._CultureAMPMPlaceholder=Sys.CultureInfo.CurrentCulture.dateTimeFormat.PMDesignator+";"+Sys.CultureInfo.CurrentCulture.dateTimeFormat.PMDesignator;this._AMPMPlaceholderSeparator=";";this._Century=1900;this._AllowCopyPaste=!0;this._ClipboardText=Sys.Extended.UI.Resources&&Sys.Extended.UI.Resources.Shared_BrowserSecurityPreventsPaste||"Your browser security settings don't permit the automatic execution of paste operations. Please use the keyboard shortcut Ctrl+V instead.";this._CharsEditMask="9L$CAN?";this._CharsSpecialMask="/:.,";this._MaskConv="";this._EmptyMask="";this._maskvalid="";this._DirectSelText="";this._initialvalue="";this._LogicSymbol="";this._LogicTextMask="";this._LogicMask="";this._LogicMaskConv="";this._LogicPrompt=String.fromCharCode(1);this._LogicEscape=String.fromCharCode(2);this._LogicFirstPos=-1;this._LogicLastPos=-1;this._LogicLastInt=-1;this._LogicDateTimeSepPos=-1;this._QtdValidInput=0;this._InLostfocus=!1;this._ExternalMessageError="";this._CurrentMessageError="";this._FiringOnChange=!1;this._ErroOnEnter=!1;this._beforeClearMaskText="";this._charLetters="ABCDEFGHIJKLMNOPQRSTUVWXYZ";this._charNumbers="0123456789";this._charEscape="\\";this._DelimitStartDup="{";this._DelimitEndDup="}";this._focusHandler=null;this._keypressdown=null;this._keypressHandler=null;this._blurHandler=null;this._mouseOutHandler=null;this._mouseOutHandler=null;this._mouseMoveHandler=null;this._mouseEnterHandler=null;this._changeHandler=null;this._timer=null;this._timerHandler=null;this._SaveSymb="";this._SaveText="";this._SavePosi=-1;this._SaveMask="";this._SaveKeyDown=0};Sys.Extended.UI.MaskedEditBehavior.prototype={initialize:function(){var n=this.get_element(),t,i,r,u;this._InLostfocus=!0;Sys.Extended.UI.MaskedEditBehavior.callBaseMethod(this,"initialize");this._createMask();t=!1;i=this.get_ClientState();i!=null&&i!=""&&(t=i=="Focused",this.set_ClientState(null));try{n===document.activeElement&&(t=!0)}catch(f){}this._ShowMessageErrorFloat&&(this._mouseOutHandler=Function.createDelegate(this,this._onMouseOut),$addHandler(n,"mouseout",this._mouseOutHandler),this._mouseMoveHandler=Function.createDelegate(this,this._onMouseMove),$addHandler(n,"mousemove",this._mouseMoveHandler),this._mouseEnterHandler=Function.createDelegate(this,this._onMouseover),$addHandler(n,"mouseover",this._mouseEnterHandler));n.readOnly||(this._keypressdown=Function.createDelegate(this,this._onKeyPressdown),$addHandler(n,"keydown",this._keypressdown),this._keypressHandler=Function.createDelegate(this,this._onKeyPress),$addHandler(n,"keypress",this._keypressHandler));this._focusHandler=Function.createDelegate(this,this._onFocus);$addHandler(n,"focus",this._focusHandler);this._blurHandler=Function.createDelegate(this,this._onBlur);$addHandler(n,"blur",this._blurHandler);this._changeHandler=Function.createDelegate(this,this._onChange);$addHandler(n,"change",this._changeHandler);Sys.Browser.agent==Sys.Browser.Opera&&(this._timerHandler=Function.createDelegate(this,this._OnTimerTicket),this._timer=new Sys.Timer,this._timer.set_enabled(!1),this._timer.set_interval(100),this._timer.add_tick(this._timerHandler),this._SaveText="",this._SavePosi=-1,this._timer.set_enabled(!0));r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(n);this._InitValue(r.get_Value(),!0);t?this._onFocus():(this._ClearMaskOnLostfocus&&r.set_Value(this._getClearMask(r.get_Value())),u=this._CaptureServerValidators(),u||this._OnInvalidCssClass!=""&&this.AddCssClassMaskedEdit(this._OnInvalidCssClass))},dispose:function(){var n=this.get_element();this._mouseOutHandler&&($removeHandler(n,"mouseout",this._mouseOutHandler),this._mouseOutHandler=null);this._mouseMoveHandler&&($removeHandler(n,"mousemove",this._mouseMoveHandler),this._mouseMoveHandler=null);this._mouseEnterHandler&&($removeHandler(n,"mouseover",this._mouseEnterHandler),this._mouseEnterHandler=null);this._focusHandler&&($removeHandler(n,"focus",this._focusHandler),this._focusHandler=null);this._focusHandler&&($removeHandler(n,"focus",this._focusHandler),this._focusHandler=null);this._blurHandler&&($removeHandler(n,"blur",this._blurHandler),this._blurHandler=null);this._changeHandler&&($removeHandler(n,"change",this._changeHandler),this._changeHandler=null);this._keypressdown&&($removeHandler(n,"keydown",this._keypressdown),this._keypressdown=null);this._keypressHandler&&($removeHandler(n,"keypress",this._keypressHandler),this._keypressHandler=null);this._timerHandler&&(this._timer.set_enabled(!1),this._timerHandler=null,this._timer.dispose(),this._timer=null);Sys.Extended.UI.MaskedEditBehavior.callBaseMethod(this,"dispose")},_OnTimerTicket:function(){if(this._SaveSymb="",!this._InLostfocus){this._timer.set_enabled(!1);var n=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element());this._SaveText!=""?(n.set_Value(this._SaveText),this.setSelectionRange(this._SavePosi,this._SavePosi),this._SaveText="",this._SavePosi=-1,this._SaveMask=n.get_Value()):(n.get_Value().length!=this._EmptyMask.length&&n.set_Value(this._SaveMask),this._timer.get_interval()!=100&&this._timer.set_interval(100));this._timer.set_enabled(!0)}},_onChange:function(){this._FiringOnChange||this._onFocus()},_onFocus:function(){var n=this.get_element(),i,t,r,u;n.readOnly||n.disabled||(this._keypressdown||(this._keypressdown=Function.createDelegate(this,this._onKeyPressdown),$addHandler(n,"keydown",this._keypressdown)),this._keypressHandler||(this._keypressHandler=Function.createDelegate(this,this._onKeyPress),$addHandler(n,"keypress",this._keypressHandler)),this._InLostfocus=!1,this._RemoveDivToolTip(),this._OnFocusCssClass!=""&&this.AddCssClassMaskedEdit(this._OnFocusCssClass),i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(n),this._initialvalue=i.get_Value(),this._InitValue(i.get_Value(),!1),t=this._getClearMask(),r=!1,this._MessageValidatorTip&&t==""&&(r=!0),(this._MaskType==Sys.Extended.UI.MaskedEditType.Time||this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&this.get_CultureAMPMPlaceholder()!=""&&t==""?this._AcceptAmPm&&this.InsertAMPM(this.get_CultureAMPMPlaceholder().substring(0,1)):this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&t!=""&&this._LogicSymbol=="-"&&this._OnFocusCssNegative!=""&&this.AddCssClassMaskedEdit(this._OnFocusCssNegative),this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft?this._LogicLastInt!=-1?this.setSelectionRange(this._LogicLastInt,this._LogicLastInt):this.setSelectionRange(this._LogicLastPos+1,this._LogicLastPos+1):this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&t!=""?(u=this._getLastEmptyPosition()+1,this.setSelectionRange(u,u)):this.setSelectionRange(this._LogicFirstPos,this._LogicFirstPos),this.ShowTooltipMessage(!1),r&&this.ShowTooltipMessage(!0))},_PeforformValidLostFocus:function(n){var i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),t=this._getClearMask(i.get_Value()),r;return t==""&&this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._LogicSymbol=="-"&&this.InsertSignal("+"),t!=""&&this._AutoComplete&&this._MaskType==Sys.Extended.UI.MaskedEditType.Date?this.AutoFormatDate():t!=""&&this._AutoComplete&&this._MaskType==Sys.Extended.UI.MaskedEditType.Time?this.AutoFormatTime():t!=""&&this._AutoComplete&&this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime?this.AutoFormatDateTime():t!=""&&this._AutoComplete&&this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this.AutoFormatNumber(),(t!=""||n)&&(this._beforeClearMaskText=i.get_Value(),i.set_Value(this._getClearMask(i.get_Value()))),this.AddCssClassMaskedEdit(""),this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._LogicSymbol=="-"&&this._OnBlurCssNegative!=""&&this.AddCssClassMaskedEdit(this._OnBlurCssNegative),this.ShowTooltipMessage(!1),this._RemoveDivToolTip(),r=this._CaptureClientsValidators(),r||(this._OnInvalidCssClass!=""&&this.AddCssClassMaskedEdit(this._OnInvalidCssClass),this._ClearTextOnInvalid&&(this._createMask(),i.set_Value(this._EmptyMask))),r},_onBlur:function(n){this._InLostfocus=!0;var i=this._PeforformValidLostFocus(!0),t=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element());i&&!this.get_element().readOnly&&this._initialvalue!=t.get_Value()&&n&&this._fireChanged();this._beforeClearMaskText!=""&&t.set_Value(this._beforeClearMaskText)},_fireChanged:function(){var n,t;this._FiringOnChange=!0;n=this.get_element();document.createEventObject?n.fireEvent("onchange"):document.createEvent&&(t=document.createEvent("HTMLEvents"),t.initEvent("change",!0,!0),n.dispatchEvent(t));this._FiringOnChange=!1},_onKeyPress:function(n){var u=this._KeyCode(n),o,t,i,s,r,e,f,h,c;return u==9?!0:u==13?(o=this._PeforformValidLostFocus(!1),this._ErroOnEnter=!1,o||(this._ErroOnEnter=!0),Sys.Browser.agent==Sys.Browser.Opera&&(e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),this._SaveText=e.get_Value(),this._SavePosi=this._getCurrentPosition(),this._timer.set_enabled(!1),this._timer.set_interval(1),this._timer.set_enabled(!0)),o):(this._OnFocusCssClass!=""&&this._ErroOnEnter&&this.AddCssClassMaskedEdit(this._OnFocusCssClass),this._ErroOnEnter=!1,!this._isNormalChar(n,u))?(this._ExecuteNav(n,u),!1):(t=this._deleteTextSelection(),t==-1&&(t=this._getCurrentPosition()),i=String.fromCharCode(u),this._MaskType==Sys.Extended.UI.MaskedEditType.Date&&i==this.get_CultureDatePlaceholder()?this._AdjustElementDate():this._MaskType==Sys.Extended.UI.MaskedEditType.Time&&i==this.get_CultureTimePlaceholder()?this._AdjustElementTime():this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(i==this.get_CultureTimePlaceholder()||i==this.get_CultureDatePlaceholder())?this._AdjustElementDateTime(i):this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight&&i==this.get_CultureDecimalPlaceholder()&&t==this._LogicLastInt?this._AdjustElementDecimalLTR():this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&i==this.get_CultureDecimalPlaceholder()&&t==this._LogicLastInt?this._AdjustElementDecimalRTL():this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&i==this.get_CultureDecimalPlaceholder()&&t!=this._LogicLastInt?this._MoveDecimalPos():this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight&&i==this.get_CultureThousandsPlaceholder()?this._MoveThousandLTR():this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&i==this.get_CultureThousandsPlaceholder()?this._MoveThousandRTL():(this._MaskType==Sys.Extended.UI.MaskedEditType.Time||this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime)&&this.get_CultureFirstLettersAMPM().toUpperCase().indexOf(i.toUpperCase())!=-1?this._AcceptAmPm&&(this.InsertAMPM(i),this.setSelectionRange(t,t)):this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&"+-".indexOf(i)!=-1?Sys.Browser.agent!=Sys.Browser.Opera?(this.InsertSignal(i),this.setSelectionRange(t,t)):this._SaveSymb==""?(this.InsertSignal(i),this.setSelectionRange(t,t),this._SaveSymb=i,this._timer.set_enabled(!1),this._timer.set_interval(1),this._timer.set_enabled(!0)):this._SaveSymb="":(s=t,t=this._getNextPosition(t),r=t,this._LogicLastInt!=-1&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft?s==this._LogicLastInt&&(r=this._getLastEmptyPosition()):t>=this._LogicLastPos+1&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&(r=this._getLastEmptyPosition()),this._processKey(r,i)&&(this._MessageValidatorTip&&this.ShowTooltipMessage(!1),this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight?(this._insertContent(i,r),t=this._getNextPosition(r+1)):this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&(this._LogicLastInt==-1?tthis._LogicFirstPos&&f.left--,this.setSelectionRange(f.left,f.right)):(e=this._getCurrentPosition(),e>this._LogicFirstPos&&this.setSelectionRange(e-1,e))):(i=this._getCurrentPosition()-1,ithis._LogicLastPos+1&&(i=this._LogicLastPos+1),this.setSelectionRange(i,i));Sys.Browser.agent==Sys.Browser.Opera&&(r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),this._SaveText=r.get_Value(),this._SavePosi=i,this._timer.set_enabled(!1),this._timer.set_interval(1),this._timer.set_enabled(!0))}else t==27&&(this._SetCancelEvent(n),r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),this._EmptyMask==this._initialvalue?r.set_Value(""):r.set_Value(this._initialvalue),this._onFocus());this._SetCancelEvent(n)},_backspace:function(n){var t=!1,i,r;return n>this._LogicFirstPos&&(i=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),r=i.get_Value(),n=this._getPreviousPosition(n-1),this._deleteAtPosition(n,!0),t=!0),t},_deleteAtPosition:function(n,t){var p=!1,w=this._LogicLastPos+1,c,i,o,e,v,l,y,r,h,b;if(this._LogicLastInt!=-1&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&(w=this._LogicLastInt),c=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),t==!1&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&n==w)i=this._getClearMask(c.get_Value()),i!=""&&(p=!0,i=i.replace(new RegExp("(\\"+this.get_CultureThousandsPlaceholder()+")","g"),"")+"",i.substring(i.length-1,i.length)==this.get_CultureDecimalPlaceholder()&&(i=i.substring(0,i.length-1)),o=i.split(this.get_CultureDecimalPlaceholder()),this._LogicLastInt!=-1&&o[0]!=""?(o[0]=o[0].substring(0,o[0].length-1),i=o[0],(o.length=2)&&(i+=this.get_CultureDecimalPlaceholder()+o[1])):i=i.substring(0,i.length-1),i+=this._LogicSymbol,this.loadValue(i,w));else{var u=c.get_Value().substring(this._LogicFirstPos,this._LogicLastPos+1),f=this._LogicTextMask.substring(this._LogicFirstPos,this._LogicLastPos+1),s=0,a=n-this._LogicFirstPos;if(this._isValidMaskedEditPosition(n)){for(p=!0,this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(e=this._SplitDateTime(u),v=n-this._LogicFirstPos,v>e[0].length?(u=e[1],s=e[0].length+1,f=f.substring(s),a-=s):(u=e[0],f=f.substring(0,e[0].length))),l=u.substring(a+1),y=f.substring(a+1),u=u.substring(0,a)+this._PromptChar,f=f.substring(0,a)+this._LogicPrompt,r=0;re[0].length?(u=e[0]+" "+u,f=k.substring(0,s)+f):(u=u+" "+e[1],f=f+k.substring(e[0].length))}b=c.get_Value();u=b.substring(0,this._LogicFirstPos)+u+b.substring(this._LogicLastPos+1);this._LogicTextMask=this._LogicTextMask.substring(0,this._LogicFirstPos)+f+this._LogicTextMask.substring(this._LogicLastPos+1);c.set_Value(u)}}return p},_SplitDateTime:function(n){var t=[];return n.charAt(this._LogicDateTimeSepPos)==" "?(t[0]=n.substring(this._LogicFirstPos,this._LogicDateTimeSepPos),t[1]=n.substring(this._LogicDateTimeSepPos+1)):t[0]=n,t},_ShowModalClipBoardInput:function(){return prompt(this._ClipboardText,"")},_PasteFromClipBoard:function(){var r=null,n,e,u,i,o,t;if(Sys.Browser.agent==Sys.Browser.InternetExplorer)r=window.clipboardData.getData("Text");else{var s=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),h=s.get_Value(),f=this._GetBoundSelection(),n=this._getCurrentPosition(),c=this._AutoComplete,l=this._ClearTextOnInvalid,a=this._ClearMaskOnLostfocus,v=this._DirectSelText;this._AutoComplete=!1;this._ClearTextOnInvalid=!1;this._ClearMaskOnLostfocus=!1;r=this._ShowModalClipBoardInput();this._AutoComplete=c;this._ClearTextOnInvalid=l;this._ClearMaskOnLostfocus=a;s.set_Value(h);f?this.setSelectionRange(f.left,f.right):this.setSelectionRange(n,n)}if(r!=null&&r!=""){for(r.length>this._maskvalid.length&&(r=r.substring(0,this._maskvalid.length)),n=this._deleteTextSelection(),n==-1&&(n=this._getCurrentPosition(),f&&(n=f.left)),this.setSelectionRange(n,n),e=!1,this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&this._LogicLastInt!=-1&&(e=!0),u=0,u=0;u=this._LogicLastPos+1&&this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&(t=this._getLastEmptyPosition()),this._processKey(t,i)&&(this._MessageValidatorTip&&this.ShowTooltipMessage(!1),this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.LeftToRight?(this._insertContent(i,t),n=this._getNextPosition(t+1)):this._InputDirection==Sys.Extended.UI.MaskedEditInputDirections.RightToLeft&&(this._LogicLastInt==-1?ni;){if(r.get_Value().substring(n,n+1)==this.get_CultureThousandsPlaceholder()){t=n;break}n--}if(t==-1){for(n=this._LogicLastPos,i=u;n>i;){if(r.get_Value().substring(n,n+1)==this.get_CultureThousandsPlaceholder()){t=n;break}n--}if(t==-1)return}this.setSelectionRange(t,t)},_AdjustElementDecimalLTR:function(){var o=this.get_element(),r=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(o),s=this._getCurrentPosition(),u,t,n,i,f,e;if(r.get_Value().substring(s).indexOf(this.get_CultureDecimalPlaceholder())!=-1&&(u=r.get_Value().substring(this._LogicFirstPos,this._LogicLastPos+1),t=u.indexOf(this.get_CultureDecimalPlaceholder()),t!=-1)){for(i=this._getClearMask(r.get_Value()),i!=""?(i=i.replace(new RegExp("(\\"+this.get_CultureThousandsPlaceholder()+")","g"),"")+"",n=i.split(this.get_CultureDecimalPlaceholder())):n=this.get_CultureDecimalPlaceholder().split(this.get_CultureDecimalPlaceholder()),n[0]==""&&(n[0]="0"),f=u.length-t-1;n[1].length=f){this._AdjustElementDecimalLTR();return}for(i=this._getClearMask(r.get_Value()),i!=""?(i=i.replace(new RegExp("(\\"+this.get_CultureThousandsPlaceholder()+")","g"),"")+"",n=i.split(this.get_CultureDecimalPlaceholder())):n=this.get_CultureDecimalPlaceholder().split(this.get_CultureDecimalPlaceholder()),n[0]==""&&(n[0]="0"),e=u.length-t-1;n[1].length=2&&u<=4&&f.length==2?(n="M",t=i+this._LogicFirstPos):u>=2&&u<=4&&f.length==3?(n="M",t=6+this._LogicFirstPos+i):f.length==3&&(n="S",t=i+this._LogicFirstPos),n!="")&&(o=h.get_Value().substring(this._LogicFirstPos,this._LogicLastPos+1),this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(o=this._SplitDateTime(o)[1]),r=o.split(this.get_CultureTimePlaceholder()),s=this._GetTimeElementText(n),n=="H"?(e=s+this.get_CultureTimePlaceholder()+r[1],r.length==3&&(e+=this.get_CultureTimePlaceholder()+r[2])):n=="M"?(e=r[0]+this.get_CultureTimePlaceholder()+s,r.length==3&&(e+=this.get_CultureTimePlaceholder()+r[2])):n=="S"&&(e=r[0]+this.get_CultureTimePlaceholder()+r[1]+(this.get_CultureTimePlaceholder()+s)),this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(e=h.get_Value().substring(this._LogicFirstPos,i)+e),this.loadMaskValue(e,this._LogicFirstPos,this._LogicSymbol),this.setSelectionRange(t,t))},_GetTimeElementText:function(n){var t,r=this._LogicTextMask.substring(this._LogicFirstPos,this._LogicLastPos+1),i;return(this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(r=r.substring(this._maskvalid.split(" ")[0].length+1)),i=r.split(this.get_CultureTimePlaceholder()),i[0]=i[0].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[0].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",t!=""&&t.length<2&&(t="0"+t,i[0]=t),i[1]=i[1].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[1].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",t!=""&&t.length<2&&(t="0"+t,i[1]=t),i.length==3&&(i[2]=i[2].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[2].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",t!=""&&t.length<2&&(t="0"+t,i[2]=t)),n=="H")?i[0]:n=="M"?i[1]:i[2]},_AdjustElementDateTime:function(n){n==this.get_CultureDatePlaceholder()&&this._AdjustElementDate();n==this.get_CultureTimePlaceholder()&&this._AdjustElementTime()},_AdjustElementDate:function(){var l=this.get_element(),s=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(l),f=s.get_Value().substring(this._LogicFirstPos,this._LogicLastPos+1),h,e;this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(f=this._SplitDateTime(f)[0]);var u=f.split(this.get_CultureDatePlaceholder()),t="",n=this._getCurrentPosition()-this._LogicFirstPos,i=n+this._LogicFirstPos,r=this._maskvalid.indexOf("9999")!=-1?2:0;if(this.get_CultureDateFormat()=="DMY")if(n<=1)t="D",i=3+this._LogicFirstPos;else if(n>=2&&n<=4)t="M",i=6+this._LogicFirstPos;else{if(n>8+r&&this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){this.setSelectionRange(this._LogicFirstPos,this._LogicFirstPos);return}t="Y";i=this._LogicFirstPos}else if(this.get_CultureDateFormat()=="MDY")if(n<=1)t="M",i=3+this._LogicFirstPos;else if(n>=2&&n<=4)t="D",i=6+this._LogicFirstPos;else{if(n>8+r&&this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){this.setSelectionRange(this._LogicFirstPos,this._LogicFirstPos);return}t="Y";i=this._LogicFirstPos}else this.get_CultureDateFormat()=="DYM"?n<=1?(t="D",i=3+this._LogicFirstPos):n>=2&&n<=4+r?(t="Y",i=6+r+this._LogicFirstPos):(t="M",i=this._LogicFirstPos):this.get_CultureDateFormat()=="MYD"?n<=1?(t="M",i=3+this._LogicFirstPos):n>=2&&n<=4+r?(t="Y",i=6+r+this._LogicFirstPos):(t="D",i=this._LogicFirstPos):this.get_CultureDateFormat()=="YMD"?n<=1+r?(t="Y",i=3+r+this._LogicFirstPos):n>=2+r&&n<=4+r?(t="M",i=6+r+this._LogicFirstPos):(t="D",i=this._LogicFirstPos):this.get_CultureDateFormat()=="YDM"&&(n<=1+r?(t="Y",i=3+r+this._LogicFirstPos):n>=2+r&&n<=4+r?(t="D",i=6+r+this._LogicFirstPos):(t="M",i=this._LogicFirstPos));if(h=this._GetDateElementText(t),u[this.get_CultureDateFormat().indexOf(t)]=h,e=u[0]+this.get_CultureDatePlaceholder()+u[1]+this._CultureDatePlaceholder+u[2],this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime){var a=s.get_Value().substring(this._LogicFirstPos,this._LogicLastPos+1),c=this._SplitDateTime(a),o=c[1].split(" ");e+=o.length==2?" "+o[0]+" "+o[1]:" "+c[1]}this.loadMaskValue(e,this._LogicFirstPos,this._LogicSymbol);this.setSelectionRange(i,i)},_GetDateElementText:function(n){var t,i,r,u;return this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime?(r=this._SplitDateTime(this._LogicTextMask.substring(this._LogicFirstPos,this._LogicLastPos+1))[0],i=r.split(this.get_CultureDatePlaceholder())):i=this._LogicTextMask.substring(this._LogicFirstPos,this._LogicLastPos+1).split(this.get_CultureDatePlaceholder()),i[this.get_CultureDateFormat().indexOf("D")]=i[this.get_CultureDateFormat().indexOf("D")].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[this.get_CultureDateFormat().indexOf("D")].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",t!=""&&t.length<2&&(t="0"+t,i[this.get_CultureDateFormat().indexOf("D")]=t),i[this.get_CultureDateFormat().indexOf("M")]=i[this.get_CultureDateFormat().indexOf("M")].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[this.get_CultureDateFormat().indexOf("M")].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",t!=""&&t.length<2&&(t="0"+t,i[this.get_CultureDateFormat().indexOf("M")]=t),u=this._maskvalid.indexOf("9999")!=-1?!0:!1,i[this.get_CultureDateFormat().indexOf("Y")]=i[this.get_CultureDateFormat().indexOf("Y")].replace(new RegExp("(\\"+this._LogicPrompt+")","g"),this._PromptChar)+"",t=i[this.get_CultureDateFormat().indexOf("Y")].replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",u?t!=""&&t.length<4&&(t=this._Century.toString().substr(0,t.length)+t,i[this.get_CultureDateFormat().indexOf("Y")]=t):t!=""&&t.length<2&&(t="0"+t,i[this.get_CultureDateFormat().indexOf("Y")]=t),i[this.get_CultureDateFormat().indexOf(n)]},_GetBoundSelection:function(){var i=null,n=this.get_element(),t,f,r,e,u;return n.setSelectionRange?n.selectionStart!=n.selectionEnd&&(i={left:parseInt(n.selectionStart,10),right:parseInt(n.selectionEnd,10)}):document.selection&&(t=document.selection.createRange(),t.text!=""&&(f=parseInt(t.text.length,10),t.text=String.fromCharCode(3)+t.text,r=n.createTextRange(),r.findText(String.fromCharCode(3)),r.select(),e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(n),u=parseInt(e.get_Value().indexOf(String.fromCharCode(3)),10),document.selection.clear(),i={left:u,right:u+f})),i},_deleteTextSelection:function(){var n=this.get_element(),o=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(n),u=o.get_Value(),f=-1,t=-1,s=!1,c,l,e,r,h,i;if(n.setSelectionRange?n.selectionStart!=n.selectionEnd&&(c=parseInt(n.selectionStart,10),l=parseInt(n.selectionEnd,10),s=!0,f=l-c,t=n.selectionStart,n.selectionEnd=n.selectionStart):document.selection&&(e=document.selection.createRange(),e.text!=""&&(s=!0,r=e.text+String.fromCharCode(3),e.text=r,h=n.createTextRange(),h.findText(r),h.select(),t=o.get_Value().indexOf(r),document.selection.clear(),f=parseInt(r.length,10)-1)),s){for(i=0;i0;r--)i=u[0].substring(r-1,r),this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&"+-".indexOf(i)!=-1&&this.InsertSignal(i),this._processKey(t,i)&&(this._insertContent(i,t),t=this._getPreviousPosition(t-1));if(u.length>1)for(t=this._getNextPosition(this._LogicLastInt),r=0;r0;r--)i=n.substring(r-1,r),this._MaskType==Sys.Extended.UI.MaskedEditType.Number&&this._AcceptNegative!=Sys.Extended.UI.MaskedEditShowSymbol.None&&"+-".indexOf(i)!=-1&&(this._LogicSymbol=="-"&&(this._LogicSymbol=" "),this.InsertSignal(i)),this._processKey(t,i)&&(this._insertContent(i,t),t=this._getPreviousPosition(t-1))},AutoFormatNumber:function(){var n,u=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),i,r,t;for(ValueText=u.get_Value(),i=this._AutoCompleteValue,r=!1,n=this._LogicFirstPos;n<=this._LogicLastPos;n++)this._LogicTextMask.substring(n,n+1)==this._LogicPrompt?(t="0",i!=""&&(t=i.substring(n-this._LogicFirstPos,n+1-this._LogicFirstPos)),r&&(this._LogicTextMask=this._LogicTextMask.substring(0,n)+t+this._LogicTextMask.substring(n+1),ValueText=ValueText.substring(0,n)+t+ValueText.substring(n+1))):this._LogicMask.substring(n,n+1)==this._LogicPrompt&&"123456789".indexOf(this._LogicTextMask.substring(n,n+1))!=-1&&(r=!0);return u.set_Value(ValueText),ValueText},AutoFormatTime:function(){var g=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()),n,d,s,p,c,w,t,b,i,k,e,l,r,u,a,o;ValueText=g.get_Value();n=this._AutoCompleteValue;n.indexOf(this.get_CultureTimePlaceholder())==-1&&(n="");this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(d=this._SplitDateTime(ValueText),s=d[1].split(" "),ValueText=s.length==2?s[0]+" "+s[1]:s[0],n!=""&&(n.indexOf(this.get_CultureDatePlaceholder())==-1&&(n=" "+n),p=this._SplitDateTime(n),c=p[1].split(" "),n=c.length==2?c[0]+" "+c[1]:p[0]));w=new Date;t=w.getHours().toString();t.length<2&&(t="0"+t);n!=""&&(t=n.substring(0,2));var v=!1,h=!1,y="",f="",i="";return this.get_CultureAMPMPlaceholder()!=""&&(b=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator),y=b[0],f=b[1],n==""?(i=y,t>12&&(t=(parseInt(t,10)-12).toString(),t.length<2&&(t="0"+t),i=f)):(i=y,n.indexOf(f)!=-1&&(i=f)),v=!0,ValueText.indexOf(f)!=-1&&f!=""&&(h=!0),this._AcceptAmPm?(k=!0,(ValueText.substring(0,1)!=this._PromptChar||ValueText.substring(1,2)!=this._PromptChar)&&(k=!1),k&&i!=""&&(v=!0,h=!1,f==i&&(h=!0))):(i="",h=!1,v=!1)),e=w.getMinutes().toString(),e.length<2&&(e="0"+e),n!=""&&(e=n.substring(3,5)),l="00",this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime?(r=ValueText.substring(0,2),r=this._AdjustTime(r,t),u=ValueText.substring(3,5),u=this._AdjustTime(u,e)):(r=ValueText.substring(this._LogicFirstPos,this._LogicFirstPos+2),r=this._AdjustTime(r,t),u=ValueText.substring(this._LogicFirstPos+3,this._LogicFirstPos+5),u=this._AdjustTime(u,e)),a=this._maskvalid,this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(a=a.split(" ")[1]),a=="99:99:99"?(n!=""&&(l=n.substring(6)),this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime?(o=ValueText.substring(6,8),o=this._AdjustTime(o,l)):(o=ValueText.substring(this._LogicFirstPos+6,this._LogicFirstPos+8),o=this._AdjustTime(o,l)),ValueText=r+this.get_CultureTimePlaceholder()+u+this.get_CultureTimePlaceholder()+o):ValueText=r+this.get_CultureTimePlaceholder()+u,h?ValueText+=" "+f:v&&(ValueText+=" "+y),this._MaskType!=Sys.Extended.UI.MaskedEditType.DateTime&&this.loadValue(ValueText,this._LogicFirstPos),ValueText},AutoFormatDateTime:function(){var n=this.AutoFormatDate(),t=this.AutoFormatTime();return this.loadValue(n+" "+t,this._LogicFirstPos),n+" "+t},AutoFormatDate:function(){var u=this._GetDateElementText("D").replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",f=this._GetDateElementText("M").replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",e=this._GetDateElementText("Y").replace(new RegExp("(\\"+this._PromptChar+")","g"),"")+"",c=this._maskvalid.indexOf("9999")!=-1?!0:!1,o=this._AutoCompleteValue,i,r,t,h,n,l,s;if(o.indexOf(this.get_CultureDatePlaceholder())==-1&&(o=""),o=="")h=new Date,i=h.getUTCDate().toString(),i.length<2&&(i="0"+i),r=(h.getUTCMonth()+1).toString(),r.length<2&&(r="0"+r),t=h.getUTCFullYear().toString(),c||(t=h.getUTCFullYear().toString().substring(2));else if(this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime?(o.indexOf(this.get_CultureTimePlaceholder())==-1&&(o=o+" "),l=this._SplitDateTime(o)[0],n=l.split(this.get_CultureDatePlaceholder())):n=o.split(this.get_CultureDatePlaceholder()),this.get_CultureDateFormat()=="DMY"?(i=n[0],r=n[1],t=n[2]):this.get_CultureDateFormat()=="MDY"?(i=n[1],r=n[0],t=n[2]):this.get_CultureDateFormat()=="DYM"?(i=n[0],r=n[2],t=n[1]):this.get_CultureDateFormat()=="MYD"?(i=n[2],r=n[0],t=n[1]):this.get_CultureDateFormat()=="YMD"?(i=n[2],r=n[1],t=n[0]):this.get_CultureDateFormat()=="YDM"&&(i=n[1],r=n[2],t=n[0]),i.length<2&&(i="0"+i),r.length<2&&(r="0"+r),c)while(t.length<4)t="0"+t;else while(t.length<2)t="0"+t;return u==""&&(u=i),f==""&&(f=r),e==""&&(e=t),this.get_CultureDateFormat()=="DMY"?s=u+this.get_CultureDatePlaceholder()+f+this._CultureDatePlaceholder+e:this.get_CultureDateFormat()=="MDY"?s=f+this.get_CultureDatePlaceholder()+u+this._CultureDatePlaceholder+e:this.get_CultureDateFormat()=="DYM"?s=u+this.get_CultureDatePlaceholder()+e+this._CultureDatePlaceholder+f:this.get_CultureDateFormat()=="MYD"?s=f+this.get_CultureDatePlaceholder()+e+this._CultureDatePlaceholder+u:this.get_CultureDateFormat()=="YMD"?s=e+this.get_CultureDatePlaceholder()+f+this._CultureDatePlaceholder+u:this.get_CultureDateFormat()=="YDM"&&(s=e+this.get_CultureDatePlaceholder()+u+this._CultureDatePlaceholder+f),this._MaskType!=Sys.Extended.UI.MaskedEditType.DateTime&&this.loadValue(s,this._LogicFirstPos),s},ConvFmtNumber:function(n){return this._maskvalid.split(this.get_CultureDecimalPlaceholder()).length==2&&n.substring(n.length-1,n.length)==this.get_CultureDecimalPlaceholder()&&(n=n.substring(0,n.length-1)),n},ConvFmtTime:function(n,t){var a=0,v=!1,y=!1,f="",e="",l,c,i,r,u,o,s,h;if(this.get_CultureAMPMPlaceholder()!=""&&(f=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator)[0],e=this.get_CultureAMPMPlaceholder().split(this._AMPMPlaceholderSeparator)[1]),t&&(l="",c="",this._CultureAMPMPlaceholder!=""&&(l=this._CultureAMPMPlaceholder.split(this._AMPMPlaceholderSeparator)[0],c=this._CultureAMPMPlaceholder.split(this._AMPMPlaceholderSeparator)[1]),this.get_UserTimeFormat()==Sys.Extended.UI.MaskedEditUserTimeFormat.TwentyFourHour&&(n=n.replace(new RegExp("(\\"+l+")","g"),""),n.indexOf(c)!=-1&&(a=12),n=n.replace(new RegExp("(\\"+c+")","g"),""))),n.indexOf(f)!=-1&&f!=""?v=!0:n.indexOf(e)!=-1&&e!=""&&(y=!0),f!=""&&(n=n.replace(new RegExp("(\\"+f+")","g"),"")),e!=""&&(n=n.replace(new RegExp("(\\"+e+")","g"),"")),n=n.replace(new RegExp("(\\ )","g"),""),i=n.split(this.get_CultureTimePlaceholder()),r=this._maskvalid,this._MaskType==Sys.Extended.UI.MaskedEditType.DateTime&&(r=r.split(" ")[1]),r=r.split(":"),parseInt(i.length,10)<2||parseInt(i.length,10)>3)return"";if(u=parseInt(i[0],10)+a,u=u.toString(),u.length=0&&this._LogicTextMask.substring(n,n+1)!=this._LogicPrompt;)n--;return n},_isValidMaskedEditPosition:function(n){return this._LogicMask.substring(n,n+1)==this._LogicPrompt},_getNextPosition:function(n){while(!this._isValidMaskedEditPosition(n)&&nthis._LogicLastPos+1&&(n=this._LogicLastPos+1),n},_getPreviousPosition:function(n){while(!this._isValidMaskedEditPosition(n)&&n>this._LogicFirstPos)n--;return nthis._LogicLastPos+1&&(n=this._LogicLastPos+1),n0)for(s=0;sr?r:n;u=$get(i.multiHandleSliderTargetID);this._calculateMultiHandleSliderTargetValue(u,n,!0);$common.tryFireEvent(this.get_element(),"change")},_calculateClosestHandle:function(n){for(var i=this._handleData[0],r=[this._handles],s=this._getOuterBounds(),f,e,o,t=0;t=n+r[h]&&(o=this._handleData[h-1],o&&(i=o))}return i},_calculateMultiHandleSliderTargetValue:function(n,t,i){var u,c,f=this._minimum,e=this._maximum,y,o,r,s,tt,p,w,b,k,it;if(this._handleUnderDrag&&!n&&(o=this._handleUnderDrag,n=$get(this._handleUnderDrag.multiHandleSliderTargetID),this._innerDrag&&(y=Array.indexOf(this._handleData,o),u=this._handleData[y+1],u||(u=this._handleData[y-1]),c=$get(u.multiHandleSliderTargetID))),o=n.Handle,r=n.value,r&&!i){if(typeof r!="number")try{r=parseFloat(r)}catch(lt){r=Number.NaN}isNaN(r)&&(r=this._minimum);val=Math.max(Math.min(r,e),f)}else{var l=this._getBoundsInternal(o),d=this._getOuterBounds(),g=t?t-l.width/2:l.x-d.x,st=d.width-l.width,ht=g/st;val=Math.max(Math.min(r,e),f);val=g===0?f:g===d.width-l.width?e:f+ht*(e-f)}this._steps>0&&(val=this._getNearestStepValue(val));val=Math.max(Math.min(val,e),f);var rt=[],ut=[],a=0,nt=0,v,ft=!0;for(s=0;s0&&(p=parseFloat($get(rt[a-1].ControlID).value),val=Math.max(val,p),v=val===p),nt>0&&(w=parseFloat($get(ut[0].ControlID).value),val=Math.min(val,w),v=val===w),u){var ct=val-parseFloat(r),et=parseFloat(c.value),h=et+ct,ot=Array.indexOf(this._handleData,u)+1;ot(it||e)&&(h=et,val=r,v=!0)}return v||Math.max(val,e)!==e||Math.min(val,f)!==f?(this.beginUpdate(),this._handles===1?this._setMultiHandleSliderTargetValue(n,val):(n.value=val,o.Value=val,this._setHandlePosition(o,!0)),u&&(c.value=h,u.Value=h,this._setHandlePosition(u,!0)),this.endUpdate()):(this.beginUpdate(),val=Math.max(Math.min(val,e),f),this._setMultiHandleSliderTargetValue(n,val),u&&this._setMultiHandleSliderTargetValue(c,h),this.endUpdate()),val},_cancelDrag:function(){Sys.Extended.UI.MultiHandleSliderBehavior.DropPending===this&&(Sys.Extended.UI.MultiHandleSliderBehavior.DropPending=null,this._selectStartPending&&$removeHandler(document,"selectstart",this._selectStartHandler))},_createHandles:function(){for(var o,c,t,s,h,l,f,n=0;n");var v="

"+y+"<\/div><\/a>";this._outer.innerHTML+=v+p}for(this._handleData=[this._handles],n=0;n1&&this._showInnerRail&&(this._inner=document.createElement("DIV"),this._inner.id=this.get_id()+"_inner",this._inner.style.outline="none",this._inner.tabIndex=-1)},_createOuterRail:function(){this._outer=document.createElement("DIV");this._outer.id=this.get_id()+"_outer";this._outer.style.outline="none";this._outer.tabIndex=-1},_createWrapper:function(){this._wrapper=document.createElement("DIV");this._wrapper.style.position="relative";this._wrapper.style.outline="none"},_disposeHandlers:function(){if(!this._isReadOnly){$removeHandler(document,"mouseup",this._mouseUpHandler);$removeHandler(document,"mouseout",this._mouseOutHandler);this._outer&&(this._outer.addEventListener?this._outer.removeEventListener("DOMMouseScroll",this._mouseWheelHandler,!1):this._outer.detachEvent("onmousewheel",this._mouseWheelHandler),$common.removeHandlers(this._outer,this._outerDelegates));for(var n=0;n=this._minimum||t<=this._maximum)&&(i=n&&n.nodeName==="INPUT",i?n.value=t:n&&(n.innerHTML=t)))},_enforceElementPositioning:function(){var n={position:this.get_element().style.position,top:this.get_element().style.top,right:this.get_element().style.right,bottom:this.get_element().style.bottom,left:this.get_element().style.left};n.position!==""&&(this._wrapper.style.position=n.position);n.top!==""&&(this._wrapper.style.top=n.top);n.right!==""&&(this._wrapper.style.right=n.right);n.bottom!==""&&(this._wrapper.style.bottom=n.bottom);n.left!==""&&(this._wrapper.style.left=n.left)},_getNearestStepValue:function(n){var t,i;if(this._steps===0||(t=this._maximum-this._minimum,t===0))return n;if(this._steps-1!=0)i=t/(this._steps-1);else return n;return Math.round(n/i)*i},_getStepValues:function(){var t=[this._steps],i=this._maximum-this._minimum,r=i/(this._steps-1),n;for(t[0]=this._minimum,n=1;n1?this._handleData[f]:null;if(i){var e=parseInt(this._getBoundsInternal(t).width,10),n=parseInt(this._isVertical?t.style.top:t.style.left,10),r=parseInt(this._isVertical?i.style.top:i.style.left,10),o=parseInt(this._multiHandleSliderTargets[u].Offset,10),s=parseInt(this._multiHandleSliderTargets[f].Offset,10);n+=o;r+=s;this._isVertical?(this._inner.style.top=n+"px",this._inner.style.height=r+e-n+"px"):(this._inner.style.left=n+"px",this._inner.style.width=r+e-n+"px");this._innerRailStyle===Sys.Extended.UI.MultiHandleInnerRailStyle.SlidingDoors&&(this._inner.style.backgroundPosition=this._isVertical?"0 -"+n+"px":"-"+n+"px 0")}}},_initializeMultiHandleSliderTarget:function(n,t,i){var r,u;n&&(r=$get(n),i.Value&&(r.value=i.Value),r.Handle=i,r.Decimals=t,r.OldValue=r.value,r.onchange="setValue(this, "+r.value+")",r.Decimals||(r.Decimals=0),u=r&&r.nodeName==="INPUT",u&&(r.KeyPressHandler=Function.createDelegate(this,this._onMultiHandleSliderTargetKeyPressed),r.ChangeHandler=Function.createDelegate(this,this._onMultiHandleSliderTargetChange),$addHandler(r,"keypress",r.KeyPressHandler),$addHandler(r,"change",r.ChangeHandler)))},_initializeSlider:function(){Sys.Extended.UI.DragDrop.registerDropTarget(this);this._initializeHandles();this._initializeHandlers();this._initializeInnerRail();this._initialized=!0;this._raiseEvent("load")},_resetDragHandle:function(n){var t=$common.getBounds(n);$common.setLocation(n.DragHandle,{x:t.x,y:t.y})},_resolveNamingContainer:function(){var t,i,n;if(this._isServerControl&&this._multiHandleSliderTargets&&!this._boundControlID)for(t=this._clientStateFieldID.lastIndexOf(this._id),i=this._clientStateFieldID.substring(0,t),n=0;n0&&this._setMultiHandleSliderTargetValue(n,n.value),this._calculateMultiHandleSliderTargetValue(n)));this.endUpdate()},_slideMultiHandleSliderTarget:function(n,t){var u=$get(n),s=u.value,r,i,f,e,o;if(this._steps>0){if(f=this._getStepValues(),e=this._getNearestStepValue(s),r=e,t){for(i=this._steps-1;i>-1;i--)if(f[i]e){r=f[i];break}}else o=parseFloat(u.value),r=t?o-parseFloat(this._increment):o+parseFloat(this._increment);return u.value=r,this._setValueFromMultiHandleSliderTarget(u),u.value==r},_startDragDrop:function(n){this._resetDragHandle(n);this._handleUnderDrag=n;Sys.Extended.UI.DragDrop.startDragDrop(this,n.DragHandle,null)},_onAnimationEnded:function(){this._initializeInnerRail()},_onAnimationStep:function(){this._initializeInnerRail()},_onHideDrag:function(n,t){this.className=t.custom&&t.custom.length>0?t.custom:t.vertical?"handle_vertical":"handle_horizontal"},_onHideHover:function(n,t){this.className=t.custom&&t.custom.length>0?t.custom:t.vertical?"ajax__multi_slider_default handle_vertical":"ajax__multi_slider_default handle_horizontal"},_onInnerRailClick:function(n){if(this._enableRailClick){var t=n.target;t!==this._inner||this._blockInnerClick?this._blockInnerClick=!1:(this._animationPending=!0,this._onInnerRailClicked(n))}},_onInnerRailClicked:function(n){var t=this._calculateInnerRailOffset(n);this._calculateClick(t)},_onKeyDown:function(n){if(this._enableKeyboard){var t=new Sys.UI.DomEvent(n),i=!1;switch(t.keyCode||t.rawEvent.keyCode){case Sys.UI.Key.up:case Sys.UI.Key.left:return i||(this._handleSlide(!0),t.preventDefault(),i=!0),!1;case Sys.UI.Key.down:case Sys.UI.Key.right:return i||(this._handleSlide(!1),t.preventDefault(),i=!0),!1;default:return!1}}},_onMouseOver:function(){this._outer.focus()},_onMouseWheel:function(n){var t=0;return n.wheelDelta?(t=n.wheelDelta/120,Sys.Browser.agent===Sys.Browser.Opera&&(t=-t)):n.detail&&(t=-n.detail/3),t&&this._handleSlide(t<=0),n.preventDefault&&n.preventDefault(),!1},_onMouseUp:function(n){window._event=n;n.preventDefault();this._cancelDrag()},_onMouseOut:function(n){window._event=n;n.preventDefault();this._outer.blur();this._handleUnderDrag&&this._cancelDrag()},_onMouseOutInner:function(n){window._event=n;n.preventDefault();this._inner.blur();this._innerDrag&&this._cancelDrag()},_onMouseDown:function(n){if(window._event=n,n.preventDefault(),!Sys.Extended.UI.MultiHandleSliderBehavior.DropPending){Sys.Extended.UI.MultiHandleSliderBehavior.DropPending=this;$addHandler(document,"selectstart",this._selectStartHandler);this._selectStartPending=!0;var t=n.target;this._startDragDrop(t)}},_onMouseDownInner:function(n){window._event=n;n.preventDefault();this._enableInnerRangeDrag&&(this._innerDragFlag||(this._innerDragFlag=!0))},_onMouseUpInner:function(){this._enableInnerRangeDrag&&(this._innerDragFlag=!1)},_onMouseMoveInner:function(n){if(window._event=n,n.preventDefault(),this._enableInnerRangeDrag&&!this._innerDrag&&this._innerDragFlag&&(this._innerDragFlag=!1,!Sys.Extended.UI.MultiHandleSliderBehavior.DropPending)){Sys.Extended.UI.MultiHandleSliderBehavior.DropPending=this;$addHandler(document,"selectstart",this._selectStartHandler);this._selectStartPending=!0;this._innerDrag=!0;var t=this._calculateInnerRailOffset(n),i=this._calculateClosestHandle(t);this._startDragDrop(i)}},_onMultiHandleSliderTargetChange:function(n){this._animationPending=!0;var t=n.target;this._setValueFromMultiHandleSliderTarget(t);this._initializeInnerRail();n.preventDefault()},_onMultiHandleSliderTargetKeyPressed:function(n){var t=new Sys.UI.DomEvent(n),i;t.charCode===13&&(this._animationPending=!0,i=t.target,this._setValueFromMultiHandleSliderTarget(i),this._initializeInnerRail(),t.preventDefault())},_onOuterRailClick:function(n){if(this._enableRailClick){var t=n.target;t===this._outer&&(this._animationPending=!0,this._onOuterRailClicked(n))}},_onOuterRailClicked:function(n){var t=this._isVertical?n.offsetY:n.offsetX;this._calculateClick(t)},_onShowDrag:function(n,t){this.className=t.custom&&t.custom.length>0?t.custom:t.vertical?"ajax__multi_slider_default handle_vertical_down":"ajax__multi_slider_default handle_horizontal_down"},_onShowHover:function(n,t){this.className=t.custom&&t.custom.length>0?t.custom:t.vertical?"ajax__multi_slider_default handle_vertical_hover":"ajax__multi_slider_default handle_horizontal_hover"},get_dragDataType:function(){return"HTML"},getDragData:function(){return this._handleUnderDrag},get_dragMode:function(){return Sys.Extended.UI.DragMode.Move},onDragStart:function(){this._resetDragHandle(this._handleUnderDrag);this._raiseEvent("dragStart")},onDrag:function(){var n=this._getBoundsInternal(this._handleUnderDrag.DragHandle),r=this._getBoundsInternal(this._handleUnderDrag),t=this._getOuterBounds(),i;i=this._isVertical?{y:n.x-t.x,x:0}:{x:n.x-t.x,y:0};$common.setLocation(this._handleUnderDrag,i);this._calculateMultiHandleSliderTargetValue(null,null,!0);this._steps>1&&this._setHandlePosition(this._handleUnderDrag,!1);this._raiseEvent("drag")},onDragEnd:function(){this._initializeInnerRail();this._raiseChangeOnlyOnMouseUp&&$common.tryFireEvent(this.get_element(),"change");this._innerDrag=!1;this._handleUnderDrag=null;this._raiseEvent("dragEnd")},get_dropTargetElement:function(){return document.forms[0]},canDrop:function(n,t){return t=="HTML"},drop:Function.emptyMethod,onDragEnterTarget:Function.emptyMethod,onDragLeaveTarget:Function.emptyMethod,onDragInTarget:Function.emptyMethod,_IEDragDropHandler:function(n){n.preventDefault()},_onSelectStart:function(n){return n.preventDefault(),!1},_getOuterBounds:function(){return this._getBoundsInternal(this._outer)},_getInnerBounds:function(){return this._getBoundsInternal(this._inner)},_getBoundsInternal:function(n){var t=$common.getBounds(n);return this._isVertical?{x:t.y,y:t.x,height:t.width,width:t.height,right:t.right,left:t.left,bottom:t.bottom,location:{x:t.y,y:t.x},size:{width:t.height,height:t.width}}:{x:t.x,y:t.y,height:t.height,width:t.width,right:t.right,left:t.left,bottom:t.bottom,location:{x:t.x,y:t.y},size:{width:t.width,height:t.height}}},_raiseEvent:function(n,t){var i=this.get_events().getHandler(n);i&&(t||(t=Sys.EventArgs.Empty),i(this,t))},get_Value:function(){var n=$get(this._boundControlID);return n.value?n.value:0},set_Value:function(n){var t=$get(this._multiHandleSliderTargets[0].ControlID);this.beginUpdate();this._setMultiHandleSliderTargetValue(t,this._getNearestStepValue(n));this.endUpdate();$common.tryFireEvent(t,"change")},get_minimum:function(){return this._minimum},set_minimum:function(n){n!==this._minimum&&(this._minimum=n,this.raisePropertyChanged("minimum"))},get_maximum:function(){return this._maximum},set_maximum:function(n){n!==this._maximum&&(this._maximum=n,this.raisePropertyChanged("maximum"))},get_length:function(){return this._length},set_length:function(n){n!==this._length&&(this._length=n,this.raisePropertyChanged("length"))},get_steps:function(){return this._steps},set_steps:function(n){var t=this._steps;this._steps=Math.abs(n);this._steps=this._steps===1?2:this._steps;t!==this._steps&&this.raisePropertyChanged("steps")},get_orientation:function(){return this._isVertical},set_orientation:function(n){n!==this._isVertical&&(this._orientation=n,this.raisePropertyChanged("orientation"))},get_enableHandleAnimation:function(){return this._enableHandleAnimation},set_enableHandleAnimation:function(n){n!==this._enableHandleAnimation&&(this._enableHandleAnimation=n,this.raisePropertyChanged("enableHandleAnimation"))},get_handleAnimationDuration:function(){return this._handleAnimationDuration},set_handleAnimationDuration:function(n){n!==this._handleAnimationDuration&&(this._handleAnimationDuration=n,this.raisePropertyChanged("handleAnimationDuration"))},get_raiseChangeOnlyOnMouseUp:function(){return this._raiseChangeOnlyOnMouseUp},set_raiseChangeOnlyOnMouseUp:function(n){n!==this._raiseChangeOnlyOnMouseUp&&(this._raiseChangeOnlyOnMouseUp=n,this.raisePropertyChanged("raiseChangeOnlyOnMouseUp"))},get_showInnerRail:function(){return this._showInnerRail},set_showInnerRail:function(n){n!==this._showInnerRail&&(this._showInnerRail=n,this.raisePropertyChanged("showInnerRail"))},get_showHandleHoverStyle:function(){return this._showHoverStyle},set_showHandleHoverStyle:function(n){n!==this._showHoverStyle&&(this._showHoverStyle=n,this.raisePropertyChanged("showHoverStyle"))},get_showHandleDragStyle:function(){return this._showDragStyle},set_showHandleDragStyle:function(n){n!==this._showDragStyle&&(this._showDragStyle=n,this.raisePropertyChanged("showDragStyle"))},get_innerRailStyle:function(){return this._innerRailStyle},set_innerRailStyle:function(n){n!==this._innerRailStyle&&(this._innerRailStyle=n,this.raisePropertyChanged("innerRailStyle"))},get_enableInnerRangeDrag:function(){return this._enableInnerRangeDrag},set_enableInnerRangeDrag:function(n){n!==this._enableInnerRangeDrag&&(this._enableInnerRangeDrag=n,this.raisePropertyChanged("allowInnerRangeDrag"))},get_enableRailClick:function(){return this._enableRailClick},set_enableRailClick:function(n){n!==this._enableRailClick&&(this._enableRailClick=n,this.raisePropertyChanged("allowRailClick"))},get_isReadOnly:function(){return this._isReadOnly},set_isReadOnly:function(n){n!==this._isReadOnly&&(this._isReadOnly=n,this.raisePropertyChanged("isReadOnly"))},get_enableKeyboard:function(){return this._enableKeyboard},set_enableKeyboard:function(n){n!==this._enableKeyboard&&(this._enableKeyboard=n,this.raisePropertyChanged("enableKeyboard"))},get_enableMouseWheel:function(){return this._enableMouseWheel},set_enableMouseWheel:function(n){n!==this._enableMouseWheel&&(this._enableMouseWheel=n,this.raisePropertyChanged("enableMouseWheel"))},get_increment:function(){return this._increment},set_increment:function(n){n!==this._increment&&(this._increment=n,this.raisePropertyChanged("increment"))},get_tooltipText:function(){return this._tooltipText},set_tooltipText:function(n){n!==this._tooltipText&&(this._tooltipText=n,this.raisePropertyChanged("tooltipText"))},get_multiHandleSliderTargets:function(){return this._multiHandleSliderTargets},set_multiHandleSliderTargets:function(n){n!==this._multiHandleSliderTargets&&(this._multiHandleSliderTargets=n,this.raisePropertyChanged("multiHandleSliderTargets"))},get_cssClass:function(){return this._cssClass},set_cssClass:function(n){n!==this._cssClass&&(this._cssClass=n,this.raisePropertyChanged("cssClass"))},get_boundControlID:function(){return this._boundControlID},set_boundControlID:function(n){this._boundControlID=n;this._boundControl=this._boundControlID?$get(this._boundControlID):null},get_handleCssClass:function(){return this._handleCssClass},set_handleCssClass:function(n){this._handleCssClass=n},get_handleImageUrl:function(){return this._handleImageUrl},set_handleImageUrl:function(n){this._handleImageUrl=n},get_railCssClass:function(){return this._railCssClass},set_railCssClass:function(n){this._railCssClass=n},get_decimals:function(){return this._decimals},set_decimals:function(n){this._decimals=n},add_load:function(n){this.get_events().addHandler("load",n)},remove_load:function(n){this.get_events().removeHandler("load",n)},add_dragStart:function(n){this.get_events().addHandler("dragStart",n)},remove_dragStart:function(n){this.get_events().removeHandler("dragStart",n)},add_drag:function(n){this.get_events().addHandler("drag",n)},remove_drag:function(n){this.get_events().removeHandler("drag",n)},add_dragEnd:function(n){this.get_events().addHandler("dragEnd",n)},remove_dragEnd:function(n){this.get_events().removeHandler("dragEnd",n)},add_valueChanged:function(n){this.get_events().addHandler("valueChanged",n)},remove_valueChanged:function(n){this.get_events().removeHandler("valueChanged",n)}};Sys.Extended.UI.MultiHandleSliderBehavior.DropPending=null;Sys.Extended.UI.MultiHandleSliderBehavior.registerClass("Sys.Extended.UI.MultiHandleSliderBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.MultiHandleSliderBehavior,{name:"multiHandleSlider"})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedMultiHandleSlider",["ExtendedBase","ExtendedDragDrop","ExtendedAnimations"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior=function(n){Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.initializeBase(this,[n]);this._key="";this._clickHandler=Function.createDelegate(this,this._onclick)};Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.prototype={initialize:function(){Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.callBaseMethod(this,"initialize");$addHandler(this.get_element(),"click",this._clickHandler)},dispose:function(){if(this._key){var n=Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.Keys,t=n[this._key];Array.remove(t,this);this._key=null}this._clickHandler&&($removeHandler(this.get_element(),"click",this._clickHandler),this._clickHandler=null);Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.callBaseMethod(this,"dispose")},get_Key:function(){return this._key},set_Key:function(n){var i=Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.Keys,t;n!=this._key&&(this._key&&(t=i[this._key],Array.remove(t,this._key)),this._key=n,n&&(t=i[this._key],t==null&&(t=i[this._key]=[]),Array.add(t,this)))},_onclick:function(){var n=this.get_element(),r=Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.Keys,t,i;this._key&&n.checked&&(t=r[this._key],i=this,Array.forEach(t,function(n){n!=i&&(n.get_element().checked=!1,$common.tryFireEvent(n.get_element(),"change"))}));this.raiseChecked(new Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs(n,this._key))},add_checked:function(n){this.get_events().addHandler("checked",n)},remove_checked:function(n){this.get_events().removeHandler("checked",n)},raiseChecked:function(n){var t=this.get_events().getHandler("checked");t&&t(this,n)}};Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.registerClass("Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior.Keys={};Sys.registerComponent(Sys.Extended.UI.MutuallyExclusiveCheckBoxBehavior,{name:"mutuallyExclusiveCheckBox",parameters:["Key"]});Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs=function(n,t){Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs.initializeBase(this);this._key=t;this._checkbox=n};Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs.prototype={get_checkbox:function(){return this._checkbox},get_key:function(){return this._key}};Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs.registerClass("Sys.Extended.UI.MutuallyExclusiveCheckBoxEventArgs",Sys.EventArgs)}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedMutuallyExclusiveCheckBox",["ExtendedBase","ExtendedCommon"],n):n()}();Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.NoBotBehavior=function(n){Sys.Extended.UI.NoBotBehavior.initializeBase(this,[n]);this._ChallengeScript=""};Sys.Extended.UI.NoBotBehavior.prototype={initialize:function(){Sys.Extended.UI.NoBotBehavior.callBaseMethod(this,"initialize");var n=eval(this._ChallengeScript);Sys.Extended.UI.NoBotBehavior.callBaseMethod(this,"set_ClientState",[n])},dispose:function(){Sys.Extended.UI.NoBotBehavior.callBaseMethod(this,"dispose")},get_ChallengeScript:function(){return this._ChallengeScript},set_ChallengeScript:function(n){this._ChallengeScript!=n&&(this._ChallengeScript=n,this.raisePropertyChanged("ChallengeScript"))}};Sys.Extended.UI.NoBotBehavior.registerClass("Sys.Extended.UI.NoBotBehavior",Sys.Extended.UI.BehaviorBase),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.NumericUpDownBehavior=function(n){Sys.Extended.UI.NumericUpDownBehavior.initializeBase(this,[n]);this._currentValue=null;this._widthValue=null;this._targetButtonUpIDValue=null;this._targetButtonDownIDValue=null;this._serviceUpPathValue=location.pathname;this._serviceUpMethodValue=null;this._serviceDownPathValue=location.pathname;this._serviceDownMethodValue=null;this._refValuesValue=null;this._tagValue=null;this._elementTextBox=null;this._step=1;this._min=-Number.MAX_VALUE;this._max=Number.MAX_VALUE;this._bUp=null;this._bDown=null;this._stepPrecision=0;this._valuePrecision=0;this._clickUpHandler=null;this._clickDownHandler=null;this._changeHandler=null};Sys.Extended.UI.NumericUpDownBehavior.prototype={initialize:function(){var n,t;if(Sys.Extended.UI.NumericUpDownBehavior.callBaseMethod(this,"initialize"),$common.prepareHiddenElementForATDeviceUpdate(),n=this.get_element(),this._elementTextBox=n,this._elementTextBox.readOnly=this._refValuesValue||this._serviceUpMethodValue||this._serviceDownMethodValue?!0:!1,this.readValue(),this._changeHandler=Function.createDelegate(this,this._onChange),$addHandler(n,"blur",this._changeHandler),!this._targetButtonUpIDValue||!this._targetButtonDownIDValue){this._widthValue=Math.max(this._widthValue,24);n.style.width=this._widthValue-24+"px";n.style.textAlign="center";t=document.createElement("DIV");t.style.position="relative";t.style.width=this._widthValue+"px";t.style.fontSize=n.clientHeight+"px";t.style.height=n.clientHeight+"px";t.style.paddingRight="24px";t.style.display=Sys.Browser.agent==Sys.Browser.Firefox||Sys.Browser.agent==Sys.Browser.Safari?"inline-block":"inline";n.parentNode.insertBefore(t,n);var i=document.createElement("TABLE"),e=document.createElement("TBODY"),o=document.createElement("TR"),s=document.createElement("TR"),r=document.createElement("TD"),u=document.createElement("TD"),f=document.createElement("TD");r.rowSpan="2";r.style.verticalAlign="middle";u.style.verticalAlign="middle";f.style.verticalAlign="middle";o.appendChild(r);o.appendChild(u);s.appendChild(f);e.appendChild(o);e.appendChild(s);i.appendChild(e);t.appendChild(i);n.parentNode.removeChild(n);r.appendChild(n);i.style.borderCollapse="collapse";i.cellSpacing="0";i.cellPadding="0";i.style.display="inline";i.style.position="relative";r.style.padding="0";u.style.padding="0";f.style.padding="0";r.style.margin="0";u.style.margin="0";f.style.margin="0"}this._targetButtonUpIDValue||(this._bUp=document.createElement("input"),this._bUp.type="button",this._bUp.id=n.id+"_bUp",this._bUp.style.border="outset 1px",Sys.Browser.agent==Sys.Browser.InternetExplorer?(this._bUp.style.fontFamily="Webdings",this._bUp.style.fontSize="9pt",this._bUp.value="5"):(this._bUp.style.fontFamily="Tahoma, Arial, sans-serif",this._bUp.style.fontSize="5pt",this._bUp.value="â–²",this._bUp.style.fontWeight="bold",this._bUp.style.lineHeight="3pt"),this._bUp.style.height="12px",this._bUp.style.width="24px",this._bUp.style.overflow="hidden",this._bUp.style.lineHeight="1em",u.appendChild(this._bUp));this._targetButtonDownIDValue||(this._bDown=document.createElement("input"),this._bDown.type="button",this._bDown.id=n.id+"_bDown",this._bDown.style.border="outset 1px",Sys.Browser.agent==Sys.Browser.InternetExplorer?(this._bDown.value="6",this._bDown.style.fontFamily="Webdings",this._bDown.style.fontSize="9pt"):(this._bDown.value="â–¼",this._bDown.style.fontFamily="Tahoma, Arial, sans-serif",this._bDown.style.fontSize="5pt",this._bDown.style.fontWeight="bold"),this._bDown.style.height="12px",this._bDown.style.lineHeight="3pt",this._bDown.style.width="24px",this._bDown.style.overflow="hidden",f.appendChild(this._bDown));this._bUp==null&&(this._bUp=document.getElementById(this._targetButtonUpIDValue));this._bUp&&(this._clickUpHandler=Function.createDelegate(this,this._clickUp),$addHandler(this._bUp,"click",this._clickUpHandler));this._bDown==null&&(this._bDown=document.getElementById(this._targetButtonDownIDValue));this._bDown&&(this._clickDownHandler=Function.createDelegate(this,this._clickDown),$addHandler(this._bDown,"click",this._clickDownHandler))},dispose:function(){this._changeHandler&&($removeHandler(this.get_element(),"blur",this._changeHandler),this._changeHandler=null);this._clickUpHandler&&this._bUp&&($removeHandler(this._bUp,"click",this._clickUpHandler),this._clickUpHandler=null);this._clickDownHandler&&this._bDown&&($removeHandler(this._bDown,"click",this._clickDownHandler),this._clickDownHandler=null);Sys.Extended.UI.NumericUpDownBehavior.callBaseMethod(this,"dispose")},add_currentChanged:function(n){this.get_events().addHandler("currentChanged",n)},remove_currentChanged:function(n){this.get_events().removeHandler("currentChanged",n)},raiseCurrentChanged:function(n){var t=this.get_events().getHandler("currentChanged");t&&(n||(n=Sys.EventArgs.Empty),t(this,n))},_onChange:function(){this.readValue();this._refValuesValue?(this.setCurrentToTextBox(this._refValuesValue[this._currentValue]),this._elementTextBox&&(this._elementTextBox.readOnly=!0)):(this.setCurrentToTextBox(this._currentValue),this._elementTextBox&&(this._elementTextBox.readOnly=this._serviceUpMethodValue||this._serviceDownMethodValue))},readValue:function(){var n,i,t;if(this._elementTextBox)if(n=this._elementTextBox.value,this._refValuesValue){if(n){for(i=0,t=0;t0?Math.max(Math.min(t,this._max),this._min):Math.min(Math.max(t,this._min),this._max)},_computePrecision:function(n){var i,r,t;return n==Number.Nan?this._min:(i=n.toString(),i&&(r=/\.(\d*)$/,t=i.match(r),t&&t.length==2&&t[1]))?t[1].length:this._min},get_Width:function(){return this._widthValue},set_Width:function(n){this._widthValue!=n&&(this._widthValue=n,this.raisePropertyChanged("Width"))},get_Tag:function(){return this._tagValue},set_Tag:function(n){this._tagValue!=n&&(this._tagValue=n,this.raisePropertyChanged("Tag"))},get_TargetButtonUpID:function(){return this._targetButtonUpIDValue},set_TargetButtonUpID:function(n){this._targetButtonUpIDValue!=n&&(this._targetButtonUpIDValue=n,this.raisePropertyChanged("TargetButtonUpID"))},get_TargetButtonDownID:function(){return this._targetButtonDownIDValue},set_TargetButtonDownID:function(n){this._targetButtonDownIDValue!=n&&(this._targetButtonDownIDValue=n,this.raisePropertyChanged("TargetButtonDownID"))},get_ServiceUpPath:function(){return this._serviceUpPathValue},set_ServiceUpPath:function(n){this._serviceUpPathValue!=n&&(this._serviceUpPathValue=n,this.raisePropertyChanged("ServiceUpPath"))},get_ServiceUpMethod:function(){return this._serviceUpMethodValue},set_ServiceUpMethod:function(n){this._serviceUpMethodValue!=n&&(this._serviceUpMethodValue=n,this.raisePropertyChanged("ServiceUpMethod"),this._elementTextBox&&(this._elementTextBox.readOnly=!0))},get_ServiceDownPath:function(){return this._serviceDownPathValue},set_ServiceDownPath:function(n){this._serviceDownPathValue!=n&&(this._serviceDownPathValue=n,this.raisePropertyChanged("ServiceDownPath"))},get_ServiceDownMethod:function(){return this._serviceDownMethodValue},set_ServiceDownMethod:function(n){this._serviceDownMethodValue!=n&&(this._serviceDownMethodValue=n,this.raisePropertyChanged("ServiceDownMethod"),this._elementTextBox&&(this._elementTextBox.readOnly=!0))},get_RefValues:function(){return this._refValuesValue?this._refValuesValue.join(";"):""},set_RefValues:function(n){n!=""?(this._refValuesValue=n.split(";"),this._onChange(),this._elementTextBox&&(this._elementTextBox.readOnly=!0)):(this._refValuesValue=null,this._elementTextBox&&(this._elementTextBox.readOnly=!1));this.raisePropertyChanged("RefValues")},get_Step:function(){return this._step},set_Step:function(n){n!=this._step&&(this._step=n,this._stepPrecision=this._computePrecision(n),this.raisePropertyChanged("Step"))},get_Minimum:function(){return this._min},set_Minimum:function(n){n!=this._min&&(this._min=n,this.raisePropertyChanged("Minimum"))},get_Maximum:function(){return this._max},set_Maximum:function(n){n!=this._max&&(this._max=n,this.raisePropertyChanged("Maximum"))},_clickUp:function(n){return this.readValue(),this._serviceUpPathValue&&this._serviceUpMethodValue?(Sys.Net.WebServiceProxy.invoke(this._serviceUpPathValue,this._serviceUpMethodValue,!1,{current:this._currentValue,tag:this._tagValue},Function.createDelegate(this,this._onMethodUpDownComplete)),$common.updateFormToRefreshATDeviceBuffer()):this._refValuesValue?this._currentValue+1=0&&(this._currentValue=this._currentValue-1,this.setCurrentToTextBox(this._refValuesValue[this._currentValue])):(this._incrementValue(-this._step),this.setCurrentToTextBox(this._currentValue)),n&&n.preventDefault(),!1},_onMethodUpDownComplete:function(n){this._currentValue=n;this.setCurrentToTextBox(this._currentValue)}};Sys.Extended.UI.NumericUpDownBehavior.registerClass("Sys.Extended.UI.NumericUpDownBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.NumericUpDownBehavior,{name:"upDown",parameters:["Minimum","Maximum","Width"]})}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedUpDown",["ExtendedCommon","ExtendedBase","WebServices"],n):n()}(),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.PagingBulletedListBehavior=function(n){Sys.Extended.UI.PagingBulletedListBehavior.initializeBase(this,[n]);this._indexSizeValue=1;this._separatorValue=" - ";this._heightValue=null;this._maxItemPerPage=null;this._clientSortValue=!1;this._selectIndexCssClassValue=null;this._unselectIndexCssClassValue=null;this._tabValue=[];this._tabValueObject=[];this._tabIndex=[];this._divContent=null;this._divContentIndex=null;this._divContentUl=null;this._prevIndexSelected=null;this._indexSelected=0;this._clickIndex=null};Sys.Extended.UI.PagingBulletedListBehavior.prototype={initialize:function(){var u,t,r,i,f,n;for(Sys.Extended.UI.PagingBulletedListBehavior.callBaseMethod(this,"initialize"),u=this.get_ClientState(),u&&(t=u.split(";"),t.length&&(this._indexSelected=t[0],this._indexSizeValue=t[1]=="null"?null:t[1],this._maxItemPerPage=t[2]=="null"?null:t[2],this._clientSortValue=t[3]=="true"?!0:!1)),r=this.get_element(),this._divContent=document.createElement("div"),r.parentNode.insertBefore(this._divContent,r),i=r.childNodes,this._clickIndex=Function.createDelegate(this,this._onIndexClick),this._divContentIndex=document.createElement("DIV"),this._divContentIndex.style.marginBottom="5px",this._divContent.appendChild(this._divContentIndex),n=0;n0)for(n=-1,t=0;t0)for(r="",n=-1,t=0;t0&&(this._unselectIndexCssClassValue&&Sys.UI.DomElement.removeCssClass(this._tabIndex[n],this._unselectIndexCssClassValue),this._selectIndexCssClassValue&&Sys.UI.DomElement.addCssClass(this._tabIndex[n],this._selectIndexCssClassValue),this._prevIndexSelected=this._tabIndex[n],this.raiseIndexChanged(this._tabIndex[n]))},_onIndexClick:function(n){var i=this.get_element(),t=n.target;this._selectIndexCssClassValue&&Sys.UI.DomElement.removeCssClass(this._prevIndexSelected,this._selectIndexCssClassValue);this._unselectIndexCssClassValue&&Sys.UI.DomElement.addCssClass(this._prevIndexSelected,this._unselectIndexCssClassValue);this._unselectIndexCssClassValue&&Sys.UI.DomElement.removeCssClass(t,this._unselectIndexCssClassValue);this._selectIndexCssClassValue&&Sys.UI.DomElement.addCssClass(t,this._selectIndexCssClassValue);this._prevIndexSelected=t;this._renderHtml(t.tag);this.raiseIndexChanged(t);n.preventDefault()},add_indexChanged:function(n){this.get_events().addHandler("indexChanged",n)},remove_indexChanged:function(n){this.get_events().removeHandler("indexChanged",n)},raiseIndexChanged:function(n){this._indexSelected=n.tag;var t=this.get_events().getHandler("indexChanged");t&&(n||(n=Sys.EventArgs.Empty),t(this,n));this.set_ClientState(n.tag+";"+this.get_IndexSize()+";"+this.get_MaxItemPerPage()+";"+this.get_ClientSort())},get_tabIndex:function(){return this._tabIndex},get_tabValue:function(){return this._tabValue},_updateIndexAndView:function(n){this._generateIndexAndTabForView();this._tabIndex.length>0&&(n0){var h=$common.getBorderBox(n),c=$common.getPaddingBox(n),r=h.left+c.left,u=h.top+c.top;t.style.height=this.get_element().offsetHeight+"px";n.style.height=this.get_element().offsetHeight+"px";i=$common.getLocation(this.get_element());f=15;this._displayPosition==Sys.Extended.UI.DisplayPosition.LeftSide?(o=$common.getVisible(this._barOuterDiv),$common.setVisible(this._barOuterDiv,!0),s=$common.getContentSize(n),$common.setVisible(this._barOuterDiv,o),e=s.width,n.style.top=i.y+"px",n.style.left=i.x-parseInt(e)-f+"px",t.style.top=i.y+u+"px",t.style.left=i.x-parseInt(e)-f+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.BelowRight?(n.style.top=i.y+this.get_element().offsetHeight+"px",n.style.left=i.x+this.get_element().offsetWidth+"px",t.style.top=i.y+this.get_element().offsetHeight+u+"px",t.style.left=i.x+this.get_element().offsetWidth+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.BelowLeft?(n.style.top=i.y+this.get_element().offsetHeight+"px",n.style.left=i.x+"px",t.style.top=i.y+this.get_element().offsetHeight+u+"px",t.style.left=i.x+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveRight?(n.style.top=i.y-this.get_element().offsetHeight+"px",n.style.left=i.x+this.get_element().offsetWidth+"px",t.style.top=i.y-this.get_element().offsetHeight+u+"px",t.style.left=i.x+this.get_element().offsetWidth+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveLeft?(n.style.top=i.y-this.get_element().offsetHeight+"px",n.style.left=i.x+"px",t.style.top=i.y-this.get_element().offsetHeight+u+"px",t.style.left=i.x+r+"px"):(n.style.top=i.y+"px",n.style.left=i.x+this.get_element().offsetWidth+f+"px",t.style.top=i.y+u+"px",t.style.left=i.x+this.get_element().offsetWidth+f+r+"px")}},_showStrength:function(){var r=this.get_element(),t,n,i;r.readOnly!=!0&&(t=this._getPasswordStrength(),this._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator?($common.setVisible(this._barOuterDiv,!0),$common.setVisible(this._barInnerDiv,!0),n=0,this._styleArray!=null&&this._styleArray.length>0&&(n=parseInt(t/100*(this._styleArray.length-1))),this._setBarDisplayStyle(n),this._setBarDisplayLocation(this._barOuterDiv,this._barInnerDiv),this._showStrengthAsBarValue(t)):(this._createTextDescriptions(this._txtStrengthDescriptions),$common.setVisible(this._displayDiv,!0),n=parseInt(t/100*(this._levelArray.length-1)),i=this._levelArray[n],this._setTextDisplayStyle(n),this._setTextDisplayLocation(this._displayDiv),this._showStrengthAsText(i)))},_showStrengthAsText:function(n){this._displayDiv.innerHTML=this._prefixText+n},_showStrengthAsBarValue:function(n){var t=$common.getContentSize(this._barOuterDiv),r=$common.getPaddingBox(this._barOuterDiv),i=parseInt(t.width*(n/100));this._barInnerDiv.style.width=i+"px"},_getPasswordStrength:function(){var u=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value(),n="",t=0,f=this._calcWeightings.split(";"),s,h,c,i;f.length!=4&&Sys.Debug.assert(null,Sys.Extended.UI.Resources.PasswordStrength_InvalidWeightingRatios);var y=parseInt(f[0]),l=parseInt(f[1]),a=parseInt(f[2]),v=parseInt(f[3]),r=u.length/this._preferredPasswordLength;if(r>1&&(r=1),s=r*y,t+=s,r<1&&(n=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingCharacters,this._preferredPasswordLength-u.length)),this._minimumNumericCharacters>0?(h=new RegExp("[0-9]","g"),i=this._getRegexCount(h,u),i>=this._minimumNumericCharacters&&(t+=l),i0||o>0?e>=this._minLowerCaseChars&&o>=this._minUpperCaseChars?t+=a:(this._minLowerCaseChars>0&&this._minLowerCaseChars-e>0&&(n!=""&&(n+=", "),n+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingLowerCase,this._minLowerCaseChars-e)),this._minUpperCaseChars>0&&this._minUpperCaseChars-o>0&&(n!=""&&(n+=", "),n+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingUpperCase,this._minUpperCaseChars-o))):(n!=""&&(n+=", "),n+=Sys.Extended.UI.Resources.PasswordStrength_RemainingMixedCase)}else t+=r*a;return this._minimumSymbolCharacters>0?(c=new RegExp("[^a-z,A-Z,0-9, ]","g"),i=this._getRegexCount(c,u),i>=this._minimumSymbolCharacters&&(t+=v),i0&&this._styleArray.length!=this._levelArray.length&&Sys.Debug.assert(!1,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptionStyles);(this._levelArray.lengththis._MAX_TXT_LEVEL_COUNT)&&Sys.Debug.assert(!1,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptions)},_onKeyPress:function(){this._showStrength()},_onBlur:function(){this._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator?($common.setVisible(this._barOuterDiv,!1),$common.setVisible(this._barInnerDiv,!1)):$common.setVisible(this._displayDiv,!1)},_onHelpClick:function(){this._helpText==""?alert(Sys.Extended.UI.Resources.PasswordStrength_Satisfied):alert(this._helpText)},dispose:function(){var n=this.get_element();this._keyPressHandler&&($removeHandler(n,"keyup",this._keyPressHandler),this._keyPressHandler=null);this._blurHandler&&($removeHandler(n,"blur",this._blurHandler),this._blurHandler=null);this._helpClickHandler&&($removeHandler(this._helpDiv,"click",this._helpClickHandler),this._helpClickHandler=null);this._displayDiv&&$common.setVisible(this._displayDiv,!1);this._barOuterDiv&&$common.setVisible(this._barOuterDiv,!1);this._barInnerDiv&&$common.setVisible(this._barInnerDiv,!1);this._helpHandleCssClass!=""&&this._helpDiv&&$common.setVisible(this._helpDiv,!1);Sys.Extended.UI.PasswordStrengthExtenderBehavior.callBaseMethod(this,"dispose")},get_PreferredPasswordLength:function(){return this._preferredPasswordLength},set_PreferredPasswordLength:function(n){this._preferredPasswordLength!=n&&(this._preferredPasswordLength=n,this.raisePropertyChanged("PreferredPasswordLength"))},get_MinimumNumericCharacters:function(){return this._minimumNumericCharacters},set_MinimumNumericCharacters:function(n){this._minimumNumericCharacters!=n&&(this._minimumNumericCharacters=n,this.raisePropertyChanged("MinimumNumericCharacters"))},get_MinimumSymbolCharacters:function(){return this._minimumSymbolCharacters},set_MinimumSymbolCharacters:function(n){this._minimumSymbolCharacters!=n&&(this._minimumSymbolCharacters=n,this.raisePropertyChanged("MinimumSymbolCharacters"))},get_RequiresUpperAndLowerCaseCharacters:function(){return this._requiresUpperAndLowerCaseCharacters},set_RequiresUpperAndLowerCaseCharacters:function(n){this._requiresUpperAndLowerCaseCharacters!=n&&(this._requiresUpperAndLowerCaseCharacters=n,this.raisePropertyChanged("RequiresUpperAndLowerCaseCharacters"))},get_TextCssClass:function(){return this._txtPwdStrengthCssClass},set_TextCssClass:function(n){this._txtPwdStrengthCssClass!=n&&(this._txtPwdStrengthCssClass=n,this.raisePropertyChanged("TextCssClass"))},get_BarBorderCssClass:function(){return this._barBorderCssClass},set_BarBorderCssClass:function(n){this._barBorderCssClass!=n&&(this._barBorderCssClass=n,this.raisePropertyChanged("BarBorderCssClass"))},get_BarIndicatorCssClass:function(){return this._barIndicatorCssClass},set_BarIndicatorCssClass:function(n){this._barIndicatorCssClass!=n&&(this._barIndicatorCssClass=n,this.raisePropertyChanged("BarIndicatorCssClass"))},get_DisplayPosition:function(){return this._displayPosition},set_DisplayPosition:function(n){this._displayPosition!=n&&(this._displayPosition=n,this.raisePropertyChanged("DisplayPosition"))},get_PrefixText:function(){return this._prefixText},set_PrefixText:function(n){this._prefixText!=n&&(this._prefixText=n,this.raisePropertyChanged("PrefixText"))},get_StrengthIndicatorType:function(){return this._strengthIndicator},set_StrengthIndicatorType:function(n){this._strengthIndicator!=n&&(this._strengthIndicator=n,this.raisePropertyChanged("StrengthIndicatorType"))},get_TextStrengthDescriptions:function(){return this._txtStrengthDescriptions},set_TextStrengthDescriptions:function(n){n!=null&&n!=""&&n!=this._txtStrengthDescriptions&&(this._txtStrengthDescriptions=n,this.raisePropertyChanged("TextStrengthDescriptions"))},get_StrengthStyles:function(){return this._strengthStyles},set_StrengthStyles:function(n){n!=null&&n!=""&&n!=this._strengthStyles&&(this._strengthStyles=n,this.raisePropertyChanged("StrengthStyles"))},get_TextStrengthDescriptionStyles:function(){return this.get_StrengthStyles()},set_TextStrengthDescriptionStyles:function(n){this.set_StrengthStyles(n)},get_HelpHandleCssClass:function(){return this._helpHandleCssClass},set_HelpHandleCssClass:function(n){this._helpHandleCssClass!=n&&(this._helpHandleCssClass=n,this.raisePropertyChanged("HelpHandleCssClass"))},get_HelpHandlePosition:function(){return this._helpHandlePosition},set_HelpHandlePosition:function(n){this._helpHandlePosition!=n&&(this._helpHandlePosition=n,this.raisePropertyChanged("HelpHandlePosition"))},get_HelpText:function(){return this._helpText},get_CalculationWeightings:function(){return this._calcWeightings},set_CalculationWeightings:function(n){this._calcWeightings!=n&&(this._calcWeightings=n,this.raisePropertyChanged("CalculationWeightings"))},set_HelpText:function(n){if(this._helpStatusLabelID){var t=$get(this._helpStatusLabelID);t&&(t.innerHTML=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value().length>0?n:"")}this._helpText!=n&&(this._helpText=n,this.raisePropertyChanged("HelpText"))},get_MinimumLowerCaseCharacters:function(){return this._minLowerCaseChars},set_MinimumLowerCaseCharacters:function(n){this._minLowerCaseChars=n},get_MinimumUpperCaseCharacters:function(){return this._minUpperCaseChars},set_MinimumUpperCaseCharacters:function(n){this._minUpperCaseChars=n},get_HelpStatusLabelID:function(){return this._helpStatusLabelID},set_HelpStatusLabelID:function(n){this._helpStatusLabelID!=n&&(this._helpStatusLabelID=n,this.raisePropertyChanged("HelpStatusLabelID"))}};Sys.Extended.UI.PasswordStrengthExtenderBehavior.registerClass("Sys.Extended.UI.PasswordStrengthExtenderBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.PasswordStrengthExtenderBehavior,{name:"passwordStrength"});Sys.Extended.UI.StrengthIndicatorTypes=function(){throw Error.invalidOperation();};Sys.Extended.UI.DisplayPosition=function(){throw Error.invalidOperation();};Sys.Extended.UI.StrengthIndicatorTypes.prototype={Text:0,BarIndicator:1};Sys.Extended.UI.DisplayPosition.prototype={RightSide:0,AboveRight:1,AboveLeft:2,LeftSide:3,BelowRight:4,BelowLeft:5};Sys.Extended.UI.DisplayPosition.registerEnum("Sys.Extended.UI.DisplayPosition");Sys.Extended.UI.StrengthIndicatorTypes.registerEnum("Sys.Extended.UI.StrengthIndicatorTypes")}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedPasswordStrength",["ExtendedBase","ExtendedCommon"],n):n()}();Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.PieChart=function(n){Sys.Extended.UI.PieChart.initializeBase(this,[n]);var t=this.get_id();t=t.replace("_ctl00","");this._parentDiv=document.getElementById(t+"__ParentDiv");this._chartWidth="300";this._chartHeight="300";this._chartTitle="";this._pieChartClientValues=null;this._theme="PieChart";this._chartTitleColor="";this.charLength=3.5};Sys.Extended.UI.PieChart.prototype={initialize:function(){if(Sys.Extended.UI.PieChart.callBaseMethod(this,"initialize"),!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1"))throw"Current version of browser does not support SVG.";this.generatePieChart()},dispose:function(){Sys.Extended.UI.PieChart.callBaseMethod(this,"dispose")},generatePieChart:function(){var c=parseInt(this._chartWidth)>parseInt(this._chartHeight)?(parseInt(this._chartHeight)-10)/3:(parseInt(this._chartWidth)-10)/3,l=parseInt(this._chartWidth)/2,a=parseInt(this._chartHeight)/2.25,n=String.format('',this._theme),i,v,t;n=String.format('',this._chartWidth,this._chartHeight);n=n+"";n=n+String.format('',c,l,a);n=n+'<\/stop>';n=n+'<\/stop>';n=n+'<\/stop><\/RadialGradient>';n=n+"<\/defs>";n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10);n=n+String.format('',this._chartWidth,this._chartHeight);n=n+String.format('',parseInt(this._chartHeight)/10+5,parseInt(this._chartWidth)-5,parseInt(this._chartHeight)-parseInt(this._chartHeight)/10);n=n+String.format('{2}<\/text>',parseInt(this._chartWidth)/2-this._chartTitle.length*this.charLength,parseInt(this._chartHeight)/20,this._chartTitle,this._chartTitleColor);var o=parseInt(this._chartHeight)*82/100+5,r=7.5,u=5,y=0;for(t=0;tparseInt(this._chartWidth)/2&&(i=i/2,v=!0);n=n+"";n=n+String.format('<\/path>',parseInt(this._chartWidth)*40/100-i/2,o,parseInt(this._chartWidth)*40/100+i/2,Math.round(parseInt(this._chartHeight)*97.5/100));var e=parseInt(this._chartWidth)*40/100-i/2+5+r+u,s=e,f=parseInt(this._chartWidth)*40/100-i/2+5,h=f;for(t=0;t<\/path>',f,o+7.5,f+r,o+15,t+1,this._pieChartClientValues[t].PieChartValueColor,this._pieChartClientValues[t].PieChartValueStrokeColor),n=n+String.format('{2}<\/text>',e,o+15,this._pieChartClientValues[t].Category),this._pieChartClientValues[t].Category.length>10?(h=f+this._pieChartClientValues[t].Category.length*5.5+r+u*2,s=e+this._pieChartClientValues[t].Category.length*5.5+r+u*2):(h=h+this._pieChartClientValues[t].Category.length*6+r+u*2,s=s+this._pieChartClientValues[t].Category.length*6+r+u*2);n=n+"<\/g>";var p=0,w=l,b=a-c,k=l,d=a-c;for(t=0;ts?s+a:s+a-n._pieChartClientValues[t].Data.toString().length*this.charLength;v=c+-1*v","")+String.format('<\/path>',y,p,u,w,s+h,c+-1*l,s,c,t+1,n._pieChartClientValues[t].PieChartValueColor,n._pieChartClientValues[t].PieChartValueStrokeColor)+String.format('{2}<\/text><\/g>',a,v,n._pieChartClientValues[t].Data)+"<\/svg>";y=s+h;p=c+-1*l;t++;ti?this._waitingStarCssClass&&(n?(Sys.UI.DomElement.removeCssClass(t,this._filledStarCssClass),Sys.UI.DomElement.addCssClass(t,this._waitingStarCssClass)):(Sys.UI.DomElement.removeCssClass(t,this._waitingStarCssClass),Sys.UI.DomElement.addCssClass(t,this._filledStarCssClass))):(this._waitingStarCssClass&&Sys.UI.DomElement.removeCssClass(t,this._waitingStarCssClass),Sys.UI.DomElement.removeCssClass(t,this._filledStarCssClass),Sys.UI.DomElement.addCssClass(t,this._emptyStarCssClass))},_update:function(){var i=this.get_element(),n,t;for($get(i.id+"_A").title=this._currentRating,n=0;nn?(Sys.UI.DomElement.removeCssClass(t,this._emptyStarCssClass),Sys.UI.DomElement.addCssClass(t,this._filledStarCssClass)):(Sys.UI.DomElement.removeCssClass(t,this._filledStarCssClass),Sys.UI.DomElement.addCssClass(t,this._emptyStarCssClass))},add_Rated:function(n){this.get_events().addHandler("Rated",n)},remove_Rated:function(n){this.get_events().removeHandler("Rated",n)},raiseRated:function(n){var t=this.get_events().getHandler("Rated");t&&t(this,new Sys.Extended.UI.RatingEventArgs(n))},add_MouseOver:function(n){this.get_events().addHandler("MouseOver",n)},remove_MouseOver:function(n){this.get_events().removeHandler("MouseOver",n)},raiseMouseOver:function(n){var t=this.get_events().getHandler("MouseOver");t&&t(this,new Sys.Extended.UI.RatingEventArgs(n))},add_MouseOut:function(n){this.get_events().addHandler("MouseOut",n)},remove_MouseOut:function(n){this.get_events().removeHandler("MouseOut",n)},raiseMouseOut:function(n){var t=this.get_events().getHandler("MouseOut");t&&t(this,new Sys.Extended.UI.RatingEventArgs(n))},add_EndClientCallback:function(n){this.get_events().addHandler("EndClientCallback",n)},remove_EndClientCallback:function(n){this.get_events().removeHandler("EndClientCallback",n)},raiseEndClientCallback:function(n){var t=this.get_events().getHandler("EndClientCallback");t&&t(this,new Sys.Extended.UI.RatingCallbackResultEventArgs(n))},get_AutoPostBack:function(){return this._autoPostBack},set_AutoPostBack:function(n){this._autoPostBack=n},get_Stars:function(){return this._stars},get_Tag:function(){return this._tag},set_Tag:function(n){this._tag!=n&&(this._tag=n,this.raisePropertyChanged("Tag"))},get_CallbackID:function(){return this._callbackID},set_CallbackID:function(n){this._callbackID=n},get_RatingDirection:function(){return this._ratingDirection},set_RatingDirection:function(n){this._ratingDirection!=n&&(this._ratingDirection=n,this.get_isInitialized()&&this._update(),this.raisePropertyChanged("RatingDirection"))},get_EmptyStarCssClass:function(){return this._emptyStarCssClass},set_EmptyStarCssClass:function(n){this._emptyStarCssClass!=n&&(this._emptyStarCssClass=n,this.raisePropertyChanged("EmptyStarCssClass"))},get_FilledStarCssClass:function(){return this._filledStarCssClass},set_FilledStarCssClass:function(n){this._filledStarCssClass!=n&&(this._filledStarCssClass=n,this.raisePropertyChanged("FilledStarCssClass"))},get_WaitingStarCssClass:function(){return this._waitingStarCssClass},set_WaitingStarCssClass:function(n){this._waitingStarCssClass!=n&&(this._waitingStarCssClass=n,this.raisePropertyChanged("WaitingStarCssClass"))},get_Rating:function(){var n=Sys.Extended.UI.RatingBehavior.callBaseMethod(this,"get_ClientState");return n!==null&&n.length&&(this._ratingValue=n),this._ratingValue==""&&(this._ratingValue=null),this._ratingValue},set_Rating:function(n){if(this._ratingValue!=n&&(this._ratingValue=n,this._currentRating=n,this.get_isInitialized())){if(n<0||n>this._maxRatingValue)return;if(this._update(),Sys.Extended.UI.RatingBehavior.callBaseMethod(this,"set_ClientState",[this._ratingValue]),this.raisePropertyChanged("Rating"),this.raiseRated(this._currentRating),this._isServerControl){this._waitingMode(!0);var t=this._currentRating+";"+this._tag,i=this._callbackID;this._autoPostBack?__doPostBack(i,t):WebForm_DoCallback(i,t,this._receiveServerData,this,this._onError,!0)}}},get_MaxRating:function(){return this._maxRatingValue},set_MaxRating:function(n){this._maxRatingValue!=n&&(this._maxRatingValue=n,this.raisePropertyChanged("MaxRating"))},get_ReadOnly:function(){return this._readOnly},set_ReadOnly:function(n){this._readOnly!=n&&(this._readOnly=n,this.raisePropertyChanged("ReadOnly"))},get_StarCssClass:function(){return this._starCssClass},set_StarCssClass:function(n){this._starCssClass!=n&&(this._starCssClass=n,this.raisePropertyChanged("StarCssClass"))}};Sys.Extended.UI.RatingBehavior.registerClass("Sys.Extended.UI.RatingBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.RatingBehavior,{name:"rating"});Sys.Extended.UI.RatingEventArgs=function(n){Sys.Extended.UI.RatingEventArgs.initializeBase(this);this._rating=n};Sys.Extended.UI.RatingEventArgs.prototype={get_Rating:function(){return this._rating}};Sys.Extended.UI.RatingEventArgs.registerClass("Sys.Extended.UI.RatingEventArgs",Sys.EventArgs);Sys.Extended.UI.RatingCallbackResultEventArgs=function(n){Sys.Extended.UI.RatingCallbackResultEventArgs.initializeBase(this);this._result=n};Sys.Extended.UI.RatingCallbackResultEventArgs.prototype={get_CallbackResult:function(){return this._result}};Sys.Extended.UI.RatingCallbackResultEventArgs.registerClass("Sys.Extended.UI.RatingCallbackResultEventArgs",Sys.EventArgs)}window.Sys&&Sys.loader?Sys.loader.registerScript("ExtendedRating",["ExtendedBase"],n):n()}();Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.DraggableListItem=function(n){Sys.Extended.UI.DraggableListItem.initializeBase(this,[n]);this._data=null;this._handle=null;this._dragVisualTemplate=null;this._dragVisualTemplateInstance=null;this._mouseDownHandler=null};Sys.Extended.UI.DraggableListItem.prototype={dispose:function(){var n=this.get_element();this.set_handle(null);Sys.Extended.UI.DraggableListItem.callBaseMethod(this,"dispose")},get_data:function(){if(this._data==null){var n=this._findDragSource();if(n!=null&&Sys.Extended.UI.DragDropList.IsValidDataType(n.get_dragDataType()))return this.get_element()}return this._data},set_data:function(n){this._data!=n&&(this._data=n,this.raisePropertyChanged("data"))},get_handle:function(){return this._handle},set_handle:function(n){this._handle!=null&&($removeHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=null);n?(n.element&&(n=n.element),this._handle=n,this.raisePropertyChanged("handle"),this._handle.__draggableBehavior=this,$addHandler(this._handle,"mousedown",this.get_mouseDownHandler()),this._handle.__draggableBehavior=this):this._handle=null},get_mouseDownHandler:function(){return this._mouseDownHandler==null&&(this._mouseDownHandler=Function.createDelegate(this,this._onMouseDown)),this._mouseDownHandler},get_dragVisualTemplate:function(){return this._dragVisualTemplate},set_dragVisualTemplate:function(n){this._dragVisualTemplate!=n&&(this._dragVisualTemplate=n,this.raisePropertyChanged("dragVisualTemplate"))},_onMouseDown:function(n){window._event=n.rawEvent;this._handle.__draggableBehavior._mouseDownHandlerInternal(n)},_mouseDownHandlerInternal:function(n){var n=window.testEvent?window.testEvent:n,t,i;n.button<=1&&(t=this._findDragSource(),t!=null&&(i=this._createDragVisual(),t.startDragDrop(this.get_element(),this.get_data(),i),n.returnValue=!1))},_createDragVisual:function(){var t=window.testEvent?window.testEvent:window.event,n;return this._dragVisualTemplate!=null&&(this._dragVisualTemplateInstance==null?this._dragVisualTemplateInstance=this._dragVisualTemplate.cloneElement():Sys.UI.DragDropManager._getInstance().hasParent(this._dragVisualTemplateInstance)||this.get_element().appendChild(this._dragVisualTemplateInstance),n={x:t.clientX,y:t.clientY},n=Sys.UI.DragDropManager._getInstance().addPoints(n,Sys.UI.DragDropManager._getInstance().getScrollOffset(document.body,!0)),$common.setLocation(this._dragVisualTemplateInstance,n)),this._dragVisualTemplateInstance},_findDragSource:function(){for(var n=this.get_element();n!=null;){if(n.__dragDropList!=null)return n.__dragDropList;n=n.parentNode}return null}};Sys.Extended.UI.DraggableListItem.registerClass("Sys.Extended.UI.DraggableListItem",Sys.Extended.UI.BehaviorBase);Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.RepeatDirection=function(){throw Error.invalidOperation();};Sys.Extended.UI.RepeatDirection.prototype={Vertical:0,Horizontal:1};Sys.Extended.UI.RepeatDirection.registerEnum("Sys.Extended.UI.RepeatDirection");Sys.Extended.UI.DragDropList=function(n){Sys.Extended.UI.DragDropList.initializeBase(this,[n]);this._acceptedDataTypes=[];this._isDragging=null;this._dataType=null;this._dragMode=Sys.Extended.UI.DragMode.Move;this._dragVisual=null;this._direction=Sys.Extended.UI.RepeatDirection.Vertical;this._emptyTemplate=null;this._emptyTemplateInstance=null;this._dropCueTemplate=null;this._dropCueTemplateInstance=null;this._floatContainerInstance=null;this._originalParent=null;this._originalNextSibling=null;this._originalZIndex=null;this._currentContext=null;this._data=null};Sys.Extended.UI.DragDropList.IsValidDataType=function(n){return n&&typeof n=="string"&&n.length>=4?n.substring(0,4)==="HTML":!1};Sys.Extended.UI.DragDropList.prototype={get_data:function(){return this._data},set_data:function(n){this._data=n},initialize:function(){Sys.Extended.UI.DragDropList.callBaseMethod(this,"initialize");this.get_element().__dragDropList=this;Sys.Extended.UI.DragDropManager.registerDropTarget(this)},startDragDrop:function(n,t,i){this._isDragging||(this._isDragging=!0,this._currentContext=t,i?this._dragVisual=i:i=this.createDragVisual(n),Sys.Extended.UI.DragDropManager.startDragDrop(this,i,t,!(Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version>7&&Sys.Browser.documentMode!=0)))},createDragVisual:function(n){var i,u,t,r,f,e;return this._dragVisual=this._dragMode===Sys.Extended.UI.DragMode.Copy?n.cloneNode(!0):n,i=Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(n,!0),this._dragVisual.preDragWidth=this._dragVisual.style.width,this._dragVisual.preDragHeight=this._dragVisual.style.height,this._dragVisual.style.width=n.offsetWidth+"px",this._dragVisual.style.height=n.offsetHeight+"px",this._dragVisual.style.opacity="0.4",this._dragVisual.style.filter="progid:DXImageTransform.Microsoft.BasicImage(opacity=0.4);",this._originalZIndex=this._dragVisual.style.zIndex,this._dragVisual.style.zIndex=99999,this._originalParent=this._dragVisual.parentNode,this._originalNextSibling=Sys.Extended.UI.DragDropManager._getInstance().getNextSibling(this._dragVisual),u=$common.getLocation(n),t=this._getFloatContainer(),$common.setLocation(t,u),Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._dragVisual)&&this._dragVisual.parentNode.removeChild(this._dragVisual),t.appendChild(this._dragVisual),r=Sys.Extended.UI.DragDropManager._getInstance().getScrollOffset(n,!0),(i.x!==r.x||i.y!==r.y)&&(f=Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(i,r),e=Sys.Extended.UI.DragDropManager._getInstance().subtractPoints(u,f),$common.setLocation(t,e)),t},get_emptyTemplate:function(){return this._emptyTemplate},set_emptyTemplate:function(n){this._emptyTemplate=n},get_dragDataType:function(){return this._dataType},set_dragDataType:function(n){this._dataType=n},getDragData:function(n){return n},get_dragMode:function(){return this._dragMode},set_dragMode:function(n){this._dragMode=n},dispose:function(){Sys.Extended.UI.DragDropManager.unregisterDropTarget(this);this.get_element().__dragDropList=null;Sys.Extended.UI.DragDropList.callBaseMethod(this,"dispose")},onDragStart:function(){this._validate()},onDrag:function(){},onDragEnd:function(n){if(this._floatContainerInstance?(this._dragMode===Sys.Extended.UI.DragMode.Copy?this._floatContainerInstance.removeChild(this._dragVisual):(this._dragVisual.style.opacity="0.999",this._dragVisual.style.filter="",this._dragVisual.style.zIndex=this._originalZIndex?this._originalZIndex:0,this._dragVisual.preDragWidth!=null&&(this._dragVisual.style.width=this._dragVisual.preDragWidth,this._dragVisual.preDragWidth=null),this._dragVisual.preDragHeight!=null&&(this._dragVisual.style.height=this._dragVisual.preDragHeight,this._dragVisual.preDragHeight=null),n?(this._dragVisual.parentNode.removeChild(this._dragVisual),this._originalNextSibling!=null?this._originalParent.insertBefore(this._dragVisual,this._originalNextSibling):this._originalParent.appendChild(this._dragVisual)):this._dragVisual.parentNode===this._floatContainerInstance&&this._dragVisual.parentNode.removeChild(this._dragVisual)),document.body.removeChild(this._floatContainerInstance)):this._dragVisual.parentNode.removeChild(this._dragVisual),!n&&this._data&&this._dragMode===Sys.Extended.UI.DragMode.Move){var t=this.getDragData(this._currentContext);this._data&&t&&Array.remove(this._data,t)}this._isDragging=!1;this._validate()},get_direction:function(){return this._direction},set_direction:function(n){this._direction=n},get_acceptedDataTypes:function(){return this._acceptedDataTypes},set_acceptedDataTypes:function(n){this._acceptedDataTypes=typeof n=="string"?n.split(","):n},get_dropCueTemplate:function(){return this._dropCueTemplate},set_dropCueTemplate:function(n){this._dropCueTemplate=n},get_dropTargetElement:function(){return this.get_element()},canDrop:function(n,t){for(var i=0;i0&&(t=!1);this._setEmptyTemplateVisible(t)},_setEmptyTemplateVisible:function(n){this._emptyTemplate&&(n?this._emptyTemplateInstance?Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)||this.get_element().appendChild(this._emptyTemplateInstance):this._emptyTemplateInstance=this._emptyTemplate.createInstance(this.get_element()).instanceElement:this._emptyTemplateInstance&&Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._emptyTemplateInstance)&&this.get_element().removeChild(this._emptyTemplateInstance))},_getFloatContainer:function(){if(this._floatContainerInstance)Sys.Extended.UI.DragDropManager._getInstance().hasParent(this._floatContainerInstance)||document.body.appendChild(this._floatContainerInstance);else{this._floatContainerInstance=document.createElement(this.get_element().tagName);var n="0px 0px 0px 0px";this._floatContainerInstance.style.position="absolute";this._floatContainerInstance.style.padding=n;this._floatContainerInstance.style.margin=n;this._floatContainerInstance.className="dragVisualContainer";document.body.appendChild(this._floatContainerInstance)}return this._floatContainerInstance}};Sys.Extended.UI.DragDropList.registerClass("Sys.Extended.UI.DragDropList",Sys.Extended.UI.BehaviorBase,Sys.Extended.UI.IDragSource,Sys.Extended.UI.IDropTarget,Sys.IDisposable);Sys.Extended.UI.DragDropWatcher=function(n){Sys.Extended.UI.DragDropWatcher.initializeBase(this,[n]);this._childList=[];this._inProgressDrops={};this._postbackCode=null;this._callbackCssStyle=null;this._argReplaceString=null;this._argContextString=null;this._argErrorString=null;this._argSuccessString=null};Sys.Extended.UI.DragDropWatcher.prototype={dispose:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"dispose")},initialize:function(){Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"initialize");this._saveChildOrder()},add_reorderComplete:function(n){this.get_events().addHandler("reorderComplete",n)},remove_reorderComplete:function(n){this.get_events().removeHandler("reorderComplete",n)},raiseReorderComplete:function(){var n=this.get_events().getHandler("reorderComplete");n&&n(this,Sys.EventArgs.Empty)},findChild:function(n,t){for(var u=0,f=n.childNodes,i,r=0;r0)return!1;if(u=Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"canDrop",[n,t,i]),u){var o=$common.getBounds(i),e,f=!1,s=this.get_element();for(r=s.firstChild;r!=null&&!f;r=r.nextSibling)if(r.id){if(e=$common.getBounds(r),o.y<=e.y)break;f=r.id.lastIndexOf("Insert",r.id.length-6)!=-1}u=!f}return u},drop:function(n,t,i){var r,u,f;(Sys.Extended.UI.DragDropWatcher.callBaseMethod(this,"drop",[n,t,i]),r=i.id,this._postbackCode&&r)&&(u=this.findChild(this.get_element(),r),Sys.Debug.assert(u!=-1,String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_NoChild,r)),f=this._getSavedChildIndex(r),u!=-1&&u!=f&&(this._saveChildOrder(),this.doPostBack(r,u,f)))},_setupDropState:function(n,t,i){if(n){var r=$get(n);this._inProgressDrops[n]={oldCss:r.className,newIndex:t,oldIndex:i};this._callbackCssStyle&&(r.className=this._callbackCssStyle)}},_onDropCallback:function(n){var t,i;if(n)return this.set_ClientState("true"),t=this._inProgressDrops[n],t&&(i=$get(n),this._callbackCssStyle&&(i.className=t.oldCss),delete this._inProgressDrops[n]),t},doPostBack:function(n,t,i){var f=this._inProgressDrops[n],u,r;f||(u="reorder:"+n+":"+i.toString()+":"+t.toString(),r=this._postbackCode.replace(this._argReplaceString,u),this._argSuccessString&&(r=r.replace(this._argSuccessString,"callbackSuccessStub")),this._argErrorString&&(r=r.replace(this._argErrorString,"callbackErrorStub")),this._argContextString&&(r=r.replace(this._argContextString,this.get_id()+":"+n)),this._setupDropState(n,t,i),window.setTimeout(r,0))},_onCallbackSuccess:function(n,t){n&&n.length>0?this._onCallbackError(n,t):(this._onDropCallback(t),this.raiseReorderComplete())},_onCallbackError:function(n,t){var i=this._onDropCallback(t);(i.oldIndex||i.newIndex)&&(this._saveChildOrder(),this.doReorder(i.newIndex,i.oldIndex,!0));alert(String.format(Sys.Extended.UI.Resources.ReorderList_DropWatcherBehavior_CallbackError,n))},doReorder:function(n,t,i){var f=this.get_element(),u=this._childList,r,e,o,s;if(n>=0&&u.length>n&&n!=t){if(r=$get(u[n]),e=this._inProgressDrops[r.id],e)return;if(r){t>n&&t++;o=t>=u.length;try{f.removeChild(r)}catch(f){}o?f.appendChild(r):(s=$get(u[t]),f.insertBefore(r,s));i?(this._saveChildOrder(),this.raiseReorderComplete()):this.doPostBack(r.id,t,n)}}},getItem:function(n){return this._childList||this._saveChildOrder(),this._childList[n]},_getSavedChildIndex:function(n){if(this._childList&&n)for(var t=0;t=0?(i=t.FIREFOX,r=parseFloat(n.substring(p+8))):a>=0&&(v=n.substring(0,a).lastIndexOf("/"),i=b>=0?t.CHROME:t.SAFARI,r=parseFloat(n.substring(v+1,a)))}else h=="Opera"&&window.opera&&window.attachEvent&&(i=t.OPERA,r=parseFloat(w));for(y=window.location.search.substring(1),l=y.split("&"),u=0;u0&&(o[f.substring(0,s)]=decodeURIComponent(f.substring(s+1)));e=i==t.IE||i==t.CHROME&&r<2})();this.getBrowser=function(){return i};this.getBrowserVersion=function(){return r};this.getElement=function(n){return typeof n=="string"&&(n=document.getElementById(n)),n};this.getElementPosition=function(t){for(var t=n.getElement(t),i=new Seadragon.Point,r=n.getElementStyle(t).position=="fixed",f=u(t,r);f;)i.x+=t.offsetLeft,i.y+=t.offsetTop,r&&(i=i.plus(n.getPageScroll())),t=f,r=n.getElementStyle(t).position=="fixed",f=u(t,r);return i};this.getElementSize=function(t){var t=n.getElement(t);return new Seadragon.Point(t.clientWidth,t.clientHeight)};this.getElementStyle=function(t){var t=n.getElement(t);if(t.currentStyle)return t.currentStyle;if(window.getComputedStyle)return window.getComputedStyle(t,"");Seadragon.Debug.fail("Unknown element style, no known technique.")};this.getEvent=function(n){return n?n:window.event};this.getMousePosition=function(t){var t=n.getEvent(t),i=new Seadragon.Point;return typeof t.pageX=="number"?(i.x=t.pageX,i.y=t.pageY):typeof t.clientX=="number"?(i.x=t.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,i.y=t.clientY+document.body.scrollTop+document.documentElement.scrollTop):Seadragon.Debug.fail("Unknown event mouse position, no known technique."),i};this.getPageScroll=function(){var n=new Seadragon.Point,t=document.documentElement||{},i=document.body||{};return typeof window.pageXOffset=="number"?(n.x=window.pageXOffset,n.y=window.pageYOffset):i.scrollLeft||i.scrollTop?(n.x=i.scrollLeft,n.y=i.scrollTop):(t.scrollLeft||t.scrollTop)&&(n.x=t.scrollLeft,n.y=t.scrollTop),n};this.getWindowSize=function(){var n=new Seadragon.Point,t=document.documentElement||{},i=document.body||{};return typeof window.innerWidth=="number"?(n.x=window.innerWidth,n.y=window.innerHeight):t.clientWidth||t.clientHeight?(n.x=t.clientWidth,n.y=t.clientHeight):i.clientWidth||i.clientHeight?(n.x=i.clientWidth,n.y=i.clientHeight):Seadragon.Debug.fail("Unknown window size, no known technique."),n};this.imageFormatSupported=function(n){var n=n?n:"";return!!s[n.toLowerCase()]};this.makeCenteredNode=function(t){var t=Seadragon.Utils.getElement(t),r=n.makeNeutralElement("div"),i=[],u,f;for(i.push('
'),i.push('
'),i.push('
<\/div><\/div><\/div>'),r.innerHTML=i.join(""),r=r.firstChild,u=r,f=r.getElementsByTagName("div");f.length>0;)u=f[0],f=u.getElementsByTagName("div");return u.appendChild(t),r};this.makeNeutralElement=function(n){var i=document.createElement(n),t=i.style;return t.background="transparent none",t.border="none",t.margin="0px",t.padding="0px",t.position="static",i};this.makeTransparentImage=function(u){var e=n.makeNeutralElement("img"),f=null;return i==t.IE&&r<7?(f=n.makeNeutralElement("span"),f.style.display="inline-block",e.onload=function(){f.style.width=f.style.width||e.width+"px";f.style.height=f.style.height||e.height+"px";e.onload=null;e=null},e.src=u,f.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+u+"', sizingMethod='scale')"):(f=e,f.src=u),f};this.setElementOpacity=function(t,i,r){var t=n.getElement(t),o,u,f;if(r&&e&&(i=Math.round(i)),t.style.opacity=i<1?i:"",i==1){o=t.style.filter||"";t.style.filter=o.replace(/alpha\(.*?\)/g,"");return}u=Math.round(100*i);f=" alpha(opacity="+u+") ";try{t.filters&&t.filters.alpha?t.filters.alpha.opacity=u:t.style.filter+=f}catch(s){t.style.filter+=f}};this.addEvent=function(t,i,r,u){var t=n.getElement(t);t.addEventListener?t.addEventListener(i,r,u):t.attachEvent?(t.attachEvent("on"+i,r),u&&t.setCapture&&t.setCapture()):Seadragon.Debug.fail("Unable to attach event handler, no known technique.")};this.removeEvent=function(t,i,r,u){var t=n.getElement(t);t.removeEventListener?t.removeEventListener(i,r,u):t.detachEvent?(t.detachEvent("on"+i,r),u&&t.releaseCapture&&t.releaseCapture()):Seadragon.Debug.fail("Unable to detach event handler, no known technique.")};this.cancelEvent=function(t){var t=n.getEvent(t);t.preventDefault&&t.preventDefault();t.cancel=!0;t.returnValue=!1};this.stopEvent=function(t){var t=n.getEvent(t);t.stopPropagation&&t.stopPropagation();t.cancelBubble=!0};this.createCallback=function(n,t){for(var r=[],i=2;i0&&this._scheduleFade()}},_beginFading:function(){this._shouldFade=!0;this._fadeBeginTime=(new Date).getTime()+this._fadeDelay;window.setTimeout(Function.createDelegate(this,this._scheduleFade),this._fadeDelay)},_stopFading:function(){this._shouldFade=!1;Seadragon.Utils.setElementOpacity(this._imgGroup,1,!0)},_inTo:function(n){n>=Sys.Extended.UI.Seadragon.ButtonState.GROUP&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.REST&&(this._stopFading(),this._currentState=Sys.Extended.UI.Seadragon.ButtonState.GROUP);n>=Sys.Extended.UI.Seadragon.ButtonState.HOVER&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.GROUP&&(this._imgHover.style.visibility="",this._currentState=Sys.Extended.UI.Seadragon.ButtonState.HOVER);n>=Sys.Extended.UI.Seadragon.ButtonState.DOWN&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.HOVER&&(this._imgDown.style.visibility="",this._currentState=Sys.Extended.UI.Seadragon.ButtonState.DOWN)},_outTo:function(n){n<=Sys.Extended.UI.Seadragon.ButtonState.HOVER&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.DOWN&&(this._imgDown.style.visibility="hidden",this._currentState=Sys.Extended.UI.Seadragon.ButtonState.HOVER);n<=Sys.Extended.UI.Seadragon.ButtonState.GROUP&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.HOVER&&(this._imgHover.style.visibility="hidden",this._currentState=Sys.Extended.UI.Seadragon.ButtonState.GROUP);this._newState<=Sys.Extended.UI.Seadragon.ButtonState.REST&&this._currentState==Sys.Extended.UI.Seadragon.ButtonState.GROUP&&(this._beginFading(),this._currentState=Sys.Extended.UI.Seadragon.ButtonState.REST)},_enterHandler:function(n,t,i,r){i?(this._inTo(Sys.Extended.UI.Seadragon.ButtonState.DOWN),this._raiseEvent("onEnter",this)):r||this._inTo(Sys.Extended.UI.Seadragon.ButtonState.HOVER)},_exitHandler:function(n,t,i){this._outTo(Sys.Extended.UI.Seadragon.ButtonState.GROUP);i&&this._raiseEvent("onExit",this)},_pressHandler:function(){this._inTo(Sys.Extended.UI.Seadragon.ButtonState.DOWN);this._raiseEvent("onPress",this)},_releaseHandler:function(n,t,i,r){i&&r?(this._outTo(Sys.Extended.UI.Seadragon.ButtonState.HOVER),this._raiseEvent("onRelease",this)):i?this._outTo(Sys.Extended.UI.Seadragon.ButtonState.GROUP):this._inTo(Sys.Extended.UI.Seadragon.ButtonState.HOVER)},_clickHandler:function(n,t,i){i&&this._raiseEvent("onClick",this)},_raiseEvent:function(n,t){var i=this.get_events().getHandler(n);i&&(t||(t=Sys.EventArgs.Empty),i(this,t))},get_element:function(){return this._button},get_tooltip:function(){return this._tooltip},set_tooltip:function(n){this._tooltip=n},get_config:function(){return this.config},set_config:function(n){this.config=n},get_srcRest:function(){return this._srcRest},set_srcRest:function(n){this._srcRest=n},get_srcGroup:function(){return this._srcGroup},set_srcGroup:function(n){this._srcGroup=n},get_srcHover:function(){return this._srcHover},set_srcHover:function(n){this._srcHover=n},get_srcDown:function(){return this._srcDown},set_srcDown:function(n){this._srcDown=n},add_onPress:function(n){this.get_events().addHandler("onPress",n)},remove_onPress:function(n){this.get_events().removeHandler("onPress",n)},add_onClick:function(n){this.get_events().addHandler("onClick",n)},remove_onClick:function(n){this.get_events().removeHandler("onClick",n)},add_onEnter:function(n){this.get_events().addHandler("onEnter",n)},remove_onEnter:function(n){this.get_events().removeHandler("onEnter",n)},add_onRelease:function(n){this.get_events().addHandler("onRelease",n)},remove_onRelease:function(n){this.get_events().removeHandler("onRelease",n)},add_onExit:function(n){this.get_events().addHandler("onExit",n)},remove_onExit:function(n){this.get_events().removeHandler("onExit",n)},notifyGroupEnter:function(){this._inTo(Sys.Extended.UI.Seadragon.ButtonState.GROUP)},notifyGroupExit:function(){this._outTo(Sys.Extended.UI.Seadragon.ButtonState.REST)}};Sys.Extended.UI.Seadragon.Button.registerClass("Sys.Extended.UI.Seadragon.Button",Sys.Component);Sys.Extended.UI.Seadragon.ButtonGroup=function(){Sys.Extended.UI.Seadragon.ButtonGroup.initializeBase(this);this._buttons=null;this._group=null;this.config=null};Sys.Extended.UI.Seadragon.ButtonGroup.prototype={initialize:function(){var i,n,t;for(Sys.Extended.UI.Seadragon.ButtonGroup.callBaseMethod(this,"initialize"),this._group=Seadragon.Utils.makeNeutralElement("span"),i=this._buttons.concat([]),n=new Seadragon.MouseTracker(this._group,this.config.clickTimeThreshold,this.config.clickDistThreshold),this._group.style.display="inline-block",t=0;t=0;t--)this._controls[t].setOpacity(n);n>0&&this._scheduleControlsFade()}},_onCanvasClick:function(n,t,i,r){if(this.viewport&&i){var u=this.config.zoomPerClick,f=r?1/u:u;this.viewport.zoomBy(f,this.viewport.pointFromPixel(t,!0));this.viewport.applyConstraints()}},_onCanvasDrag:function(n,t,i){this.viewport&&this.viewport.panBy(this.viewport.deltaPointsFromPixels(i.negate()))},_onCanvasRelease:function(n,t,i){i&&this.viewport&&this.viewport.applyConstraints()},_onContainerExit:function(n,t,i){i||(this._mouseInside=!1,this._animating||this._beginControlsAutoHide())},_onContainerRelease:function(n,t,i,r){r||(this._mouseInside=!1,this._animating||this._beginControlsAutoHide())},_getControlIndex:function(n){for(var t=this._controls.length-1;t>=0;t--)if(this._controls[t].elmt==n)return t;return-1},_abortControlsAutoHide:function(){this._controlsShouldFade=!1;for(var n=this._controls.length-1;n>=0;n--)this._controls[n].setOpacity(1)},_onContainerEnter:function(){this._mouseInside=!0;this._abortControlsAutoHide()},_updateOnce:function(){var t,n;this.source&&(this.profiler.beginUpdate(),t=Seadragon.Utils.getElementSize(this._container),t.equals(this._prevContainerSize)||(this.viewport.resize(t,!0),this._prevContainerSize=t,this._raiseEvent("resize",this)),n=this.viewport.update(),!this._animating&&n&&(this._raiseEvent("animationstart",self),this._abortControlsAutoHide()),n?(this.drawer.update(),this._raiseEvent("animation",self)):this._forceRedraw||this.drawer.needsUpdate()?(this.drawer.update(),this._forceRedraw=!1):this.drawer.idle(),this._animating&&!n&&(this._raiseEvent("animationfinish",this),this._mouseInside||this._beginControlsAutoHide()),this._animating=n,this.profiler.endUpdate())},_onClose:function(){this.source=null;this.viewport=null;this.drawer=null;this.profiler=null;this._canvas.innerHTML=""},_beforeOpen:function(){return this.source&&this._onClose(),this._lastOpenStartTime=(new Date).getTime(),window.setTimeout(Function.createDelegate(this,function(){this._lastOpenStartTime>this._lastOpenEndTime&&this._setMessage(Seadragon.Strings.getString("Messages.Loading"))}),2e3),this._lastOpenStartTime},_setMessage:function(n){var i=document.createTextNode(n),t;this._canvas.innerHTML="";this._canvas.appendChild(Seadragon.Utils.makeCenteredNode(i));t=i.parentNode.style;t.color="white";t.fontFamily="verdana";t.fontSize="13px";t.fontSizeAdjust="none";t.fontStyle="normal";t.fontStretch="normal";t.fontVariant="normal";t.fontWeight="normal";t.lineHeight="1em";t.textAlign="center";t.textDecoration="none"},_onOpen:function(n,t,i){var u,r;if(this._lastOpenEndTime=(new Date).getTime(),n=0)){i=null;switch(t){case Sys.Extended.UI.Seadragon.ControlAnchor.TOP_RIGHT:i=this._controlsTR;n.style.position="relative";break;case Sys.Extended.UI.Seadragon.ControlAnchor.BOTTOM_RIGHT:i=this._controlsBR;n.style.position="relative";break;case Sys.Extended.UI.Seadragon.ControlAnchor.BOTTOM_LEFT:i=this._controlsBL;n.style.position="relative";break;case Sys.Extended.UI.Seadragon.ControlAnchor.TOP_LEFT:i=this._controlsTL;n.style.position="relative";break;case Sys.Extended.UI.Seadragon.ControlAnchor.NONE:default:i=this._container;n.style.position="absolute"}this._controls.push(new Sys.Extended.UI.Seadragon.Control(n,t,i))}},isOpen:function(){return!!this.source},openDzi:function(n,t){var i=this._beforeOpen();Sys.Extended.UI.Seadragon.DziTileSourceHelper.createFromXml(n,t,Seadragon.Utils.createCallback(null,Function.createDelegate(this,this._onOpen),i))},openTileSource:function(n){var t=this._beforeOpen();window.setTimeout(Function.createDelegate(this,function(){this._onOpen(t,n)}),1)},close:function(){this.source&&this._onClose()},removeControl:function(n){var n=Seadragon.Utils.getElement(n),t=this._getControlIndex(n);t>=0&&(this._controls[t].destroy(),this._controls.splice(t,1))},clearControls:function(){while(this._controls.length>0)this._controls.pop().destroy()},isDashboardEnabled:function(){for(var n=this._controls.length-1;n>=0;n--)if(this._controls[n].isVisible())return!0;return!1},isFullPage:function(){return this._container.parentNode==document.body},isMouseNavEnabled:function(){return this._innerTracker.isTracking()},isVisible:function(){return this._container.style.visibility!="hidden"},setDashboardEnabled:function(n){for(var t=this._controls.length-1;t>=0;t--)this._controls[t].setVisible(n)},setFullPage:function(n){var u,f;if(n!=this.isFullPage()){var o=document.body,t=o.style,e=document.documentElement.style,i=this._container.style,r=this._canvas.style;n?(bodyOverflow=t.overflow,docOverflow=e.overflow,t.overflow="hidden",e.overflow="hidden",bodyWidth=t.width,bodyHeight=t.height,t.width="100%",t.height="100%",r.backgroundColor="black",r.color="white",i.position="fixed",i.zIndex="99999999",o.appendChild(this._container),this._prevContainerSize=Seadragon.Utils.getWindowSize(),this._onContainerEnter()):(t.overflow=bodyOverflow,e.overflow=docOverflow,t.width=bodyWidth,t.height=bodyHeight,r.backgroundColor="",r.color="",i.position="relative",i.zIndex="",this.get_element().appendChild(this._container),this._prevContainerSize=Seadragon.Utils.getElementSize(this.get_element()),this._onContainerExit());this.viewport&&(u=this.viewport.getBounds(),this.viewport.resize(this._prevContainerSize),f=this.viewport.getBounds(),n?this._fsBoundsDelta=new Sys.Extended.UI.Seadragon.Point(f.width/u.width,f.height/u.height):(this.viewport.update(),this.viewport.zoomBy(Math.max(this._fsBoundsDelta.x,this._fsBoundsDelta.y),null,!0)),this._forceRedraw=!0,this._raiseEvent("resize",this),this._updateOnce())}},setMouseNavEnabled:function(n){this._innerTracker.setTracking(n)},setVisible:function(n){this._container.style.visibility=n?"":"hidden"}};Sys.Extended.UI.Seadragon.Viewer.registerClass("Sys.Extended.UI.Seadragon.Viewer",Sys.UI.Control);Type.registerNamespace("Sys.Extended.UI.Seadragon");Type.registerNamespace("Seadragon"),function(){function f(n){return Seadragon.Utils.getMousePosition(n)}function t(n,t){var i=Seadragon.Utils.getMousePosition(n),r=Seadragon.Utils.getElementPosition(t);return i.minus(r)}function i(n,t){for(var i=document.body;t&&n!=t&&i!=t;)try{t=t.parentNode}catch(r){return!1}return n==t}function s(){u=!0}function h(){u=!1}if(!Seadragon.MouseTracker){var n=Seadragon.Utils.getBrowser()==Seadragon.Browser.IE,u=!1,e=!1,o={},r=[];(function(){n?(Seadragon.Utils.addEvent(document,"mousedown",s,!1),Seadragon.Utils.addEvent(document,"mouseup",h,!1)):(Seadragon.Utils.addEvent(window,"mousedown",s,!0),Seadragon.Utils.addEvent(window,"mouseup",h,!0))})();Seadragon.MouseTracker=function(s,h,c){function lt(){y||(Seadragon.Utils.addEvent(s,"mouseover",g,!1),Seadragon.Utils.addEvent(s,"mouseout",nt,!1),Seadragon.Utils.addEvent(s,"mousedown",ut,!1),Seadragon.Utils.addEvent(s,"mouseup",a,!1),Seadragon.Utils.addEvent(s,"click",ot,!1),y=!0,o[it]=b)}function at(){y&&(Seadragon.Utils.removeEvent(s,"mouseover",g,!1),Seadragon.Utils.removeEvent(s,"mouseout",nt,!1),Seadragon.Utils.removeEvent(s,"mousedown",ut,!1),Seadragon.Utils.removeEvent(s,"mouseup",a,!1),Seadragon.Utils.removeEvent(s,"click",ot,!1),d(),y=!1,delete o[it])}function vt(){v||(n?(Seadragon.Utils.removeEvent(s,"mouseup",a,!1),Seadragon.Utils.addEvent(s,"mouseup",ft,!0),Seadragon.Utils.addEvent(s,"mousemove",st,!0)):(Seadragon.Utils.addEvent(window,"mouseup",et,!0),Seadragon.Utils.addEvent(window,"mousemove",tt,!0)),v=!0)}function d(){v&&(n?(Seadragon.Utils.removeEvent(s,"mousemove",st,!0),Seadragon.Utils.removeEvent(s,"mouseup",ft,!0),Seadragon.Utils.addEvent(s,"mouseup",a,!1)):(Seadragon.Utils.removeEvent(window,"mousemove",tt,!0),Seadragon.Utils.removeEvent(window,"mouseup",et,!0)),v=!1)}function rt(n,t){var r=o,i;for(i in r)r.hasOwnProperty(i)&&it!=i&&r[i][n](t)}function yt(){return w}function g(r){var r=Seadragon.Utils.getEvent(r),e,o;if((n&&v&&!i(r.srcElement,s)&&rt("onMouseOver",r),e=r.target?r.target:r.srcElement,o=r.relatedTarget?r.relatedTarget:r.fromElement,i(s,e)&&!i(s,o))&&(w=!0,typeof l.enterHandler=="function"))try{l.enterHandler(l,t(r,s),p,u)}catch(f){Seadragon.Debug.error(f.name+" while executing enter handler: "+f.message,f)}}function nt(r){var r=Seadragon.Utils.getEvent(r),e,o;if((n&&v&&!i(r.srcElement,s)&&rt("onMouseOut",r),e=r.target?r.target:r.srcElement,o=r.relatedTarget?r.relatedTarget:r.toElement,i(s,e)&&!i(s,o))&&(w=!1,typeof l.exitHandler=="function"))try{l.exitHandler(l,t(r,s),p,u)}catch(f){Seadragon.Debug.error(f.name+" while executing exit handler: "+f.message,f)}}function ut(i){var i=Seadragon.Utils.getEvent(i);if(i.button!=2){if(p=!0,k=f(i),ct=k,ht=(new Date).getTime(),typeof l.pressHandler=="function")try{l.pressHandler(l,t(i,s))}catch(u){Seadragon.Debug.error(u.name+" while executing press handler: "+u.message,u)}(l.pressHandler||l.dragHandler)&&Seadragon.Utils.cancelEvent(i);n&&e?n&&r.push(b):(vt(),e=!0,r=[b])}}function a(n){var n=Seadragon.Utils.getEvent(n),r=p,u=w;if(n.button!=2){if(p=!1,typeof l.releaseHandler=="function")try{l.releaseHandler(l,t(n,s),r,u)}catch(i){Seadragon.Debug.error(i.name+" while executing release handler: "+i.message,i)}r&&u&&pt(n)}}function ft(n){var n=Seadragon.Utils.getEvent(n),t,i;if(n.button!=2){for(t=0;t=4||browser==Seadragon.Browser.CHROME&&browserVer>=2,useCanvas=typeof document.createElement("canvas").getContext=="function"&&subpixelRenders;Sys.Extended.UI.Seadragon.Tile=function(n,t,i,r,u,f){this.level=n;this.x=t;this.y=i;this.bounds=r;this.exists=u;this.loaded=!1;this.loading=!1;this.elmt=null;this.image=null;this.url=f;this.style=null;this.position=null;this.size=null;this.blendStart=null;this.opacity=null;this.distance=null;this.visibility=null;this.beingDrawn=!1;this.lastTouchTime=0};Sys.Extended.UI.Seadragon.Tile.prototype={dispose:function(){},toString:function(){return this.level+"/"+this.x+"_"+this.y},drawHTML:function(n){if(!this.loaded){Seadragon.Debug.error("Attempting to draw tile "+this.toString()+" when it's not yet loaded.");return}this.elmt||(this.elmt=Seadragon.Utils.makeNeutralElement("img"),this.elmt.src=this.url,this.style=this.elmt.style,this.style.position="absolute",this.style.msInterpolationMode="nearest-neighbor");var i=this.elmt,t=this.style,r=this.position.apply(Math.floor),u=this.size.apply(Math.ceil);i.parentNode!=n&&n.appendChild(i);t.left=r.x+"px";t.top=r.y+"px";t.width=u.x+"px";t.height=u.y+"px";Seadragon.Utils.setElementOpacity(i,this.opacity)},drawCanvas:function(n){if(!this.loaded){Seadragon.Debug.error("Attempting to draw tile "+this.toString()+" when it's not yet loaded.");return}var t=this.position,i=this.size;n.globalAlpha=this.opacity;n.drawImage(this.image,t.x,t.y,i.x,i.y)},unload:function(){this.elmt&&this.elmt.parentNode&&this.elmt.parentNode.removeChild(this.elmt);this.elmt=null;this.image=null;this.loaded=!1;this.loading=!1}};Sys.Extended.UI.Seadragon.Tile.registerClass("Sys.Extended.UI.Seadragon.Tile",null,Sys.IDisposable);Sys.Extended.UI.Seadragon.Overlay=function(n,t,i){this.elmt=n;this.scales=t instanceof Sys.Extended.UI.Seadragon.Rect;this.bounds=new Sys.Extended.UI.Seadragon.Rect(t.x,t.y,t.width,t.height);this.placement=t instanceof Sys.Extended.UI.Seadragon.Point?i:Sys.Extended.UI.Seadragon.OverlayPlacement.TOP_LEFT;this.position=new Sys.Extended.UI.Seadragon.Point(t.x,t.y);this.size=new Sys.Extended.UI.Seadragon.Point(t.width,t.height);this.style=n.style};Sys.Extended.UI.Seadragon.Overlay.prototype={adjust:function(n,t){switch(this.placement){case Sys.Extended.UI.Seadragon.OverlayPlacement.TOP_LEFT:break;case Sys.Extended.UI.Seadragon.OverlayPlacement.TOP:n.x-=t.x/2;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.TOP_RIGHT:n.x-=t.x;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.RIGHT:n.x-=t.x;n.y-=t.y/2;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.BOTTOM_RIGHT:n.x-=t.x;n.y-=t.y;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.BOTTOM:n.x-=t.x/2;n.y-=t.y;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.BOTTOM_LEFT:n.y-=t.y;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.LEFT:n.y-=t.y/2;break;case Sys.Extended.UI.Seadragon.OverlayPlacement.CENTER:default:n.x-=t.x/2;n.y-=t.y/2}},destroy:function(){var t=this.elmt,n=this.style;t.parentNode&&t.parentNode.removeChild(t);n.top="";n.left="";n.position="";this.scales&&(n.width="",n.height="")},drawHTML:function(n){var u=this.elmt,r=this.style,f=this.scales,t,i;u.parentNode!=n&&n.appendChild(u);f||(this.size=Seadragon.Utils.getElementSize(u));t=this.position;i=this.size;this.adjust(t,i);t=t.apply(Math.floor);i=i.apply(Math.ceil);r.left=t.x+"px";r.top=t.y+"px";r.position="absolute";f&&(r.width=i.x+"px",r.height=i.y+"px")},update:function(n,t){this.scales=n instanceof Sys.Extended.UI.Seadragon.Rect;this.bounds=new Sys.Extended.UI.Seadragon.Rect(n.x,n.y,n.width,n.height);this.placement=n instanceof Sys.Extended.UI.Seadragon.Point?t:Sys.Extended.UI.Seadragon.OverlayPlacement.TOP_LEFT}};Sys.Extended.UI.Seadragon.Overlay.registerClass("Sys.Extended.UI.Seadragon.Overlay",null,Sys.IDisposable);Sys.Extended.UI.Seadragon.Drawer=function(n,t,i){this._container=Seadragon.Utils.getElement(i);this._canvas=Seadragon.Utils.makeNeutralElement(useCanvas?"canvas":"div");this._context=useCanvas?this._canvas.getContext("2d"):null;this._viewport=t;this._source=n;this.config=this._viewport.config;this._imageLoader=new Sys.Extended.UI.Seadragon.ImageLoader(this.config.imageLoaderLimit);this._profiler=new Sys.Extended.UI.Seadragon.Profiler;this._minLevel=n.minLevel;this._maxLevel=n.maxLevel;this._tileSize=n.tileSize;this._tileOverlap=n.tileOverlap;this._normHeight=n.dimensions.y/n.dimensions.x;this._cacheNumTiles={};this._cachePixelRatios={};this._tilesMatrix={};this._tilesLoaded=[];this._coverage={};this._overlays=[];this._lastDrawn=[];this._lastResetTime=0;this._midUpdate=!1;this._updateAgain=!0;this.elmt=this._container;this._init()};Sys.Extended.UI.Seadragon.Drawer.prototype={dispose:function(){},_init:function(){this._canvas.style.width="100%";this._canvas.style.height="100%";this._canvas.style.position="absolute";this._container.style.textAlign="left";this._container.appendChild(this._canvas)},_compareTiles:function(n,t){return n?t.visibility>n.visibility?t:t.visibility==n.visibility&&t.distance=QUOTA){var a=Math.ceil(Math.log(this._tileSize)/Math.log(2)),u=null,e=-1;for(f=this._tilesLoaded.length-1;f>=0;f--){if(r=this._tilesLoaded[f],r.level<=this._cutoff||r.beingDrawn)continue;else if(!u){u=r;e=f;continue}var s=r.lastTouchTime,h=u.lastTouchTime,c=r.level,l=u.level;(sl)&&(u=r,e=f)}u&&e>=0&&(u.unload(),o=e)}this._tilesLoaded[o]=n;this._updateAgain=!0},_clearTiles:function(){this._tilesMatrix={};this._tilesLoaded=[]},_providesCoverage:function(n,t,i){var r,f,u,e;if(!this._coverage[n])return!1;if(t===undefined||i===undefined){r=this._coverage[n];for(f in r)if(r.hasOwnProperty(f)){u=r[f];for(e in u)if(u.hasOwnProperty(e)&&!u[e])return!1}return!0}return this._coverage[n][t]===undefined||this._coverage[n][t][i]===undefined||this._coverage[n][t][i]===!0},_isCovered:function(n,t,i){return t===undefined||i===undefined?this._providesCoverage(n+1):this._providesCoverage(n+1,2*t,2*i)&&this._providesCoverage(n+1,2*t,2*i+1)&&this._providesCoverage(n+1,2*t+1,2*i)&&this._providesCoverage(n+1,2*t+1,2*i+1)},_setCoverage:function(n,t,i,r){if(!this._coverage[n]){Seadragon.Debug.error("Setting coverage for a tile before its level's coverage has been reset: "+n);return}this._coverage[n][t]||(this._coverage[n][t]={});this._coverage[n][t][i]=r},_resetCoverage:function(n){this._coverage[n]={}},_compareTiles:function(n,t){return n?t.visibility>n.visibility?t:t.visibility==n.visibility&&t.distance=0;t--)if(this._overlays[t].elmt==n)return t;return-1},_updateActual:function(){var t,d,g,i,r,l,nt,a,n,ft,u,h,tt;this._updateAgain=!1;for(var v=this._canvas,et=this._context,ri=this._container,ot=useCanvas,c=this._lastDrawn;c.length>0;)n=c.pop(),n.beingDrawn=!1;var st=this._viewport.getContainerSize(),ht=st.x,ct=st.y;v.innerHTML="";ot&&(v.width=ht,v.height=ct,et.clearRect(0,0,ht,ct));var lt=this._viewport.getBounds(!0),e=lt.getTopLeft(),o=lt.getBottomRight();if((this.config.wrapHorizontal||!(o.x<0||e.x>1))&&(this.config.wrapVertical||!(o.y<0||e.y>this._normHeight))){var ui=Math.abs,ki=Math.ceil,at=Math.floor,y=Math.log,it=Math.max,f=Math.min,fi=this.config.alwaysBlend,vt=1e3*this.config.blendTime,ei=this.config.immediateRender,rt=this.config.minZoomDimension,di=this.config.minImageRatio,yt=this.config.wrapHorizontal,pt=this.config.wrapVertical;yt||(e.x=it(e.x,0),o.x=f(o.x,1));pt||(e.y=it(e.y,0),o.y=f(o.y,this._normHeight));var p=null,w=!1,b=(new Date).getTime(),oi=this._viewport.pixelFromPoint(this._viewport.getCenter()),si=this._viewport.deltaPixelsFromPoints(this._source.getPixelRatio(0),!1).x,wt=ei?1:si;rt=rt||64;var k=it(this._minLevel,at(y(rt)/y(2))),hi=this._viewport.deltaPixelsFromPoints(this._source.getPixelRatio(0),!0).x,bt=f(this._maxLevel,at(y(hi/MIN_PIXEL_RATIO)/y(2)));for(k=f(k,bt),t=bt;t>=k;t--){if(d=!1,g=this._viewport.deltaPixelsFromPoints(this._source.getPixelRatio(t),!0).x,!w&&g>=MIN_PIXEL_RATIO||t==k)d=!0,w=!0;else if(!w)continue;this._resetCoverage(t);var ci=f(1,(g-.5)/.5),li=this._viewport.deltaPixelsFromPoints(this._source.getPixelRatio(t),!1).x,ai=wt/ui(wt-li),kt=this._source.getTileAtPoint(t,e),s=this._source.getTileAtPoint(t,o),dt=this._getNumTiles(t),gt=dt.x,ni=dt.y;for(yt||(s.x=f(s.x,gt-1)),pt||(s.y=f(s.y,ni-1)),i=kt.x;i<=s.x;i++)for(r=kt.y;r<=s.y;r++)if((n=this._getTile(t,i,r,b,gt,ni),l=d,this._setCoverage(t,i,r,!1),n.exists)&&(w&&!l&&(this._isCovered(t,i,r)?this._setCoverage(t,i,r,!0):l=!0),l)){var ti=n.bounds.getTopLeft(),ii=n.bounds.getSize(),vi=this._viewport.pixelFromPoint(ti,!0),ut=this._viewport.deltaPixelsFromPoints(ii,!0);this._tileOverlap||(ut=ut.plus(new Sys.Extended.UI.Seadragon.Point(1,1)));var yi=this._viewport.pixelFromPoint(ti,!1),pi=this._viewport.deltaPixelsFromPoints(ii,!1),wi=yi.plus(pi.divide(2)),bi=oi.distanceTo(wi);n.position=vi;n.size=ut;n.distance=bi;n.visibility=ai;n.loaded?(n.blendStart||(n.blendStart=b),nt=b-n.blendStart,a=f(1,nt/vt),fi&&(a*=ci),n.opacity=a,c.push(n),a==1?this._setCoverage(t,i,r,!0):nt=0;u--)n=c[u],ot?n.drawCanvas(et):n.drawHTML(v),n.beingDrawn=!0;for(ft=this._overlays.length,u=0;u=0||(this._overlays.push(new Sys.Extended.UI.Seadragon.Overlay(n,t,i)),this._updateAgain=!0)},updateOverlay:function(n,t,i){var n=Seadragon.Utils.getElement(n),r=this._getOverlayIndex(n);r>=0&&(this._overlays[r].update(t,i),this._updateAgain=!0)},removeOverlay:function(n){var n=Seadragon.Utils.getElement(n),t=this._getOverlayIndex(n);t>=0&&(this._overlays[t].destroy(),this._overlays.splice(t,1),this._updateAgain=!0)},clearOverlays:function(){while(this._overlays.length>0)this._overlays.pop().destroy(),this._updateAgain=!0},needsUpdate:function(){return this._updateAgain},numTilesLoaded:function(){return this._tilesLoaded.length},reset:function(){this._clearTiles();this._lastResetTime=(new Date).getTime();this._updateAgain=!0},update:function(){this._profiler.beginUpdate();this._midUpdate=!0;this._updateActual();this._midUpdate=!1;this._profiler.endUpdate()},idle:function(){}};Sys.Extended.UI.Seadragon.Drawer.registerClass("Sys.Extended.UI.Seadragon.Drawer",null,Sys.IDisposable);Type.registerNamespace("Sys.Extended.UI.Seadragon");Sys.Extended.UI.Seadragon.TileSource=function(n,t,i,r,u,f){this.aspectRatio=n/t;this.dimensions=new Sys.Extended.UI.Seadragon.Point(n,t);this.minLevel=u?u:0;this.maxLevel=f?f:Math.ceil(Math.log(Math.max(n,t))/Math.log(2));this.tileSize=i?i:0;this.tileOverlap=r?r:0};Sys.Extended.UI.Seadragon.TileSource.prototype={getLevelScale:function(n){return 1/(1<=this.minLevel&&n<=this.maxLevel&&t>=0&&i>=0&&t=0;t--)for(i=this.displayRects[t],n=i.minLevel;n<=i.maxLevel;n++)this._levelRects[n]||(this._levelRects[n]=[]),this._levelRects[n].push(i)},getTileUrl:function(n,t,i){return[this.tilesUrl,n,"/",t,"_",i,".",this.fileFormat].join("")},tileExists:function(n,t,i){var u=this._levelRects[n],f,r;if(!u||!u.length)return!0;for(f=u.length-1;f>=0;f--)if(r=u[f],!(nr.maxLevel)){var e=this.getLevelScale(n),o=r.x*e,s=r.y*e,h=o+r.width*e,c=s+r.height*e;if(o=Math.floor(o/this.tileSize),s=Math.floor(s/this.tileSize),h=Math.ceil(h/this.tileSize),c=Math.ceil(c/this.tileSize),o<=t&&t-1&&(u[u.length-1]=h.slice(0,c)),s=u.join("/")+"_files/",o)?(t?(e=Function.createDelegate(this,this.processResponse),window.setTimeout(function(){var n=f(e,Seadragon.Utils.parseXml(t));i(n,r)},1)):(e=Function.createDelegate(this,this.processResponse),Seadragon.Utils.makeAjaxRequest(n,function(n){var t=f(e,n);i(t,r)})),null):t?f(Function.createDelegate(this,this.processXml),Seadragon.Utils.parseXml(t)):f(Function.createDelegate(this,this.processResponse),Seadragon.Utils.makeAjaxRequest(n))},processResponse:function(n,t){var r,u,i;if(n){if(n.status!==200&&n.status!==0){r=n.status;u=r==404?"Not Found":n.statusText;throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.Status",r,u));}}else throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.Security"));return i=null,n.responseXML&&n.responseXML.documentElement?i=n.responseXML:n.responseText&&(i=Seadragon.Utils.parseXml(n.responseText)),this.processXml(i,t)},processXml:function(n,t){var i,r,u;if(!n||!n.documentElement)throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.Xml"));if(i=n.documentElement,r=i.tagName,r=="Image")try{return this.processDzi(i,t)}catch(f){u=Seadragon.Strings.getString("Errors.Dzi");throw f instanceof Sys.Extended.UI.Seadragon.DziError?f:new Sys.Extended.UI.Seadragon.DziError(u);}else if(r=="Collection")throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.Dzc"));else if(r=="Error")return this.processError(i);throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.Dzi"));},processDzi:function(n,t){var u=n.getAttribute("Format"),r,f,i;if(!Seadragon.Utils.imageFormatSupported(u))throw new Sys.Extended.UI.Seadragon.DziError(Seadragon.Strings.getString("Errors.ImageFormat",u.toUpperCase()));var e=n.getElementsByTagName("Size")[0],o=n.getElementsByTagName("DisplayRect"),h=parseInt(e.getAttribute("Width"),10),c=parseInt(e.getAttribute("Height"),10),l=parseInt(n.getAttribute("TileSize")),a=parseInt(n.getAttribute("Overlap")),s=[];for(r=0;r=this.imageLoaderLimit)return!1;var i=Seadragon.Utils.createCallback(null,Function.createDelegate(this,this._onComplete),t),r=new Sys.Extended.UI.Seadragon.Job(n,i);return this._downloading++,r.start(),!0}};Sys.Extended.UI.Seadragon.ImageLoader.registerClass("Sys.Extended.UI.Seadragon.ImageLoader",null,Sys.IDisposable);Type.registerNamespace("Sys.Extended.UI.Seadragon");Sys.Extended.UI.Seadragon.Profiler=function(){this._midUpdate=!1;this._numUpdates=0;this._lastBeginTime=null;this._lastEndTime=null;this._minUpdateTime=Infinity;this._avgUpdateTime=0;this._maxUpdateTime=0;this._minIdleTime=Infinity;this._avgIdleTime=0;this._maxIdleTime=0};Sys.Extended.UI.Seadragon.Profiler.prototype={getAvgUpdateTime:function(){return this._avgUpdateTime},getMinUpdateTime:function(){return this._minUpdateTime},getMaxUpdateTime:function(){return this._maxUpdateTime},getAvgIdleTime:function(){return this._avgIdleTime},getMinIdleTime:function(){return this._minIdleTime},getMaxIdleTime:function(){return this._maxIdleTime},isMidUpdate:function(){return this._midUpdate},getNumUpdates:function(){return this._numUpdates},beginUpdate:function(){if(this._midUpdate&&this.endUpdate(),this._midUpdate=!0,this._lastBeginTime=(new Date).getTime(),!(this._numUpdates<1)){var n=this._lastBeginTime-this._lastEndTime;this._avgIdleTime=(this._avgIdleTime*(this._numUpdates-1)+n)/this._numUpdates;nthis._maxIdleTime&&(this._maxIdleTime=n)}},endUpdate:function(){if(this._midUpdate){this._lastEndTime=(new Date).getTime();this._midUpdate=!1;var n=this._lastEndTime-this._lastBeginTime;this._numUpdates++;this._avgUpdateTime=(this._avgUpdateTime*(this._numUpdates-1)+n)/this._numUpdates;nthis._maxUpdateTime&&(this._maxUpdateTime=n)}},clearProfile:function(){this._midUpdate=!1;this._numUpdates=0;this._lastBeginTime=null;this._lastEndTime=null;this._minUpdateTime=Infinity;this._avgUpdateTime=0;this._maxUpdateTime=0;this._minIdleTime=Infinity;this._avgIdleTime=0;this._maxIdleTime=0}};Sys.Extended.UI.Seadragon.Profiler.registerClass("Sys.Extended.UI.Seadragon.Profiler",null,Sys.IDisposable);Type.registerNamespace("Sys.Extended.UI.Seadragon");Type.registerNamespace("Seadragon");Seadragon.Spring=Sys.Extended.UI.Seadragon.Spring=function(n,t){this._currentValue=typeof n=="number"?n:0;this._startValue=this._currentValue;this._targetValue=this._currentValue;this.config=t;this._currentTime=(new Date).getTime();this._startTime=this._currentTime;this._targetTime=this._currentTime};Sys.Extended.UI.Seadragon.Spring.prototype={_transform:function(n){var t=this.config.springStiffness;return(1-Math.exp(-n*t))/(1-Math.exp(-t))},getCurrent:function(){return this._currentValue},getTarget:function(){return this._targetValue},resetTo:function(n){this._targetValue=n;this._targetTime=this._currentTime;this._startValue=this._targetValue;this._startTime=this._targetTime},springTo:function(n){this._startValue=this._currentValue;this._startTime=this._currentTime;this._targetValue=n;this._targetTime=this._startTime+1e3*this.config.animationTime},shiftBy:function(n){this._startValue+=n;this._targetValue+=n},update:function(){this._currentTime=(new Date).getTime();this._currentValue=this._currentTime>=this._targetTime?this._targetValue:this._startValue+(this._targetValue-this._startValue)*this._transform((this._currentTime-this._startTime)/(this._targetTime-this._startTime))}};Sys.Extended.UI.Seadragon.Spring.registerClass("Sys.Extended.UI.Seadragon.Spring",null,Sys.IDisposable);Type.registerNamespace("Sys.Extended.UI.Seadragon");Sys.Extended.UI.Seadragon.Viewport=function(n,t,i){this.zoomPoint=null;this.config=i;this._containerSize=n;this._contentSize=t;this._contentAspect=t.x/t.y;this._contentHeight=t.y/t.x;this._centerSpringX=new Seadragon.Spring(0,this.config);this._centerSpringY=new Seadragon.Spring(0,this.config);this._zoomSpring=new Seadragon.Spring(1,this.config);this._homeBounds=new Sys.Extended.UI.Seadragon.Rect(0,0,1,this._contentHeight);this.goHome(!0);this.update()};Sys.Extended.UI.Seadragon.Viewport.prototype={_getHomeZoom:function(){var n=this._contentAspect/this.getAspectRatio();return n>=1?1:n},_getMinZoom:function(){var n=this._getHomeZoom(),t;return t=this.config.minZoomDimension?this._contentSize.x<=this._contentSize.y?this.config.minZoomDimension/this._containerSize.x:this.config.minZoomDimension/(this._containerSize.x*this._contentHeight):this.config.minZoomImageRatio*n,Math.min(t,n)},_getMaxZoom:function(){var n=this._contentSize.x*this.config.maxZoomPixelRatio/this._containerSize.x;return Math.max(n,this._getHomeZoom())},getAspectRatio:function(){return this._containerSize.x/this._containerSize.y},getContainerSize:function(){return new Sys.Extended.UI.Seadragon.Point(this._containerSize.x,this._containerSize.y)},getBounds:function(n){var i=this.getCenter(n),t=1/this.getZoom(n),r=t/this.getAspectRatio();return new Sys.Extended.UI.Seadragon.Rect(i.x-t/2,i.y-r/2,t,r)},getCenter:function(n){var t=new Sys.Extended.UI.Seadragon.Point(this._centerSpringX.getCurrent(),this._centerSpringY.getCurrent()),r=new Sys.Extended.UI.Seadragon.Point(this._centerSpringX.getTarget(),this._centerSpringY.getTarget());if(n)return t;if(!this.zoomPoint)return r;var o=this.pixelFromPoint(this.zoomPoint,!0),u=this.getZoom(),i=1/u,f=i/this.getAspectRatio(),e=new Sys.Extended.UI.Seadragon.Rect(t.x-i/2,t.y-f/2,i,f),s=this.zoomPoint.minus(e.getTopLeft()).times(this._containerSize.x/e.width),h=s.minus(o),c=h.divide(this._containerSize.x*u);return r.plus(c)},getZoom:function(n){return n?this._zoomSpring.getCurrent():this._zoomSpring.getTarget()},applyConstraints:function(n){var e=this.getZoom(),o=Math.max(Math.min(e,this._getMaxZoom()),this._getMinZoom()),i;e!=o&&this.zoomTo(o,this.zoomPoint,n);var t=this.getBounds(),s=this.config.visibilityRatio,r=s*t.width,u=s*t.height,h=t.x+t.width,c=1-t.x,l=t.y+t.height,a=this._contentHeight-t.y,f=0;this.config.wrapHorizontal||(h=u?(i.height=n.width/u,i.y=f.y-i.height/2):(i.width=n.height*u,i.x=f.x-i.width/2);this.panTo(this.getCenter(!0),!0);this.zoomTo(this.getZoom(!0),null,!0);var r=this.getBounds(),s=this.getZoom(),o=1/i.width;if(o==s||i.width==r.width){this.panTo(f,t);return}e=r.getTopLeft().times(this._containerSize.x/r.width).minus(i.getTopLeft().times(this._containerSize.x/i.width)).divide(this._containerSize.x/r.width-this._containerSize.x/i.width);this.zoomTo(o,e,t)},goHome:function(n){var t=this.getCenter();this.config.wrapHorizontal&&(t.x=(1+t.x%1)%1,this._centerSpringX.resetTo(t.x),this._centerSpringX.update());this.config.wrapVertical&&(t.y=(this._contentHeight+t.y%this._contentHeight)%this._contentHeight,this._centerSpringY.resetTo(t.y),this._centerSpringY.update());this.fitBounds(this._homeBounds,n)},panBy:function(n,t){var i=new Sys.Extended.UI.Seadragon.Point(this._centerSpringX.getTarget(),this._centerSpringY.getTarget());this.panTo(i.plus(n),t)},panTo:function(n,t){t?(this._centerSpringX.resetTo(n.x),this._centerSpringY.resetTo(n.y)):(this._centerSpringX.springTo(n.x),this._centerSpringY.springTo(n.y))},zoomBy:function(n,t,i){this.zoomTo(this._zoomSpring.getTarget()*n,t,i)},zoomTo:function(n,t,i){i?this._zoomSpring.resetTo(n):this._zoomSpring.springTo(n);this.zoomPoint=t instanceof Sys.Extended.UI.Seadragon.Point?t:null},resize:function(n,t){var r=this.getBounds(),i=r,u=n.x/this._containerSize.x;this._containerSize=new Sys.Extended.UI.Seadragon.Point(n.x,n.y);t&&(i.width=r.width*u,i.height=i.width/this.getAspectRatio());this.fitBounds(i,!0)},update:function(){var r=this._centerSpringX.getCurrent(),u=this._centerSpringY.getCurrent(),n=this._zoomSpring.getCurrent(),t;if(this.zoomPoint&&(t=this.pixelFromPoint(this.zoomPoint,!0)),this._zoomSpring.update(),this.zoomPoint&&this._zoomSpring.getCurrent()!=n){var f=this.pixelFromPoint(this.zoomPoint,!0),e=f.minus(t),i=this.deltaPointsFromPixels(e,!0);this._centerSpringX.shiftBy(i.x);this._centerSpringY.shiftBy(i.y)}else this.zoomPoint=null;return this._centerSpringX.update(),this._centerSpringY.update(),this._centerSpringX.getCurrent()!=r||this._centerSpringY.getCurrent()!=u||this._zoomSpring.getCurrent()!=n},deltaPixelsFromPoints:function(n,t){return n.times(this._containerSize.x*this.getZoom(t))},deltaPointsFromPixels:function(n,t){return n.divide(this._containerSize.x*this.getZoom(t))},pixelFromPoint:function(n,t){var i=this.getBounds(t);return n.minus(i.getTopLeft()).times(this._containerSize.x/i.width)},pointFromPixel:function(n,t){var i=this.getBounds(t);return n.divide(this._containerSize.x/i.width).plus(i.getTopLeft())}};Sys.Extended.UI.Seadragon.Viewport.registerClass("Sys.Extended.UI.Seadragon.Viewport",null,Sys.IDisposable);Type.registerNamespace("Sys.Extended.UI.Seadragon");Sys.Extended.UI.Seadragon.DisplayRect=function(n,t,i,r,u,f){Sys.Extended.UI.Seadragon.DisplayRect.initializeBase(this,[n,t,i,r]);this.minLevel=u;this.maxLevel=f};Sys.Extended.UI.Seadragon.DisplayRect.registerClass("Sys.Extended.UI.Seadragon.DisplayRect",Sys.Extended.UI.Seadragon.Rect),function(){function n(){Type.registerNamespace("Sys.Extended.UI");Sys.Extended.UI.SlideShowBehavior=function(n){Sys.Extended.UI.SlideShowBehavior.initializeBase(this,[n]);this._nextButtonID=null;this._previousButtonID=null;this._imageDescriptionLabelID=null;this._imageTitleLabelID=null;this._playButtonID=null;this._playButtonValue="||>";this._stopButtonValue="[]";this._slideShowServicePath=location.pathname;this._slideShowServiceMethod=null;this._contextKey=null;this._useContextKey=!1;this._playInterval=3e3;this._tickHandler=null;this._loop=!1;this._autoPlay=!1;this._slideShowAnimationType=Sys.Extended.UI.SlideShowAnimationType.None;this._imageHeight=300;this._imageWidth=400;this._inPlayMode=!1;this._elementImage=null;this._bNext=null;this._bPrevious=null;this._currentIndex=-1;this._currentValue=null;this._imageDescriptionLabel=null;this._imageTitleLabel=null;this._bPlay=null;this._slides=null;this._timer=null;this._currentImageElement=null;this._images=null;this._cachedImageIndex=-1;this._current=0;this._previousImage=null;this._currentImage=null;this._nextImage=null;this._isNext=!1;this._clickNextHandler=null;this._clickPreviousHandler=null;this._clickPlayHandler=null;this._tickHandler=null;this._imageLoadedHandler=null};Sys.Extended.UI.SlideShowBehavior.prototype={initialize:function(){var n,t;Sys.Extended.UI.SlideShowBehavior.callBaseMethod(this,"initialize");n=this.get_element();this._elementImage=n;this.supportsAnimation("transition")||(this._slideShowAnimationType=Sys.Extended.UI.SlideShowAnimationType.None);(this._slideShowAnimationType!=Sys.Extended.UI.SlideShowAnimationType.SlideRight||this._slideShowAnimationType!=Sys.Extended.UI.SlideShowAnimationType.SlideDown)&&(this._currentImageElement=document.createElement("IMG"),this._currentImageElement.style.display="none",document.body.appendChild(this._currentImageElement),t=document.createElement("DIV"),n.parentNode.insertBefore(t,n),n.parentNode.removeChild(n),t.appendChild(n),t.align="center",this._imageLoadedHandler=Function.createDelegate(this,this._onImageLoaded),$addHandler(this._currentImageElement,"load",this._imageLoadedHandler));this.controlsSetup();this._bNext&&(this._clickNextHandler=Function.createDelegate(this,this._onClickNext),$addHandler(this._bNext,"click",this._clickNextHandler));this._bPrevious&&(this._clickPreviousHandler=Function.createDelegate(this,this._onClickPrevious),$addHandler(this._bPrevious,"click",this._clickPreviousHandler));this._bPlay&&(this._clickPlayHandler=Function.createDelegate(this,this._onClickPlay),$addHandler(this._bPlay,"click",this._clickPlayHandler));this._slideShowInit()},dispose:function(){this._clickNextHandler&&($removeHandler(this._bNext,"click",this._clickNextHandler),this._clickNextHandler=null);this._clickPreviousHandler&&($removeHandler(this._bPrevious,"click",this._clickPreviousHandler),this._clickPreviousHandler=null);this._clickPlayHandler&&($removeHandler(this._bPlay,"click",this._clickPlayHandler),this._clickPlayHandler=null);this._imageLoadedHandler&&($removeHandler(this._currentImageElement,"load",this._imageLoadedHandler),this._imageLoadedHandler=null);this._timer&&(this._timer.dispose(),this._timer=null);Sys.Extended.UI.SlideShowBehavior.callBaseMethod(this,"dispose")},add_slideChanged:function(n){this.get_events().addHandler("slideChanged",n)},remove_slideChanged:function(n){this.get_events().removeHandler("slideChanged",n)},raiseSlideChanged:function(n){var t=this.get_events().getHandler("slideChanged");t&&(n||(n=Sys.EventArgs.Empty),t(this,n))},add_slideChanging:function(n){this.get_events().addHandler("slideChanging",n)},remove_slideChanging:function(n){this.get_events().removeHandler("slideChanging",n)},raiseSlideChanging:function(n,t){var r=this.get_events().getHandler("slideChanging"),i;return r?(i=new Sys.Extended.UI.SlideShowEventArgs(n,t,this._currentIndex),r(this,i),i.get_cancel()):!1},get_contextKey:function(){return this._contextKey},set_contextKey:function(n){this._contextKey!=n&&(this._contextKey=n,this.set_useContextKey(!0),this._elementImage&&this._slideShowInit(),this.raisePropertyChanged("contextKey"))},get_useContextKey:function(){return this._useContextKey},set_useContextKey:function(n){this._useContextKey!=n&&(this._useContextKey=n,this.raisePropertyChanged("useContextKey"))},get_imageWidth:function(){return this._imageWidth},set_imageWidth:function(n){this._imageWidth!=n&&(this._imageWidth=n,this.raisePropertyChanged("imageWidth"))},get_imageHeight:function(){return this._imageHeight},set_imageHeight:function(n){this._imageHeight!=n&&(this._imageHeight=n,this.raisePropertyChanged("imageHeight"))},controlsSetup:function(){this._previousButtonID&&(this._bPrevious=document.getElementById(this._previousButtonID));this._imageDescriptionLabelID&&(this._imageDescriptionLabel=document.getElementById(this._imageDescriptionLabelID));this._imageTitleLabelID&&(this._imageTitleLabel=document.getElementById(this._imageTitleLabelID));this._nextButtonID&&(this._bNext=document.getElementById(this._nextButtonID));this._playButtonID&&(this._bPlay=document.getElementById(this._playButtonID),this._bPlay.value=this._playButtonValue)},resetButtons:function(){this._loop?this._slides.length==0&&(this._bPrevious&&(this._bPrevious.disabled=!0),this._bNext&&(this._bNext.disabled=!0),this._bPlay&&(this._bPlay.disabled=!0)):(this._slides.length<=this._currentIndex+1?(this._bNext&&(this._bNext.disabled=!0),this._bPlay&&(this._bPlay.disabled=!0),this._bPrevious&&(this._bPrevious.disabled=!1),this._inPlayMode=!1,this._timer&&this._timer.set_enabled(!1),this._bPlay&&(this._bPlay.value=this._playButtonValue)):(this._bNext&&(this._bNext.disabled=!1),this._bPlay&&(this._bPlay.disabled=!1)),this._currentIndex<=0?this._bPrevious&&(this._bPrevious.disabled=!0):this._bPrevious&&(this._bPrevious.disabled=!1));this._inPlayMode&&(this._timer.set_enabled(!1),this._timer.set_enabled(!0))},resetSlideShowButtonState:function(){this._inPlayMode?this._bPlay&&(this._bPlay.value=this._stopButtonValue):(this.resetButtons(),this._bPlay&&(this._bPlay.value=this._playButtonValue))},setCurrentImage:function(){this._slides[this._currentIndex]?(this._currentImageElement.src=this._slides[this._currentIndex].ImagePath,this._slides[this._currentIndex].Url!=null?(this._currentImageElement.style.cursor="pointer",this._currentImageElement.onclick=function(){window.open(this._slides[this._currentIndex].Url)}):(this._currentImageElement.style.cursor="auto",this._currentImageElement.onclick=function(){})):this._currentImageElement.src="";Sys.Browser.agent==Sys.Browser.Opera&&this._onImageLoaded(!0)},updateImage:function(n){var t;if(n){if(this.raiseSlideChanging(this._currentValue,n))return;this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.FadeInOut?(this._elementImage.className="fadeIn",t=this,setTimeout(function(){t._elementImage.className="fadeOut";t.setImage(n)},1e3)):this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.ScaleX?(this._elementImage.className="Animation scaleX",t=this,setTimeout(function(){t._elementImage.className="Animation";t.setImage(n)},1e3)):this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.ScaleY?(this._elementImage.className="Animation scaleY",t=this,setTimeout(function(){t._elementImage.className="Animation";t.setImage(n)},1e3)):this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.ZoomInOut?(this._elementImage.className="Animation zoomOut",t=this,setTimeout(function(){t._elementImage.className="Animation zoomIn";t.setImage(n)},1e3)):this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.Rotate?(this._elementImage.className="Animation rotate",t=this,setTimeout(function(){t._elementImage.className="Animation";t.setImage(n)},1e3)):this.setImage(n)}},setImage:function(n){this._currentValue=n;this._elementImage.src=n.ImagePath;this._elementImage.alt=n.Name;this._imageDescriptionLabel&&(this._imageDescriptionLabel.innerHTML=n.Description?n.Description:"");this._imageTitleLabel&&(this._imageTitleLabel.innerHTML=n.Name?n.Name:"");n.Url!=null?(this._elementImage.style.cursor="pointer",this._elementImage.onclick=function(){window.open(n.Url)}):(this._elementImage.style.cursor="auto",this._elementImage.onclick=function(){});this.raiseSlideChanged(n);this.resetButtons()},get_imageDescriptionLabelID:function(){return this._imageDescriptionLabelID},set_imageDescriptionLabelID:function(n){this._imageDescriptionLabelID!=n&&(this._imageDescriptionLabelID=n,this.raisePropertyChanged("imageDescriptionLabelID"))},get_imageTitleLabelID:function(){return this._imageTitleLabelID},set_imageTitleLabelID:function(n){this._imageTitleLabelID!=n&&(this._imageTitleLabelID=n,this.raisePropertyChanged("imageTitleLabelID"))},get_nextButtonID:function(){return this._nextButtonID},set_nextButtonID:function(n){this._nextButtonID!=n&&(this._nextButtonID=n,this.raisePropertyChanged("nextButtonID"))},get_playButtonID:function(){return this._playButtonID},set_playButtonID:function(n){this._playButtonID!=n&&(this._playButtonID=n,this.raisePropertyChanged("playButtonID"))},get_playButtonText:function(){return this._playButtonValue},set_playButtonText:function(n){this._playButtonValue!=n&&(this._playButtonValue=n,this.raisePropertyChanged("playButtonText"))},get_stopButtonText:function(){return this._stopButtonValue},set_stopButtonText:function(n){this._stopButtonValue!=n&&(this._stopButtonValue=n,this.raisePropertyChanged("stopButtonText"))},get_playInterval:function(){return this._playInterval},set_playInterval:function(n){this._playInterval!=n&&(this._playInterval=n,this.raisePropertyChanged("playInterval"))},get_previousButtonID:function(){return this._previousButtonID},set_previousButtonID:function(n){this._previousButtonID!=n&&(this._previousButtonID=n,this.raisePropertyChanged("previousButtonID"))},get_slideShowServicePath:function(){return this._slideShowServicePath},set_slideShowServicePath:function(n){this._slideShowServicePath!=n&&(this._slideShowServicePath=n,this.raisePropertyChanged("slideShowServicePath"))},get_slideShowServiceMethod:function(){return this._slideShowServiceMethod},set_slideShowServiceMethod:function(n){this._slideShowServiceMethod!=n&&(this._slideShowServiceMethod=n,this.raisePropertyChanged("slideShowServiceMethod"))},get_loop:function(){return this._loop},set_loop:function(n){this._loop!=n&&(this._loop=n,this.raisePropertyChanged("loop"))},get_autoPlay:function(){return this._autoPlay},set_autoPlay:function(n){this._autoPlay!=n&&(this._autoPlay=n,this.raisePropertyChanged("autoPlay"))},get_slideShowAnimationType:function(){return this._slideShowAnimationType},set_slideShowAnimationType:function(n){this._slideShowAnimationType!=n&&(this._slideShowAnimationType=n,this.raisePropertyChanged("slideShowAnimationType"))},_onClickNext:function(n){n.preventDefault();n.stopPropagation();this._clickNext()},_onImageLoaded:function(){this.updateImage(this._slides[this._currentIndex]);this.resetButtons();this._cacheImages()},_clickNext:function(){if(this._slides){if(this._currentIndex+1=0)--this._currentIndex;else if(this._loop)this._currentIndex=this._slides.length-1;else return!1;return this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideRight||this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideDown?(this._isNext=!1,this.setCurrentSlide()):this.setCurrentImage(),!0}return!1},_onClickPlay:function(n){n.preventDefault();n.stopPropagation();this._play()},_play:function(){this._inPlayMode?(this._inPlayMode=!1,this._timer.set_enabled(!1),this.resetSlideShowButtonState(),(this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideRight||this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideDown)&&(this._bNext&&(this._bNext.disabled=!1),this._bPrevious&&(this._bPrevious.disabled=!1))):(this._inPlayMode=!0,this._timer||(this._timer=new Sys.Timer,this._timer.set_interval(this._playInterval),this._tickHandler=Function.createDelegate(this,this._onPlay),this._timer.add_tick(this._tickHandler)),(this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideRight||this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideDown)&&(this._bNext&&(this._bNext.disabled=!0),this._bPrevious&&(this._bPrevious.disabled=!0)),this.resetSlideShowButtonState(),this._timer.set_enabled(!0))},_onPlay:function(){if(this._slides){if(this._currentIndex+11?this._images[this._currentIndex+1]:this._images[this._currentIndex],this._slideShowAnimationType==Sys.Extended.UI.SlideShowAnimationType.SlideRight)for(this._currentImage.style.left="0px",n=1;n-1?this._cachedActiveTabIndex:this._activeTabIndex},set_activeTabIndex:function(n){var t=n,r,u,i;if(this.get_isInitialized()){if(t<-1)throw Error.argumentOutOfRange("value");t>=this.get_tabs().length&&(t=this.get_tabs().length-1);t!=this._activeTabIndex&&(this._activeTabIndex!=-1&&(r=this.get_tabs()[this._activeTabIndex],r._set_active(!1)),u=this._activeTabIndex!=t,this._activeTabIndex=t,this._activeTabIndex!=-1&&this.get_tabs()[this._activeTabIndex]._set_active(!0),this._loaded&&u&&(this._onDemand&&(i=this.get_tabs()[this._activeTabIndex],i._onDemandMode!=Sys.Extended.UI.OnDemandMode.None&&(i._onDemandMode==Sys.Extended.UI.OnDemandMode.Once&&i._wasLoadedOnce==!1||i._onDemandMode==Sys.Extended.UI.OnDemandMode.Always)&&(this._pageRequestManager.beginAsyncPostBack([i._updatePanelID],null,null,!1,null),i.set_wasLoadedOnce(!0))),this.raiseActiveTabChanged()),this.raisePropertyChanged("activeTabIndex"))}else this._cachedActiveTabIndex=t},get_tabs:function(){return this._tabs==null&&(this._tabs=[]),this._tabs},get_activeTab:function(){return this._activeTabIndex>-1?this.get_tabs()[this._activeTabIndex]:null},set_activeTab:function(n){var t=Array.indexOf(this.get_tabs(),n);if(t==-1)throw Error.argument("value",Sys.Extended.UI.Resources.Tabs_ActiveTabArgumentOutOfRange);this.set_activeTabIndex(t)},get_autoPostBackId:function(){return this._autoPostBackId},set_autoPostBackId:function(n){this._autoPostBackId=n},get_scrollBars:function(){return this._scrollBars},set_scrollBars:function(n){this._scrollBars!=n&&(this._scrollBars=n,this._invalidate(),this.raisePropertyChanged("scrollBars"))},get_tabStripPlacement:function(){return this._tabStripPlacement},set_tabStripPlacement:function(n){this._tabStripPlacement!=n&&(this._tabStripPlacement=n,this._invalidate(),this.raisePropertyChanged("tabStripPlacement"))},get_useVerticalStripPlacement:function(){return this._useVerticalStripPlacement},set_useVerticalStripPlacement:function(n){this._useVerticalStripPlacement!=n&&(this._useVerticalStripPlacement=n,this._invalidate(),this.raisePropertyChanged("useVerticalStripPlacement"))},get_onDemand:function(){return this._onDemand},set_onDemand:function(n){this._onDemand!=n&&(this._onDemand=n,this._invalidate(),this.raisePropertyChanged("onDemand"))},initialize:function(){Sys.Extended.UI.TabContainer.callBaseMethod(this,"initialize");var n=this.get_element();this._header=$get(this.get_id()+"_header");this._body=$get(this.get_id()+"_body");$common.addCssClasses(n,["ajax__tab_container","ajax__tab_default"]);this._invalidate();this._onDemand&&(this._pageRequestManager=Sys.WebForms.PageRequestManager.getInstance());Sys.Application.add_load(this._app_onload$delegate)},dispose:function(){$clearHandlers(this.get_element());Sys.Application.remove_load(this._app_onload$delegate);Sys.Extended.UI.TabContainer.callBaseMethod(this,"dispose")},getFirstTab:function(n){for(var i=this.get_tabs(),t=0;t=0;t--)if(n||i[t].get_enabled())return i[t];return null},getNextTab:function(n){for(var t=this.get_tabs(),f=this.get_activeTabIndex(),u,i,r=1;rthis._activeTabIndex?i:null},saveClientState:function(){for(var t=this.get_tabs(),i=[],r=[],u,n=0;n0&&(this.get_element().maxLength=this._maxLength,this._maxLength=null)},_onBlur:function(){var n=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element());(""==n.get_Current()||n.get_IsWatermarked())&&(this.get_element().maxLength>0&&this._watermarkText.length>this.get_element().maxLength&&(this._maxLength=this.get_element().maxLength,this.get_element().maxLength=this._watermarkText.length),this._applyWatermark())},_applyWatermark:function(){var n=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element());n.set_Watermark(this._watermarkText);n.set_IsWatermarked(!0);this._watermarkCssClass&&(this.get_element().className=this._watermarkCssClass)},_onKeyPress:function(){Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).set_IsWatermarked(!1)},registerPropertyChanged:function(){var n=this.get_element();n.control&&!this._propertyChangedHandler&&(this._propertyChangedHandler=Function.createDelegate(this,this._onPropertyChanged),n.control.add_propertyChanged(this._propertyChangedHandler))},_onPropertyChanged:function(n,t){"text"==t.get_propertyName()&&this.set_Text(Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Current())},_onSubmit:function(){Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked()&&(this.clearText(!1),this._clearedForSubmit=!0)},_partialUpdateEndRequest:function(n,t){Sys.Extended.UI.TextBoxWatermarkBehavior.callBaseMethod(this,"_partialUpdateEndRequest",[n,t]);this.get_element()&&this._clearedForSubmit&&(this.get_element().blur(),this._onBlur(),this._clearedForSubmit=!1)},get_WatermarkText:function(){return this._watermarkText},set_WatermarkText:function(n){this._watermarkText!=n&&(this._watermarkText=n,Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked()&&this._applyWatermark(),this.raisePropertyChanged("WatermarkText"))},get_WatermarkCssClass:function(){return this._watermarkCssClass},set_WatermarkCssClass:function(n){this._watermarkCssClass!=n&&(this._watermarkCssClass=n,Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_IsWatermarked()&&this._applyWatermark(),this.raisePropertyChanged("WatermarkCssClass"))},get_Text:function(){return Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value()},set_Text:function(n){""==n?(Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).set_Current(""),this.get_element().blur(),this._onBlur()):(this._onFocus(),Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).set_Current(n))}};Sys.Extended.UI.TextBoxWatermarkBehavior.registerClass("Sys.Extended.UI.TextBoxWatermarkBehavior",Sys.Extended.UI.BehaviorBase);Sys.registerComponent(Sys.Extended.UI.TextBoxWatermarkBehavior,{name:"watermark",parameters:[{name:"WatermarkText",type:"String"},{name:"WatermarkCssClass",type:"String"}]});Sys.Extended.UI.TextBoxWatermarkBehavior.WebForm_OnSubmit=function(){var r=Sys.Extended.UI.TextBoxWatermarkBehavior._originalWebForm_OnSubmit(),t,n,i;if(r)for(t=Sys.Application.getComponents(),n=0;n0;t-=2)i=document.createElement("div"),i.style.width=t.toString()+"px",r.appendChild(i);u=document.createElement("div");u.style.width="1px";u.className="arrowpixel";r.appendChild(u)}else for(t=14;t>0;t--)i=document.createElement("div"),i.style.width=t.toString()+"px",r.appendChild(i);this._popupBehavior=$create(Sys.Extended.UI.PopupBehavior,{parentElement:g},{},null,this._popupTable);this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.TopLeft?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopLeft):this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.TopRight?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.TopRight):this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.BottomLeft?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.BottomLeft):this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.BottomRight?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.BottomRight):this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.Right?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.Right):this._popupPosition==Sys.Extended.UI.ValidatorCalloutPosition.Left?this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.Left):this._popupBehavior.set_positioningMode(Sys.Extended.UI.PositioningMode.Right);this._onShowJson&&this._popupBehavior.set_onShow(this._onShowJson);this._onHideJson&&this._popupBehavior.set_onHide(this._onHideJson);$addHandler(this._closeCellInnerDiv,"click",this._closeClickHandler);this._isBuilt=!0}},dispose:function(){this._isBuilt&&(this.hide(),this._focusAttached&&($removeHandler(this._elementToValidate,"focus",this._focusHandler),this._focusAttached=!1),$removeHandler(this._closeCellInnerDiv,"click",this._closeClickHandler),this._onShowJson=null,this._onHideJson=null,this._popupBehavior&&(this._popupBehavior.dispose(),this._popupBehavior=null),this._closeBehavior&&(this._closeBehavior.dispose(),this._closeBehavior=null),this._popupTable&&(this._popupTable.parentNode.removeChild(this._popupTable),this._popupTable=null,this._errorMessageCell=null,this._elementToValidate=null,this._calloutArrowCell=null,this._warningIconImage=null,this._closeImage=null,this._closeCellInnerDiv=null),this._isBuilt=!1);Sys.Extended.UI.ValidatorCalloutBehavior.callBaseMethod(this,"dispose")},_getErrorMessage:function(){return this.get_element().errormessage||Sys.Extended.UI.Resources.ValidatorCallout_DefaultErrorMessage},show:function(n){if(n||!this.get_isOpen()){if(n&&Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout&&Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout.hide(),Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout!=null)return;Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout=this;this._errorMessageCell.innerHTML=this._getErrorMessage();this._popupBehavior.show()}},hide:function(){Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout==this&&(Sys.Extended.UI.ValidatorCalloutBehavior._currentCallout=null);this.get_isOpen()&&this._popupBehavior.hide()},_onfocus:function(){return this._originalValidationMethod(this.get_element())?(this.hide(),!0):(this._ensureCallout(),this._highlightCssClass&&Sys.UI.DomElement.addCssClass(this._elementToValidate,this._highlightCssClass),this.show(!0),!1)},_oncloseClick:function(){this.hide()},_onvalidate:function(n){return this._originalValidationMethod(n)?(this._highlightCssClass&&this._invalid&&Sys.UI.DomElement.removeCssClass(this._elementToValidate,this._highlightCssClass),this._invalid=!1,this.hide(),!0):(this._ensureCallout(),this._highlightCssClass&&Sys.UI.DomElement.addCssClass(this._elementToValidate,this._highlightCssClass),this._focusAttached||($addHandler(this._elementToValidate,"focus",this._focusHandler),this._focusAttached=!0),this.show(!1),this._invalid=!0,!1)},get_onShow:function(){return this._popupBehavior?this._popupBehavior.get_onShow():this._onShowJson},set_onShow:function(n){this._popupBehavior?this._popupBehavior.set_onShow(n):this._onShowJson=n;this.raisePropertyChanged("onShow")},get_onShowBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onShowBehavior():null},onShow:function(){this._popupBehavior&&this._popupBehavior.onShow()},get_onHide:function(){return this._popupBehavior?this._popupBehavior.get_onHide():this._onHideJson},set_onHide:function(n){this._popupBehavior?this._popupBehavior.set_onHide(n):this._onHideJson=n;this.raisePropertyChanged("onHide")},get_onHideBehavior:function(){return this._popupBehavior?this._popupBehavior.get_onHideBehavior():null},onHide:function(){this._popupBehavior&&this._popupBehavior.onHide()},get_warningIconImageUrl:function(){return this._warningIconImageUrl},set_warningIconImageUrl:function(n){this._warningIconImageUrl!=n&&(this._warningIconImageUrl=n,this.get_isInitialized()&&(this._warningIconImage.src=n),this.raisePropertyChanged("warningIconImageUrl"))},get_closeImageUrl:function(){return this._closeImageUrl},set_closeImageUrl:function(n){this._closeImageUrl!=n&&(this._closeImageUrl=n,this.get_isInitialized()&&(this._closeImage.src=n),this.raisePropertyChanged("closeImageUrl"))},get_width:function(){return this._width},set_width:function(n){this._width!=n&&(this._width=n,this.get_isInitialized()&&(this._popupTable.style.width=_width),this.raisePropertyChanged("width"))},get_popupPosition:function(){return this._popupPosition},set_popupPosition:function(n){this._popupPosition!=n&&(this._popupPosition=n,this.raisePropertyChanged("popupPosition"))},get_cssClass:function(){return this._cssClass},set_cssClass:function(n){this._cssClass!=n&&(this._cssClass=n,this.raisePropertyChanged("cssClass"))},get_highlightCssClass:function(){return this._highlightCssClass},set_highlightCssClass:function(n){this._highlightCssClass!=n&&(this._highlightCssClass=n,this.raisePropertyChanged("highlightCssClass"))},get_isOpen:function(){return $common.getVisible(this._popupTable)}};Sys.Extended.UI.ValidatorCalloutBehavior.registerClass("Sys.Extended.UI.ValidatorCalloutBehavior",Sys.Extended.UI.BehaviorBase);Sys.Extended.UI.ValidatorCalloutPosition=function(){throw Error.invalidOperation();};Sys.Extended.UI.ValidatorCalloutPosition.prototype={Right:0,Left:1,BottomLeft:2,BottomRight:3,TopLeft:4,TopRight:5};Sys.Extended.UI.ValidatorCalloutPosition.registerEnum("Sys.Extended.UI.ValidatorCalloutPosition") if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();