﻿// Copyright (c) ComponentOne L.L.C., All rights reserved.
Type.registerNamespace("C1.Web.UI");C1.Web.UI.DOMScrollOrientation=function(){};C1.Web.UI.DOMScrollOrientation.prototype={horizontal:1,vertical:2,both:3};C1.Web.UI.DOMScrollOrientation.registerEnum("C1.Web.UI.DOMScrollOrientation",false);C1.Web.UI.DOMScrollButtonAlign=function(){};C1.Web.UI.DOMScrollButtonAlign.prototype={startSide:1,twoSides:2,endSide:3};C1.Web.UI.DOMScrollButtonAlign.registerEnum("C1.Web.UI.DOMScrollButtonAlign",false);C1.Web.UI.DOMScrollMode=function(){};C1.Web.UI.DOMScrollMode.prototype={none:1,buttons:2,buttonsHover:3,hover:4,scrollBar:5};C1.Web.UI.DOMScrollMode.registerEnum("C1.Web.UI.DOMScrollMode",false);C1.Web.UI.Orientation=function(){};C1.Web.UI.Orientation.prototype={horizontal:0,vertical:1};C1.Web.UI.Orientation.registerEnum("C1.Web.UI.Orientation",false);C1.Web.UI.PositioningMode=function(){};C1.Web.UI.PositioningMode.prototype={absolute:1,center:2,topLeft:3,topRight:4,topCenter:5,rightTop:6,rightBottom:7,rightMiddle:8,bottomLeft:9,bottomRight:10,bottomCenter:11,leftTop:12,leftBottom:13,leftMiddle:14};C1.Web.UI.PositioningMode.registerEnum("C1.Web.UI.PositioningMode",false);C1.Web.UI.AnimationEffect=function(){};C1.Web.UI.AnimationEffect.prototype={none:0,fadeIn:1,fadeOut:2,scrollInFromTop:3,scrollInFromRight:4,scrollInFromBottom:5,scrollInFromLeft:6,scrollOutToTop:7,scrollOutToRight:8,scrollOutToBottom:9,scrollOutToLeft:10,fold:11,unFold:12,openVertically:13,closeVertically:14,openHorizontally:15,closeHorizontally:16,shake:17,bounce:18,dropInFromTop:19,dropInFromRight:20,dropInFromBottom:21,dropInFromLeft:22,dropOutToTop:23,dropOutToRight:24,dropOutToBottom:25,dropOutToLeft:26};C1.Web.UI.AnimationEffect.registerEnum("C1.Web.UI.AnimationEffect",false);C1.Web.UI.ScrollBars=function(){};C1.Web.UI.ScrollBars.prototype={none:0,horizontal:1,vertical:2,both:3,auto:4};C1.Web.UI.ScrollBars.registerEnum("C1.Web.UI.ScrollBars",false);C1.Web.UI.BoxSide=function(){};C1.Web.UI.BoxSide.prototype={top:0,right:1,bottom:2,left:3};C1.Web.UI.BoxSide.registerEnum("C1.Web.UI.BoxSide",false);C1.Web.UI.DockStyle=function(){};C1.Web.UI.DockStyle.prototype={none:0,top:1,bottom:2,left:3,right:4,fill:5};C1.Web.UI.DockStyle.registerEnum("C1.Web.UI.DockStyle",false);C1.Web.UI.DockStyleEnum=function(){};C1.Web.UI.DockStyleEnum.prototype={none:0,top:1,bottom:2,left:3,right:4,fill:5};C1.Web.UI.DockStyleEnum.registerEnum("C1.Web.UI.DockStyleEnum",false);C1.Web.UI.Easing=function(){};C1.Web.UI.Easing.prototype={easeOutElastic:1,easeInElastic:2,easeInOutElastic:3,easeOutBounce:4,easeInBounce:5,easeInOutBounce:6,easeOutExpo:7,easeInExpo:8,easeInOutExpo:9,easeOutQuad:10,easeInQuad:11,easeInOutQuad:12,easeOutSine:13,easeInSine:14,easeInOutSine:15,easeOutCirc:16,easeInCirc:17,easeInOutCirc:18,easeOutCubic:19,easeInCubic:20,easeInOutCubic:21,easeOutQuint:22,easeInQuint:23,easeInOutQuint:24,easeOutBack:25,easeInBack:26,easeInOutBack:27,easeOutQuart:28,easeInQuart:29,easeInOutQuart:30,easeLinear:31};C1.Web.UI.Easing.registerEnum("C1.Web.UI.Easing",false);C1.Web.UI.TextImageRelation=function(){};C1.Web.UI.TextImageRelation.prototype={imageBeforeText:0,textBeforeImage:1,imageAboveText:2,textAboveImage:3};C1.Web.UI.TextImageRelation.registerEnum("C1.Web.UI.TextImageRelation",false);C1.Web.UI.Dock=function(){};C1.Web.UI.Dock.prototype={none:0,top:1,left:2,bottom:3,right:4,fill:5};C1.Web.UI.Dock.registerEnum("C1.Web.UI.Dock",false);C1.Web.UI.ScrollOrientation=function(){};C1.Web.UI.ScrollOrientation.prototype={horizontal:0,vertical:1};C1.Web.UI.ScrollOrientation.registerEnum("C1.Web.UI.ScrollOrientation",false);C1.Web.UI.ScrollDirection=function(){};C1.Web.UI.ScrollDirection.prototype={increase:-1,decrease:1};C1.Web.UI.ScrollDirection.registerEnum("C1.Web.UI.ScrollDirection",false);C1.Web.UI.ScrollButtonAlign=function(){};C1.Web.UI.ScrollButtonAlign.prototype={startSide:0,twoSides:1,endSide:2};C1.Web.UI.ScrollButtonAlign.registerEnum("C1.Web.UI.ScrollButtonAlign",false);C1.Web.UI.ScrollMode=function(){};C1.Web.UI.ScrollMode.prototype={none:1,buttons:2,buttonsHover:3,hover:4};C1.Web.UI.ScrollMode.registerEnum("C1.Web.UI.ScrollMode",false);C1.Web.UI.ScrollType=function(){};C1.Web.UI.ScrollType.prototype={none:0,withoutButtons:1,buttonsAtStartSide:2,buttonsAtTwoSides:3,buttonsAtEndSide:4};C1.Web.UI.ScrollType.registerEnum("C1.Web.UI.ScrollType",false);C1.Web.UI.FrameworkStringConstants=function(){};C1.Web.UI.C1ClientResLoader=function(a){this._d=window[a]};C1.Web.UI.C1ClientResLoader.prototype={_d:null,getString:function(a){return this.getStringDefault(a,"")},getStringDefault:function(c,b){if(C1.Web.UI.Utils.Common.testIsNull(this._d)){return b}var a=this._d[c];if(C1.Web.UI.Utils.Common.testIsNull(a)){return b}return a.toString()}};C1.Web.UI.C1RoundCornerPanel=function(a){C1.Web.UI.C1RoundCornerPanel.initializeBase(this,[a])};C1.Web.UI.C1RoundCornerPanel.prototype={$7:null,$8:"div",$9:"div",$A:"div",$B:"div",$C:false,$D:"C1Container",$E:"C1Outer",$F:"C1Inner",$10:"C1Content",get_containerTabName:function(){return this.$8},set_containerTabName:function(a){this.$8=a;return a},get_outerTagName:function(){return this.$9},set_outerTagName:function(a){this.$9=a;return a},get_innerTagName:function(){return this.$A},set_innerTagName:function(a){this.$A=a;return a},get_contentTagName:function(){return this.$B},set_contentTagName:function(a){this.$B=a;return a},get_containerCssClass:function(){return this.$D},set_containerCssClass:function(a){this.$D=a;return a},get_outerCssClass:function(){return this.$E},set_outerCssClass:function(a){this.$E=a;return a},get_innerCssClass:function(){return this.$F},set_innerCssClass:function(a){this.$F=a;return a},get_contentCssClass:function(){return this.$10},set_contentCssClass:function(a){this.$10=a;return a},get_contentElement:function(){this.initialize();if(!this.$7){this.$7=document.createElement(this.get_contentTagName());Sys.UI.DomElement.addCssClass(this.$7,this.get_contentCssClass())}return this.$7},initialize:function(){if(this.$C){return}this.$C=true;C1.Web.UI.C1RoundCornerPanel.callBaseMethod(this,"initialize");if(!this.element){this.$11()}else{this.$7=$get(this.get_id()+"_c-ce")}},$11:function(){this.element=document.createElement(this.get_containerTabName());Sys.UI.DomElement.addCssClass(this.element,this.get_containerCssClass());var b=document.createElement(this.get_outerTagName());Sys.UI.DomElement.addCssClass(b,this.get_outerCssClass());var a=document.createElement(this.get_innerTagName());Sys.UI.DomElement.addCssClass(a,this.get_innerCssClass());a.appendChild(this.get_contentElement());b.appendChild(a);this.element.appendChild(b)},addChild:function(a){this.get_contentElement().appendChild(a)},removeChild:function(a){this.get_contentElement().removeChild(a)}};C1.Web.UI.C1ThemeableControlBase=function(a){this._propertiesState={};C1.Web.UI.C1ThemeableControlBase.initializeBase(this,[a]);this.$2_0=new C1.Web.UI.Interfaces.JsonSerializableHelper(this.get_element().id,this)};C1.Web.UI.C1ThemeableControlBase.prototype={$2_0:null,get_element:function(){return C1.Web.UI.C1ThemeableControlBase.callBaseMethod(this,"get_element")},get_visualStyle:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.VisualStyle))?"":this._propertiesState.VisualStyle},set_visualStyle:function(c){var b=this.get_visualStyle();if(b!==""&&b!==c){var a=new RegExp("("+b+")","g");this._propertiesState.VisualStyle=c;var d=this.get_element().className;d=d.replace(a,c);this.get_element().className=d;this.invalidate()}return c},invalidate:function(){},saveState:function(){this.$2_0.saveState()},get_propertiesState:function(){return this._propertiesState},assignPropertiesState:function(a){this._propertiesState=a},createInstance:function(a){return{}}};C1.Web.UI.C1ThemeHelper=function(){};C1.Web.UI.C1ThemeHelper.registerRunTimeStyleSheet=function(i,a){var h=document.getElementsByTagName("head")[0];var g=h.getElementsByTagName("link");var f=null;for(var e=0;e<g.length;e++){f=g[e];var d=f.getAttribute("id");if(C1.Web.UI.Utils.Common.testIsNull(d)){continue}if(d.endsWith(a)){return}var c=f.getAttribute("type");if(C1.Web.UI.Utils.Common.testIsNull(c)){continue}if(c.toLowerCase()!=="text/css"){continue}var b=f.getAttribute("rel");if(C1.Web.UI.Utils.Common.testIsNull(b)){continue}if(b.toLowerCase()!=="stylesheet"){continue}}f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("rel","stylesheet");f.setAttribute("id",a);f.setAttribute("href",i);h.appendChild(f)};C1.Web.UI.C1RoundedCornerPanelBase=function(a){C1.Web.UI.C1RoundedCornerPanelBase.initializeBase(this,[a])};C1.Web.UI.C1RoundedCornerPanelBase.prototype={$7:null,$8:"C1Rcpb",$9:"div",$A:false,$B:"div",get_containerTagName:function(){return this.$B},set_containerTagName:function(a){this.$B=a;return a},get_classPrefix:function(){return this.$8},set_classPrefix:function(a){this.$8=a;return a},get_contentTagName:function(){return this.$9},set_contentTagName:function(a){this.$9=a;return a},get_contentElement:function(){this.initialize();if(!this.$7){this.$7=document.createElement(this.get_contentTagName());Sys.UI.DomElement.addCssClass(this.$7,this.get_classPrefix()+"Content")}return this.$7},initialize:function(){if(this.$A){return}this.$A=true;C1.Web.UI.C1RoundedCornerPanelBase.callBaseMethod(this,"initialize");if(!this.element){this.$C()}else{this.$7=$get(this.get_id()+"_c-ce")}},$C:function(){this.element=document.createElement(this.get_containerTagName());Sys.UI.DomElement.addCssClass(this.element,this.get_classPrefix()+"Container");this.$7=document.createElement(this.get_contentTagName());Sys.UI.DomElement.addCssClass(this.$7,this.get_classPrefix()+"Content");this.element.appendChild(this.$7);var a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-e");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-n");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-ne");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-nw");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-s");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-se");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-sw");this.element.appendChild(a);a=document.createElement("div");Sys.UI.DomElement.addCssClass(a,this.get_classPrefix()+"-w");this.element.appendChild(a)},addChild:function(a){this.get_contentElement().appendChild(a)},removeChild:function(a){this.get_contentElement().removeChild(a)}};C1.Web.UI.C1AjaxHelper=function(a){this.$2=a;(a)["getCallbackValueForServer"]=Function.createDelegate(this,this.$3)};C1.Web.UI.C1AjaxHelper.prototype={$1:null,$2:null,doAjaxRequest:function(c){C1.Web.UI.C1AjaxHelper.$0=++C1.Web.UI.C1AjaxHelper.$0;this.$1=C1.Web.UI.C1AjaxHelper.$0+"|"+c;var b=this.$2.get_id();var a=b+"DoAjaxRequest";window[a]();return C1.Web.UI.C1AjaxHelper.$0},$3:function(){return this.$1}};C1.Web.UI.ContentPanel=function(a){C1.Web.UI.ContentPanel.initializeBase(this,[a])};C1.Web.UI.ContentPanel.prototype={$7:null,$8:null,$9:null,setInnerElementsClassNames:function(a,b,c){this._propertiesState.OuterElementClassName=a;this._propertiesState.InnerElementClassName=b;this._propertiesState.ContentElementClassName=c},get_outerElementClassName:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.OuterElementClassName))?"C1Outer":this._propertiesState.OuterElementClassName},set_outerElementClassName:function(a){this._propertiesState.OuterElementClassName=a;return a},get_innerElementClassName:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.InnerElementClassName))?"C1Inner":this._propertiesState.InnerElementClassName},set_innerElementClassName:function(a){this._propertiesState.InnerElementClassName=a;return a},get_contentElementClassName:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ContentElementClassName))?"C1Content":this._propertiesState.ContentElementClassName},set_contentElementClassName:function(a){this._propertiesState.ContentElementClassName=a;return a},get_outerElement:function(){var b=this.element;var a=b.childNodes;for(var c=0;c<a.length;c++){if(a[c].tagName&&a[c].className){if(Sys.UI.DomElement.containsCssClass(a[c],this.get_outerElementClassName())){return a[c]}}}return null},get_innerElement:function(){var b=this.get_outerElement();if(b){var a=b.childNodes;for(var c=0;c<a.length;c++){if(a[c].tagName&&a[c].className){if(Sys.UI.DomElement.containsCssClass(a[c],this.get_innerElementClassName())){return a[c]}}}}return null},get_contentElement:function(){var b=this.get_innerElement();if(b){var a=b.childNodes;for(var c=0;c<a.length;c++){if(a[c].tagName&&a[c].className){if(Sys.UI.DomElement.containsCssClass(a[c],this.get_contentElementClassName())){return a[c]}}}}return null},get_contentUrl:function(){return(C1.Web.UI.Utils.Common.testIsNull(this._propertiesState.ContentUrl))?"":this._propertiesState.ContentUrl},set_contentUrl:function(a){this._propertiesState.ContentUrl=a;this.$A(this.get_contentUrl());return a},get_contentFrame:function(){return this.$7},get_visible:function(){return C1.Web.UI.ContentPanel.callBaseMethod(this,"get_visible")},set_visible:function(a){if(this.$7){C1.Web.UI.Utils.Common.setVisible(this.$7,a)}C1.Web.UI.ContentPanel.callBaseMethod(this,"set_visible",[a]);return a},dispose:function(){C1.Web.UI.ContentPanel.callBaseMethod(this,"dispose");if(this.$8){C1.Web.UI.Utils.Common.unListenVisibleState(this.element,this.$8);this.$8=null}},$A:function(a){if(C1.Web.UI.Utils.Common.testIsNull(a)||a===""){if(!C1.Web.UI.Utils.Common.testIsNull(this.$9)){this.get_contentElement().style.overflow=this.$9}}if(!a){return}if(this.isDOMVisible()){if(!this.$7){this.$7=document.createElement("iframe");this.$7.style.height=this.$7.style.width="100%";this.$7.frameBorder="0";this.get_contentElement().appendChild(this.$7)}if(this.$7.src&&this.$7.src===a){}else{this.$9=this.get_contentElement().style.overflow;this.get_contentElement().style.overflow="hidden";this.$7.src=a}}else{if(!this.$7&&a===""){}else{if(!this.$8){this.$8=Function.createDelegate(this,this.$B);C1.Web.UI.Utils.Common.listenVisibleState(this.element,this.$8)}}}},$B:function(b,a){if(a){this.$A(this.get_contentUrl())}}};C1.Web.UI.DockPanel=function(a){C1.Web.UI.DockPanel.initializeBase(this,[a]);Sys.UI.DomElement.addCssClass(a,"dock-panel")};C1.Web.UI.DockPanel.prototype={onResize:function(){if(this.get_visible()){this.invalidate()}},invalidate:function(){var o=new Array(0);var n=new Array(0);var l=new Array(0);var j=new Array(0);var h=0;var f=0;var d=0;var c=0;var b=null;for(var C=0;C<this.get_children().get_count();C++){var B=this.get_children().get_item(C);if(B.get_visible()){var A=this.getDock(B);if(A===1){this.$7(B);this.element.appendChild(B.element);B.invalidate();var z=B.get_offsetSize();h+=z.height}else{if(A===3){o[o.length]=B}else{if(A===5){l[l.length]=B}else{if(A===4){n[n.length]=B}else{if(A===2){j[j.length]=B}}}}}}}for(var y=0;y<o.length;y++){var x=o[y];this.$7(x);this.element.appendChild(x.element);x.addCssClass("c1-float-left");x.invalidate();var w=x.get_offsetSize();f+=w.width}for(var v=0;v<n.length;v++){var u=n[v];this.$7(u);if(!b){b=u}this.element.appendChild(u.element);u.addCssClass("c1-float-right");u.invalidate();var t=u.get_offsetSize();d+=t.width}for(var s=0;s<j.length;s++){var r=j[s];this.$7(r);if(!b){b=r}this.element.appendChild(r.element);r.addCssClass("c1_clear_both");r.invalidate();var q=r.get_offsetSize();c+=q.height}var a=this.get_offsetSize();var E=a.width-(f+d);E=Math.floor(E/l.length);if(E<0){E=0}var D=a.height-(h+c);if(D<0){D=0}for(var p=0;p<l.length;p++){var m=l[p];this.$7(m);if(b){this.element.insertBefore(m.element,b.element)}else{this.element.appendChild(m.element)}m.addCssClass("c1-float-left");C1.Web.UI.Utils.Common.setSize(m.element,new C1.Web.UI.Utils.Size(E,D));m.invalidate()}for(var k=0;k<n.length;k++){var i=n[k];C1.Web.UI.Utils.Common.setHeight(i.element,D)}for(var g=0;g<o.length;g++){var e=o[g];C1.Web.UI.Utils.Common.setHeight(e.element,D)}},addChild:function(b,a){this.get_children().add(b);this.setDock(b,a)},setDock:function(b,a){if(b.get_parent()!==this){throw Error.argument("Element is not a child of this DockPanel.")}(b)["__dockStyle"]=a},getDock:function(b){var a=(b)["__dockStyle"];return(!a||!(a))?5:a},$7:function(a){a.removeCssClass("c1-float-left");a.removeCssClass("c1-float-right");a.removeCssClass("c1_clear_both")}};C1.Web.UI.DOMScrollBehavior=function(a){this.$11=new Sys.UI.Point(0,0);this.$1C=1;this.$1D=1;this.$1E=2;this.$13=a;this.events=new Sys.EventHandlerList();this.$20=Function.createDelegate(this,this.onMouseOver);this.$21=Function.createDelegate(this,this.onMouseOut);this.$22=Function.createDelegate(this,this.onMouseMove);this.$27=Function.createDelegate(this,this.$32);this.$23=Function.createDelegate(this,this.onScrollButtonMouseDown);this.$24=Function.createDelegate(this,this.onScrollButtonMouseUp);this.$25=Function.createDelegate(this,this.onScrollButtonMouseOver);this.$26=Function.createDelegate(this,this.onScrollButtonMouseOut)};C1.Web.UI.DOMScrollBehavior.prototype={$0:"c1-domscrollbutton-top",$1:"c1-domscrollbutton-right",$2:"c1-domscrollbutton-bottom",$3:"c1-domscrollbutton-left",$4:"c1-domscrollbutton-top-active",$5:"c1-domscrollbutton-right-active",$6:"c1-domscrollbutton-bottom-active",$7:"c1-domscrollbutton-left-active",$8:"c1-domscrollbutton-top-disabled",$9:"c1-domscrollbutton-right-disabled",$A:"c1-domscrollbutton-bottom-disabled",$B:"c1-domscrollbutton-left-disabled",$C:false,$D:false,$E:false,$F:0,$10:20,$12:4,$13:null,$14:null,$15:null,$16:null,$17:null,$18:null,$19:null,$1A:null,$1B:null,$1F:false,$20:null,$21:null,$22:null,$23:null,$24:null,$25:null,$26:null,$27:null,$28:function(){C1.Web.UI.Utils.RawEvent.addHandler(this.$13,"mouseover",this.$20);C1.Web.UI.Utils.RawEvent.addHandler(this.$13,"mouseout",this.$21);C1.Web.UI.Utils.RawEvent.addHandler(this.$13,"mousemove",this.$22)},buttonsMarkerHash:null,$29:function(e,d){if(d){this.$2A(d)}if(e){C1.Web.UI.Utils.RawEvent.addHandler(e,"mousedown",this.$23);C1.Web.UI.Utils.RawEvent.addHandler(e,"mouseup",this.$24);C1.Web.UI.Utils.RawEvent.addHandler(e,"mouseover",this.$25);C1.Web.UI.Utils.RawEvent.addHandler(e,"mouseout",this.$26);if(this.buttonsMarkerHash){var c=this.buttonsMarkerHash;for(var b in c){var a={key:b,value:c[b]};(e)[a.key]=a.value}}}},$2A:function(a){C1.Web.UI.Utils.RawEvent.removeHandler(a,"mousedown",this.$23);C1.Web.UI.Utils.RawEvent.removeHandler(a,"mouseup",this.$24);C1.Web.UI.Utils.RawEvent.removeHandler(a,"mouseover",this.$25);C1.Web.UI.Utils.RawEvent.removeHandler(a,"mouseout",this.$26)},$2B:function(){if(this.$1C===1){return}if(this.$1C===5){this.$13.style.overflow="auto";return}else{this.$13.style.overflow="hidden"}if(this.$1C===4){return}if(this.$1D===2||this.$1D===3){this.set_topScrollButton(this.$36());this.$18=new C1.Web.UI.PopupBehavior(this.$14,1,0,0,this.$13);this.$18.markerHash=this.buttonsMarkerHash;this.set_bottomScrollButton(this.$36());this.$1A=new C1.Web.UI.PopupBehavior(this.$16,1,0,0,this.$13);this.$1A.markerHash=this.buttonsMarkerHash}if(this.$1D===1||this.$1D===3){this.set_rightScrollButton(this.$36());this.$19=new C1.Web.UI.PopupBehavior(this.$15,1,0,0,this.$13);this.$19.markerHash=this.buttonsMarkerHash;this.set_leftScrollButton(this.$36());this.$1B=new C1.Web.UI.PopupBehavior(this.$17,1,0,0,this.$13);this.$1B.markerHash=this.buttonsMarkerHash}},dispose:function(){this.$2C()},$2C:function(){if(!this.$1F){return}C1.Web.UI.Utils.RawEvent.removeHandler(this.$13,"mouseover",this.$20);C1.Web.UI.Utils.RawEvent.removeHandler(this.$13,"mouseout",this.$21);C1.Web.UI.Utils.RawEvent.removeHandler(this.$13,"mousemove",this.$22);this.$20=null;this.$21=null;this.$22=null;this.$27=null;this.$2D();this.$1F=false},$2D:function(){this.$2A(this.$14);this.$2A(this.$15);this.$2A(this.$16);this.$2A(this.$17);this.$23=null;this.$24=null;this.$25=null;this.$26=null},get_adjustScrollSpeed:function(){return this.$E},set_adjustScrollSpeed:function(a){this.$E=a;return a},get_fitButtonsBounds:function(){return this.$C},set_fitButtonsBounds:function(a){this.$C=a;return a},get_scrollOrientation:function(){return this.$1D},set_scrollOrientation:function(a){this.$1D=a;this.invalidate();return a},get_scrollMode:function(){return this.$1C},set_scrollMode:function(a){this.$1C=a;return a},get_scrollStep:function(){return this.$12},set_scrollStep:function(a){this.$12=a;return a},get_scrollButtonAlign:function(){return this.$1E},set_scrollButtonAlign:function(a){this.$1E=a;this.invalidate();return a},get_topScrollButton:function(){return this.$14},set_topScrollButton:function(a){this.$29(a,this.$14);this.$14=a;(a)["c1domscrlbtntype"]=1;Sys.UI.DomElement.addCssClass(a,this.$0);return a},get_rightScrollButton:function(){return this.$15},set_rightScrollButton:function(a){this.$29(a,this.$15);this.$15=a;(a)["c1domscrlbtntype"]=2;Sys.UI.DomElement.addCssClass(a,this.$1);return a},get_bottomScrollButton:function(){return this.$16},set_bottomScrollButton:function(a){this.$29(a,this.$16);this.$16=a;(a)["c1domscrlbtntype"]=3;Sys.UI.DomElement.addCssClass(a,this.$2);return a},get_leftScrollButton:function(){return this.$17},set_leftScrollButton:function(a){this.$29(a,this.$17);this.$17=a;(a)["c1domscrlbtntype"]=4;Sys.UI.DomElement.addCssClass(a,this.$3);return a},add_scrollButtonMouseOver:function(a){this.events.addHandler("ScrollButtonMouseOver",a)},remove_scrollButtonMouseOver:function(a){this.events.removeHandler("ScrollButtonMouseOver",a)},$2E:function(b){var a=this.events.getHandler("ScrollButtonMouseOver");if(a){a(this,b)}},initialize:function(){if(this.$1F){return}this.$2B();this.$28();this.$1F=true;this.invalidate()},assignCssClasses:function(b,a,c,d){if(this.$1F){Sys.UI.DomElement.removeCssClass(this.$14,this.$0);Sys.UI.DomElement.removeCssClass(this.$15,this.$1);Sys.UI.DomElement.removeCssClass(this.$16,this.$2);Sys.UI.DomElement.removeCssClass(this.$17,this.$3)}this.$0=b;this.$1=a;this.$2=c;this.$3=d;if(this.$1F){if(this.$14){Sys.UI.DomElement.addCssClass(this.$14,b)}if(this.$15){Sys.UI.DomElement.addCssClass(this.$15,a)}if(this.$16){Sys.UI.DomElement.addCssClass(this.$16,c)}if(this.$17){Sys.UI.DomElement.addCssClass(this.$17,d)}this.invalidate()}},assignActiveCssClasses:function(b,a,c,d){Sys.UI.DomElement.removeCssClass(this.$14,this.$4);Sys.UI.DomElement.removeCssClass(this.$15,this.$5);Sys.UI.DomElement.removeCssClass(this.$16,this.$6);Sys.UI.DomElement.removeCssClass(this.$17,this.$7);this.$4=b;this.$5=a;this.$6=c;this.$7=d;this.invalidate()},assignDisabledCssClasses:function(b,a,c,d){Sys.UI.DomElement.removeCssClass(this.$14,this.$8);Sys.UI.DomElement.removeCssClass(this.$15,this.$9);Sys.UI.DomElement.removeCssClass(this.$16,this.$A);Sys.UI.DomElement.removeCssClass(this.$17,this.$B);this.$8=b;this.$9=a;this.$A=c;this.$B=d;this.invalidate()},assignPropertiesUsingHash:function(a){if(!a){return}if(!C1.Web.UI.Utils.Common.testIsNull(a.ScrollMode)){this.$1C=a.ScrollMode}if(!C1.Web.UI.Utils.Common.testIsNull(a.AdjustScrollSpeed)){this.$E=a.AdjustScrollSpeed}if(!C1.Web.UI.Utils.Common.testIsNull(a.ScrollButtonAlign)){this.$1E=a.ScrollButtonAlign}if(!C1.Web.UI.Utils.Common.testIsNull(a.ScrollOrientation)){this.$1D=a.ScrollOrientation}if(!C1.Web.UI.Utils.Common.testIsNull(a.FitButtonsBounds)){this.$C=a.FitButtonsBounds}if(!C1.Web.UI.Utils.Common.testIsNull(a.ScrollStep)){this.$12=a.ScrollStep}if(!C1.Web.UI.Utils.Common.testIsNull(a.TopButtonCssClass)){this.$0=a.TopButtonCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.TopButtonActiveCssClass)){this.$4=a.TopButtonActiveCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.TopButtonDisabledCssClass)){this.$8=a.TopButtonDisabledCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.RightButtonCssClass)){this.$1=a.RightButtonCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.RightButtonActiveCssClass)){this.$5=a.RightButtonActiveCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.RightButtonDisabledCssClass)){this.$9=a.RightButtonDisabledCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.BottomButtonCssClass)){this.$2=a.BottomButtonCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.BottomButtonActiveCssClass)){this.$6=a.BottomButtonActiveCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.BottomButtonDisabledCssClass)){this.$A=a.BottomButtonDisabledCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.LeftButtonCssClass)){this.$3=a.LeftButtonCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.LeftButtonActiveCssClass)){this.$7=a.LeftButtonActiveCssClass}if(!C1.Web.UI.Utils.Common.testIsNull(a.LeftButtonDisabledCssClass)){this.$B=a.LeftButtonDisabledCssClass}},invalidate:function(){if(!this.$1F){return}if(this.$1C===1||this.$1C===5){return}var b=false;if(C1.Web.UI.Utils.Common.testIsNull(this.$13)||this.$13.style.display==="none"){b=true}if(this.$1C===4||b){if(this.$18){this.$18.hide()}if(this.$19){this.$19.hide()}if(this.$1A){this.$1A.hide()}if(this.$1B){this.$1B.hide()}return}var a=C1.Web.UI.Utils.Measurement.getBounds(this.$13);var d=false;var c=false;switch(this.$1D){case 1:if(this.$C){C1.Web.UI.Utils.Common.setHeight(this.$17,a.height);C1.Web.UI.Utils.Common.setHeight(this.$15,a.height)}d=true;break;case 2:if(this.$C){C1.Web.UI.Utils.Common.setWidth(this.$14,a.width);C1.Web.UI.Utils.Common.setWidth(this.$16,a.width)}c=true;break;case 3:if(this.$C){C1.Web.UI.Utils.Common.setHeight(this.$17,a.height);C1.Web.UI.Utils.Common.setHeight(this.$15,a.height);C1.Web.UI.Utils.Common.setWidth(this.$14,a.width);C1.Web.UI.Utils.Common.setWidth(this.$16,a.width)}d=true;c=true;break}this.$2F(d,c,a);this.updateButtonsState(0)},$2F:function(i,h,g){if(!g){g=C1.Web.UI.Utils.Measurement.getBounds(this.$13)}var f=null;var e=null;var d=null;var c=null;if(i){this.$17.style.display="block";this.$15.style.display="block";d=C1.Web.UI.Utils.Measurement.getBounds(this.$17);c=C1.Web.UI.Utils.Measurement.getBounds(this.$15)}else{}if(h){this.$14.style.display="block";this.$16.style.display="block";f=C1.Web.UI.Utils.Measurement.getBounds(this.$14);e=C1.Web.UI.Utils.Measurement.getBounds(this.$16)}else{}var b=g.width/2;var a=g.height/2;switch(this.$1E){case 1:if(i){this.$1B.set_x(0);this.$1B.set_y(0+Math.round(a-d.height/2));this.$1B.show();this.$19.set_x(d.width);this.$19.set_y(0+Math.round(a-c.height/2));this.$19.show()}if(h){this.$18.set_x(0+Math.round(b-f.width/2));this.$18.set_y(0);this.$18.show();this.$1A.set_x(0+Math.round(b-e.width/2));this.$1A.set_y(f.height);this.$1A.show()}break;case 3:if(i){this.$1B.set_x(g.width-d.width-c.width);this.$1B.set_y(0+Math.round(a-d.height/2));this.$1B.show();this.$19.set_x(g.width-c.width);this.$19.set_y(0+Math.round(a-c.height/2));this.$19.show()}if(h){this.$1A.set_x(0+Math.round(b-e.width/2));this.$1A.set_y(g.height-e.height);this.$1A.show();this.$18.set_x(0+Math.round(b-f.width/2));this.$18.set_y(g.height-f.height-e.height);this.$18.show()}break;case 2:if(i){this.$1B.set_x(0);this.$1B.set_y(0+Math.round(a-d.height/2));this.$1B.show();this.$19.set_x(g.width-c.width);this.$19.set_y(0+Math.round(a-c.height/2));this.$19.show()}if(h){this.$18.set_x(0+Math.round(b-f.width/2));this.$18.set_y(0);this.$18.show();this.$1A.set_x(0+Math.round(b-e.width/2));this.$1A.set_y(g.height-e.height);this.$1A.show()}break}},onResize:function(a){this.invalidate();return true},onMouseOver:function(a){return true},onMouseOut:function(a){this.$F=0;this.$31();return true},onMouseMove:function(k){var j=this.get_scrollButtonAlign();var i=this.get_scrollOrientation();if(this.$1C!==4){return true}var h=C1.Web.UI.Utils.Measurement.getMousePointerPosition(k);var g=C1.Web.UI.Utils.Measurement.getBounds(this.$13);if(!this.$11){this.$11=new Sys.UI.Point(0,0)}var f=false;if(i===1||i===3){var d=new Sys.UI.Bounds(g.x,g.y,this.$10,g.height);var c=new Sys.UI.Bounds(g.x+g.width-this.$10,g.y,this.$10,g.height);if(C1.Web.UI.Utils.Measurement.isPointInsideRect(h,d)){this.$11.x=-this.$12;f=true}else{if(C1.Web.UI.Utils.Measurement.isPointInsideRect(h,c)){this.$11.x=this.$12;f=true}}}if(i===2||i===3){var b=new Sys.UI.Bounds(g.x,g.y,g.width,this.$10);var a=new Sys.UI.Bounds(g.x,g.y+g.height-this.$10,g.width,this.$10);if(C1.Web.UI.Utils.Measurement.isPointInsideRect(h,b)){this.$11.y=-this.$12;f=true}else{if(C1.Web.UI.Utils.Measurement.isPointInsideRect(h,a)){this.$11.y=this.$12;f=true}}}if(f){this.$30(999)}else{this.$F=0;this.$31()}return true},onScrollButtonMouseDown:function(c){var b=C1.Web.UI.Utils.RawEvent.getTarget(c);if(b){if(!C1.Web.UI.Utils.Common.testIsNull((b)["c1domscrlbtntype"])){var a=(b)["c1domscrlbtntype"];this.$30(a)}}return true},onScrollButtonMouseUp:function(a){if(this.$1C===2){this.$F=0;this.$31()}return true},onScrollButtonMouseOver:function(c){if(this.$1C!==2){var b=C1.Web.UI.Utils.RawEvent.getTarget(c);if(b){if(!C1.Web.UI.Utils.Common.testIsNull((b)["c1domscrlbtntype"])){var a=(b)["c1domscrlbtntype"];if(this.$1C===3||this.$1C===4){this.$30(a)}}}}this.$2E(new Sys.EventArgs());return true},onScrollButtonMouseOut:function(a){this.$F=0;this.$31();return true},events:null,$30:function(a){if(a===999){if(this.$1C!==2){this.$D=true}}else{this.$11.x=0;this.$11.y=0;switch(a){case 1:this.$11.y=-this.$12;break;case 2:this.$11.x=this.$12;break;case 3:this.$11.y=this.$12;break;case 4:this.$11.x=-this.$12;break}this.$D=true}this.$32()},$31:function(){this.$11=new Sys.UI.Point(0,0);this.$D=false;if(this.$14){Sys.UI.DomElement.removeCssClass(this.$14,this.$4)}if(this.$15){Sys.UI.DomElement.removeCssClass(this.$15,this.$5)}if(this.$16){Sys.UI.DomElement.removeCssClass(this.$16,this.$6)}if(this.$17){Sys.UI.DomElement.removeCssClass(this.$17,this.$7)}},$32:function(){if(this.$E){this.$F++}var i=this.$13.scrollWidth;var h=this.$13.scrollWidth;var g=this.$13.scrollLeft;var f=this.$13.scrollTop;var e=C1.Web.UI.Utils.Measurement.getBounds(this.$13);var d=i-e.width;var c=h-e.height;var b=this.$11.y;if(b){if(b>0){b+=this.$F;if(this.$16){Sys.UI.DomElement.addCssClass(this.$16,this.$6)}}else{b-=this.$F;if(this.$14){Sys.UI.DomElement.addCssClass(this.$14,this.$4)}}this.$13.scrollTop+=b}var a=this.$11.x;if(a){if(a>0){a+=this.$F;if(this.$15){Sys.UI.DomElement.addCssClass(this.$15,this.$5)}}else{a-=this.$F;if(this.$17){Sys.UI.DomElement.addCssClass(this.$17,this.$7)}}this.$13.scrollLeft+=a}this.updateButtonsState(0);if(this.$D){window.setTimeout(this.$27,10)}else{this.$31()}},updateButtonsState:function(a){if(a>0){this.$34=C1.Web.UI.Utils.Common.clearPendingTimeout(this.$34);if(!this.$33){this.$33=Function.createDelegate(this,this.$35)}this.$34=window.setTimeout(this.$33,a)}else{this.$35()}},$33:null,$34:null,$35:function(){var b=this.$13.scrollWidth;var a=this.$13.scrollHeight;var h=this.$13.scrollLeft;var g=this.$13.scrollTop;var f=C1.Web.UI.Utils.Measurement.getBounds(this.$13);var e=b-f.width;var d=a-f.height;if(this.$14){Sys.UI.DomElement.removeCssClass(this.$14,this.$8)}if(this.$15){Sys.UI.DomElement.removeCssClass(this.$15,this.$9)}if(this.$16){Sys.UI.DomElement.removeCssClass(this.$16,this.$A)}if(this.$17){Sys.UI.DomElement.removeCssClass(this.$17,this.$B)}var c=this.get_scrollOrientation();if(c===1||c===3){if(h>=e){if(this.$15){Sys.UI.DomElement.addCssClass(this.$15,this.$9)}if(this.$11.x>0){this.$D=false}}else{}if(h<=0){if(this.$17){Sys.UI.DomElement.addCssClass(this.$17,this.$B)}if(this.$11.x<0){this.$D=false}}else{}}if(c===2||c===3){if(g>=d){if(this.$16){Sys.UI.DomElement.addCssClass(this.$16,this.$A)}if(this.$11.y>0){this.$D=false}}else{}if(g<=0){if(this.$14){Sys.UI.DomElement.addCssClass(this.$14,this.$8)}if(this.$11.y<0){this.$D=false}}else{}}},$36:function(){var a=document.createElement("DIV");a.style.display="none";this.$13.appendChild(a);return a}};C1.Web.UI.DragDropEventArgs=function(b,a,c){C1.Web.UI.DragDropEventArgs.initializeBase(this);this._element=b;this._dropTarget=a;this._domEvent=c};C1.Web.UI.DragDropEventArgs.prototype={_element:null,_dropTarget:null,_domEvent:null,_handled:false,get_element:function(){return this._element},get_dropTarget:function(){return this._dropTarget},get_domEvent:function(){return this._domEvent},get_handled:function(){return this._handled},set_handled:function(a){this._handled=a;return a}};C1.Web.UI.DragDrop=function(a){C1.Web.UI.DragDrop.initializeBase(this);this._dragHandles=[];this._dropTargets=[];this._element=a;this._docMouseMoveHandler=Function.createDelegate(this,this.onDocMouseMove);this._docMouseUpHandler=Function.createDelegate(this,this.onDocMouseUp);this._mouseDownHandler=Function.createDelegate(this,this.onMouseDown);this._draghandleMouseDownHandler=Function.createDelegate(this,this.onMouseDown)};C1.Web.UI.DragDrop.prototype={_element:null,_dragVisual:null,$1_0:false,$1_1:false,$1_2:false,_dragHandles:null,_dropTargets:null,_dragInProgress:false,_init:false,_dragElementVisibility:"hidden",_dragElementDisplay:"none",_originalDisplay:"",_docMouseMoveHandler:null,_docMouseUpHandler:null,_mouseDownHandler:null,_draghandleMouseDownHandler:null,initialize:function(){C1.Web.UI.DragDrop.callBaseMethod(this,"initialize");this._init=true;Sys.UI.DomEvent.addHandler(this.get_element(),"mousedown",this._mouseDownHandler)},dispose:function(){if(this._init&&this._mouseDownHandler&&this.get_element()){Sys.UI.DomEvent.removeHandler(this.get_element(),"mousedown",this._mouseDownHandler)}for(var a=0;a<this._dragHandles.length;a++){Sys.UI.DomEvent.removeHandler(this._dragHandles[a],"mousedown",this._draghandleMouseDownHandler)}C1.Web.UI.DragDrop.callBaseMethod(this,"dispose")},get_element:function(){return this._element},get_isDragInProgress:function(){return this._dragInProgress},get_dragElementVisibility:function(){return this._dragElementVisibility},set_dragElementVisibility:function(a){this._dragElementVisibility=a;return a},get_dragElementDisplay:function(){return this._dragElementDisplay},set_dragElementDisplay:function(a){this._dragElementDisplay=a;return a},get_dragVisual:function(){return this._dragVisual},set_dragVisual:function(a){this._dragVisual=a;return a},get_useElementAsDragVisual:function(){return this.$1_0},set_useElementAsDragVisual:function(a){this.$1_0=a;if(a){this.set_dragVisual(this.get_element())}return a},get_useModalLayer:function(){return this.$1_1},set_useModalLayer:function(a){this.$1_1=a;return a},get_startDragOnMouseMove:function(){return this.$1_2},set_startDragOnMouseMove:function(a){this.$1_2=a;return a},setDragHandle:function(a){if(this._mouseDownHandler){Sys.UI.DomEvent.removeHandler(this.get_element(),"mousedown",this._mouseDownHandler);this._mouseDownHandler=null}this._dragHandles[this._dragHandles.length]=a;Sys.UI.DomEvent.addHandler(a,"mousedown",this._draghandleMouseDownHandler)},setDropTarget:function(a){this._dropTargets[this._dropTargets.length]=a},beginDrag:function(a){this.onMouseDown(a)},getDropTargetAtPoint:function(c){var b=null;var a=this._dropTargets.length;for(var d=0;d<a;d++){if(C1.Web.UI.Utils.Measurement.isPointOverDOMElement(c,this._dropTargets[d])){b=this._dropTargets[d];break}}return b},onDragStart:function(b){var a=this.get_events().getHandler("dragstart");if(a){a(this,new C1.Web.UI.DragDropEventArgs(this.get_element(),null,b))}},onDrag:function(b){var a=this.get_events().getHandler("drag");if(a){a(this,new C1.Web.UI.DragDropEventArgs(this.get_element(),null,b))}},onDragOver:function(b,c){var a=this.get_events().getHandler("dragOver");if(a){a(this,new C1.Web.UI.DragDropEventArgs(this.get_element(),c,b))}},onDropped:function(b){var a=this.get_events().getHandler("drop");if(a){a(this,b)}},add_dragStart:function(a){this.get_events().addHandler("dragstart",a)},remove_dragStart:function(a){this.get_events().removeHandler("dragstart",a)},add_drag:function(a){this.get_events().addHandler("drag",a)},remove_drag:function(a){this.get_events().removeHandler("drag",a)},add_dragOver:function(a){this.get_events().addHandler("dragOver",a)},remove_dragOver:function(a){this.get_events().removeHandler("dragOver",a)},add_dropped:function(a){this.get_events().addHandler("drop",a)},remove_dropped:function(a){this.get_events().removeHandler("drop",a)},$1_3:null,_dragXOffset:0,_dragYOffset:0,$1_4:false,onMouseDown:function(b){if(this._dragInProgress){return}this._dragInProgress=true;Sys.UI.DomEvent.addHandler(document,"mouseup",this._docMouseUpHandler);Sys.UI.DomEvent.addHandler(document,"mousemove",this._docMouseMoveHandler);this.$1_4=false;if(!this.$1_2){var a=C1.Web.UI.Utils.Measurement.getMousePointerPosition(b.rawEvent);this.$1_5(a);this.onDragStart(b);this.$1_6()}b.preventDefault()},$1_5:function(a){if(this.get_useModalLayer()){C1.Web.UI.Utils.Common.showModalLayer(this.get_element(),false)}this.$1_3=C1.Web.UI.Utils.Measurement.getLocation(this.get_element());this._dragXOffset=a.x-this.$1_3.x;this._dragYOffset=a.y-this.$1_3.y;if(!this.get_dragVisual()){if(this.get_useElementAsDragVisual()){this.set_dragVisual(this.get_element())}else{this.set_dragVisual(this.get_element().cloneNode(true))}this.get_dragVisual().style.visibility="hidden"}},$1_6:function(){this.$1_4=true;if(!this.get_dragVisual().parentNode){document.body.appendChild(this.get_dragVisual())}this.get_dragVisual().style.visibility="visible";this._originalDisplay=this.get_element().style.display;if(!this.get_useElementAsDragVisual()){this.get_element().style.visibility=this.get_dragElementVisibility();this.get_element().style.display=this.get_dragElementDisplay()}this.get_dragVisual().style.position="absolute"},$1_7:false,$1_8:function(){if(this._dragInProgress){this.$1_6()}},onDocMouseMove:function(c){try{if(!this.$1_4){if(this.$1_7){c.preventDefault();return}this.$1_7=true;this.$1_5(C1.Web.UI.Utils.Measurement.getMousePointerPosition(c.rawEvent));this.onDragStart(c);window.setTimeout(Function.createDelegate(this,this.$1_8),1);c.preventDefault();return}this.$1_7=false;if(this.get_isDragInProgress()){var b=C1.Web.UI.Utils.Measurement.getMousePointerPosition(c.rawEvent);var a=b.x-this._dragXOffset;var f=b.y-this._dragYOffset;if(f<0){f=0}if(a<0){a=0}this.setLocation(this.get_dragVisual(),a,f);var e=this._dropTargets.length;if(!e){this.onDrag(c)}else{this.onDragOver(c,this.getDropTargetAtPoint(b))}c.preventDefault()}}catch(d){}},onDocMouseUp:function(c){this._dragInProgress=false;Sys.UI.DomEvent.removeHandler(document,"mousemove",this._docMouseMoveHandler);Sys.UI.DomEvent.removeHandler(document,"mouseup",this._docMouseUpHandler);C1.Web.UI.Utils.Common.hideModalLayer();var b=C1.Web.UI.Utils.Measurement.getMousePointerPosition(c.rawEvent);var a=new C1.Web.UI.DragDropEventArgs(this.get_element(),this.getDropTargetAtPoint(b),c);this.onDropped(a);if(this.get_useElementAsDragVisual()){}else{if(!a.get_handled()){b=C1.Web.UI.Utils.Measurement.getLocation(this.get_dragVisual());this.setLocation(this.get_element(),b.x,b.y)}}this.get_element().style.visibility="visible";this.get_element().style.display=this._originalDisplay;if(this.get_useElementAsDragVisual()){}else{this.get_dragVisual().style.visibility="hidden";if(this.get_dragVisual().parentNode){this.get_dragVisual().parentNode.removeChild(this.get_dragVisual())}}},setLocation:function(b,a,c){Sys.UI.DomElement.setLocation(b,a,c)}};C1.Web.UI.FlowPanel=function(a){C1.Web.UI.FlowPanel.initializeBase(this,[a])};C1.Web.UI.FlowPanel.setFlowPanelOrientation=function(j,b,d){var i="";var h="";if(Sys.UI.DomElement.containsCssClass(j,"c1-h-flow-right")){i="c1-h-flow-right";h="c1-h-child-right"}else{if(Sys.UI.DomElement.containsCssClass(j,"c1-h-flow")){i="c1-h-flow";h="c1-h-child"}else{if(Sys.UI.DomElement.containsCssClass(j,"c1-v-flow-right")){i="c1-v-flow-right";h="c1-v-child-right"}else{if(Sys.UI.DomElement.containsCssClass(j,"c1-v-flow")){i="c1-v-flow";h="c1-v-child"}else{}}}}var g="";var f="";if(!b){if(d){g="c1-h-flow-right";f="c1-h-child-right"}else{g="c1-h-flow";f="c1-h-child"}}else{if(d){g="c1-v-flow-right";f="c1-v-child-right"}else{g="c1-v-flow";f="c1-v-child"}}Sys.UI.DomElement.removeCssClass(j,i);Sys.UI.DomElement.addCssClass(j,g);var e=j.childNodes;for(var c=0;c<e.length;c++){var a=e[c];if(a.tagName&&a.className){Sys.UI.DomElement.removeCssClass(a,h);Sys.UI.DomElement.addCssClass(a,f)}}};C1.Web.UI.FlowPanel.determineOrientation=function(b){var a=" "+b.className+"";if(a.indexOf("c1-h-flow")!==-1){return 0}else{return 1}};C1.Web.UI.FlowPanel.prototype={get_flowRight:function(){if(Sys.UI.DomElement.containsCssClass(this.element,"c1-h-flow-right")){return true}if(Sys.UI.DomElement.containsCssClass(this.element,"c1-v-flow-right")){return true}return false},set_flowRight:function(a){if(this.get_flowRight()!==a){C1.Web.UI.FlowPanel.setFlowPanelOrientation(this.element,this.get_orientation(),a)}return a},get_orientation:function(){return C1.Web.UI.FlowPanel.determineOrientation(this.element)},set_orientation:function(a){if(this.get_orientation()!==a){C1.Web.UI.FlowPanel.setFlowPanelOrientation(this.element,a,this.get_flowRight())}return a}};C1.Web.UI.PopupBehavior=function(c,d,a,e,b){if(!c.parentNode||!c.parentNode.tagName){document.body.appendChild(c)}this.events=new Sys.EventHandlerList();this.element=c;if(a&&a>0){this.x=a}else{this.x=0}if(e&&e>0){this.y=e}else{this.y=0}if(!d){this.$13=1}else{this.$13=d}if(b){this.$14=b}else{this.$14=null}this.$15=null;this.$16=false;this.$0()};C1.Web.UI.PopupBehavior.prototype={_showAnimation_StoppedDelegate:null,_hideAnimation_StoppedDelegate:null,element:null,markerHash:null,$0:function(){this.$7();this.element.style.position="absolute"},dispose:function(){var a=this.element;if(a){if(this.$16){this.hide()}a.hideWindowedElementsIFrame=null}this.$14=null;this.element=null},$1:false,$2:false,get_autoHide:function(){return this.$1},set_autoHide:function(a){this.$1=a;return a},getMouseEvent:function(){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){if(C1.Web.UI.Utils.Common.testIsNull(window.event)){return null}return new Sys.UI.DomEvent(window.event)}var b=this.getMouseEvent.caller;while(!C1.Web.UI.Utils.Common.testIsNull(b)){var a=(b.arguments)[0];if(!C1.Web.UI.Utils.Common.testIsNull(b)){if(a.constructor==="MouseEvent"){return new Sys.UI.DomEvent(a)}}b=b.caller}return null},$3:null,$4:function(b){if(C1.Web.UI.Utils.Common.testIsNull(b)){b=new Sys.UI.DomEvent(window.event)}if(this.$2){this.$2=false;return}var a=(C1.Web.UI.Utils.Common.testIsNull(b.target))?b.rawEvent.srcElement:b.target;if(this.get_visible()&&this.get_autoHide()){if(!C1.Web.UI.Utils.Common.elementContains(this.element,a)){this.hide()}}},$5:function(){this.$2=true;this.$3=Function.createDelegate(this,this.$4);Sys.UI.DomEvent.addHandler(document,"mouseup",this.$3)},$6:function(){if(!C1.Web.UI.Utils.Common.testIsNull(this.$3)){Sys.UI.DomEvent.removeHandler(document,"mouseup",this.$3);this.$3=null}},add_postSetup:function(a){this.events.addHandler("postSetup",a)},remove_postSetup:function(a){this.events.removeHandler("postSetup",a)},setupPopup:function(){var b=this.element;var a=this.getBounds();Sys.UI.DomElement.setLocation(b,a.x,a.y);this.addBackgroundIFrame();if(this.$14){this.setZIndexOnTop(this.$14)}else{b.style.zIndex=1000}var c=this.events.getHandler("postSetup");if(!C1.Web.UI.Utils.Common.testIsNull(c)){c(this,null)}},$7:function(){var a=this.element;C1.Web.UI.Utils.Common.setVisible(a,false);if(a.originalWidth){a.style.width=a.originalWidth+"px";a.originalWidth=null}},$8:function(){var b=this.element;if(this.$15){Sys.UI.DomEvent.removeHandler(b,"move",this.$15);this.$15=null}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var a=b._hideWindowedElementsIFrame;if(a){a.style.display="none"}}this.$C(Sys.EventArgs.Empty)},adjustPopupPosition:function(c){var b=this.element;if(!c){c=this.getBounds()}var a=C1.Web.UI.Utils.Measurement.getBounds(b);var d=false;if(a.x<0){c.x-=a.x;d=true}if(a.y<0){c.y-=a.y;d=true}if(d){Sys.UI.DomElement.setLocation(b,c.x,c.y)}else{}},addBackgroundIFrame:function(){var b=this.element;var a=null;if((Sys.Browser.agent===Sys.Browser.InternetExplorer)&&(Sys.Browser.version<7)){a=b._hideWindowedElementsIFrame;if(!a){a=document.createElement("iframe");a.style.position="absolute";a.style.display="none";a.scrolling="no";a.frameBorder="0";a.tabIndex=-1;a.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";b.parentNode.insertBefore(a,b);b._hideWindowedElementsIFrame=a;this.$15=Function.createDelegate(this,this.$F);Sys.UI.DomEvent.addHandler(b,"move",this.$15)}C1.Web.UI.Utils.Common.setBounds(a,C1.Web.UI.Utils.Measurement.getBounds(b));a.style.display=b.style.display;a.style.left=b.style.left;a.style.top=b.style.top;if(b.currentStyle){a.style.zIndex=(b.currentStyle.zIndex-1)}else{a.style.zIndex=(b.style.zIndex-1)}}},show:function(){if(this.$16){this.setupPopup();return}var b=new Sys.CancelEventArgs();this.$9(b);if(b.get_cancel()){return}if(this.get_autoHide()){this.$5()}this.$16=true;var a=this.element;Sys.UI.DomElement.addCssClass(a,"c1-transparent");C1.Web.UI.Utils.Common.setVisible(a,true);this.setupPopup();Sys.UI.DomElement.removeCssClass(a,"c1-transparent");this.$E(Sys.EventArgs.Empty);if(this.$19){this.$10()}else{Sys.UI.DomElement.removeCssClass(a,"c1-transparent");this.$A(Sys.EventArgs.Empty)}},showAt:function(a){this.set_x(a.x);this.set_y(a.y);this.show()},hide:function(){if(!this.$16){return}var a=new Sys.CancelEventArgs();this.$B(a);if(a.get_cancel()){return}this.$6();this.$16=false;if(this.$1A){this.$11()}else{this.$7();this.$8()}},getBounds:function(){var i=this.element;var h=i.offsetParent;if(!h){h=document.documentElement}var g={x:0,y:0};var f;var e=new Sys.UI.Point(0,0);if(this.$14){f=C1.Web.UI.Utils.Measurement.getBounds(this.$14);e=C1.Web.UI.Utils.Measurement.getLocation(h);g={x:f.x-e.x,y:f.y-e.y}}else{f=C1.Web.UI.Utils.Measurement.getBounds(h)}var d=C1.Web.UI.Utils.Measurement.getBounds(i);var c=d.width;var b=d.height;var a;switch(this.$13){case 2:a={x:Math.round(f.width/2-(c/2)),y:Math.round(f.height/2-(b/2))};break;case 3:a={x:0,y:-b};break;case 4:a={x:f.width-c,y:-b};break;case 5:a={x:Math.round(f.width/2-(c/2)),y:-b};break;case 6:a={x:f.width,y:0};break;case 7:a={x:f.width,y:f.height-b};break;case 8:a={x:f.width,y:Math.round(f.height/2-(b/2))};break;case 9:a={x:0,y:f.height};break;case 10:a={x:f.width-c,y:f.height};break;case 11:a={x:Math.round(f.width/2-(c/2)),y:f.height};break;case 12:a={x:-c,y:0};break;case 13:a={x:-c,y:f.height-b};break;case 14:a={x:-c,y:Math.round(f.height/2-(b/2))};break;default:a={x:0,y:0};break}a.x=a.x+this.x+g.x;a.y=a.y+this.y+g.y;var l=new Sys.UI.Bounds(a.x,a.y,c,b);if(this.$17){var k=C1.Web.UI.Utils.Measurement.getWindowClientAreaBounds();var j=new Sys.UI.Bounds(l.x+e.x,l.y+e.y,l.width,l.height);if(j.x<k.x){if(this.$18&&(this.$13===12||this.$13===14||this.$13===13)){l.x=l.x+f.width+l.width}else{l.x=k.x}}if(j.y<k.y){if(this.$18&&(this.$13===3||this.$13===5||this.$13===4)){l.y=l.y+f.height+l.height}else{l.y=k.y}}if((j.x+j.width)>(k.x+k.width)){if(this.$18&&(this.$13===6||this.$13===8||this.$13===7)){l.x=l.x-f.width-l.width}else{l.x-=((j.x+j.width)-(k.x+k.width))}}if((j.y+j.height)>(k.y+k.height)){if(this.$18&&(this.$13===9||this.$13===11||this.$13===10)){l.y=l.y-f.height-l.height}else{l.y-=((j.y+j.height)-(k.y+k.height))}}}return l},setZIndex:function(b){var c=this.element;c.style.zIndex=b;var a=c._hideWindowedElementsIFrame;if(a){if(c.currentStyle){a.style.zIndex=(c.currentStyle.zIndex-1)}else{a.style.zIndex=(c.style.zIndex-1)}}},setZIndexOnTop:function(a){var b=C1.Web.UI.Utils.Common.getMaxZIndex(a)+2;if(b>C1.Web.UI.PopupBehavior.$12){C1.Web.UI.PopupBehavior.$12=b}else{b=++C1.Web.UI.PopupBehavior.$12}this.setZIndex(b)},get_parentElement:function(){return this.$14},set_parentElement:function(a){this.$14=a;this.adjustZIndex();return a},get_windowCollisionDetection:function(){return this.$17},set_windowCollisionDetection:function(a){this.$17=a;return a},get_strictDock:function(){return this.$18},set_strictDock:function(a){this.$18=a;return a},get_positionMode:function(){return this.$13},set_positionMode:function(a){this.$13=a;this.adjustPositionMode();return a},get_x:function(){return this.x},set_x:function(a){if(a!==this.x){this.x=a;if(this.$16){this.setupPopup()}}return a},get_y:function(){return this.y},set_y:function(a){if(a!==this.y){this.y=a;if(this.$16){this.setupPopup()}}return a},get_visible:function(){return this.$16},get_showAnimation:function(){return this.$19},set_showAnimation:function(a){this.$19=a;return a},get_hideAnimation:function(){return this.$1A},set_hideAnimation:function(a){this.$1A=a;return a},add_showing:function(a){this.events.addHandler("showing",a)},remove_showing:function(a){this.events.removeHandler("showing",a)},$9:function(b){var a=this.events.getHandler("showing");if(a){a(this,b)}},add_shown:function(a){this.events.addHandler("shown",a)},remove_shown:function(a){this.events.removeHandler("shown",a)},$A:function(h){if(this.markerHash){var e=this.element;var d=e._hideWindowedElementsIFrame;var c=null;if(d){c=this.$D(d)}var i=this.markerHash;for(var g in i){var b={key:g,value:i[g]};(e)[b.key]=b.value;if(d){(d)[b.key]=b.value;try{if(c){(c)[b.key]=b.value;if(c.body){(c.body)[b.key]=b.value}}}catch(a){}}}}var f=this.events.getHandler("shown");if(f){f(this,h)}},add_hiding:function(a){this.events.addHandler("hiding",a)},remove_hiding:function(a){this.events.removeHandler("hiding",a)},$B:function(b){var a=this.events.getHandler("hiding");if(a){a(this,b)}},add_hidden:function(a){this.events.addHandler("hidden",a)},remove_hidden:function(a){this.events.removeHandler("hidden",a)},$C:function(b){var a=this.events.getHandler("hidden");if(a){a(this,b)}},$D:function(b){try{if((b)["contentDocument"]){return b.contentDocument}else{if(b.contentWindow){return b.contentWindow.document}else{if((b)["document"]){return(b)["document"]}}}}catch(a){}return null},add_setupPopupDone:function(a){this.events.addHandler("SetupPopup",a)},remove_setupPopupDone:function(a){this.events.removeHandler("SetupPopup",a)},$E:function(b){var a=this.events.getHandler("SetupPopup");if(a){a(this,b)}},adjustZIndex:function(){},adjustPositionMode:function(){},$F:function(c){var b=this.element;var a=b._hideWindowedElementsIFrame;if(a){b.parentNode.insertBefore(a,b);a.style.top=b.style.top;a.style.left=b.style.left}},$10:function(){if(!this.$19){return}if(!this._showAnimation_StoppedDelegate){this._showAnimation_StoppedDelegate=Function.createDelegate(this,this._showAnimation_Stopped)}this.$19.set_endHandler(this._showAnimation_StoppedDelegate);if(this.$1A&&this.$1A.get_isAnimating()){this.$1A.stop()}if(this.$19&&this.$19.get_isAnimating()){this.$19.stop()}this.$19.start(1)},$11:function(){if(!this.$1A){return}this.$1A.start(1);if(!this._hideAnimation_StoppedDelegate){this._hideAnimation_StoppedDelegate=Function.createDelegate(this,this._hideAnimation_Stopped)}this.$1A.set_endHandler(this._hideAnimation_StoppedDelegate)},_showAnimation_Stopped:function(a,b){this.$19.set_endHandler(null);C1.Web.UI.Utils.Common.setVisible(this.element,true);this.setupPopup();this.$A(Sys.EventArgs.Empty)},_hideAnimation_Stopped:function(a,b){this.$1A.set_endHandler(null);this.$7();this.$8()},x:0,y:0,$13:0,$14:null,$15:null,$16:false,$17:true,$18:false,$19:null,$1A:null,events:null,beginUpdate:function(){},endUpdate:function(){}};C1.Web.UI.C1Rounder=function(a){C1.Web.UI.C1Rounder.initializeBase(this,[a]);this._element=a;this._container=document.createElement("span");this._borderTop=document.createElement("b");this._borderBottom=document.createElement("b")};C1.Web.UI.C1Rounder.prototype={_element:null,_container:null,_borderTop:null,_borderBottom:null,_roundTopLeft:true,_roundTopRight:true,_roundBottomLeft:true,_roundBottomRight:true,_minorRadius:15,_mayorRadius:15,_borderColor:"#ccc",_backgroundColor:"#c2c2c2",initialize:function(){C1.Web.UI.C1Rounder.callBaseMethod(this,"initialize")},drowBorder:function(){this._container.style.borderColor=this._borderColor;this._container.style.borderLeftWidth="1px";this._container.style.borderRightWidth="1px";this._container.style.borderTopWidth="0px";this._container.style.borderBottomWidth="0px";this._container.style.borderStyle="solid";this._container.style.display="block";this._container.style.backgroundColor=this._backgroundColor;this._element.parentNode.replaceChild(this._container,this._element);this._container.appendChild(this._element);this.$2_0();this.$2_1()},$2_0:function(){var a=1;this._borderTop=document.createElement("b");this._borderTop.id="c1rounder_toplayer_"+a.toString();this._borderTop.style.display="block";this._borderTop.style.backgroundColor="transparent";a++;this._container.parentNode.insertBefore(this._borderTop,this._container);this.$2_2(a,this._minorRadius,0)},$2_1:function(){var b=1;this._borderBottom=document.createElement("b");this._borderBottom.id="c1rounder_bottomlayer_"+b.toString();this._borderBottom.style.display="block";this._borderBottom.style.backgroundColor="transparent";b++;var a=this._container.nextSibling;if(a){this._container.parentNode.insertBefore(this._borderBottom,a)}else{this._container.parentNode.appendChild(this._borderBottom)}this.$2_3(b,this._minorRadius,0)},$2_2:function(f,d,c){var b=Sys.UI.DomElement.getElementById("c1rounder_toplayer_"+(f-1).toString(),this._borderTop);var a=document.createElement("b");a.id="c1rounder_toplayer_"+f.toString();var g=Math.ceil(this.$2_5(f,d));var e=1;this.$2_7(a,e);a.style.backgroundColor=this._backgroundColor;a.style.display="block";a.style.fontSize="1px";a.style.overflow="hidden";a.style.borderColor=this._borderColor;a.style.borderStyle="solid";a.style.borderTopWidth="0px";a.style.borderBottomWidth="0px";a.style.borderLeftWidth="1px";a.style.borderRightWidth="1px";if(f===d){a.style.backgroundColor=this._borderColor}if(this._roundTopLeft){a.style.borderLeftWidth=(g-c).toString()+"px";if(!(g-c)){a.style.borderLeftWidth="1px"}a.style.marginLeft=c.toString()+"px"}if(this._roundTopRight){a.style.borderRightWidth=(g-c).toString()+"px";if(!(g-c)){a.style.borderRightWidth="1px"}a.style.marginRight=c.toString()+"px"}if(b){this._borderTop.insertBefore(a,b)}else{this._borderTop.appendChild(a)}f++;if(f<=d){this.$2_2(f,d,g)}},$2_3:function(e,d,c){var b=document.createElement("b");b.id="c1rounder_bottomlayer_"+e.toString();var a=Math.ceil(this.$2_5(e,d));var f=1;this.$2_7(b,f);b.style.backgroundColor=this._backgroundColor;b.style.display="block";b.style.fontSize="1px";b.style.overflow="hidden";b.style.borderColor=this._borderColor;b.style.borderStyle="solid";b.style.borderTopWidth="0px";b.style.borderBottomWidth="0px";b.style.borderLeftWidth="1px";b.style.borderRightWidth="1px";if(e===d){b.style.backgroundColor=this._borderColor}if(this._roundBottomLeft){b.style.borderLeftWidth=(a-c).toString()+"px";if(!(a-c)){b.style.borderLeftWidth="1px"}b.style.marginLeft=c.toString()+"px"}if(this._roundBottomRight){b.style.borderRightWidth=(a-c).toString()+"px";if(!(a-c)){b.style.borderRightWidth="1px"}b.style.marginRight=c.toString()+"px"}this._borderBottom.appendChild(b);e++;if(e<=d){this.$2_3(e,d,a)}},$2_4:function(b,a){return Math.asin(b/a)},$2_5:function(b,a){return this._mayorRadius-this._mayorRadius*Math.cos(this.$2_4(b,a))},$2_6:function(b,a){b.style.width=a.toString()+"px"},$2_7:function(b,a){b.style.height=a.toString()+"px"},get_minorRadius:function(){return this._minorRadius},set_minorRadius:function(a){this._minorRadius=a;return a},get_mayorRadius:function(){return this._mayorRadius},set_mayorRadius:function(a){this._mayorRadius=a;return a},get_borderColor:function(){return this._borderColor},set_borderColor:function(a){this._borderColor=a;return a},get_backgroundColor:function(){return this._backgroundColor},set_backgroundColor:function(a){this._backgroundColor=a;return a},get_roundTopLeft:function(){return this._roundTopLeft},set_roundTopLeft:function(a){this._roundTopLeft=a;return a},get_roundTopRight:function(){return this._roundTopRight},set_roundTopRight:function(a){this._roundTopRight=a;return a},get_roundBottomLeft:function(){return this._roundBottomLeft},set_roundBottomLeft:function(a){this._roundBottomLeft=a;return a},get_roundBottomRight:function(){return this._roundBottomRight},set_roundBottomRight:function(a){this._roundBottomRight=a;return a}};C1.Web.UI.ScrollBehavior=function(b,a,c,d){C1.Web.UI.ScrollBehavior.initializeBase(this);if(!b||typeof(a)==="undefined"){throw Error.argumentNull("parameter null")}if(typeof(c)==="undefined"){c=true}if(typeof(d)==="undefined"){d=false}this.$1_0=b;this.$1_2=a;this.$1_D=true;if(!d){this.$1_1=this.$1_0.parentNode}else{this.$1_1=this.$1_1C();this.$1_D=false}this.$1_0.style.position="relative";this.$1_3=2;this.$1_4=0;this.$1_5=false;this.$1_E=0;this.$1_11=true;this.$1_12="decButton";this.$1_13="decButtonDisabled";this.$1_14="incButton";this.$1_15="incButtonDisabled";this.$1_7=null;this.$1_8=1;this.$1_9=1;this.$1_A=1;this.$1_B=false;this.$1_6=c;this.$1_C=18;this.$1_1A=Function.createDelegate(this,this.$1_26);this.$1_16=Function.createDelegate(this,this.$1_21);this.$1_17=Function.createDelegate(this,this.$1_22);this.$1_18=Function.createDelegate(this,this.$1_23);this.$1_19=Function.createDelegate(this,this.$1_25);this.$1_1B=Function.createDelegate(this,this.$1_27);Sys.UI.DomEvent.addHandler(this.$1_1,"resize",this.$1_1A);if(!this.$1_6){Sys.UI.DomEvent.addHandler(this.$1_1,"mousemove",this.$1_1B);Sys.UI.DomEvent.addHandler(this.$1_1,"mouseout",this.$1_19)}this.initialize()};C1.Web.UI.ScrollBehavior.prototype={$1_0:null,$1_1:null,_decButton:null,_incButton:null,$1_2:0,$1_3:0,$1_4:0,$1_5:false,$1_6:false,$1_7:null,$1_8:0,$1_9:0,$1_A:0,$1_B:false,$1_C:0,$1_D:false,$1_E:0,$1_F:0,$1_10:0,$1_11:false,$1_12:null,$1_13:null,$1_14:null,$1_15:null,$1_16:null,$1_17:null,$1_18:null,$1_19:null,$1_1A:null,$1_1B:null,initialize:function(){if(this.get_isInitialized()){return}this.$1_20();this.$1_29();this.$1_28();this.$1_2C();this.$1_2E();this.$1_32();C1.Web.UI.ScrollBehavior.callBaseMethod(this,"initialize")},$1_1C:function(){var b=this.$1_0.parentNode;var a=document.createElement("div");a.appendChild(this.$1_0);a.style.position="relative";a.align="left";b.appendChild(a);if(!this.get_orientation()){var e=0;for(var d=0;d<this.$1_0.childNodes.length;d++){if(this.$1_0.childNodes[d].nodeType===1){e+=this.$1_0.childNodes[d].offsetWidth}}this.$1_0.style.width=(e+3)+"px";a.style.width="100%"}else{a.style.styleFloat="left";a.style.cssFloat="left";var c=this.$1_0.style.display;this.$1_0.style.display="none";if(b.parentNode){b=b.parentNode}a.style.height=b.offsetHeight+"px";this.$1_0.style.display=c}return a},$1_1D:function(){if(this.$1_D){return}var a=this.$1_1.parentNode;a.appendChild(this.$1_0);this.$1_0.style.width="100%";a.removeChild(this.$1_1);this.$1_1=null},dispose:function(){if(this.$1_7){this.$1_7.dispose();this.$1_7=null}if(this._decButton){this.$1_1.removeChild(this._decButton)}if(this._incButton){this.$1_1.removeChild(this._incButton)}Sys.UI.DomEvent.removeHandler(this.$1_1,"resize",this.$1_1A);if(!this.$1_6){Sys.UI.DomEvent.removeHandler(this.$1_1,"mousemove",this.$1_1B);Sys.UI.DomEvent.removeHandler(this.$1_1,"mouseout",this.$1_19)}this.$1_1D();C1.Web.UI.ScrollBehavior.callBaseMethod(this,"dispose")},changeButtonClasses:function(d,c,b,a){this.$1_12=d;this.$1_13=c;this.$1_14=b;this.$1_15=a;this.$1_2E();this.$1_2D()},get_element:function(){return this.$1_0},get_value:function(){return this.$1_E},set_value:function(a){this.$1_2F(a);return a},get_minimum:function(){return this.$1_F},set_minimum:function(a){this.$1_F=Math.min(a,this.$1_10);return a},get_maximum:function(){return this.$1_10},set_maximum:function(a){this.$1_10=Math.max(a,this.$1_F);return a},get_orientation:function(){return this.$1_2},get_decButtonClass:function(){return this.$1_12},get_decButtonDisabledClass:function(){return this.$1_13},get_incButtonClass:function(){return this.$1_14},get_incButtonDisabledClass:function(){return this.$1_15},get_enabled:function(){return this.$1_11},set_enabled:function(a){this.$1_11=a;return a},get_buttonHoverScroll:function(){return this.$1_5},set_buttonHoverScroll:function(a){if(a!==this.$1_5){this.$1_5=a}return a},get_scrollStep:function(){return this.$1_9},set_scrollStep:function(a){this.$1_9=Math.min(10,Math.max(1,a));return a},get_buttonAlign:function(){return this.$1_3},set_buttonAlign:function(a){if(a!==this.$1_3){this.$1_3=a;this.$1_E=0;this.$1_2D()}return a},get_buttonGap:function(){return this.$1_4},set_buttonGap:function(a){if(a<0){a=0}if(a!==this.$1_4){this.$1_4=a;this.$1_2D()}return a},get_isScrolling:function(){return(this.$1_7&&this.$1_7.get_enabled())},add_scrollStart:function(a){this.get_events().addHandler("scrollstart",a)},remove_scrollStart:function(a){this.get_events().removeHandler("scrollstart",a)},$1_1E:function(b){var a=this.get_events().getHandler("scrollstart");if(a){a(this,b)}},add_scrollStop:function(a){this.get_events().addHandler("scrollstop",a)},remove_scrollStop:function(a){this.get_events().removeHandler("scrollstop",a)},$1_1F:function(b){var a=this.get_events().getHandler("scrollstop");if(a){a(this,b)}},$1_20:function(){if(!this.$1_1){return}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){this.$1_1.style.overflow="visible";if(!this.$1_2){this.$1_1.style.overflowX="hidden";this.$1_1.style.overflowY="hidden"}else{this.$1_1.style.overflowX="";this.$1_1.style.overflowY="hidden"}}else{this.$1_1.style.overflow="hidden"}},$1_21:function(a){if(!this.$1_11){return}this.$1_A=3;if(a.target===this._incButton){this.$1_8=-1}else{this.$1_8=1}if(!this.$1_5){this.$1_33()}},$1_22:function(a){this.$1_A=1;if(!this.$1_5){this.$1_34()}},$1_23:function(a){if(!this.$1_11){return}if(!this.$1_5){return}this.$1_A=1;if(a.target===this._incButton){this.$1_8=-1}else{this.$1_8=1}this.$1_33()},$1_24:function(a){while(a){if(a===this.$1_1){return true}a=a.parentNode}return false},$1_25:function(a){if(!this.$1_6){if(a.rawEvent.toElement){if(!this.$1_24(a.rawEvent.toElement)){this.$1_34()}}}else{if(!this.$1_5){return}this.$1_34()}},$1_26:function(a){if(!this.get_isInitialized()){return}if(this.$1_B){return}this.$1_2D()},$1_27:function(i){var h=1;var g=false;var f=i.offsetY;var e=i.offsetX;var d=1;var c=0;var b=0;var a=i.target;while(a!==this.$1_1&&a){if(a.tagName.toLowerCase()==="li"||a.tagName.toLowerCase()==="ul"){c+=a.offsetLeft+a.scrollLeft;b+=a.offsetTop+a.scrollTop}a=a.parentNode}f+=b;e+=c;if(!this.$1_2){if(e<this.$1_C){g=true;d=this.$1_C-e}else{if(e>(this.$1_1.offsetWidth-this.$1_C)){g=true;h=-1;d=e-(this.$1_1.offsetWidth-this.$1_C)}}}else{if(f<this.$1_C){g=true;d=this.$1_C-f}else{if(f>(this.$1_1.offsetHeight-this.$1_C)){g=true;h=-1;d=f-(this.$1_1.offsetHeight-this.$1_C)}}}if(g){d=Math.abs(d);this.$1_A=Math.max(1,d/6);if(!this.get_isScrolling()){this.$1_8=h;this.$1_33()}else{if(h!==this.$1_8){this.$1_8=h;this.$1_33()}}}else{if(this.get_isScrolling()){this.$1_34()}}},$1_28:function(){if(!this.$1_6){return}this._decButton.style.left="";this._decButton.style.top="";this._decButton.style.right="";this._decButton.style.bottom="";this._incButton.style.left="";this._incButton.style.top="";this._incButton.style.right="";this._incButton.style.bottom="";if(!this.$1_2){this._decButton.style.top="0px";this._incButton.style.top="0px";switch(this.$1_3){case 0:this._decButton.style.left="0px";this._incButton.style.left=(this._decButton.offsetWidth+this.$1_4)+"px";break;case 2:this._incButton.style.right="0px";this._decButton.style.right=(this._incButton.offsetWidth+this.$1_4)+"px";break;case 1:this._decButton.style.left="0px";this._incButton.style.right="0px";break}}else{this._decButton.style.left="0px";this._incButton.style.left="0px";switch(this.$1_3){case 0:this._decButton.style.top="0px";this._incButton.style.top=(this._decButton.offsetHeight+this.$1_4)+"px";break;case 2:this._incButton.style.bottom="0px";this._decButton.style.bottom=(this._incButton.offsetHeight+this.$1_4)+"px";break;case 1:this._decButton.style.top="0px";this._incButton.style.bottom="0px";break}}},$1_29:function(){if(!this.$1_6){return}if(!this._decButton){this._decButton=this.$1_2A(1)}if(!this._incButton){this._incButton=this.$1_2A(-1)}},$1_2A:function(b){var a=document.createElement("a");a.href="javascript:void(0);";a.className=(b===1)?this.$1_12:this.$1_14;a.style.zIndex=4000;a.style.position="absolute";a.innerText="";this.$1_1.appendChild(a);Sys.UI.DomEvent.addHandler(a,"mousedown",this.$1_16);Sys.UI.DomEvent.addHandler(a,"mouseup",this.$1_17);Sys.UI.DomEvent.addHandler(a,"mouseover",this.$1_18);Sys.UI.DomEvent.addHandler(a,"mouseout",this.$1_19);return a},$1_2B:0,$1_2C:function(){var b=(!this.$1_2)?this.$1_1.offsetWidth:this.$1_1.offsetHeight;var a=(!this.$1_2)?this.$1_0.offsetWidth:this.$1_0.offsetHeight;if(this.$1_6){var d=(!this.$1_2)?this._decButton.offsetWidth:this._decButton.offsetHeight;var c=(!this.$1_2)?this._incButton.offsetWidth:this._incButton.offsetHeight;this.$1_2B=d+c+this.$1_4;if(this.$1_3!==1){b=Math.max(0,b-this.$1_2B)}}else{this.$1_2B=0}this.$1_F=0;this.$1_10=Math.max(0,a-b);this.$1_C=Math.min(b/2,18)},$1_2D:function(){if(this.$1_B){return}this.$1_B=true;this.$1_28();this.$1_2C();this.$1_2E();this.$1_32();this.$1_B=false},$1_2E:function(){if(!this.$1_6){return}var b=this.$1_10>this.$1_F;var a=this.$1_10>this.$1_F;var f=this.$1_11&&(this.$1_E>this.$1_F);var e=this.$1_11&&(this.$1_E<this.$1_10);this._decButton.disabled=!f;this._incButton.disabled=!e;var d=(f)?this.$1_12:this.$1_13;var c=(e)?this.$1_14:this.$1_15;if(this._decButton.className!==d){this._decButton.className=d}if(this._incButton.className!==c){this._incButton.className=c}if(this.$1_3===1){if(!f){b=false}if(!e){a=false}this._decButton.style.display=(b)?"":"none";this._incButton.style.display=(a)?"":"none"}},$1_2F:function(a){if(a<=this.$1_F){this.$1_34()}if(a>=this.$1_10){this.$1_34()}a=Math.max(a,this.$1_F);a=Math.min(a,this.$1_10);this.$1_E=a;if(!this.$1_3){a-=this.$1_2B+2}a=-a;if(!this.$1_2){this.$1_0.style.left=a+"px"}else{this.$1_0.style.top=a+"px"}this.$1_2E()},$1_30:null,$1_31:function(b,a){this.$1_32()},$1_32:function(){var b=this.$1_E;var a=this.$1_A*this.$1_9;if(this.$1_8===1){a=-a}b+=a;this.$1_2F(b)},$1_33:function(){if(this.get_isScrolling()){this.$1_34()}if(!this.$1_30){this.$1_30=Function.createDelegate(this,this.$1_31)}if(!this.$1_7){this.$1_7=new C1.Web.UI.Timer();this.$1_7.add_tick(this.$1_30)}this.$1_7.set_interval(10);this.$1_7.set_enabled(true);this.$1_1E(Sys.EventArgs.Empty)},$1_34:function(){if(this.get_isScrolling()){this.$1_1F(Sys.EventArgs.Empty);this.$1_7.set_enabled(false)}this.$1_A=1}};C1.Web.UI.ScrollBehaviorSettings=function(){this.events=new Sys.EventHandlerList();this._propertiesState={}};C1.Web.UI.ScrollBehaviorSettings.prototype={get_scrollButtonAlign:function(){return this.$0("ScrollButtonAlign",2)},set_scrollButtonAlign:function(a){this.$1("ScrollButtonAlign",a);return a},get_scrollMode:function(){return this.$0("ScrollMode",1)},set_scrollMode:function(a){this.$1("ScrollMode",a);return a},get_scrollPosition:function(){return this.$0("ScrollPosition",0)},set_scrollPosition:function(a){this.$1("ScrollPosition",a);return a},get_scrollOrientation:function(){return this.$0("ScrollOrientation",0)},set_scrollOrientation:function(a){this.$1("ScrollOrientation",a);return a},add_propertyChanged:function(a){this.events.addHandler("PropertyChanged",a)},remove_propertyChanged:function(a){this.events.removeHandler("PropertyChanged",a)},raisePropertyChanged:function(b){var a=this.events.getHandler("PropertyChanged");if(a){a(this,new Sys.PropertyChangedEventArgs(b))}},get_propertiesState:function(){return this._propertiesState},assignPropertiesState:function(a){this._propertiesState=a},createInstance:function(a){return new C1.Web.UI.ScrollBehaviorSettings()},$0:function(b,a){if(typeof(this._propertiesState[b])==="undefined"){return a}return this._propertiesState[b]},$1:function(b,a){if(this._propertiesState[b]!==a){this._propertiesState[b]=a;this.raisePropertyChanged(b);this.$2(b);this.$3()}},$2:function(a){},_jsonHelper:null,$3:function(){if(this._jsonHelper){this._jsonHelper.saveState()}}};C1.Web.UI.ScrollPanel=function(a){C1.Web.UI.ScrollPanel.initializeBase(this,[a])};C1.Web.UI.ScrollPanel.prototype={initialize:function(){C1.Web.UI.ScrollPanel.callBaseMethod(this,"initialize");this.$7(this.get_scrollType())},dispose:function(){if(this.$8){this.$8.dispose();this.$8=null}C1.Web.UI.ScrollPanel.callBaseMethod(this,"dispose")},$7:function(c){if(this.$8){this.$8.dispose();this.$8=null}var b=this.get_scrollOrientation();var a=this.get_scrollContentElement();switch(c){case 1:this.$8=new C1.Web.UI.ScrollBehavior(a,b,false,false);break;case 2:this.$8=new C1.Web.UI.ScrollBehavior(a,b,true,false);this.$8.set_buttonAlign(0);break;case 4:this.$8=new C1.Web.UI.ScrollBehavior(a,b,true,false);this.$8.set_buttonAlign(2);break;case 3:this.$8=new C1.Web.UI.ScrollBehavior(a,b,true,false);this.$8.set_buttonAlign(1);break;default:return}if(b===1){this.$8.changeButtonClasses("v_decButton","v_decButtonDisabled","v_incButton","v_incButtonDisabled")}else{this.$8.changeButtonClasses("h_decButton","h_decButtonDisabled","h_incButton","h_incButtonDisabled")}},get_scrollType:function(){return(!this.get_propertiesState()["ScrollType"])?0:this.get_propertiesState()["ScrollType"]},set_scrollType:function(a){this.get_propertiesState()["ScrollType"]=a;this.$7(a);return a},get_scrollOrientation:function(){return(!this.get_propertiesState()["ScrollOrientation"])?0:this.get_propertiesState()["ScrollOrientation"]},set_scrollOrientation:function(a){this.get_propertiesState()["ScrollOrientation"]=a;this.$7(this.get_scrollType());return a},get_scrollContentElement:function(){return $get(this.get_scrollContentID())},set_scrollContentElement:function(c){if(!c){return}var b=this.element.childNodes;for(var a=0;a<b.length;a++){this.element.removeChild(b[a])}this.element.appendChild(c);if(!c.id){c.id="scrlcnt_"+C1.Web.UI.UIElement.$5()}this.get_propertiesState()["ScrollContentID"]=c.id;return c},get_scrollContentID:function(){return(!this.get_propertiesState()["ScrollContentID"])?"":this.get_propertiesState()["ScrollContentID"]},get_scrollBehavior:function(){return this.$8},$8:null};C1.Web.UI.Timer=function(){C1.Web.UI.Timer.initializeBase(this);this.$1_0=1000;this.$1_1=false;this.$1_2=null};C1.Web.UI.Timer.prototype={$1_0:0,$1_1:false,$1_2:null,dispose:function(){this.set_enabled(false);this.stop();C1.Web.UI.Timer.callBaseMethod(this,"dispose")},get_interval:function(){return this.$1_0},set_interval:function(a){if(a!==this.$1_0){this.$1_0=a;this.raisePropertyChanged("interval");if(this.$1_2){this.stop();this.start()}}return a},get_enabled:function(){return this.$1_1},set_enabled:function(a){if(a!==this.$1_1){this.$1_1=a;this.raisePropertyChanged("enabled");if(a){this.start()}else{this.stop()}}return a},start:function(){this.$1_2=window.setInterval(Function.createDelegate(this,this.$1_3),this.$1_0)},stop:function(){window.clearInterval(this.$1_2);this.$1_2=null},add_tick:function(a){this.get_events().addHandler("tick",a)},remove_tick:function(a){this.get_events().removeHandler("tick",a)},$1_3:function(){var a=this.get_events().getHandler("tick");if(a){a(this,Sys.EventArgs.Empty)}}};C1.Web.UI.UIElement=function(a){this._propertiesState={};this.UID="uiel_"+C1.Web.UI.UIElement.$5();if(a){if(!a.id||a.id===""){a.id=this.UID}(a)["__c1uid"]=this.UID;C1.Web.UI.UIElement.all[this.UID]=this;this.element=a}this._propertiesState={}};C1.Web.UI.UIElement.$5=function(){try{C1.Web.UI.UIElement.$0++}catch(a){}if(C1.Web.UI.UIElement.$0<0){C1.Web.UI.UIElement.$0=0}return C1.Web.UI.UIElement.$0};C1.Web.UI.UIElement.prototype={UID:null,element:null,$1:null,$2:null,$3:false,$4:false,get_clientID:function(){return this._propertiesState.ClientID},get_offsetSize:function(){var a=new C1.Web.UI.Utils.Size(this.element.offsetWidth,this.element.offsetHeight);return a},get_visible:function(){if(typeof(this._propertiesState.Visible)==="undefined"){return true}return this._propertiesState.Visible},set_visible:function(a){if(this._propertiesState.Visible!==a){this._propertiesState.Visible=a}C1.Web.UI.Utils.Common.setVisible(this.element,a);return a},get_enabled:function(){if(typeof(this._propertiesState.Enabled)==="undefined"){return true}return this._propertiesState.Enabled},set_enabled:function(a){if(a){this.element.attributes.removeNamedItem("disabled")}else{this.element.setAttribute("disabled","-1")}if(this._propertiesState.Visible!==a){this._propertiesState.Visible=a}return a},get_id:function(){return this.element.id},get_isInitialized:function(){return this.$3},get_isUpdating:function(){return this.$4},dispose:function(){},initialize:function(){this.$3=true},isDOMVisible:function(){return C1.Web.UI.Utils.Common.isVisible(this.element)},beginUpdate:function(){this.$4=true},endUpdate:function(){this.$4=false},invalidate:function(){},addCssClass:function(a){Sys.UI.DomElement.addCssClass(this.element,a)},removeCssClass:function(a){Sys.UI.DomElement.removeCssClass(this.element,a)},toggleCssClass:function(a){Sys.UI.DomElement.toggleCssClass(this.element,a)},addChild:function(a){this.get_children().add(a);this.element.appendChild(a.element)},get_children:function(){if(!this.$1){this.$1=new C1.Web.UI.UIElementList(this)}return this.$1},get_parent:function(){return this.$2},get_hasChildren:function(){return this.get_children()&&this.get_children().get_count()>0},get_propertiesState:function(){return this._propertiesState},assignPropertiesState:function(a){this._propertiesState=a},createInstance:function(a){if(Sys.UI.DomElement.containsCssClass(a,"flow-panel")){return new C1.Web.UI.FlowPanel(a)}else{if(Sys.UI.DomElement.containsCssClass(a,"dock-panel")){return new C1.Web.UI.DockPanel(a)}else{return new C1.Web.UI.UIElement(a)}}},$6:function(a){if(this.$2&&a&&this.$2!==a){throw Error.create("UIElement is already a child of another UIElement.")}this.$2=a}};C1.Web.UI.UIElementList=function(a){this.list=[];this.$0=a};C1.Web.UI.UIElementList.prototype={get_owner:function(){return this.$0},get_last:function(){return(this.get_count()>0)?this.get_item(this.get_count()-1):null},get_count:function(){return this.list.length},onListChanged:function(){},add:function(b){var a=this.get_count();this.insert(a,b);return a},insert:function(b,a){if(this.$4()){return}if(a){a.$6(this.$0)}this.list.splice(b,0,a);this.onListChanged()},removeAt:function(a){if(this.$4()){return}(this.list[a]).$6(null);this.list.splice(a,1);this.onListChanged()},removeRange:function(b,c){if(this.$4()){return}for(var a=0;a<c;a++){this.removeAt(b)}},reverse:function(){if(this.$4()){return}this.list.reverse();this.onListChanged()},clear:function(){if(this.$4()){return}for(var a=0;a<this.list.length;a++){(this.list[a]).$6(null)}this.list=[];this.onListChanged()},contains:function(b){for(var a=0;a<this.list.length;a++){if((this.list[a]).get_id()===b.get_id()){return true}}return false},$0:null,$1:false,$2:function(){this.$1=true},$3:function(){this.$1=false},$4:function(){if(this.$1){throw Error.create("UIElementList is locked.")}return false},$5:function(b){for(var a=0;a<this.get_count();a++){if(this.get_item(a).get_id()===b.get_id()){this.removeAt(a);break}}},get_item:function(a){return this.list[a]},set_item:function(b,c){var a=this.list[b];if(c!==a){if(a){a.$6(null)}this.list[b]=c;if(c){c.$6(this.$0)}this.onListChanged()}return c}};Type.registerNamespace("C1.Web.UI.Behavior");C1.Web.UI.Behavior.ResizeHandles=function(){};C1.Web.UI.Behavior.ResizeHandles.prototype={north:1,east:2,south:4,west:8,northEast:16,southEast:32,northWest:64,southWest:128,all:255};C1.Web.UI.Behavior.ResizeHandles.registerEnum("C1.Web.UI.Behavior.ResizeHandles",false);C1.Web.UI.Behavior.ResizePosition=function(){};C1.Web.UI.Behavior.ResizePosition.prototype={none:1,relative:2,absolute:3};C1.Web.UI.Behavior.ResizePosition.registerEnum("C1.Web.UI.Behavior.ResizePosition",false);C1.Web.UI.Behavior.Animation=function(a,b){this._easeType=31;C1.Web.UI.Behavior.Animation.initializeBase(this,[a]);this.UID="animation_"+C1.Web.UI.Behavior.Animation.$2_39();this.$2_17=new C1.Web.UI.Utils.RGBColor();this.$2_0=null;this.$2_1=null;this.$2_7=0;this.$2_2=1;this.$2_19=false;this.$2_1F=1000;this.$2_1E=0;this.$2_8={};this.$2_9={};this.$2_A={};this.$2_B={};this.$2_18={};this.$2_C=true;this.$2_D=true;this.$2_10=false;this.$2_11=false;this.$2_0=a;this.set_keyFrames(b)};C1.Web.UI.Behavior.Animation.easeOutElastic=function(g,e,i,h){if((g/=h)===1){return e+i}var f=h*0.3;var a=f/4;return(i*Math.pow(2,-10*g)*Math.sin((g*h-a)*(2*Math.PI)/f)+i+e)};C1.Web.UI.Behavior.Animation.easeInElastic=function(g,e,i,h){if((g/=h)===1){return e+i}var f=h*0.3;var a=f/4;return -(i*Math.pow(2,10*(g-=1))*Math.sin((g*h-a)*(2*Math.PI)/f))+e};C1.Web.UI.Behavior.Animation.easeInOutElastic=function(g,e,i,h){if((g/=h/2)===2){return e+i}var f=h*(0.3*1.5);var a=f/4;if(g<1){return -0.5*(i*Math.pow(2,10*(g-=1))*Math.sin((g*h-a)*(2*Math.PI)/f))+e}return i*Math.pow(2,-10*(g-=1))*Math.sin((g*h-a)*(2*Math.PI)/f)*0.5+i+e};C1.Web.UI.Behavior.Animation.easeOutBounce=function(e,a,g,f){if((e/=f)<(1/2.75)){return g*(7.5625*e*e)+a}else{if(e<(2/2.75)){return g*(7.5625*(e-=(1.5/2.75))*e+0.75)+a}else{if(e<(2.5/2.75)){return g*(7.5625*(e-=(2.25/2.75))*e+0.9375)+a}else{return g*(7.5625*(e-=(2.625/2.75))*e+0.984375)+a}}}};C1.Web.UI.Behavior.Animation.easeInBounce=function(e,a,g,f){return g-C1.Web.UI.Behavior.Animation.easeOutBounce(f-e,0,g,f)+a};C1.Web.UI.Behavior.Animation.easeInOutBounce=function(e,a,g,f){if(e<f/2){return C1.Web.UI.Behavior.Animation.easeInBounce(e*2,0,g,f)*0.5+a}else{return C1.Web.UI.Behavior.Animation.easeOutBounce(e*2-f,0,g,f)*0.5+g*0.5+a}};C1.Web.UI.Behavior.Animation.easeOutExpo=function(e,a,g,f){return(e===f)?a+g:g*(-Math.pow(2,-10*e/f)+1)+a};C1.Web.UI.Behavior.Animation.easeInExpo=function(e,a,g,f){return(!e)?a:g*Math.pow(2,10*(e/f-1))+a};C1.Web.UI.Behavior.Animation.easeInOutExpo=function(e,a,g,f){if(!e){return a}if(e===f){return a+g}if((e/=f/2)<1){return g/2*Math.pow(2,10*(e-1))+a}return g/2*(-Math.pow(2,-10*--e)+2)+a};C1.Web.UI.Behavior.Animation.easeOutQuad=function(e,a,g,f){return -g*(e/=f)*(e-2)+a};C1.Web.UI.Behavior.Animation.easeInQuad=function(e,a,g,f){return g*(e/=f)*e+a};C1.Web.UI.Behavior.Animation.easeInOutQuad=function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e+a}return -g/2*((--e)*(e-2)-1)+a};C1.Web.UI.Behavior.Animation.easeOutSine=function(e,a,g,f){return g*Math.sin(e/f*(Math.PI/2))+a};C1.Web.UI.Behavior.Animation.easeInSine=function(e,a,g,f){return -g*Math.cos(e/f*(Math.PI/2))+g+a};C1.Web.UI.Behavior.Animation.easeInOutSine=function(e,a,g,f){if((e/=f/2)<1){return g/2*(Math.sin(Math.PI*e/2))+a}return -g/2*(Math.cos(Math.PI*--e/2)-2)+a};C1.Web.UI.Behavior.Animation.easeOutCirc=function(e,a,g,f){return g*Math.sqrt(1-(e=e/f-1)*e)+a};C1.Web.UI.Behavior.Animation.easeInCirc=function(e,a,g,f){return -g*(Math.sqrt(1-(e/=f)*e)-1)+a};C1.Web.UI.Behavior.Animation.easeInOutCirc=function(e,a,g,f){if((e/=f/2)<1){return -g/2*(Math.sqrt(1-e*e)-1)+a}return g/2*(Math.sqrt(1-(e-=2)*e)+1)+a};C1.Web.UI.Behavior.Animation.easeOutCubic=function(e,a,g,f){return g*((e=e/f-1)*e*e+1)+a};C1.Web.UI.Behavior.Animation.easeInCubic=function(e,a,g,f){return g*(e/=f)*e*e+a};C1.Web.UI.Behavior.Animation.easeInOutCubic=function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e+a}return g/2*((e-=2)*e*e+2)+a};C1.Web.UI.Behavior.Animation.easeOutQuint=function(e,a,g,f){return g*((e=e/f-1)*e*e*e*e+1)+a};C1.Web.UI.Behavior.Animation.easeInQuint=function(e,a,g,f){return g*(e/=f)*e*e*e*e+a};C1.Web.UI.Behavior.Animation.easeInOutQuint=function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e*e+a}return g/2*((e-=2)*e*e*e*e+2)+a};C1.Web.UI.Behavior.Animation.easeOutBack=function(e,a,g,f){return g*((e=e/f-1)*e*((1.70158+1)*e+1.70158)+1)+a};C1.Web.UI.Behavior.Animation.easeInBack=function(e,a,g,f){return g*(e/=f)*e*((1.70158+1)*e-1.70158)+a};C1.Web.UI.Behavior.Animation.easeInOutBack=function(f,a,h,g){var e=1.70158;if((f/=g/2)<1){return h/2*(f*f*(((e*=(1.525))+1)*f-e))+a}return h/2*((f-=2)*f*(((e*=(1.525))+1)*f+e)+2)+a};C1.Web.UI.Behavior.Animation.easeOutQuart=function(e,a,g,f){return -g*((e=e/f-1)*e*e*e-1)+a};C1.Web.UI.Behavior.Animation.easeInQuart=function(e,a,g,f){return g*(e/=f)*e*e*e+a};C1.Web.UI.Behavior.Animation.easeInOutQuart=function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e*e*e+a}return -g/2*((e-=2)*e*e*e-2)+a};C1.Web.UI.Behavior.Animation.easeLinear=function(e,a,g,f){return g*e/f+a};C1.Web.UI.Behavior.Animation.$2_39=function(){try{C1.Web.UI.Behavior.Animation.$2_20++}catch(a){C1.Web.UI.Behavior.Animation.$2_20=0}if(C1.Web.UI.Behavior.Animation.$2_20<0){C1.Web.UI.Behavior.Animation.$2_20=0}return C1.Web.UI.Behavior.Animation.$2_20};C1.Web.UI.Behavior.Animation.prototype={UID:null,$2_0:null,$2_1:null,$2_2:0,$2_3:null,$2_4:null,$2_5:false,$2_6:false,$2_7:0,$2_8:null,$2_9:null,$2_A:null,$2_B:null,$2_C:false,$2_D:false,$2_E:false,$2_F:false,$2_10:false,$2_11:false,$2_12:0,$2_13:0,$2_14:0,$2_15:0,$2_16:0,$2_17:null,$2_18:null,$2_19:false,$2_1A:false,$2_1B:0,$2_1C:0,$2_1D:0,$2_1E:0,$2_1F:0,get_animatedElement:function(){return this.$2_0},set_animatedElement:function(a){if(a){this.$2_0=a;this.raisePropertyChanged("element")}return a},get_activeKeyFrame:function(){return this.$2_7},get_easing:function(){return this._easeType},set_easing:function(a){if(a!==this._easeType){this._easeType=a;this.raisePropertyChanged("easing")}return a},get_currentFrameDurationTime:function(){return this.$2_1F},get_hiddenAtStart:function(){return this.$2_E},set_hiddenAtStart:function(a){if(this.$2_E!==a){this.$2_E=a;if(a){Sys.UI.DomElement.addCssClass(this.get_element(),"c1-transparent")}else{Sys.UI.DomElement.removeCssClass(this.get_element(),"c1-transparent")}}return a},get_keyFrames:function(){return this.$2_1},set_keyFrames:function(a){if(a){this.$2_1=a;this.raisePropertyChanged("keyFrames")}return a},get_percentage:function(){if(!this.$2_19){return 0}return((this.$2_1D-this.$2_1B)*100)/this.$2_1F},get_isActive:function(){return this.$2_19},get_isAnimating:function(){return this.$2_1A},add_started:function(a){this.get_events().addHandler("started",a)},remove_started:function(a){this.get_events().removeHandler("started",a)},add_frameStarted:function(a){this.get_events().addHandler("framestarted",a)},remove_frameStarted:function(a){this.get_events().removeHandler("framestarted",a)},add_frameStopped:function(a){this.get_events().addHandler("framestopped",a)},remove_frameStopped:function(a){this.get_events().removeHandler("framestopped",a)},add_animating:function(a){this.get_events().addHandler("animating",a)},remove_animating:function(a){this.get_events().removeHandler("animating",a)},add_stopped:function(a){this.get_events().addHandler("stopped",a)},remove_stopped:function(a){this.get_events().removeHandler("stopped",a)},setValueSyncHandler:function(a){this.$2_21=a},$2_21:null,dispose:function(){this.$2_19=false;this.$2_23();C1.Web.UI.Behavior.Animation.callBaseMethod(this,"dispose")},queue:function(){C1.Web.UI.Behavior.AnimationManager.get_queue().add(this)},start:function(a){this.queue();if(typeof(a)==="undefined"){a=1}this.$2_2=a;C1.Web.UI.Behavior.AnimationManager.start()},pause:function(){if(this.$2_19){this.$2_23();this.raisePropertyChanged("isAnimating")}},resume:function(){if(this.$2_19){this.$2_22();this.raisePropertyChanged("isAnimating")}},useOverflowHiddenForChilds:false,$2_22:function(){this.$2_1A=true;if(this.$2_0&&this.useOverflowHiddenForChilds){Sys.UI.DomElement.addCssClass(this.$2_0,"c1-in-animation-hide-scrollbars")}},$2_23:function(){this.$2_1A=false;if(this.$2_0){Sys.UI.DomElement.removeCssClass(this.$2_0,"c1-in-animation-hide-scrollbars")}},stop:function(a){if(C1.Web.UI.Utils.Common.testIsNull(a)){a=true}this.$2_25(a)},reset:function(){if(this.get_isAnimating()){return}this.$2_2E()},$2_24:function(a){this.$2_7=0;this.$2_F=false;this.onStarted(Sys.EventArgs.Empty);this.$2_2D();this.$2_35(a)},$2_25:function(b){var a=new Sys.CancelEventArgs();this.onFrameStopped(a);if(a.get_cancel()){return}this.$2_19=false;this.$2_23();if(this.$2_1D!==this.$2_1C){this.$2_1D=this.$2_1C;this.raisePropertyChanged("percentage");if(b){this.$2_36(this.$2_1C)}}this.raisePropertyChanged("isAnimating");this.raisePropertyChanged("isActive");if(!b){this.$2_9={};this.$2_A={};this.$2_7++;if(this.$2_7>=this.$2_1.length){this.$2_7=0;this.$2_2--;if(this.$2_2>0||this.$2_2<-1){if(this.$2_2<-1){this.$2_2=-1}this.$2_2E();this.$2_35(new Date().getTime())}else{this.onStopped(Sys.EventArgs.Empty)}}else{this.$2_35(new Date().getTime())}}else{this.onStopped(Sys.EventArgs.Empty)}},$2_26:function(f,e,d){var c=f;for(var b in c){var a={key:b,value:c[b]};if(d){e[a.key]=f[a.key]}else{if(typeof(e[a.key])==="undefined"){e[a.key]=f[a.key]}}}},$2_27:function(e){if(e<0||e>=this.$2_1.length){throw Error.argumentOutOfRange()}var c=this.$2_1[e];var d=c;for(var b in d){var a={key:b,value:d[b]};if(a.key==="duration"){this.$2_1F=(c[a.key]);continue}if(a.key==="unit"){this.$2_3=c[a.key];continue}if(a.key==="fontUnit"){this.$2_4=c[a.key];continue}if(a.key==="visible"){this.$2_10=true;this.$2_C=c[a.key];continue}if(a.key==="enabled"){this.$2_11=true;this.$2_D=c[a.key];continue}this.$2_2A(c,a.key)}if(!e){this.$2_26(this.$2_8,this.$2_9,false)}},$2_28:function(b){if(String.isInstanceOfType((b))){b=(b*1)}var a;switch(b){case 1:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutElastic);break;case 2:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInElastic);break;case 3:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutElastic);break;case 4:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutBounce);break;case 5:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInBounce);break;case 6:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutBounce);break;case 7:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutExpo);break;case 8:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInExpo);break;case 9:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutExpo);break;case 10:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutQuad);break;case 11:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInQuad);break;case 12:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutQuad);break;case 13:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutSine);break;case 14:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInSine);break;case 15:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutSine);break;case 16:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutCirc);break;case 17:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInCirc);break;case 18:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutCirc);break;case 19:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutCubic);break;case 20:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInCubic);break;case 21:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutCubic);break;case 22:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutQuint);break;case 23:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInQuint);break;case 24:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutQuint);break;case 25:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutBack);break;case 26:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInBack);break;case 27:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutBack);break;case 28:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeOutQuart);break;case 29:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInQuart);break;case 30:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeInOutQuart);break;default:a=Function.createDelegate(null,C1.Web.UI.Behavior.Animation.easeLinear);break}return a},$2_29:function(b){var a=31;switch(b){case"EaseOutElastic":a=1;break;case"EaseInElastic":a=2;break;case"EaseInOutElastic":a=3;break;case"EaseOutBounce":a=4;break;case"EaseInBounce":a=5;break;case"EaseInOutBounce":a=6;break;case"EaseOutExpo":a=7;break;case"EaseInExpo":a=8;break;case"EaseInOutExpo":a=9;break;case"EaseOutQuad":a=10;break;case"EaseInQuad":a=11;break;case"EaseInOutQuad":a=12;break;case"EaseOutSine":a=13;break;case"EaseInSine":a=14;break;case"EaseInOutSine":a=15;break;case"EaseOutCirc":a=16;break;case"EaseInCirc":a=17;break;case"EaseInOutCirc":a=18;break;case"EaseOutCubic":a=19;break;case"EaseInCubic":a=20;break;case"EaseInOutCubic":a=21;break;case"EaseOutQuint":a=22;break;case"EaseInQuint":a=23;break;case"EaseInOutQuint":a=24;break;case"EaseOutBack":a=25;break;case"EaseInBack":a=26;break;case"EaseInOutBack":a=27;break;case"EaseOutQuart":a=28;break;case"EaseInQuart":a=29;break;case"EaseInOutQuart":a=30;break}return this.$2_28(a)},$2_2A:function(d,c){var b=d[c];if(typeof(b.to)!=="undefined"){this.$2_A[c]=b.to}if(!C1.Web.UI.Utils.Common.testIsNull(b.easing)){var a=b.easing;this.$2_18[c]=this.$2_29(a)}else{this.$2_18[c]=this.$2_28(this.get_easing())}if(typeof(b.from)!=="undefined"){this.$2_9[c]=b.from}else{var e=this.$2_2F(c);if(typeof(e)!=="undefined"){if(Object.getType(e)===String){if(c.toLowerCase().indexOf("color")<0){e=parseFloat(e)}}this.$2_9[c]=e}}if(c==="scale"){if(typeof(b.center)!=="undefined"){this.$2_5=b.center}if(typeof(b.scaleFont)!=="undefined"){this.$2_6=b.scaleFont}}},$2_2D:function(){var c=(this.$2_0)["style"];if(typeof(c)!=="undefined"){var d=c;for(var b in d){var a={key:b,value:d[b]};var f=a.key;var e=typeof(c[f]);if(e!=="undefined"&&e!=="function"&&!C1.Web.UI.Behavior.Animation.$2_2B[f]){if(C1.Web.UI.Behavior.Animation.$2_2C[f]||c[f]!==""){this.$2_8[f]=c[f]}}}}},$2_2E:function(){var c=(this.$2_0)["style"];if(typeof(c)!=="undefined"){var d=this.$2_8;for(var b in d){var a={key:b,value:d[b]};try{c[a.key]=this.$2_8[a.key]}catch(e){}}}},$2_2F:function(b){if(!this.$2_0){return null}if(b==="left"){return(this.$2_0)["offsetLeft"]}if(b==="top"){return(this.$2_0)["offsetTop"]}if(b==="width"){return(this.$2_0)["offsetWidth"]}if(b==="height"){return(this.$2_0)["offsetHeight"]}if(b==="opacity"){return C1.Web.UI.Utils.Common.getOpacity(this.$2_0)}if(b==="backgroundPositionX"){return C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"backgroundPositionX",0)}if(b==="backgroundPositionY"){return C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"backgroundPositionY",0)}if(b==="scale"){return 1}var a=(this.$2_0)["style"];if(typeof(a)!=="undefined"&&b&&b.length>0){return(a)[b]}return null},onStarted:function(b){var a=this.get_events().getHandler("started");if(a){a(this,b)}},onStopped:function(b){C1.Web.UI.Behavior.AnimationManager.$9(this);var a=this.get_events().getHandler("stopped");if(a){a(this,b)}},onFrameStarted:function(b){var a=this.get_events().getHandler("framestarted");if(a){a(this,b)}},onFrameStopped:function(b){var a=this.get_events().getHandler("framestopped");if(a){a(this,b)}},onAnimating:function(b){var a=this.get_events().getHandler("animating");if(a){a(this,b)}},$2_30:function(b){var a={};if(this.$2_17.parse(b)){a.Red=this.$2_17.get_red();a.Green=this.$2_17.get_green();a.Blue=this.$2_17.get_blue()}else{a.Red=255;a.Green=255;a.Blue=255}return a},$2_31:function(f,d,c){var b=f.toString(16);var a=d.toString(16);var g=c.toString(16);if(b.length===1){b="0"+b}if(a.length===1){a="0"+a}if(g.length===1){g="0"+g}var e="#"+b;e+=a+g;return e},caclulateValue:function(e,b,c,d){var a=b-e;if(!a){return e}return this.$2_18[c]((d-this.$2_1B),e,a,this.$2_1F)},$2_32:function(i,h,g,f){var e=this.$2_30(i);var d=this.$2_30(h);var c=e.Red;var b=e.Green;var a=e.Blue;if(c!==d.Red){c=Math.max(0,Math.min(255,Math.round(this.caclulateValue(c,d.Red,g,f))))}if(b!==d.Green){b=Math.max(0,Math.min(255,Math.round(this.caclulateValue(b,d.Green,g,f))))}if(a!==d.Blue){a=Math.max(0,Math.min(255,Math.round(this.caclulateValue(a,d.Blue,g,f))))}return this.$2_31(c,b,a)},$2_33:function(c,b){if(!this.$2_0){return}this.$2_B[c]=b;if(c==="width"||c==="height"){b=Math.round(b);if(b<0){b=0}this.$2_B[c]=b}else{if(c==="left"||c==="top"||c==="backgroundPositionX"||c==="backgroundPositionY"){b=Math.round(b);this.$2_B[c]=b}}if(this.$2_21){b=this.$2_21(this,c,this.$2_9[c],this.$2_A[c],this.$2_B[c])}if(c==="width"||c==="height"||c==="left"||c==="top"||c==="backgroundPositionX"||c==="backgroundPositionY"){b=b+this.$2_3}if(c==="opacity"){C1.Web.UI.Utils.Common.setOpacity(this.$2_0,b);return}var a=(this.$2_0)["style"];if(typeof(a)!=="undefined"&&c&&c.length>0){(a)[c]=b}},$2_34:function(){if(!this.$2_0){return}var b=C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"width",null);var a=C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"height",null);var d=C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"backgroundColor",null);if((!b||b===""||b==="auto")&&(!a||a===""||a==="auto")){this.$2_0.style.width=this.$2_0.offsetWidth.toString()+"px"}if(!d||d===""||d==="transparent"||d==="rgba(0, 0, 0, 0)"){var c=C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"position","");if(c!=="absolute"){this.$2_0.style.backgroundColor=C1.Web.UI.Utils.Common.getInheritedBackgroundColor(this.$2_0)}}this.$2_F=true},$2_35:function(a){if(C1.Web.UI.Utils.Common.testIsNull(a)){a=new Date().getTime()}this.onFrameStarted(Sys.EventArgs.Empty);this.$2_1F=1000;this.$2_1E=0;this.$2_10=false;this.$2_11=false;this.$2_3="px";this.$2_4="pt";this.$2_5=true;this.$2_6=false;this.$2_27(this.$2_7);this.$2_1B=a;this.$2_1D=this.$2_1B;this.$2_1C=this.$2_1B+this.$2_1F;if(typeof(this.$2_A.opacity)!=="undefined"){if(!this.$2_F&&Sys.Browser.agent===Sys.Browser.InternetExplorer){this.$2_34()}}if(typeof(this.$2_A.scale)!=="undefined"){this.$2_15=this.$2_0.offsetTop;this.$2_14=this.$2_0.offsetLeft;this.$2_13=this.$2_0.offsetHeight;this.$2_12=this.$2_0.offsetWidth;this.$2_16=parseFloat(C1.Web.UI.Utils.Common.getCurrentStyle(this.$2_0,"fontSize",9))}if(this.$2_10){C1.Web.UI.Utils.Common.setVisible(this.$2_0,this.$2_C)}if(this.$2_11){this.$2_0.disabled=!this.$2_D}this.$2_19=true;this.$2_22();if(this.$2_E){Sys.UI.DomElement.removeCssClass(this.get_element(),"c1-transparent")}},$2_36:function(d){if(!this.$2_1A){this.$2_1E=new Date().getTime()-this.$2_1D;return}d-=this.$2_1E;if(d>this.$2_1C){d=this.$2_1C}this.$2_1D=d;this.onAnimating(Sys.EventArgs.Empty);var c=this.$2_A;for(var b in c){var a={key:b,value:c[b]};if(a.key==="scale"){this.$2_37(this.$2_38(a.key,d));continue}this.$2_33(a.key,this.$2_38(a.key,d))}if(this.$2_1D>=this.$2_1C){this.$2_25(false);return}},$2_37:function(c){var b=Math.round(this.$2_12*c);var a=Math.round(this.$2_13*c);this.$2_0.style.width=b+this.$2_3;this.$2_0.style.height=a+this.$2_3;if(this.$2_5){this.$2_0.style.top=(this.$2_15+Math.round((this.$2_13-a)/2))+this.$2_3;this.$2_0.style.left=(this.$2_14+Math.round((this.$2_12-b)/2))+this.$2_3}if(this.$2_6){var d=this.$2_16*c;if(this.$2_4==="px"||this.$2_4==="pt"){d=Math.round(d)}this.$2_0.style.fontSize=d+this.$2_4}},$2_38:function(d,c){if(d.toLowerCase().indexOf("color")>=0){return this.$2_32(this.$2_9[d],this.$2_A[d],d,c)}var b=this.$2_9[d];var a=this.$2_A[d];if(b&&String.isInstanceOfType(b)&&c<this.$2_1C){return b}else{if(a&&String.isInstanceOfType(a)&&c>=this.$2_1C){return a}}var e=this.caclulateValue(this.$2_9[d],this.$2_A[d],d,c);return this.caclulateValue(this.$2_9[d],this.$2_A[d],d,c)}};C1.Web.UI.Behavior.AnimationCollection=function(){this.list=[]};C1.Web.UI.Behavior.AnimationCollection.prototype={get_last:function(){return(this.get_count()>0)?this.get_item(this.get_count()-1):null},get_count:function(){return this.list.length},onListChanged:function(){},add:function(b){var a=this.get_count();this.insert(a,b);return a},insert:function(a,b){if(this.contains(b)){return}this.list.splice(a,0,b);this.onListChanged()},removeAt:function(a){this.list.splice(a,1);this.onListChanged()},removeRange:function(b,c){for(var a=0;a<c;a++){this.removeAt(b)}},reverse:function(){this.list.reverse();this.onListChanged()},clear:function(){this.list=[];this.onListChanged()},contains:function(b){for(var a=0;a<this.list.length;a++){if((this.list[a]).UID===b.UID){return true}}return false},indexOf:function(b){for(var a=0;a<this.list.length;a++){if((this.list[a]).UID===b.UID){return a}}return -1},get_length:function(){return this.list.length},$0:function(b){for(var a=0;a<this.get_count();a++){if(this.get_item(a).UID===b.UID){this.removeAt(a);break}}},get_item:function(a){return this.list[a]},set_item:function(b,c){var a=this.list[b];if(c!==a){this.list[b]=c;this.onListChanged()}return c}};C1.Web.UI.Behavior.AnimationEffects=function(a,b){C1.Web.UI.Behavior.AnimationEffects.initializeBase(this,[a]);this.$2_2=(C1.Web.UI.Utils.Common.testIsNull(b))?0:b;this.$2_3=1000;this.$2_4=31;this.$2_5=null;this.$2_6=null;this.$2_7=false;this.$2_8=false;this.$2_9=true;this.$2_A=true};C1.Web.UI.Behavior.AnimationEffects.createAnimationByType=function(k,d,b,g,f,j,h,i,a,e){if(C1.Web.UI.Utils.Common.testIsNull(k)||C1.Web.UI.Utils.Common.testIsNull(d)||!k){return null}if(C1.Web.UI.Utils.Common.testIsNull(h)){h=false}if(C1.Web.UI.Utils.Common.testIsNull(i)){i=false}if(C1.Web.UI.Utils.Common.testIsNull(a)){a=true}if(C1.Web.UI.Utils.Common.testIsNull(g)){g=31}if(C1.Web.UI.Utils.Common.testIsNull(e)){e=true}var c=new C1.Web.UI.Behavior.AnimationEffects(d,k);c.$2_2=k;c.$2_3=b;c.$2_7=h;c.$2_8=i;c.$2_9=a;c.$2_4=g;c.$2_5=f;c.$2_6=j;c.$2_A=e;c.$2_B=!e;return c};C1.Web.UI.Behavior.AnimationEffects.playAnimationEffect=function(k,d,b,g,f,j,h,i,a,e){if(C1.Web.UI.Utils.Common.testIsNull(k)||C1.Web.UI.Utils.Common.testIsNull(d)||!k){return false}if(C1.Web.UI.Utils.Common.testIsNull(h)){h=false}if(C1.Web.UI.Utils.Common.testIsNull(i)){i=false}if(C1.Web.UI.Utils.Common.testIsNull(a)){a=true}if(C1.Web.UI.Utils.Common.testIsNull(g)){g=31}if(C1.Web.UI.Utils.Common.testIsNull(e)){e=true}if(!C1.Web.UI.Utils.Common.testIsNull(k)&&k){var c=C1.Web.UI.Behavior.AnimationEffects.createAnimationByType(k,d,b,g,f,j,h,i,a,e);if(c){c.play();return true}}return false};C1.Web.UI.Behavior.AnimationEffects.prototype={$2_0:false,get_useOverflowHiddenForChilds:function(){return this.$2_0},set_useOverflowHiddenForChilds:function(a){this.$2_0=a;if(this.$2_1){this.$2_1.useOverflowHiddenForChilds=a}return a},beforeDetermineBoundsHandler:null,afterDetermineBoundsHandler:null,$2_1:null,$2_2:0,$2_3:0,$2_4:0,$2_5:null,$2_6:null,$2_7:false,$2_8:false,$2_9:false,$2_A:false,$2_B:false,$2_C:null,$2_D:null,$2_E:null,$2_F:null,$2_10:false,$2_11:false,$2_12:null,get_animation:function(){return this.$2_1},get_animatedElement:function(){return this.$2_E},get_originalElement:function(){return this.get_element()},get_effect:function(){return this.$2_2},set_effect:function(a){this.$2_2=a;return a},get_duration:function(){return this.$2_3},set_duration:function(a){this.$2_3=a;return a},get_easing:function(){return this.$2_4},set_easing:function(a){this.$2_4=a;return a},get_startHandler:function(){return this.$2_5},set_startHandler:function(a){this.$2_5=a;return a},get_endHandler:function(){return this.$2_6},set_endHandler:function(a){this.$2_6=a;return a},get_useClone:function(){return this.$2_7},set_useClone:function(a){this.$2_7=a;return a},get_cloneDeep:function(){return this.$2_8},set_cloneDeep:function(a){this.$2_8=a;return a},get_resetOnEnd:function(){return this.$2_9},set_resetOnEnd:function(a){this.$2_9=a;return a},get_hiddenAtStart:function(){return this.$2_A},set_hiddenAtStart:function(a){this.$2_A=a;this.$2_B=!this.$2_A;if(this.$2_1){this.$2_1.set_hiddenAtStart(a)}return a},get_isAnimating:function(){if(this.$2_1){return this.$2_1.get_isAnimating()}return false},setValueSyncHandler:function(a){this.$2_13=a;if(this.$2_1){this.$2_1.setValueSyncHandler(this.$2_13)}},$2_13:null,play:function(){this.start(1)},start:function(a){if(!this.$2_1){this.$2_14()}if(this.$2_1){this.$2_1.start(a)}},stop:function(){if(this.$2_1){this.$2_1.stop(true)}},queue:function(){if(!this.$2_1){this.$2_14()}if(this.$2_1){this.$2_1.queue()}},pause:function(){if(this.$2_1){this.$2_1.pause()}},resume:function(){if(this.$2_1){this.$2_1.resume()}},reset:function(){if(this.$2_1){this.$2_1.reset()}},initialize:function(){C1.Web.UI.Behavior.AnimationEffects.callBaseMethod(this,"initialize")},dispose:function(){if(this.$2_1){this.$2_1.dispose();this.$2_1=null}C1.Web.UI.Behavior.AnimationEffects.callBaseMethod(this,"dispose");this.$2_5=null;this.$2_6=null},add_started:function(a){this.get_events().addHandler("started",a)},remove_started:function(a){this.get_events().removeHandler("started",a)},add_stopped:function(a){this.get_events().addHandler("stopped",a)},remove_stopped:function(a){this.get_events().removeHandler("stopped",a)},onStarted:function(b){var a=this.get_events().getHandler("started");if(a){a(this,b)}},onStopped:function(b){var a=this.get_events().getHandler("stopped");if(a){a(this,b)}},$2_14:function(){var b=this.get_element();if((b)["___c1StartedAnimation"]){((b)["___c1StartedAnimation"]).stop(true)}if((b)["___c1StartedAnimation"]){}var a=this.$2_17(b);if(this.beforeDetermineBoundsHandler){this.beforeDetermineBoundsHandler()}if(this.$2_A){Sys.UI.DomElement.addCssClass(b,"c1-transparent")}b.style.display="block";var h=C1.Web.UI.Utils.Measurement.getStyleBounds(b);b.style.left=h.x+"px";b.style.top=h.y+"px";b.style.display=a.Display;if(this.$2_A){Sys.UI.DomElement.removeCssClass(b,"c1-transparent")}if(this.afterDetermineBoundsHandler){this.afterDetermineBoundsHandler()}this.$2_E=b;if(this.$2_7){Sys.UI.DomElement.addCssClass(b,"c1-transparent");this.$2_E=b.cloneNode(this.$2_8);this.$2_E.style.display="block";C1.Web.UI.Utils.Common.setBounds(this.$2_E,h);b.parentNode.appendChild(this.$2_E);Sys.UI.DomElement.removeCssClass(this.$2_E,"c1-transparent")}var g=this.$2_3;var f=this.determineAnimationFramesByType(this.$2_2,g,h);var e=null;if(f!==""){e=C1.Web.UI.Utils.JSON.fromJSONString(f)}if(e){this.$2_1=new C1.Web.UI.Behavior.Animation(this.$2_E,e);this.$2_1.useOverflowHiddenForChilds=this.get_useOverflowHiddenForChilds();this.$2_1.setValueSyncHandler(this.$2_13);this.$2_1.set_hiddenAtStart(this.$2_A);if(this.$2_1){this.$2_1.set_easing(this.$2_4);var d=(f.indexOf("height:")!==-1)||(f.indexOf("width:")!==-1);var c=(f.indexOf("left:")!==-1)||(f.indexOf("top:")!==-1);if(!this.$2_C){this.$2_C=Function.createDelegate(this,this.$2_15)}if(!this.$2_D){this.$2_D=Function.createDelegate(this,this.$2_16)}this.$2_F=a;this.$2_10=c;this.$2_11=d;this.$2_12=h;this.$2_1.add_started(this.$2_C);this.$2_1.add_stopped(this.$2_D)}}},$2_15:function(c,b){this.onStarted(Sys.EventArgs.Empty);var a=c;C1.Web.UI.Utils.Common.setVisible(a.get_animatedElement(),true);(this.get_element())["___c1StartedAnimation"]=a;if(this.$2_7||this.$2_11){a.get_animatedElement().style.width=this.$2_12.width+"px";a.get_animatedElement().style.height=this.$2_12.height+"px"}if(this.$2_11){a.get_animatedElement().style.overflow="hidden";a.get_animatedElement().style.display="block"}if(this.$2_10){a.get_animatedElement().style.position="absolute";a.get_animatedElement().style.top=this.$2_12.y+"px";a.get_animatedElement().style.left=this.$2_12.x+"px"}if(!C1.Web.UI.Utils.Common.testIsNull(this.$2_5)){this.$2_5(c,b)}},$2_16:function(c,b){var a=c;a.remove_started(this.$2_C);a.remove_stopped(this.$2_D);if(this.$2_9){a.reset();this.$2_18(this.get_element(),this.$2_F)}(this.get_element())["___c1StartedAnimation"]=null;if(this.$2_7){this.$2_E.parentNode.removeChild(this.$2_E)}if(this.$2_7&&!this.$2_B){Sys.UI.DomElement.removeCssClass(this.get_element(),"c1-transparent")}if(!C1.Web.UI.Utils.Common.testIsNull(this.$2_6)){this.$2_6(c,b)}if(this.$2_7&&this.$2_B){Sys.UI.DomElement.removeCssClass(this.get_element(),"c1-transparent")}this.$2_F=null;this.$2_1=null;this.onStopped(Sys.EventArgs.Empty)},determineAnimationFramesByType:function(p,l,k){var j=', "height":{"from":'+k.height+', "to":'+k.height+"}";var i=', "width":{"from":'+k.width+', "to":'+k.width+"}";var h="";switch(p){case 1:h='[{"duration":'+l+', "opacity":{"from":0, "to":1.0}}]';break;case 2:h='[{"duration":'+l+', "opacity":{"from":1.0, "to":0}}]';break;case 3:h='[{"duration":'+l+i+', "height":{"from":0, "to":'+k.height+"}}]";break;case 7:h='[{"duration":'+l+i+', "height":{"from":'+k.height+', "to":0}}]';break;case 4:h='[{"duration":'+l+j+', "left":{"from":'+(k.x+k.width)+', "to":'+k.x+'} , "width":{"from":0, "to":'+k.width+"}}]";break;case 8:h='[{"duration":'+l+j+', "left":{"from":'+k.x+', "to":'+(k.x+k.width)+'} , "width":{"from":'+k.width+', "to":0}}]';break;case 5:h='[{"duration":'+l+i+', "top":{"from":'+(k.y+k.height)+', "to":'+k.y+'} , "height":{"from":0, "to":'+k.height+"}}]";break;case 9:h='[{"duration":'+l+i+', "top":{"from":'+k.y+', "to":'+(k.y+k.height)+'} , "height":{"from":'+k.height+', "to":0}}]';break;case 6:h='[{"duration":'+l+j+', "width":{"from":0, "to":'+k.width+"}}]";break;case 10:h='[{"duration":'+l+j+', "width":{"from":'+k.width+', "to":0}}]';break;case 11:var g=Math.round(k.height/6);h='[{"duration":'+(l/2)+i+', "height":{"from":'+k.height+', "to":'+g+'}}, {"duration":'+(l/2)+', "height":{"from":'+g+', "to":'+g+'} , "width":{"from":'+k.width+', "to":0}}]';break;case 12:var f=Math.round(k.height/6);h='[{"duration":'+(l/2)+', "height":{"from":'+f+', "to":'+f+'} , "width":{"from":0, "to":'+k.width+'}},{"duration":'+(l/2)+i+', "height":{"from":'+f+', "to":'+k.height+"}}]";break;case 15:h='[{"duration":'+l+j+', "left":{"from":'+(k.x+(k.width/2))+', "to":'+k.x+'} , "width":{"from":0, "to":'+k.width+"}}]";break;case 16:h='[{"duration":'+l+j+', "left":{"from":'+k.x+', "to":'+(k.x+(k.width/2))+'} , "width":{"from":'+k.width+', "to":0}}]';break;case 13:h='[{"duration":'+l+i+', "top":{"from":'+(k.y+(k.height/2))+', "to":'+k.y+'} , "height":{"from":0, "to":'+k.height+"}}]";break;case 14:h='[{"duration":'+l+i+', "top":{"from":'+k.y+', "to":'+(k.y+(k.height/2))+'} , "height":{"from":'+k.height+', "to":0}}]';break;case 17:var e=l/5;var d=k.x-4;var c=k.x+4;h='[{"duration":'+e+i+j+', "left":{"from":'+d+', "to":'+c+'}}, {"duration":'+e+i+j+', "left":{"from":'+c+', "to":'+d+'}}, {"duration":'+e+i+j+', "left":{"from":'+d+', "to":'+c+'}}, {"duration":'+e+i+j+', "left":{"from":'+c+', "to":'+d+"}}]";break;case 18:var b=l/5;var a=k.y-4;var v=k.y+4;h='[{"duration":'+b+i+j+', "top":{"from":'+a+', "to":'+v+'}}, {"duration":'+b+i+j+', "top":{"from":'+v+', "to":'+a+'}}, {"duration":'+b+i+j+', "top":{"from":'+a+', "to":'+v+'}}, {"duration":'+b+i+j+', "top":{"from":'+v+', "to":'+a+"}}]";break;case 21:var u=k.y+k.height;h='[{"duration":'+l+i+j+', "top":{"from":'+u+', "to":'+k.y+'}, "opacity":{"from":0, "to":1.0}}]';break;case 23:var t=k.y-k.height;h='[{"duration":'+l+i+j+', "top":{"from":'+k.y+', "to":'+t+'}, "opacity":{"from":1.0, "to":0}}]';break;case 19:var s=k.y-k.height;h='[{"duration":'+l+i+j+', "top":{"from":'+s+', "to":'+k.y+'}, "opacity":{"from":0, "to":1.0}}]';break;case 25:var r=k.y+k.height;h='[{"duration":'+l+i+j+', "top":{"from":'+k.y+', "to":'+r+'}, "opacity":{"from":1.0, "to":0}}]';break;case 22:var q=k.x-k.width;h='[{"duration":'+l+i+j+', "left":{"from":'+q+', "to":'+k.x+'}, "opacity":{"from":0, "to":1.0}}]';break;case 24:var o=k.x+k.width;h='[{"duration":'+l+i+j+', "left":{"from":'+k.x+', "to":'+o+'}, "opacity":{"from":1.0, "to":0}}]';break;case 20:var n=k.x+k.width;h='[{"duration":'+l+i+j+', "left":{"from":'+n+', "to":'+k.x+'}, "opacity":{"from":0, "to":1.0}}]';break;case 26:var m=k.x-k.width;h='[{"duration":'+l+i+j+', "left":{"from":'+k.x+', "to":'+m+'}, "opacity":{"from":1.0, "to":0}}]';break;default:break}return h},$2_17:function(b){var a={};a.Display=b.style.display;a.Width=b.style.width;a.Height=b.style.height;a.Top=b.style.top;a.Left=b.style.left;a.Overflow=b.style.overflow;a.Position=b.style.position;return a},$2_18:function(b,a){if(!a){return}b.style.display=a.Display;b.style.width=a.Width;b.style.height=a.Height;b.style.top=a.Top;b.style.left=a.Left;b.style.overflow=a.Overflow;b.style.position=a.Position}};C1.Web.UI.Behavior.AnimationManager=function(){};C1.Web.UI.Behavior.AnimationManager.get_fps=function(){return C1.Web.UI.Behavior.AnimationManager.$5};C1.Web.UI.Behavior.AnimationManager.set_fps=function(a){if(a<=0){return}if(a>1000){a=1000}C1.Web.UI.Behavior.AnimationManager.$5=a;C1.Web.UI.Behavior.AnimationManager.$8();C1.Web.UI.Behavior.AnimationManager.$7();return a};C1.Web.UI.Behavior.AnimationManager.get_queue=function(){return C1.Web.UI.Behavior.AnimationManager.$0};C1.Web.UI.Behavior.AnimationManager.get_activeAnimations=function(){return C1.Web.UI.Behavior.AnimationManager.$1};C1.Web.UI.Behavior.AnimationManager.start=function(){var b=new Date().getTime();for(var a=0;a<C1.Web.UI.Behavior.AnimationManager.$0.get_length();a++){C1.Web.UI.Behavior.AnimationManager.$1.add(C1.Web.UI.Behavior.AnimationManager.$0.get_item(a));C1.Web.UI.Behavior.AnimationManager.$0.get_item(a).$2_24(b)}C1.Web.UI.Behavior.AnimationManager.$0.clear();C1.Web.UI.Behavior.AnimationManager.$6();C1.Web.UI.Behavior.AnimationManager.$7()};C1.Web.UI.Behavior.AnimationManager.stop=function(b){for(var a=0;a<C1.Web.UI.Behavior.AnimationManager.$1.get_length();a++){C1.Web.UI.Behavior.AnimationManager.$1.get_item(a).stop(b)}C1.Web.UI.Behavior.AnimationManager.$8()};C1.Web.UI.Behavior.AnimationManager.pause=function(){for(var a=0;a<C1.Web.UI.Behavior.AnimationManager.$1.get_length();a++){C1.Web.UI.Behavior.AnimationManager.$1.get_item(a).pause()}};C1.Web.UI.Behavior.AnimationManager.resume=function(){for(var a=0;a<C1.Web.UI.Behavior.AnimationManager.$1.get_length();a++){C1.Web.UI.Behavior.AnimationManager.$1.get_item(a).resume()}};C1.Web.UI.Behavior.AnimationManager.$6=function(){if(C1.Web.UI.Behavior.AnimationManager.$1.get_length()<1){C1.Web.UI.Behavior.AnimationManager.$8();return}var b=new Date().getTime();for(var a=0;a<C1.Web.UI.Behavior.AnimationManager.$1.get_length();a++){(C1.Web.UI.Behavior.AnimationManager.$1.get_item(a)).$2_36(b)}};C1.Web.UI.Behavior.AnimationManager.$7=function(){if(!C1.Web.UI.Behavior.AnimationManager.$4){C1.Web.UI.Behavior.AnimationManager.$4=true;C1.Web.UI.Behavior.AnimationManager.$3=window.setInterval(C1.Web.UI.Behavior.AnimationManager.$2,Math.round(1000/C1.Web.UI.Behavior.AnimationManager.$5))}};C1.Web.UI.Behavior.AnimationManager.$8=function(){if(C1.Web.UI.Behavior.AnimationManager.$4){C1.Web.UI.Behavior.AnimationManager.$4=false;window.clearInterval(C1.Web.UI.Behavior.AnimationManager.$3)}};C1.Web.UI.Behavior.AnimationManager.$9=function(a){C1.Web.UI.Behavior.AnimationManager.$1.$0(a)};C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs=function(b,a){C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs.initializeBase(this);this.$1_0=b;this.$1_1=a};C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs.prototype={$1_0:0,$1_1:0,get_width:function(){return this.$1_0},get_height:function(){return this.$1_1}};C1.Web.UI.Behavior.ResizeBehavior=function(a){this._sizeType=255;this._easing=31;this._resizeHandles=255;this._resizeRestriction=-1;this._last=new Sys.UI.Point(0,0);this._grabType=255;this._lastBound=new Sys.UI.Bounds(0,0,2,2);this._resizePosition=1;C1.Web.UI.Behavior.ResizeBehavior.initializeBase(this,[a]);C1.Web.UI.Behavior.ResizeBehavior.callBaseMethod(this,"initialize");if(C1.Web.UI.Utils.Common.getCurrentStyle(this.get_element(),"position","").toString()!=="absolute"){this.get_element().style.position="relative"}this._handleNorth=this.$2_9("n",0);this._handleEast=this.$2_9("e",0);this._handleSouth=this.$2_9("s",0);this._handleWest=this.$2_9("w",0);this._handleSE=this.$2_9("se",1001);this._handleSW=this.$2_9("sw",1002);this._handleNE=this.$2_9("ne",1003);this._handleNW=this.$2_9("nw",1004);this._handleProxy=this.$2_A("proxy",10000);this._onMouseDown=Function.createDelegate(this,this._OnMouseDown);Sys.UI.DomEvent.addHandler(this.get_element(),"mousedown",this._onMouseDown);this._onMouseOut=Function.createDelegate(this,this._OnMouseOut);Sys.UI.DomEvent.addHandler(this.get_element(),"mouseout",this._onMouseOut);this._onMouseOver=Function.createDelegate(this,this._OnMouseOver);Sys.UI.DomEvent.addHandler(this.get_element(),"mouseover",this._onMouseOver);this._onSelectionStart=Function.createDelegate(this,this._OnSelectionStart);this._onMouseUp=Function.createDelegate(this,this._OnMouseUp);this._oldPosition=C1.Web.UI.Utils.Common.getCurrentStyle(this.get_element(),"position","").toString()};C1.Web.UI.Behavior.ResizeBehavior.prototype={_handleNorth:null,_handleSouth:null,_handleEast:null,_handleWest:null,_handleNW:null,_handleSW:null,_handleNE:null,_handleSE:null,_handleProxy:null,_isResizing:false,_maxHeight:100000,_minHeight:0,_maxWidth:100000,_minWidth:0,_preserveRatio:false,_resizeCssClass:"c1-resize",_autoHideHandles:false,_transparentHandles:false,_ghost:false,_step:1,_duration:0,_onMouseOver:null,_onMouseOut:null,_onMouseDown:null,_onMouseUp:null,_onMouseMove:null,_onSelectionStart:null,_oldtop:0,_oldleft:0,_oldwidth:0,_oldheight:0,_useProxy:false,_scale:1,_oldPosition:"",isFixIE6BUG:true,$2_1:null,$2_2:"_CloneID",add_resizeStart:function(a){this.get_events().addHandler(this.get_id()+"_ResizeStart",a)},remove_resizeStart:function(a){this.get_events().removeHandler(this.get_id()+"_ResizeStart",a)},add_resizing:function(a){this.get_events().addHandler(this.get_id()+"_Resizing",a)},remove_resizing:function(a){this.get_events().removeHandler(this.get_id()+"_Resizing",a)},add_resizeEnd:function(a){this.get_events().addHandler(this.get_id()+"_ResizeEnd",a)},remove_resizeEnd:function(a){this.get_events().removeHandler(this.get_id()+"_ResizeEnd",a)},add_helperResizing:function(a){this.get_events().addHandler(this.get_id()+"_HelperResizing",a)},remove_helperResizing:function(a){this.get_events().removeHandler(this.get_id()+"_HelperResizing",a)},$2_3:function(){var b=new Sys.EventArgs();var a=this.get_events().getHandler(this.get_id()+"_ResizeStart");if(a){a(this,b)}},$2_4:function(){var b=new Sys.EventArgs();var a=this.get_events().getHandler(this.get_id()+"_Resizing");if(a){a(this,b)}},$2_5:function(){var b=new Sys.EventArgs();var a=this.get_events().getHandler(this.get_id()+"_ResizeEnd");if(a){a(this,b)}},$2_6:function(d,c){var b=new C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs(d,c);var a=this.get_events().getHandler(this.get_id()+"_HelperResizing");if(a){a(this,b)}},get_resizePosition:function(){return this._resizePosition},set_resizePosition:function(a){this._resizePosition=a;return a},get_animationDuration:function(){return this._duration},set_animationDuration:function(a){if(this._duration!==a){this._duration=a;this.raisePropertyChanged("AnimationDuration")}return a},get_easing:function(){return this._easing},set_easing:function(a){if(this._easing!==a){this._easing=a;this.raisePropertyChanged("Easing")}return a},get_autoHideHandles:function(){return this._autoHideHandles},set_autoHideHandles:function(a){if(a!==this._autoHideHandles){this._autoHideHandles=a;this.raisePropertyChanged("AutoHideHandles")}if(a){this.showHandles(0)}else{this.showHandles(this.get_grabHandles())}this.$2_F();return a},get_ghost:function(){return this._ghost},set_ghost:function(a){if(a!==this._ghost){this._ghost=a;this.raisePropertyChanged("Ghost")}if(a){this.$2_C()}else{this.$2_E()}return a},get_transparentHandles:function(){return this._transparentHandles},set_transparentHandles:function(a){if(a!==this._transparentHandles){this._transparentHandles=a;this.raisePropertyChanged("TransparentHandles")}this.$2_11(a);this.$2_F();return a},get_maxHeight:function(){return this._maxHeight},set_maxHeight:function(a){if(this._maxHeight!==a){this._maxHeight=a;this.raisePropertyChanged("MaxHeight")}return a},get_minHeight:function(){return this._minHeight},set_minHeight:function(a){if(this._minHeight!==a){this._minHeight=a;this.raisePropertyChanged("MinHeight")}return a},get_maxWidth:function(){return this._maxWidth},set_maxWidth:function(a){if(this._maxWidth!==a){this._maxWidth=a;this.raisePropertyChanged("MaxWidth")}return a},get_minWidth:function(){return this._minWidth},set_minWidth:function(a){if(this._minWidth!==a){this._minWidth=a;this.raisePropertyChanged("MinWidth")}return a},get_preserveRatio:function(){return this._preserveRatio},set_preserveRatio:function(a){if(this._preserveRatio!==a){this._preserveRatio=a;this.raisePropertyChanged("PreserveRatio")}return a},get_useHelper:function(){return this._useProxy},set_useHelper:function(a){if(this._useProxy!==a){this._useProxy=a;this.raisePropertyChanged("UseHelper")}return a},get_resizeCssClass:function(){return this._resizeCssClass},set_resizeCssClass:function(a){if(this._resizeCssClass!==a){this.$2_7(this.get_element().childNodes,a);this._resizeCssClass=a;this.raisePropertyChanged("ResizeCssClass")}return a},get_grabHandles:function(){return this._resizeHandles},set_grabHandles:function(a){if(this._resizeHandles!==a){this._resizeHandles=a;this.raisePropertyChanged("ResizeHandles")}this.showHandles(this._resizeHandles);return a},get_restrictSizing:function(){return this._resizeRestriction},set_restrictSizing:function(a){if(this._resizeRestriction!==a){this._resizeRestriction=a}return a},get_step:function(){return this._step},set_step:function(a){if(this._step!==a){this._step=a;this.raisePropertyChanged("Step")}return a},get_ghostElement:function(){return this.$2_1},get_clonedElementIDSuffix:function(){return this.$2_2},set_clonedElementIDSuffix:function(a){this.$2_2=a;return a},setGrabHandlerStyle:function(a,b){if((a&2)===2){this.$2_8(this._handleEast,b)}if((a&1)===1){this.$2_8(this._handleNorth,b)}if((a&16)===16){this.$2_8(this._handleNE,b)}if((a&64)===64){this.$2_8(this._handleNW,b)}if((a&4)===4){this.$2_8(this._handleSouth,b)}if((a&32)===32){this.$2_8(this._handleSE,b)}if((a&128)===128){this.$2_8(this._handleSW,b)}if((a&8)===8){this.$2_8(this._handleWest,b)}},getGrabHandlerStyle:function(a){if((a&2)===2){return this._handleEast.style}if((a&1)===1){return this._handleNorth.style}if((a&16)===16){return this._handleNE.style}if((a&64)===64){return this._handleNW.style}if((a&4)===4){return this._handleSouth.style}if((a&32)===32){return this._handleSE.style}if((a&128)===128){return this._handleSW.style}if((a&8)===8){return this._handleWest.style}return null},dispose:function(){if(this._onMouseDown){Sys.UI.DomEvent.removeHandler(this.get_element(),"mousedown",this._onMouseDown);this._onMouseDown=null}if(this._onMouseOut){Sys.UI.DomEvent.removeHandler(this.get_element(),"mouseout",this._onMouseOut);this._onMouseOut=null}if(this._onMouseOver){Sys.UI.DomEvent.removeHandler(this.get_element(),"mouseover",this._onMouseOver);this._onMouseOver=null}C1.Web.UI.Behavior.ResizeBehavior.callBaseMethod(this,"dispose")},$2_7:function(c,b){for(var a=0;a<c.length;a++){if(c[a].tagName){if(c[a].className){if(Sys.UI.DomElement.containsCssClass(c[a],"c1-resize-handle")){c[a].className=c[a].className.replace("c1-resize-handle "+this._resizeCssClass,"c1-resize-handle "+b)}}}}},$2_8:function(f,e){var c=(f)["style"];if(typeof(e)!=="undefined"){var d=e;for(var b in d){var a={key:b,value:d[b]};try{c[a.key]=e[a.key]}catch(g){}}}},$2_9:function(c,b){var a=document.createElement("DIV");if(b){a.style.zIndex=b}a.style.overflow="hidden";a.style.position="absolute";a.style.display="block";a.style.fontSize="0.1px";a.className="c1-resize-handle "+this.get_resizeCssClass()+"-"+c;this.get_element().appendChild(a);return a},$2_A:function(c,b){var a=document.createElement("DIV");a.style.zIndex=b;a.style.position="absolute";a.style.display="none";a.style.fontSize="0.1px";a.className="c1-resize-handle "+this.get_resizeCssClass()+"-"+c;this.get_element().appendChild(a);return a},$2_B:function(b){var a="EaseLinear";switch(b){case 1:a="EaseOutElastic";break;case 2:a="EaseInElastic";break;case 3:a="EaseInOutElastic";break;case 4:a="EaseOutBounce";break;case 5:a="EaseInBounce";break;case 6:a="EaseInOutBounce";break;case 7:a="EaseOutExpo";break;case 8:a="EaseInExpo";break;case 9:a="EaseInOutExpo";break;case 10:a="EaseOutQuad";break;case 11:a="EaseInQuad";break;case 12:a="EaseInOutQuad";break;case 13:a="EaseOutSine";break;case 14:a="EaseInSine";break;case 15:a="EaseInOutSine";break;case 16:a="EaseOutCirc";break;case 17:a="EaseInCirc";break;case 18:a="EaseInOutCirc";break;case 19:a="EaseOutCubic";break;case 20:a="EaseInCubic";break;case 21:a="EaseInOutCubic";break;case 22:a="EaseOutQuint";break;case 23:a="EaseInQuint";break;case 24:a="EaseInOutQuint";break;case 25:a="EaseOutBack";break;case 26:a="EaseInBack";break;case 27:a="EaseInOutBack";break;case 28:a="EaseOutQuart";break;case 29:a="EaseInQuart";break;case 30:a="EaseInOutQuart";break}return a},$2_C:function(){if(!this._handleProxy.hasChildNodes()){var b=this.get_element().cloneNode(true);b.id+=this.$2_2;b.style.width="100%";b.style.height="100%";b.style.position="static";this.$2_D(b.childNodes);this._handleProxy.appendChild(b);for(var a=b.childNodes.length-1;a>=0;a--){if(b.childNodes[a].nodeType===1){if(Sys.UI.DomElement.containsCssClass(b.childNodes[a],"c1-resize-handle")){b.removeChild(b.childNodes[a])}}}C1.Web.UI.Utils.Common.setOpacity(b,0.5);this.$2_1=b}},$2_D:function(b){for(var a=0;a<b.length;a++){if(b[a].id){b[a].id+=this.$2_2}this.$2_D(b[a].childNodes)}},$2_E:function(){if(this._handleProxy.hasChildNodes()){for(var a=this._handleProxy.childNodes.length-1;a>=0;a--){this._handleProxy.removeChild(this._handleProxy.childNodes[a])}}},$2_F:function(){if(!this.isFixIE6BUG){return}if(Sys.Browser.InternetExplorer===Sys.Browser.agent&&Sys.Browser.version<7){try{C1.Web.UI.Utils.Common.setOuterWidth(this.get_element(),this.get_element().offsetWidth+1);C1.Web.UI.Utils.Common.setOuterWidth(this.get_element(),this.get_element().offsetWidth-1)}catch(a){}}},$2_10:function(j,i,h,g,f){var e={};e.to=i-C1.Web.UI.Utils.Common.getBorderWidth(j,3)-C1.Web.UI.Utils.Common.getBorderWidth(j,1);e.easing=this.$2_B(f);var d={};d.to=h-C1.Web.UI.Utils.Common.getBorderWidth(j,0)-C1.Web.UI.Utils.Common.getBorderWidth(j,2);d.easing=this.$2_B(f);var c={};c.duration=g;c.width=e;c.height=d;var b=[];b[0]=c;var a=new C1.Web.UI.Behavior.Animation(j,b);a.add_stopped(Function.createDelegate(this,this._animation_Stopped));a.add_animating(Function.createDelegate(this,this._animation_Animating));a.start(1)},_animation_Animating:function(a,b){this.$2_4()},_animation_Stopped:function(a,b){this.$2_F();this.$2_5()},showHandles:function(a){if(!a&&this._isResizing){return}if((a&2)===2){this._handleEast.style.display="block"}else{this._handleEast.style.display="none"}if((a&1)===1){this._handleNorth.style.display="block"}else{this._handleNorth.style.display="none"}if((a&16)===16){this._handleNE.style.display="block"}else{this._handleNE.style.display="none"}if((a&64)===64){this._handleNW.style.display="block"}else{this._handleNW.style.display="none"}if((a&4)===4){this._handleSouth.style.display="block"}else{this._handleSouth.style.display="none"}if((a&32)===32){this._handleSE.style.display="block"}else{this._handleSE.style.display="none"}if((a&128)===128){this._handleSW.style.display="block"}else{this._handleSW.style.display="none"}if((a&8)===8){this._handleWest.style.display="block"}else{this._handleWest.style.display="none"}},$2_11:function(b){var a=1;if(b){a=0}C1.Web.UI.Utils.Common.setOpacity(this._handleNE,a);C1.Web.UI.Utils.Common.setOpacity(this._handleSW,a);C1.Web.UI.Utils.Common.setOpacity(this._handleSE,a);C1.Web.UI.Utils.Common.setOpacity(this._handleNW,a);C1.Web.UI.Utils.Common.setOpacity(this._handleEast,a);C1.Web.UI.Utils.Common.setOpacity(this._handleNorth,a);C1.Web.UI.Utils.Common.setOpacity(this._handleSouth,a);C1.Web.UI.Utils.Common.setOpacity(this._handleWest,a)},$2_12:function(a){return(a.style.top)?parseInt(a.style.top):0},$2_13:function(a){return(a.style.left)?parseInt(a.style.left):0},proxy_ResizeLeft:function(a){this.proxy_ResizeWidth(-a);a=this.$2_15(a);this._handleProxy.style.left=(this._oldleft+a)+"px"},proxy_ResizeTop:function(a){this.proxy_ResizeHeight(-a);a=this.$2_14(a);this._handleProxy.style.top=(this._oldtop+a)+"px"},proxy_ResizeHeight:function(a){var b=0;a=this.get_step()*Math.round(a/this.get_step());if(this.get_element().offsetHeight+a>1){b=Math.abs(this.get_element().offsetHeight+a)}if(this.get_preserveRatio()){b=this.$2_16(b);if(this._grabType===4||this._grabType===1){C1.Web.UI.Utils.Common.setOuterWidth(this._handleProxy,b*this._scale)}}else{if(b>this.get_maxHeight()){b=this.get_maxHeight()}if(b<this.get_minHeight()){b=this.get_minHeight()}}C1.Web.UI.Utils.Common.setOuterHeight(this._handleProxy,b)},proxy_ResizeWidth:function(b){var a=0;b=this.get_step()*Math.round(b/this.get_step());if(this.get_element().offsetWidth+b>1){a=Math.abs(this.get_element().offsetWidth+b)}if(this.get_preserveRatio()){a=this.$2_17(a);if(this._grabType===2||this._grabType===8){C1.Web.UI.Utils.Common.setOuterHeight(this._handleProxy,a/this._scale)}}else{if(a>this.get_maxWidth()){a=this.get_maxWidth()}if(a<this.get_minWidth()){a=this.get_minWidth()}}C1.Web.UI.Utils.Common.setOuterWidth(this._handleProxy,a)},$2_14:function(c){var b=0;var a=0;if(this.get_preserveRatio()){b=(this.get_maxHeight()<(this.get_maxWidth()/this._scale))?this.get_maxHeight():parseInt((this.get_maxWidth()/this._scale));a=(this.get_minHeight()>(this.get_minWidth()/this._scale))?this.get_minHeight():parseInt(this.get_minWidth()/this._scale)}else{b=this.get_maxHeight();a=this.get_minHeight()}if(c>0){if(a>this._lastBound.height-c){c=this._lastBound.height-a}}else{if(b<this._lastBound.height-c){c=this._lastBound.height-b}}return c},$2_15:function(c){var b=0;var a=0;if(this.get_preserveRatio()){b=(this.get_maxWidth()<(this.get_maxHeight()*this._scale))?this.get_maxWidth():parseInt(this.get_maxHeight()*this._scale);a=(this.get_minWidth()>(this.get_minHeight()*this._scale))?this.get_minWidth():parseInt(this.get_minHeight()*this._scale)}else{b=this._maxWidth;a=this._minWidth}if(c>0){if(a>this._lastBound.width-c){c=this._lastBound.width-a}}else{if(b<this._lastBound.width-c){c=this._lastBound.width-b}}return c},$2_16:function(c){var b=(this.get_maxHeight()<(this.get_maxWidth()/this._scale))?this.get_maxHeight():parseInt((this.get_maxWidth()/this._scale));var a=(this.get_minHeight()>(this.get_minWidth()/this._scale))?this.get_minHeight():parseInt(this.get_minWidth()/this._scale);if(c>b){c=b}if(c<a){c=a}return c},$2_17:function(c){var b=(this.get_maxWidth()<(this.get_maxHeight()*this._scale))?this.get_maxWidth():parseInt(this.get_maxHeight()*this._scale);var a=(this.get_minWidth()>(this.get_minHeight()*this._scale))?this.get_minWidth():parseInt(this.get_minHeight()*this._scale);if(c>b){c=b}if(c<a){c=a}return c},_ResizeLeft:function(b){this._ResizeWidth(-b);b=this.$2_15(b);var a=this._lastBound.x+b;this.get_element().style.left=a+"px"},_ResizeTop:function(a){this._ResizeHeight(-a);a=this.$2_14(a);var b=this._lastBound.y+a;this.get_element().style.top=b+"px"},_ResizeHeight:function(a){a=this.get_step()*Math.round(a/this.get_step());var b=Math.min(Math.max(this._lastBound.height+a,this._minHeight),this._maxHeight);if(this.get_preserveRatio()){b=this.$2_16(b);if(this._grabType===4||this._grabType===1){C1.Web.UI.Utils.Common.setOuterWidth(this.get_element(),b*this._scale)}}C1.Web.UI.Utils.Common.setOuterHeight(this.get_element(),b)},_ResizeWidth:function(b){b=this.get_step()*Math.round(b/this.get_step());var a=Math.min(Math.max(this._lastBound.width+b,this._minWidth),this._maxWidth);if(this.get_preserveRatio()){a=this.$2_17(a);if(this._grabType===2||this._grabType===8){C1.Web.UI.Utils.Common.setOuterHeight(this.get_element(),a/this._scale)}}C1.Web.UI.Utils.Common.setOuterWidth(this.get_element(),a)},_OnMouseOver:function(a){if(this.get_autoHideHandles()){this.showHandles(this.get_grabHandles())}this.$2_F();if(!this._useProxy){if(this.get_animationDuration()>0||this.get_ghost()){this._useProxy=true}else{this._useProxy=false}}if(this._isResizing){return}},_OnMouseOut:function(a){if(this.get_autoHideHandles()){this.showHandles(0)}this._sizeType=255},_OnMouseDown:function(c){this._sizeType=255;if(c.target===this._handleEast){this._sizeType=2;this._onMouseMove=Function.createDelegate(this,this._OnSizeEast)}if(c.target===this._handleSE){this._sizeType=32;this._onMouseMove=Function.createDelegate(this,this._OnSizeSE)}if(c.target===this._handleNE){this._sizeType=16;this._onMouseMove=Function.createDelegate(this,this._OnSizeNE)}if(c.target===this._handleNorth){this._sizeType=1;this._onMouseMove=Function.createDelegate(this,this._OnSizeNorth)}if(c.target===this._handleWest){this._sizeType=8;this._onMouseMove=Function.createDelegate(this,this._OnSizeWest)}if(c.target===this._handleSouth){this._sizeType=4;this._onMouseMove=Function.createDelegate(this,this._OnSizeSouth)}if(c.target===this._handleNW){this._sizeType=64;this._onMouseMove=Function.createDelegate(this,this._OnSizeNW)}if(c.target===this._handleSW){this._sizeType=128;this._onMouseMove=Function.createDelegate(this,this._OnSizeSW)}if(this.get_restrictSizing()!==-1){var b=this._sizeType;if(!(b&this._resizeRestriction)){return}}if(this._sizeType!==255){this.setDocumentCursor(this._sizeType);if(this.get_resizePosition()===1){this.get_element().style.position=this._oldPosition;if(C1.Web.UI.Utils.Common.getCurrentStyle(this.get_element(),"position","").toString()==="absolute"){if(!(this._sizeType===4||this._sizeType===2||this._sizeType===32)){var a=C1.Web.UI.Utils.Common.getContentBounds(this.get_element(),false);C1.Web.UI.Utils.Common.setBounds(this.get_element(),a)}}}else{if(this.get_resizePosition()===2){this.get_element().style.position="relative"}else{var d=C1.Web.UI.Utils.Common.getContentBounds(this.get_element(),true);C1.Web.UI.Utils.Common.setBounds(this.get_element(),d)}}this._isResizing=true;this._last.x=c.clientX;this._last.y=c.clientY;this._lastBound.width=this.get_element().offsetWidth;this._lastBound.height=this.get_element().offsetHeight;this._lastBound.x=this.$2_13(this.get_element());this._lastBound.y=this.$2_12(this.get_element());if(this.get_preserveRatio()){switch(this._sizeType){case 16:this._onMouseMove=Function.createDelegate(this,this._OnSizeNorth);break;case 64:this._onMouseMove=Function.createDelegate(this,this._OnSizeWest);break;case 32:this._onMouseMove=Function.createDelegate(this,this._OnSizeEast);break;case 128:this._onMouseMove=Function.createDelegate(this,this._OnSizeWest);break}}Sys.UI.DomEvent.addHandler(document,"mouseup",this._onMouseUp);Sys.UI.DomEvent.addHandler(document,"selectstart",this._onSelectionStart);Sys.UI.DomEvent.addHandler(document,"mousemove",this._onMouseMove);if(this.get_preserveRatio()){this._scale=this.get_element().offsetWidth/this.get_element().offsetHeight;this._grabType=this._sizeType;switch(this._sizeType){case 16:this._grabType=1;break;case 64:this._grabType=8;break;case 32:this._grabType=2;break;case 128:this._grabType=8;break}}if(this._useProxy){C1.Web.UI.Utils.Common.setOuterWidth(this._handleProxy,this.get_element().offsetWidth);C1.Web.UI.Utils.Common.setOuterHeight(this._handleProxy,this.get_element().offsetHeight);this._handleProxy.style.top="-"+C1.Web.UI.Utils.Common.getBorderWidth(this.get_element(),0).toString()+"px";this._handleProxy.style.left="-"+C1.Web.UI.Utils.Common.getBorderWidth(this.get_element(),3).toString()+"px";this._oldtop=-parseInt(C1.Web.UI.Utils.Common.getBorderWidth(this.get_element(),0));this._oldleft=-parseInt(C1.Web.UI.Utils.Common.getBorderWidth(this.get_element(),3));this._oldwidth=this._handleProxy.offsetWidth;this._oldheight=this._handleProxy.offsetHeight;this._handleProxy.style.display="block"}this.$2_3()}},_OnMouseUp:function(c){document.body.style.cursor="default";Sys.UI.DomEvent.removeHandler(document,"mousemove",this._onMouseMove);Sys.UI.DomEvent.removeHandler(document,"mouseup",this._onMouseUp);Sys.UI.DomEvent.removeHandler(document,"selectstart",this._onSelectionStart);this._isResizing=false;if(this._useProxy){if(C1.Web.UI.Utils.Common.getCurrentStyle(this.get_element(),"position","").toString()==="absolute"){var b=this.get_element().offsetLeft+this.$2_13(this._handleProxy)-this._oldleft;this.get_element().style.left=b.toString()+"px";var a=this.get_element().offsetTop+this.$2_12(this._handleProxy)-this._oldtop;this.get_element().style.top=a.toString()+"px"}else{var f=this.$2_13(this.get_element())+this.$2_13(this._handleProxy)-this._oldleft;this.get_element().style.left=f.toString()+"px";var d=this.$2_12(this.get_element())+this.$2_12(this._handleProxy)-this._oldtop;this.get_element().style.top=d.toString()+"px"}if(this.get_animationDuration()>0){this.$2_10(this.get_element(),this._handleProxy.offsetWidth,this._handleProxy.offsetHeight,this.get_animationDuration(),this.get_easing())}else{C1.Web.UI.Utils.Common.setOuterWidth(this.get_element(),this._handleProxy.offsetWidth);C1.Web.UI.Utils.Common.setOuterHeight(this.get_element(),this._handleProxy.offsetHeight);this.$2_5()}this._handleProxy.style.display="none"}else{this.$2_5()}},_OnSelectionStart:function(a){a.preventDefault()},setDocumentCursor:function(a){switch(a){case 2:document.body.style.cursor="e-resize";break;case 1:document.body.style.cursor="n-resize";break;case 16:document.body.style.cursor="ne-resize";break;case 64:document.body.style.cursor="nw-resize";break;case 4:document.body.style.cursor="s-resize";break;case 32:document.body.style.cursor="se-resize";break;case 128:document.body.style.cursor="sw-resize";break;case 8:document.body.style.cursor="w-resize";break}},_OnSizeWest:function(a){if(this._useProxy){this.proxy_ResizeLeft(a.clientX-this._last.x);this.$2_6(this._handleProxy.offsetWidth,this._handleProxy.offsetHeight)}else{this._ResizeLeft(a.clientX-this._last.x);this.$2_F();this.$2_4()}},_OnSizeEast:function(a){if(this._useProxy){this.proxy_ResizeWidth(a.clientX-this._last.x);this.$2_6(this._handleProxy.offsetWidth,this._handleProxy.offsetHeight)}else{this._ResizeWidth(a.clientX-this._last.x);this.$2_F();this.$2_4()}},_OnSizeNorth:function(a){if(this._useProxy){this.proxy_ResizeTop(a.clientY-this._last.y);this.$2_6(this._handleProxy.offsetWidth,this._handleProxy.offsetHeight)}else{this._ResizeTop(a.clientY-this._last.y);this.$2_F();this.$2_4()}},_OnSizeSouth:function(a){if(this._useProxy){this.proxy_ResizeHeight(a.clientY-this._last.y);this.$2_6(this._handleProxy.offsetWidth,this._handleProxy.offsetHeight)}else{this._ResizeHeight(a.clientY-this._last.y);this.$2_F();this.$2_4()}},_OnSizeNW:function(a){this._OnSizeNorth(a);this._OnSizeWest(a)},_OnSizeNE:function(a){this._OnSizeNorth(a);this._OnSizeEast(a)},_OnSizeSW:function(a){this._OnSizeSouth(a);this._OnSizeWest(a)},_OnSizeSE:function(a){this._OnSizeSouth(a);this._OnSizeEast(a)}};Type.registerNamespace("C1.Web.UI.Interfaces");C1.Web.UI.Interfaces.IAjaxRequestSupport=function(){};C1.Web.UI.Interfaces.IAjaxRequestSupport.registerInterface("C1.Web.UI.Interfaces.IAjaxRequestSupport");C1.Web.UI.Interfaces.IC1Dockable=function(){};C1.Web.UI.Interfaces.IC1Dockable.registerInterface("C1.Web.UI.Interfaces.IC1Dockable");C1.Web.UI.Interfaces.IC1DropContainer=function(){};C1.Web.UI.Interfaces.IC1DropContainer.registerInterface("C1.Web.UI.Interfaces.IC1DropContainer");C1.Web.UI.Interfaces.IJsonSerializableSupport=function(){};C1.Web.UI.Interfaces.IJsonSerializableSupport.registerInterface("C1.Web.UI.Interfaces.IJsonSerializableSupport");C1.Web.UI.Interfaces.JsonSerializableHelper=function(d,c){this.control=c;var b=d;this._inputField=$get(b+"__jsonserverstate");if(this._inputField){this._inputField.name=this._inputField.id;var a=this._inputField.value;this._propertiesState=C1.Web.UI.Utils.JSON.fromJSONString(a);if(!this._propertiesState){throw Error.create("(CE101002)Control "+b+" can not be initialized because PropertiesState JSON string is wrong.")}this.control.assignPropertiesState(this._propertiesState)}else{throw Error.create("(CE101004) Control "+b+" can not be initialized because PropertiesState field is missing. Make sure waht method RenderJsonDataField called on server side")}};C1.Web.UI.Interfaces.JsonSerializableHelper.prototype={_inputField:null,_propertiesState:null,control:null,saveState:function(){if(this._inputField){this._inputField.value=C1.Web.UI.Utils.JSON.toJSONString(this._propertiesState)}else{throw Error.create("(CE101005) Can't save properties state.")}}};Type.registerNamespace("C1.Web.UI.Utils");C1.Web.UI.Utils.BrowserHistory=function(){};C1.Web.UI.Utils.BrowserHistory.get_events=function(){if(!C1.Web.UI.Utils.BrowserHistory.$4){C1.Web.UI.Utils.BrowserHistory.$4=new Sys.EventHandlerList();C1.Web.UI.Utils.BrowserHistory.$3="###";C1.Web.UI.Utils.BrowserHistory.$0=Function.createDelegate(null,C1.Web.UI.Utils.BrowserHistory.$6);C1.Web.UI.Utils.BrowserHistory.$1=Function.createDelegate(null,C1.Web.UI.Utils.BrowserHistory.$5);C1.Web.UI.Utils.RawEvent.addHandler(window.document,"click",C1.Web.UI.Utils.BrowserHistory.$1);C1.Web.UI.Utils.BrowserHistory.$2=window.setInterval(Function.createDelegate(null,C1.Web.UI.Utils.BrowserHistory.$6),300)}return C1.Web.UI.Utils.BrowserHistory.$4};C1.Web.UI.Utils.BrowserHistory.add_urlHashChanged=function(a){C1.Web.UI.Utils.BrowserHistory.get_events().addHandler("UrlHashChanged",a)};C1.Web.UI.Utils.BrowserHistory.remove_urlHashChanged=function(a){C1.Web.UI.Utils.BrowserHistory.get_events().removeHandler("UrlHashChanged",a)};C1.Web.UI.Utils.BrowserHistory.back=function(){window.history.back()};C1.Web.UI.Utils.BrowserHistory.forward=function(){window.history.forward()};C1.Web.UI.Utils.BrowserHistory.setUrl=function(a){window.location.href=a};C1.Web.UI.Utils.BrowserHistory.setUrlHash=function(a){window.location.hash=a};C1.Web.UI.Utils.BrowserHistory.getVerticalLinkInfo=function(c,d){var b=new C1.Web.UI.Utils.C1VerticalLinkInfo();b.urlHash=c;if(!C1.Web.UI.Utils.Common.testIsNull(d)&&d!==""){if(c.startsWith(d)){c=c.substr(d.length)}else{return null}}var a=c.indexOf("-pagetitle:");var f=c.indexOf(":pagetitle-");if(a!==-1&&f!==-1){var e=c.substring(a+"-pagetitle:".length,f);e=window.unescape(e);b.pageTitle=e;b.urlHashWithoutTitleAndPrefix=c.substring(0,a)+c.substring(f,c.length-"-pagetitle:".length)}else{b.urlHashWithoutTitleAndPrefix=c;b.pageTitle=""}b.previousPageTitle="";b.nextPageTitle="";return b};C1.Web.UI.Utils.BrowserHistory.getUrlHashPart=function(c,d,e){var b=c.indexOf(d);if(b===-1){return null}var a=c.length;if(!C1.Web.UI.Utils.Common.testIsNull(e)&&e!==""){a=c.indexOf(e);if(a===-1){return null}}return c.substring(b+d.length,a)};C1.Web.UI.Utils.BrowserHistory.$5=function(c){var b=C1.Web.UI.Utils.RawEvent.findTargetByTagName(c,"A");if(b){var a=(b).href;var d=a.indexOf("#");if(d!==-1){window.location.href=a;return C1.Web.UI.Utils.RawEvent.cancelBrowserResponse(c)}}window.setTimeout(C1.Web.UI.Utils.BrowserHistory.$0,1);return true};C1.Web.UI.Utils.BrowserHistory.$6=function(){var a=""+window.location.hash+"";if(C1.Web.UI.Utils.BrowserHistory.$3!==a){C1.Web.UI.Utils.BrowserHistory.$3=a;C1.Web.UI.Utils.BrowserHistory.$7()}};C1.Web.UI.Utils.BrowserHistory.$7=function(){var a=C1.Web.UI.Utils.BrowserHistory.get_events().getHandler("UrlHashChanged");if(a){a((C1.Web.UI.Utils.BrowserHistory.$3.length>0)?C1.Web.UI.Utils.BrowserHistory.$3.substring(1,C1.Web.UI.Utils.BrowserHistory.$3.length):"")}};C1.Web.UI.Utils.C1VerticalLinkInfo=function(){};C1.Web.UI.Utils.C1VerticalLinkInfo.prototype={urlHash:null,urlHashWithoutTitleAndPrefix:null,pageTitle:null,previousPageTitle:null,nextPageTitle:null};C1.Web.UI.Utils.Common=function(){};C1.Web.UI.Utils.Common.elementContains=function(b,a){if(C1.Web.UI.Utils.Common.testIsNull(a)||C1.Web.UI.Utils.Common.testIsNull(b)){return false}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){return b.contains(a)}if(a===b){return true}while(!C1.Web.UI.Utils.Common.testIsNull(a.parentNode)){a=a.parentNode;if(a===b){return true}}return false};C1.Web.UI.Utils.Common.getElementByCssClass=function(c,d){if(!C1.Web.UI.Utils.Common.testIsNull(c.className)&&Sys.UI.DomElement.containsCssClass(c,d)){return c}var b=c.childNodes.length;for(var a=0;a<b;a++){var e=c.childNodes[a];if(!C1.Web.UI.Utils.Common.testIsNull(e.className)&&Sys.UI.DomElement.containsCssClass(e,d)){return e}}return null};C1.Web.UI.Utils.Common.getElementsByCssClass=function(c,d){var b=[];if(!C1.Web.UI.Utils.Common.testIsNull(c.className)&&Sys.UI.DomElement.containsCssClass(c,d)){b[b.length]=c}var a=c.childNodes;var g=a.length;for(var f=0;f<g;f++){var e=a[f];if(!C1.Web.UI.Utils.Common.testIsNull(e.className)&&Sys.UI.DomElement.containsCssClass(e,d)){b[b.length]=e}}return b};C1.Web.UI.Utils.Common.getElementByCssClassRecur=function(c,d){if(!C1.Web.UI.Utils.Common.testIsNull(c.className)&&Sys.UI.DomElement.containsCssClass(c,d)){return c}var b=c.childNodes.length;for(var a=0;a<b;a++){var f=c.childNodes[a];if(!C1.Web.UI.Utils.Common.testIsNull(f.className)&&Sys.UI.DomElement.containsCssClass(f,d)){return f}var e=C1.Web.UI.Utils.Common.getElementByCssClassRecur(f,d);if(!C1.Web.UI.Utils.Common.testIsNull(e)){return e}}return null};C1.Web.UI.Utils.Common.getElementByTagName=function(d,c){var b=d.childNodes;var a=b.length;c=c.toLowerCase();for(var e=0;e<a;e++){if(b[e].tagName.toLowerCase()===c){return b[e]}}return null};C1.Web.UI.Utils.Common.getCurrentStyle=function(d,e,c){var b=null;if(d){if(d.currentStyle){b=(d.currentStyle)[e]}else{if(document.defaultView&&document.defaultView.getComputedStyle){var a=document.defaultView.getComputedStyle(d,null);if(a){b=(a)[e]}}}if(!b&&d.style.getPropertyValue){b=d.style.getPropertyValue(e)}else{if(!b&&d.style.getAttribute){b=d.style.getAttribute(e)}}}if(!b||(b)===""||typeof(b)==="undefined"){if(typeof(c)!=="undefined"){b=c}else{b=null}}return b};C1.Web.UI.Utils.Common.getOpacity=function(c){if(!c){throw Error.argumentNull()}var b=false;var a="1.0";if(c.filters){var e=c.filters;if(e.length>0){var d=(e)["DXImageTransform.Microsoft.Alpha"];if(d){a=(d.opacity/100);b=true}}}else{a=C1.Web.UI.Utils.Common.getCurrentStyle(c,"opacity",1);b=true}if(!b){return 1}return parseFloat(a)};C1.Web.UI.Utils.Common.parseSize=function(d,c){if(d){if(d==="inherit"||d==="auto"){return 0}var b=0;var a=C1.Web.UI.Utils.Common.$15(d);b=a.size;if(a.type==="em"){var e=C1.Web.UI.Utils.Common.$12(c);if(!e){e=16}b=b*e}return Math.round(b)}return 0};C1.Web.UI.Utils.Common.setOpacity=function(h,i){if(!h){throw Error.argumentNull()}if(i<0){i=0}if(i>1){i=1}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){var g=false;try{g=(h.filters)}catch(e){}var f=true;if(g){var d=h.filters;if(d.length>0){var c=(d)["DXImageTransform.Microsoft.Alpha"];if(c){c.enabled=(i!==1);f=true;c.opacity=i*100}}}if(i>=1){var b=""+h.style.filter+"";var a=new RegExp("progid:( )*DXImageTransform\\.Microsoft\\.Alpha( )*\\(opacity=(\"|')*\\d*\\.*\\d*(\"|')*\\)( )*;*","i");b=b.replace(a,"");h.style.filter=b}else{if(f){h.style.filter=String.format("progid:DXImageTransform.Microsoft.Alpha(opacity={0})",i*100)}}}else{h.style.opacity=i}};C1.Web.UI.Utils.Common.isVisible=function(c){if(c){var b=C1.Web.UI.Utils.Common.getCurrentStyle(c,"display",null);var a=C1.Web.UI.Utils.Common.getCurrentStyle(c,"visibility",null);if(b&&a){var e=(b!=="none"&&a!=="hidden");if(e){var d=c.parentNode;if(d){e=(d.offsetHeight>0||d.offsetWidth>0)}}return e}else{if(c.offsetHeight>0||c.offsetWidth>0){return true}}}return false};C1.Web.UI.Utils.Common.isBorderVisible=function(c,d){if(!c){throw Error.argumentNull("element")}if(d<0||d>3){throw Error.argumentOutOfRange("boxSide")}var b=C1.Web.UI.Utils.Common.$0[d];var a=C1.Web.UI.Utils.Common.getCurrentStyle(c,b,null);return a!=="none"};C1.Web.UI.Utils.Common.getBorderWidth=function(c,d){if(!c){throw Error.argumentNull("element")}if(d<0||d>3){throw Error.argumentOutOfRange("boxSide")}if(!C1.Web.UI.Utils.Common.isBorderVisible(c,d)){return 0}var b=C1.Web.UI.Utils.Common.$1[d];var a=C1.Web.UI.Utils.Common.getCurrentStyle(c,b,null);return C1.Web.UI.Utils.Common.$16(a)};C1.Web.UI.Utils.Common.getPadding=function(c,d){if(!c){throw Error.argumentNull("element")}if(d<0||d>3){throw Error.argumentOutOfRange("boxSide")}var b=C1.Web.UI.Utils.Common.$2[d];var a=C1.Web.UI.Utils.Common.getCurrentStyle(c,b,null);return C1.Web.UI.Utils.Common.$13(a,c)};C1.Web.UI.Utils.Common.getMargin=function(c,d){if(!c){throw Error.argumentNull("element")}if(d<0||d>3){throw Error.argumentOutOfRange("boxSide")}var b=C1.Web.UI.Utils.Common.$3[d];var a=C1.Web.UI.Utils.Common.getCurrentStyle(c,b,null);return C1.Web.UI.Utils.Common.$14(a,c)};C1.Web.UI.Utils.Common.getBorderBox=function(b){if(!b){throw Error.argumentNull("element")}var a={top:C1.Web.UI.Utils.Common.getBorderWidth(b,0),right:C1.Web.UI.Utils.Common.getBorderWidth(b,1),bottom:C1.Web.UI.Utils.Common.getBorderWidth(b,2),left:C1.Web.UI.Utils.Common.getBorderWidth(b,3)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a};C1.Web.UI.Utils.Common.getPaddingBox=function(b){if(!b){throw Error.argumentNull("element")}var a={top:C1.Web.UI.Utils.Common.getPadding(b,0),right:C1.Web.UI.Utils.Common.getPadding(b,1),bottom:C1.Web.UI.Utils.Common.getPadding(b,2),left:C1.Web.UI.Utils.Common.getPadding(b,3)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a};C1.Web.UI.Utils.Common.getMarginBox=function(b){if(!b){throw Error.argumentNull("element")}var a={top:C1.Web.UI.Utils.Common.getMargin(b,0),right:C1.Web.UI.Utils.Common.getMargin(b,1),bottom:C1.Web.UI.Utils.Common.getMargin(b,2),left:C1.Web.UI.Utils.Common.getMargin(b,3)};a.horizontal=a.left+a.right;a.vertical=a.top+a.bottom;return a};C1.Web.UI.Utils.Common.setBounds=function(a,b){if(!a){throw Error.argumentNull("element")}if(!b){throw Error.argumentNull("bounds")}C1.Web.UI.Utils.Common.setSize(a,new C1.Web.UI.Utils.Size(b.width,b.height));Sys.UI.DomElement.setLocation(a,b.x,b.y)};C1.Web.UI.Utils.Common.getContentBounds=function(c,d){var b=C1.Web.UI.Utils.Measurement.getBounds(c);var a=C1.Web.UI.Utils.Common.getBorderBox(c);b.x+=a.left;b.y+=a.top;b.width-=a.horizontal;b.height-=a.vertical;a=C1.Web.UI.Utils.Common.getPaddingBox(c);b.x+=a.left;b.y+=a.top;b.width-=a.horizontal;b.height-=a.vertical;return b};C1.Web.UI.Utils.Common.isBrowserStandardMode=function(){if(Sys.Browser.agent===Sys.Browser.Safari){return true}if(Sys.Browser.agent===Sys.Browser.Opera&&Sys.Browser.version>8){return true}if(document.compatMode==="CSS1Compat"){return true}return false};C1.Web.UI.Utils.Common.getOuterWidth=function(b){var a=b.offsetWidth;a+=C1.Web.UI.Utils.Common.getMargin(b,3);a+=C1.Web.UI.Utils.Common.getMargin(b,1);return a};C1.Web.UI.Utils.Common.getOuterHeight=function(b){var a=b.offsetHeight;a+=C1.Web.UI.Utils.Common.getMargin(b,0);a+=C1.Web.UI.Utils.Common.getMargin(b,2);return a};C1.Web.UI.Utils.Common.setOuterWidth=function(a,b){b-=C1.Web.UI.Utils.Common.getMargin(a,3);b-=C1.Web.UI.Utils.Common.getMargin(a,1);if(C1.Web.UI.Utils.Common.isBrowserStandardMode()){b-=C1.Web.UI.Utils.Common.getPadding(a,3);b-=C1.Web.UI.Utils.Common.getPadding(a,1);b-=C1.Web.UI.Utils.Common.getBorderWidth(a,3);b-=C1.Web.UI.Utils.Common.getBorderWidth(a,1)}if(b<0){a.style.width="auto"}else{a.style.width=b+"px"}};C1.Web.UI.Utils.Common.setOuterHeight=function(c,a){var b=a;a-=C1.Web.UI.Utils.Common.getMargin(c,0);a-=C1.Web.UI.Utils.Common.getMargin(c,2);if(C1.Web.UI.Utils.Common.isBrowserStandardMode()){a-=C1.Web.UI.Utils.Common.getPadding(c,0);a-=C1.Web.UI.Utils.Common.getPadding(c,2);a-=C1.Web.UI.Utils.Common.getBorderWidth(c,0);a-=C1.Web.UI.Utils.Common.getBorderWidth(c,2)}if(a<0){c.style.height="auto"}else{c.style.height=a+"px"}};C1.Web.UI.Utils.Common.getContentWidth=function(b){var a=b.offsetWidth;a-=C1.Web.UI.Utils.Common.getPadding(b,3);a-=C1.Web.UI.Utils.Common.getPadding(b,1);a-=C1.Web.UI.Utils.Common.getBorderWidth(b,3);a-=C1.Web.UI.Utils.Common.getBorderWidth(b,1);return a};C1.Web.UI.Utils.Common.getContentHeight=function(b){var a=b.offsetHeight;a-=C1.Web.UI.Utils.Common.getPadding(b,0);a-=C1.Web.UI.Utils.Common.getPadding(b,2);a-=C1.Web.UI.Utils.Common.getBorderWidth(b,0);a-=C1.Web.UI.Utils.Common.getBorderWidth(b,2);return a};C1.Web.UI.Utils.Common.getInheritedBackgroundColor=function(c){if(!c){return"#FFFFFF"}var b=C1.Web.UI.Utils.Common.getCurrentStyle(c,"backgroundColor",null);try{while(!b||b===""||b==="transparent"||b==="rgba(0, 0, 0, 0)"){c=c.parentNode;if(!c){b="#FFFFFF"}else{b=C1.Web.UI.Utils.Common.getCurrentStyle(c,"backgroundColor",null)}}}catch(a){b="#FFFFFF"}return b};C1.Web.UI.Utils.Common.getMaxZIndex=function(c){if(!c){return 0}var b=0;var a=c;while(a){if(a.style&&((a.style.zIndex)||!a.style.zIndex)){if(a.style.zIndex>b){b=a.style.zIndex*1}}a=a.parentNode}return b};C1.Web.UI.Utils.Common.testIsNull=function(a){return(typeof(a)==="undefined")||(typeof(a)==="object"&&!a)};C1.Web.UI.Utils.Common.stringIsNullOrEmpty=function(a){return(typeof(a)==="undefined")||(typeof(a)==="object"&&!a)||a===""};C1.Web.UI.Utils.Common.clearPendingTimeout=function(a){if(a){window.clearTimeout(a)}return null};C1.Web.UI.Utils.Common.setVisible=function(a,b){if(a&&b!==C1.Web.UI.Utils.Common.isVisible(a)){if(b){if(a.style.removeAttribute){a.style.removeAttribute("display")}else{a.style.removeProperty("display")}}else{a.style.display="none"}a.style.visibility=(b)?"visible":"hidden"}C1.Web.UI.Utils.Common.notifyVisibleState(a)};C1.Web.UI.Utils.Common.notifyVisibleState=function(c){if(!C1.Web.UI.Utils.Common.$5){return}for(var b=0;b<C1.Web.UI.Utils.Common.$6.length;b++){try{var a=C1.Web.UI.Utils.Common.$5[b];var h=C1.Web.UI.Utils.Common.isVisible(a);for(var g=0;g<C1.Web.UI.Utils.Common.$4.length;g++){var f=C1.Web.UI.Utils.Common.$4[g];f(a,h)}if(h!==C1.Web.UI.Utils.Common.$7[b]){C1.Web.UI.Utils.Common.$7[b]=h;var e=C1.Web.UI.Utils.Common.$6[b];e(a,h)}}catch(d){}}};C1.Web.UI.Utils.Common.listenVisibleState=function(c,d){if(!c){C1.Web.UI.Utils.Common.$4[C1.Web.UI.Utils.Common.$4.length]=d;return}var b=c.id;if(!b||b===""){throw Error.create("ListenVisibleState failed, element id is empty")}if(!C1.Web.UI.Utils.Common.$5){C1.Web.UI.Utils.Common.$5=new Array(0);C1.Web.UI.Utils.Common.$7=new Array(0);C1.Web.UI.Utils.Common.$6=new Array(0)}var a=C1.Web.UI.Utils.Common.$5.length;C1.Web.UI.Utils.Common.$5[a]=c;C1.Web.UI.Utils.Common.$7[a]=C1.Web.UI.Utils.Common.isVisible(c);C1.Web.UI.Utils.Common.$6[a]=d};C1.Web.UI.Utils.Common.unListenVisibleState=function(c,d){if(!c){Array.remove(C1.Web.UI.Utils.Common.$4,d);return}if(!C1.Web.UI.Utils.Common.$5){return}var b=C1.Web.UI.Utils.Common.$5.length;for(var a=0;a<b;a++){if(C1.Web.UI.Utils.Common.$5[a]===c){Array.removeAt(C1.Web.UI.Utils.Common.$5,a);Array.removeAt(C1.Web.UI.Utils.Common.$7,a);Array.removeAt(C1.Web.UI.Utils.Common.$6,a)}}};C1.Web.UI.Utils.Common.showModalLayer=function(c,b){C1.Web.UI.Utils.Common.$B=b;if(!C1.Web.UI.Utils.Common.$A){if(!C1.Web.UI.Utils.Common.$9){if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){C1.Web.UI.Utils.Common.$8=document.createElement("IFRAME");C1.Web.UI.Utils.Common.$8.style.display="none";C1.Web.UI.Utils.Common.$8.style.position="absolute";C1.Web.UI.Utils.Common.setOpacity(C1.Web.UI.Utils.Common.$8,0.01);document.body.appendChild(C1.Web.UI.Utils.Common.$8)}C1.Web.UI.Utils.Common.$9=document.createElement("DIV");C1.Web.UI.Utils.Common.$9.style.display="none";C1.Web.UI.Utils.Common.$9.style.position="absolute";C1.Web.UI.Utils.Common.$9.style.backgroundColor="gray";C1.Web.UI.Utils.Common.$9.id="c1modallayer";C1.Web.UI.Utils.Common.setOpacity(C1.Web.UI.Utils.Common.$9,0.01);document.body.appendChild(C1.Web.UI.Utils.Common.$9)}if(C1.Web.UI.Utils.Common.$B){C1.Web.UI.Utils.Common.$C=window.document.documentElement.style.overflow;window.document.documentElement.style.overflow="hidden"}var a=0;if(c){a=C1.Web.UI.Utils.Common.getMaxZIndex(c)}if(a<100){a=102}if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){C1.Web.UI.Utils.Common.$8.style.zIndex=(a-2);C1.Web.UI.Utils.Common.$8.style.display=""}C1.Web.UI.Utils.Common.$9.style.zIndex=(a-1);C1.Web.UI.Utils.Common.$9.style.display="";C1.Web.UI.Utils.Common.$A=true;C1.Web.UI.Utils.Common.$D()}};C1.Web.UI.Utils.Common.showModalLayerWithOpacity=function(c,a,b){C1.Web.UI.Utils.Common.showModalLayer(c,a);if(b>=0&&b<=1){if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){C1.Web.UI.Utils.Common.setOpacity(C1.Web.UI.Utils.Common.$8,b)}C1.Web.UI.Utils.Common.setOpacity(C1.Web.UI.Utils.Common.$9,b)}};C1.Web.UI.Utils.Common.hideModalLayer=function(){try{if(C1.Web.UI.Utils.Common.$9){if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){C1.Web.UI.Utils.Common.$8.style.display="none"}C1.Web.UI.Utils.Common.$9.style.display="none"}C1.Web.UI.Utils.Common.$A=false;if(C1.Web.UI.Utils.Common.$B){window.document.documentElement.style.overflow=C1.Web.UI.Utils.Common.$C}}catch(a){C1.Web.UI.Utils.Common.$A=false}};C1.Web.UI.Utils.Common.$D=function(){var a=C1.Web.UI.Utils.Common.$F();a.width=a.width+a.x-20;a.height=a.height+a.y;a.x=0;a.y=0;if(a.width<0){a.width=0}if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){C1.Web.UI.Utils.Common.$E(C1.Web.UI.Utils.Common.$8,a)}C1.Web.UI.Utils.Common.$E(C1.Web.UI.Utils.Common.$9,a)};C1.Web.UI.Utils.Common.$E=function(b,a){b.style.left=a.x+"px";b.style.top=a.y+"px";b.style.height=a.height+"px";b.style.width=a.width+"px"};C1.Web.UI.Utils.Common.$F=function(){var b=C1.Web.UI.Utils.Measurement.getWindowClientAreaSize();var a=0;var e=0;var d=document.body;a=a+d.scrollLeft+document.documentElement.scrollLeft;e=e+d.scrollTop+document.documentElement.scrollTop;if(a<0){a=0}if(e<0){e=0}var c=new Sys.UI.Bounds(a,e,b.width,b.height);return c};C1.Web.UI.Utils.Common.setSize=function(d,c){if(!d){throw Error.argumentNull("element")}if(!c){throw Error.argumentNull("size")}var b=C1.Web.UI.Utils.Common.getBorderBox(d);var a=C1.Web.UI.Utils.Common.getPaddingBox(d);var e=new C1.Web.UI.Utils.Size(c.width-b.horizontal-a.horizontal,c.height-b.vertical-a.vertical);C1.Web.UI.Utils.Common.setContentSize(d,e)};C1.Web.UI.Utils.Common.setContentSize=function(d,c){if(!d){throw Error.argumentNull("element")}if(!c){throw Error.argumentNull("size")}if(C1.Web.UI.Utils.Common.getCurrentStyle(d,"MozBoxSizing",null)==="border-box"||C1.Web.UI.Utils.Common.getCurrentStyle(d,"BoxSizing",null)==="border-box"){var f=C1.Web.UI.Utils.Common.getBorderBox(d);var e=C1.Web.UI.Utils.Common.getPaddingBox(d);c=new C1.Web.UI.Utils.Size(c.width+f.horizontal+e.horizontal,c.height+f.vertical+e.vertical)}var b=c.width;var a=c.height;if(b<0){b=0}if(a<0){a=0}d.style.width=b+"px";d.style.height=a+"px"};C1.Web.UI.Utils.Common.setHeight=function(d,b){if(!d){throw Error.argumentNull("element")}if(C1.Web.UI.Utils.Common.testIsNull(b)){throw Error.argumentNull("height")}var c=C1.Web.UI.Utils.Common.getBorderBox(d);var a=C1.Web.UI.Utils.Common.getPaddingBox(d);var e=C1.Web.UI.Utils.Common.getMarginBox(d);b=b-c.vertical-a.vertical-e.vertical;if(C1.Web.UI.Utils.Common.getCurrentStyle(d,"MozBoxSizing",null)==="border-box"||C1.Web.UI.Utils.Common.getCurrentStyle(d,"BoxSizing",null)==="border-box"){b=b+c.vertical+a.vertical}if(b<0){b=0}d.style.height=b+"px"};C1.Web.UI.Utils.Common.setWidth=function(c,d){if(!c){throw Error.argumentNull("element")}if(C1.Web.UI.Utils.Common.testIsNull(d)){throw Error.argumentNull("width")}var b=C1.Web.UI.Utils.Common.getBorderBox(c);var a=C1.Web.UI.Utils.Common.getPaddingBox(c);var e=C1.Web.UI.Utils.Common.getMarginBox(c);d=d-b.horizontal-a.horizontal-e.horizontal;if(C1.Web.UI.Utils.Common.getCurrentStyle(c,"MozBoxSizing",null)==="border-box"||C1.Web.UI.Utils.Common.getCurrentStyle(c,"BoxSizing",null)==="border-box"){d=d+b.horizontal+a.horizontal}if(d<0){d=0}c.style.width=d+"px"};C1.Web.UI.Utils.Common.parseHTML=function(k,c,l){var j="|$#";var i="~!@";var h="~:~";var g=k.split(j);if(g.length===3){var f=g[0];var e=g[1];var d=f.split(i);var b=e.split(i);for(var a=0;a<d.length;a++){if(d[a]){C1.Web.UI.Utils.Common.$10(d[a],h)}}c.innerHTML=g[2];C1.Web.UI.Utils.Common.$11(b,l)}};C1.Web.UI.Utils.Common.$10=function(f,d){var b=f.split(d);var a=b[0];var g=b[1];if(a.toLowerCase()==="href"){var e=document.createElement("link");e.href=g;e.type="text/css";e.rel="stylesheet";document.getElementsByTagName("head")[0].appendChild(e)}else{if(a.toLowerCase()==="text"){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){window.css=g;document.createStyleSheet("javascript:css")}else{var c=document.createElement("style");c.type="text/css";c.innerHTML=g;document.getElementsByTagName("head")[0].appendChild(c)}}}};C1.Web.UI.Utils.Common.$11=function(j,i){var h="~:~";var g=window.Sys._ScriptLoader.getInstance();var f=window.i;window.Sys._ScriptLoader.readLoadedScripts();window.i=f;for(var e=0;e<j.length;e++){if(j[e]){var d=j[e].split(h);var c=d[0];var b=d[1];if(c.toLowerCase()==="src"){var a=window.Sys._ScriptLoader.isScriptLoaded(b);if(a){continue}g.queueScriptReference(b)}else{if(c.toLowerCase()==="text"){g.queueScriptBlock(b)}}}}g.loadScripts(90,i,null,null)};C1.Web.UI.Utils.Common.executePostbackReference=function(c){var b=c.indexOf("(");var a=c.indexOf(")");var f=c.substring(0,b);var e=c.substring(b+1,a);var d=e.split(",");if(d.length>1){window[f](d[0].trim(),d[1].trim())}else{if(d.length>0){window[f](d[0].trim())}else{window[f]()}}};C1.Web.UI.Utils.Common.$12=function(a){return window.C1__GetPixelFontSize(a)};C1.Web.UI.Utils.Common.$13=function(b,a){return C1.Web.UI.Utils.Common.parseSize(b,a)};C1.Web.UI.Utils.Common.$14=function(b,a){return C1.Web.UI.Utils.Common.parseSize(b,a)};C1.Web.UI.Utils.Common.$15=function(f){if(!f){throw Error.argumentNull("value")}f=f.trim().toLowerCase();var b=f.length;var a=-1;for(var d=0;d<b;d++){var c=f.substr(d,1);if((c<"0"||c>"9")&&c!=="-"&&c!=="."&&c!==","){break}a=d}if(a===-1){throw Error.argument("unit has no digits")}var g;if(a<(b-1)){g=f.substr(a+1).trim()}else{g="px"}var e=parseFloat(f.substr(0,a+1));if(g==="px"){e=Math.floor(e)}return{size:e,type:g}};C1.Web.UI.Utils.Common.$16=function(d){if(!C1.Web.UI.Utils.Common.borderThicknesses){C1.Web.UI.Utils.Common.borderThicknesses={};var b=document.createElement("div");b.style.visibility="hidden";b.style.position="absolute";b.style.fontSize="1px";document.body.appendChild(b);var a=document.createElement("div");a.style.height="0px";a.style.overflow="hidden";b.appendChild(a);var e=b.offsetHeight;a.style.borderTop="solid black";a.style.borderTopWidth="thin";C1.Web.UI.Utils.Common.borderThicknesses.thin=b.offsetHeight-e;a.style.borderTopWidth="medium";C1.Web.UI.Utils.Common.borderThicknesses.medium=b.offsetHeight-e;a.style.borderTopWidth="thick";C1.Web.UI.Utils.Common.borderThicknesses.thick=b.offsetHeight-e;b.removeChild(a);document.body.removeChild(b)}if(d){switch(d){case"thin":case"medium":case"thick":return C1.Web.UI.Utils.Common.borderThicknesses[d];case"inherit":return 0}var c=C1.Web.UI.Utils.Common.$15(d);return c.size}return 0};C1.Web.UI.Utils._RuntimeDebugStub=function(){};C1.Web.UI.Utils._RuntimeDebugStub.$0=function(c,b,a){};C1.Web.UI.Utils._RuntimeDebugStub.$1=function(){};C1.Web.UI.Utils._RuntimeDebugStub.$2=function(a){};C1.Web.UI.Utils._RuntimeDebugStub.$3=function(a){};C1.Web.UI.Utils._RuntimeDebugStub.$4=function(b,a){};C1.Web.UI.Utils.HtmlTextWriter=function(){this.$0=[]};C1.Web.UI.Utils.HtmlTextWriter.prototype={$0:null,writeTagLeftChar:function(){this.$0[this.$0.length]="<"},writeTagRightChar:function(){this.$0[this.$0.length]=">"},write:function(a){this.$0[this.$0.length]=" "+a+" "},writeBeginTag:function(a){this.$0[this.$0.length]="<"+a},writeEndTag:function(a){this.$0[this.$0.length]="</"+a+">"},writeFullBeginTag:function(a){this.$0[this.$0.length]="<"+a+">"},writeSelfClosingTagEnd:function(){this.$0[this.$0.length]="/>"},writeAttribute:function(a,b){if(C1.Web.UI.Utils.Common.testIsNull(b)){return}this.$0[this.$0.length]=" "+a+'="';this.$0[this.$0.length]=b;this.$0[this.$0.length]='"'},clean:function(){this.$0=[]},toString:function(){return this.$0.join("")}};C1.Web.UI.Utils.Measurement=function(){};C1.Web.UI.Utils.Measurement.getLocation=function(j){if(j===document.documentElement||j===document.body){return new Sys.UI.Point(0,0)}if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){if((j)["window"]===j||j.nodeType===9||!(j)["getClientRects"]||!(j)["getBoundingClientRect"]){return new Sys.UI.Point(0,0)}var i=j.getClientRects();if(!i||!(i)["length"]){return new Sys.UI.Point(0,0)}var h=(i)[0];var g=0;var f=0;var e=false;try{e=(j.ownerDocument.parentWindow)["frameElement"]}catch(c){e=true}if(e){var b=j.getBoundingClientRect();if(!b){return new Sys.UI.Point(0,0)}var a=h.left;var m=h.top;for(var l=1;l<(i)["length"];l++){var k=(i)[l];if(k.left<a){a=k.left}if(k.top<m){m=k.top}}g=a-(b)["left"];f=m-(b)["top"]}var d=((j)["document"])["documentElement"];return new Sys.UI.Point(h.left-2-g+d.scrollLeft,h.top-2-f+d.scrollTop)}return Sys.UI.DomElement.getLocation(j)};C1.Web.UI.Utils.Measurement.getBounds=function(c){try{var b=C1.Web.UI.Utils.Measurement.getLocation(c);return new Sys.UI.Bounds(b.x,b.y,(c.offsetWidth||0),(c.offsetHeight||0))}catch(a){return new Sys.UI.Bounds(0,0,0,0)}};C1.Web.UI.Utils.Measurement.getStyleLocation=function(b){var a=new Sys.UI.Point(C1.Web.UI.Utils.Measurement.$1(b),C1.Web.UI.Utils.Measurement.$2(b));a.x-=(C1.Web.UI.Utils.Common.getMargin(b,3));a.y-=(C1.Web.UI.Utils.Common.getMargin(b,0));if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&b.offsetParent){if(b.offsetParent.tagName!=="HTML"&&b.offsetParent.tagName!=="BODY"){a.x+=C1.Web.UI.Utils.Common.getBorderWidth(b.offsetParent,3);a.y+=C1.Web.UI.Utils.Common.getBorderWidth(b.offsetParent,0)}}return a};C1.Web.UI.Utils.Measurement.getStyleBounds=function(c){var b=C1.Web.UI.Utils.Measurement.getStyleLocation(c);var a=new Sys.UI.Bounds(b.x,b.y,(c.offsetWidth||0),(c.offsetHeight||0));var g=C1.Web.UI.Utils.Common.getBorderBox(c);var f=C1.Web.UI.Utils.Common.getPaddingBox(c);var e=g.horizontal+f.horizontal;var d=g.vertical+f.vertical;a.width-=e;a.height-=d;if(a.width<0){a.width=0}if(a.height<0){a.height=0}C1.Web.UI.Utils.Measurement.$0(c,a);return a};C1.Web.UI.Utils.Measurement.getMousePointerPosition=function(c){if(!c){c=window.event}var b=new Sys.UI.Point(0,0);var a=c;if(a.pageX||a.pageY){b.x=a.pageX;b.y=a.pageY}else{var f=document.documentElement;var d=document.body;b.x=a.clientX+(((f.scrollLeft))?f.scrollLeft:d.scrollLeft)-(((f.clientLeft))?f.clientLeft:0);b.y=a.clientY+(((f.scrollTop))?f.scrollTop:d.scrollTop)-(((f.clientTop))?f.clientTop:0)}return b};C1.Web.UI.Utils.Measurement.getWindowClientAreaBounds=function(){var b=C1.Web.UI.Utils.Measurement.getWindowClientAreaSize();var a=C1.Web.UI.Utils.Measurement.getWindowClientAreaScrollOffsets();var c=new Sys.UI.Bounds(a.x,a.y,b.width,b.height);return c};C1.Web.UI.Utils.Measurement.getWindowClientAreaSize=function(){var b=0,a=0;if((window)["innerWidth"]){b=(window)["innerWidth"];a=(window)["innerHeight"]}else{if(document.documentElement&&((document.documentElement.clientWidth)||(document.documentElement.clientHeight))){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight}else{if(document.body&&((document.body.clientWidth)||(document.body.clientHeight))){b=document.body.clientWidth;a=document.body.clientHeight}}}return new C1.Web.UI.Utils.Size(b,a)};C1.Web.UI.Utils.Measurement.getWindowClientAreaScrollOffsets=function(){var b=document.body;var a=new Sys.UI.Point(b.scrollLeft+document.documentElement.scrollLeft,b.scrollTop+document.documentElement.scrollTop);return a};C1.Web.UI.Utils.Measurement.isPointOverDOMElement=function(a,c){var b=Sys.UI.DomElement.getBounds(c);return C1.Web.UI.Utils.Measurement.isPointInsideRect(a,b)};C1.Web.UI.Utils.Measurement.isPointInsideRect=function(a,b){if(a.x<b.x||a.x>(b.x+b.width)){return false}if(a.y<b.y||a.y>(b.y+b.height)){return false}return true};C1.Web.UI.Utils.Measurement.setAbsoluteLocation=function(b,a){Sys.UI.DomElement.setLocation(b,a.x,a.y)};C1.Web.UI.Utils.Measurement.$0=function(e,c){var b=C1.Web.UI.Utils.Common.getCurrentStyle(e,"width",null);if(b){b=b.replace("px","");if(b!==""&&b!=="auto"&&b.indexOf("%")===-1){var f=b*1;if(!isNaN(f)){c.width=f}}}var a=C1.Web.UI.Utils.Common.getCurrentStyle(e,"height",null);if(a){a=a.replace("px","");if(a!==""&&a!=="auto"&&a.indexOf("%")===-1){var d=a*1;if(!isNaN(d)){c.height=d}}}};C1.Web.UI.Utils.Measurement.$1=function(b){var a=b.offsetLeft;if(b.offsetParent){if(b.offsetParent.style.position==="absolute"||b.offsetParent.style.position==="relative"){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){if(b.offsetParent.style.position==="relative"){a-=C1.Web.UI.Utils.Common.getBorderWidth(b.offsetParent,3)}}return a}a+=C1.Web.UI.Utils.Measurement.$1(b.offsetParent)}return a};C1.Web.UI.Utils.Measurement.$2=function(b){var a=b.offsetTop;if(b.offsetParent){if(b.offsetParent.style&&(b.offsetParent.style.position==="absolute"||b.offsetParent.style.position==="relative")){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){}return a}a+=C1.Web.UI.Utils.Measurement.$2(b.offsetParent)}return a};C1.Web.UI.Utils.Size=function(b,a){this.width=b;this.height=a};C1.Web.UI.Utils.Size.get_empty=function(){return new C1.Web.UI.Utils.Size(0,0)};C1.Web.UI.Utils.Size.prototype={width:0,height:0};C1.Web.UI.Utils.Rectangle=function(b,d,c,a){this._x=b;this._y=d;this.$0=c;this.$1=a};C1.Web.UI.Utils.Rectangle.union=function(f,d){var e=Math.min(f.get_x(),d.get_x());var c=Math.min(f.get_y(),d.get_y());var h=Math.max(f.get_x()+f.get_width(),d.get_x()+d.get_width());var g=Math.max(f.get_y()+f.get_height(),d.get_y()+d.get_height());return new C1.Web.UI.Utils.Rectangle(e,c,h-e,g-c)};C1.Web.UI.Utils.Rectangle.get_empty=function(){return new C1.Web.UI.Utils.Rectangle(0,0,0,0)};C1.Web.UI.Utils.Rectangle.prototype={get_x:function(){return this._x},set_x:function(a){this._x=a;return a},get_y:function(){return this._y},set_y:function(a){this._y=a;return a},get_width:function(){return this.$0},set_width:function(a){this.$0=a;return a},get_height:function(){return this.$1},set_height:function(a){this.$1=a;return a},get_bottom:function(){return this._y+this.$1},get_right:function(){return this._x+this.$0},get_size:function(){return new C1.Web.UI.Utils.Size(this.$0,this.$1)},set_size:function(a){this.$0=a.width;this.$1=a.height;return a},get_location:function(){return new Sys.UI.Point(this._x,this._y)},set_location:function(a){this._x=a.x;this._y=a.y;return a},offset:function(a,b){this.set_x(this.get_x()+a);this.set_y(this.get_y()+b)},_x:0,_y:0,$0:0,$1:0};C1.Web.UI.Utils.RawEvent=function(){};C1.Web.UI.Utils.RawEvent.addHandler=function(b,a,c){C1.Web.UI.Utils.RawEvent.$0(b,a,c)};C1.Web.UI.Utils.RawEvent.removeHandler=function(b,a,c){C1.Web.UI.Utils.RawEvent.$1(b,a,c)};C1.Web.UI.Utils.RawEvent.cancelBrowserResponse=function(a){if(C1.Web.UI.Utils.Common.testIsNull(a)){a=window.event}if(C1.Web.UI.Utils.Common.testIsNull(a)){return false}if(!C1.Web.UI.Utils.Common.testIsNull((a)["stopPropagation"])){a.stopPropagation()}if(!C1.Web.UI.Utils.Common.testIsNull((a)["preventDefault"])){a.preventDefault()}a.cancelBubble=true;a.returnValue=false;return false};C1.Web.UI.Utils.RawEvent.getTarget=function(a){return(((a)["target"])?(a)["target"]:a.srcElement)};C1.Web.UI.Utils.RawEvent.findTargetByTagName=function(c,b){var a=C1.Web.UI.Utils.RawEvent.getTarget(c);b=b.toUpperCase();while(a&&a.tagName){if(a.tagName.toUpperCase()===b){return a}a=a.parentNode}return null};C1.Web.UI.Utils.RawEvent.$0=function(c,b,a){if((c)["attachEvent"]){c.attachEvent("on"+b,a)}else{if((c)["addEventListener"]){c.addEventListener(b,a,false)}else{(c)["on"+b]=a}}};C1.Web.UI.Utils.RawEvent.$1=function(c,b,a){if((c)["detachEvent"]){c.detachEvent("on"+b,a)}else{if((c)["removeEventListener"]){c.removeEventListener(b,a,false)}else{(c)["on"+b]=null}}};C1.Web.UI.Utils.AccessKeyHelper=function(){};C1.Web.UI.Utils.AccessKeyHelper.registerAccessKey=function(d,c,b){d=""+d+"";d=d.toUpperCase();c.accessKey="";if(!C1.Web.UI.Utils.AccessKeyHelper.$0){C1.Web.UI.Utils.AccessKeyHelper.$1={};C1.Web.UI.Utils.AccessKeyHelper.$2={};C1.Web.UI.Utils.AccessKeyHelper.$3={};C1.Web.UI.Utils.AccessKeyHelper.$0=Function.createDelegate(null,C1.Web.UI.Utils.AccessKeyHelper.$4);C1.Web.UI.Utils.RawEvent.addHandler(window.document,"keydown",C1.Web.UI.Utils.AccessKeyHelper.$0)}if(C1.Web.UI.Utils.Common.testIsNull(C1.Web.UI.Utils.AccessKeyHelper.$1[d])){C1.Web.UI.Utils.AccessKeyHelper.$1[d]=[]}var a=C1.Web.UI.UIElement.$5();(C1.Web.UI.Utils.AccessKeyHelper.$1[d])[(C1.Web.UI.Utils.AccessKeyHelper.$1[d]).length]=a;C1.Web.UI.Utils.AccessKeyHelper.$2[a]=c;C1.Web.UI.Utils.AccessKeyHelper.$3[a]=b};C1.Web.UI.Utils.AccessKeyHelper.unRegisterAccessKey=function(d,c){d=""+d+"";d=d.toUpperCase();var b=(C1.Web.UI.Utils.AccessKeyHelper.$1[d]);if(!C1.Web.UI.Utils.Common.testIsNull(b)){for(var a=0;a<b.length;a++){var e=b[a];if(!C1.Web.UI.Utils.Common.testIsNull(C1.Web.UI.Utils.AccessKeyHelper.$2[e])){if((C1.Web.UI.Utils.AccessKeyHelper.$2[e]).id===c.id){C1.Web.UI.Utils.AccessKeyHelper.$2[e]=null;C1.Web.UI.Utils.AccessKeyHelper.$3[e]=null;b.splice(a,1);if(!b.length){C1.Web.UI.Utils.AccessKeyHelper.$1[d]=null}}}}}};C1.Web.UI.Utils.AccessKeyHelper.$4=function(i){var h=false;if(i.altKey){var g=i.keyCode;if(g!==18){var f=String.fromCharCode(i.keyCode);var e=(C1.Web.UI.Utils.AccessKeyHelper.$1[f]);if(!C1.Web.UI.Utils.Common.testIsNull(e)){for(var d=0;d<e.length;d++){var c=e[d];if(!C1.Web.UI.Utils.Common.testIsNull(C1.Web.UI.Utils.AccessKeyHelper.$3[c])){var b=(C1.Web.UI.Utils.AccessKeyHelper.$3[c]);h=b(i)}else{if(!C1.Web.UI.Utils.Common.testIsNull(C1.Web.UI.Utils.AccessKeyHelper.$2[c])){try{(C1.Web.UI.Utils.AccessKeyHelper.$2[c]).focus()}catch(a){}}}}}}}return h};C1.Web.UI.Utils.JSON=function(){};C1.Web.UI.Utils.JSON.toJSONString=function(a){return window.__JSONC1.stringify(a)};C1.Web.UI.Utils.JSON.fromJSONString=function(a){return window.__JSONC1.parse(a)};C1.Web.UI.Utils.RGBColor=function(){this._r=0;this._g=0;this._b=0;this.$0={};this.$0.aliceblue="f0f8ff";this.$0.antiquewhite="faebd7";this.$0.aqua="00ffff";this.$0.aquamarine="7fffd4";this.$0.azure="f0ffff";this.$0.beige="f5f5dc";this.$0.bisque="ffe4c4";this.$0.black="000000";this.$0.blanchedalmond="ffebcd";this.$0.blue="0000ff";this.$0.blueviolet="8a2be2";this.$0.brown="a52a2a";this.$0.burlywood="deb887";this.$0.cadetblue="5f9ea0";this.$0.chartreuse="7fff00";this.$0.chocolate="d2691e";this.$0.coral="ff7f50";this.$0.cornflowerblue="6495ed";this.$0.cornsilk="fff8dc";this.$0.crimson="dc143c";this.$0.cyan="00ffff";this.$0.darkblue="00008b";this.$0.darkcyan="008b8b";this.$0.darkgoldenrod="b8860b";this.$0.darkgray="a9a9a9";this.$0.darkgreen="006400";this.$0.darkkhaki="bdb76b";this.$0.darkmagenta="8b008b";this.$0.darkolivegreen="556b2f";this.$0.darkorange="ff8c00";this.$0.darkorchid="9932cc";this.$0.darkred="8b0000";this.$0.darksalmon="e9967a";this.$0.darkseagreen="8fbc8f";this.$0.darkslateblue="483d8b";this.$0.darkslategray="2f4f4f";this.$0.darkturquoise="00ced1";this.$0.darkviolet="9400d3";this.$0.deeppink="ff1493";this.$0.deepskyblue="00bfff";this.$0.dimgray="696969";this.$0.dodgerblue="1e90ff";this.$0.feldspar="d19275";this.$0.firebrick="b22222";this.$0.floralwhite="fffaf0";this.$0.forestgreen="228b22";this.$0.fuchsia="ff00ff";this.$0.gainsboro="dcdcdc";this.$0.ghostwhite="f8f8ff";this.$0.gold="ffd700";this.$0.goldenrod="daa520";this.$0.gray="808080";this.$0.green="008000";this.$0.greenyellow="adff2f";this.$0.honeydew="f0fff0";this.$0.hotpink="ff69b4";this.$0["indianred "]="cd5c5c";this.$0["indigo "]="4b0082";this.$0.ivory="fffff0";this.$0.khaki="f0e68c";this.$0.lavender="e6e6fa";this.$0.lavenderblush="fff0f5";this.$0.lawngreen="7cfc00";this.$0.lemonchiffon="fffacd";this.$0.lightblue="add8e6";this.$0.lightcoral="f08080";this.$0.lightcyan="e0ffff";this.$0.lightgoldenrodyellow="fafad2";this.$0.lightgrey="d3d3d3";this.$0.lightgreen="90ee90";this.$0.lightpink="ffb6c1";this.$0.lightsalmon="ffa07a";this.$0.lightseagreen="20b2aa";this.$0.lightskyblue="87cefa";this.$0.lightslateblue="8470ff";this.$0.lightslategray="778899";this.$0.lightsteelblue="b0c4de";this.$0.lightyellow="ffffe0";this.$0.lime="00ff00";this.$0.limegreen="32cd32";this.$0.linen="faf0e6";this.$0.magenta="ff00ff";this.$0.maroon="800000";this.$0.mediumaquamarine="66cdaa";this.$0.mediumblue="0000cd";this.$0.mediumorchid="ba55d3";this.$0.mediumpurple="9370d8";this.$0.mediumseagreen="3cb371";this.$0.mediumslateblue="7b68ee";this.$0.mediumspringgreen="00fa9a";this.$0.mediumturquoise="48d1cc";this.$0.mediumvioletred="c71585";this.$0.midnightblue="191970";this.$0.mintcream="f5fffa";this.$0.mistyrose="ffe4e1";this.$0.moccasin="ffe4b5";this.$0.navajowhite="ffdead";this.$0.navy="000080";this.$0.oldlace="fdf5e6";this.$0.olive="808000";this.$0.olivedrab="6b8e23";this.$0.orange="ffa500";this.$0.orangered="ff4500";this.$0.orchid="da70d6";this.$0.palegoldenrod="eee8aa";this.$0.palegreen="98fb98";this.$0.paleturquoise="afeeee";this.$0.palevioletred="d87093";this.$0.papayawhip="ffefd5";this.$0.peachpuff="ffdab9";this.$0.peru="cd853f";this.$0.pink="ffc0cb";this.$0.plum="dda0dd";this.$0.powderblue="b0e0e6";this.$0.purple="800080";this.$0.red="ff0000";this.$0.rosybrown="bc8f8f";this.$0.royalblue="4169e1";this.$0.saddlebrown="8b4513";this.$0.salmon="fa8072";this.$0.sandybrown="f4a460";this.$0.seagreen="2e8b57";this.$0.seashell="fff5ee";this.$0.sienna="a0522d";this.$0.silver="c0c0c0";this.$0.skyblue="87ceeb";this.$0.slateblue="6a5acd";this.$0.slategray="708090";this.$0.snow="fffafa";this.$0.springgreen="00ff7f";this.$0.steelblue="4682b4";this.$0.tan="d2b48c";this.$0.teal="008080";this.$0.thistle="d8bfd8";this.$0.tomato="ff6347";this.$0.turquoise="40e0d0";this.$0.violet="ee82ee";this.$0.violetred="d02090";this.$0.wheat="f5deb3";this.$0.white="ffffff";this.$0.whitesmoke="f5f5f5";this.$0.yellow="ffff00";this.$0.yellowgreen="9acd32"};C1.Web.UI.Utils.RGBColor.prototype={_r:0,_g:0,_b:0,$0:null,get_red:function(){return this._r},set_red:function(a){this._r=((a<0)?0:((a>255)?255:a));return a},get_green:function(){return this._g},set_green:function(a){this._g=((a<0)?0:((a>255)?255:a));return a},get_blue:function(){return this._b},set_blue:function(a){this._b=((a<0)?0:((a>255)?255:a));return a},parse:function(e){e=e.replace("/ /g","");if(e.charAt(0)==="#"){e=e.substr(1,6)}e=e.toLowerCase();var d=this.$0;for(var c in d){var f={key:c,value:d[c]};if(f.key===e){e=this.$0[f.key]}}var b=new RegExp("^rgb\\((\\d{1,3}),\\s*(\\d{1,3}),\\s*(\\d{1,3})\\)$");var a=b.exec(e);if(a){this._r=parseInt(a[1]);this._g=parseInt(a[2]);this._b=parseInt(a[3]);this.$1();return true}b=new RegExp("^(\\w{2})(\\w{2})(\\w{2})$");a=b.exec(e);if(a){this._r=parseInt(a[1],16);this._g=parseInt(a[2],16);this._b=parseInt(a[3],16);this.$1();return true}b=new RegExp("^(\\w{1})(\\w{1})(\\w{1})$");a=b.exec(e);if(a){this._r=parseInt(a[1]+a[1],16);this._g=parseInt(a[2]+a[2],16);this._b=parseInt(a[3]+a[3],16);this.$1();return true}return false},$1:function(){this._r=(this._r<0||isNaN(this._r))?0:((this._r>255)?255:this._r);this._g=(this._g<0||isNaN(this._g))?0:((this._g>255)?255:this._g);this._b=(this._b<0||isNaN(this._b))?0:((this._b>255)?255:this._b)},toRGBString:function(){return String.format("rgb{{0}, {1}, {2}}",this._r,this._g,this._b)},toHexString:function(){var b=this._r.toString(16);var a=this._g.toString(16);var d=this._b.toString(16);if(b.length===1){b="0"+b}if(a.length===1){a="0"+a}if(d.length===1){d="0"+d}var c="#"+b;c+=a+d;return c}};C1.Web.UI.Utils.UTFSupport=function(){};C1.Web.UI.Utils.UTFSupport.encodeString=function(c){for(var b=0;b<C1.Web.UI.Utils.UTFSupport.$0.length;b++){var a=new RegExp(C1.Web.UI.Utils.UTFSupport.$2[b],"g");c=c.replace(a,C1.Web.UI.Utils.UTFSupport.$1[b])}return c};C1.Web.UI.Utils.UTFSupport.decodeString=function(c){if(C1.Web.UI.Utils.Common.testIsNull(c)){return c}for(var b=0;b<C1.Web.UI.Utils.UTFSupport.$1.length;b++){var a=new RegExp("("+C1.Web.UI.Utils.UTFSupport.$1[b]+")","g");c=c.replace(a,C1.Web.UI.Utils.UTFSupport.$0[b])}return c};C1.Web.UI.Utils.WindowHashAccessor=function(){};C1.Web.UI.Utils.WindowHashAccessor.getObject=function(a){return window[a]};C1.Web.UI.Utils.WindowHashAccessor.setObject=function(a,b){window[a]=b};Type.registerNamespace("C1.Web.UI.SerializablePrimitives");C1.Web.UI.SerializablePrimitives.IC1ItemsOwner=function(){};C1.Web.UI.SerializablePrimitives.IC1ItemsOwner.registerInterface("C1.Web.UI.SerializablePrimitives.IC1ItemsOwner");C1.Web.UI.SerializablePrimitives.C1Item=function(a){this.$8=-1;C1.Web.UI.SerializablePrimitives.C1Item.initializeBase(this,[a]);this._items=new C1.Web.UI.SerializablePrimitives.C1ItemsCollection(this)};C1.Web.UI.SerializablePrimitives.C1Item.prototype={$7:false,dispose:function(){C1.Web.UI.SerializablePrimitives.C1Item.callBaseMethod(this,"dispose")},initialize:function(){C1.Web.UI.SerializablePrimitives.C1Item.callBaseMethod(this,"initialize")},initializeItems:function(){if(this.$7){return}this.$7=true;var b=this._propertiesState.Items;var a=this.get_items();if(b){for(var f=0;f<b.length;f++){var e=b[f];var d=$get(e.ClientID);if(d){var c=this.createInstance(d);c.assignPropertiesState(e);a.add(c);c.initialize()}else{throw Error.create("(CE101003)Child UIElement with Client ID "+e.ClientID+" can not be initialized. DOMElement not found.")}}}},get_index:function(){return this.$8},set_index:function(a){this.$8=a;return a},calculateCurrentLevel:function(){if(this._owner&&C1.Web.UI.SerializablePrimitives.C1Item.isInstanceOfType(this._owner)){return(this._owner).calculateCurrentLevel()+1}else{return 0}},$9:function(a){this._owner=a},_items:null,_owner:null,get_items:function(){this.initializeItems();return this._items},get_owner:function(){return this._owner},createInstance:function(a){return new C1.Web.UI.SerializablePrimitives.C1Item(a)}};C1.Web.UI.SerializablePrimitives.C1ItemsCollection=function(a){this.list=[];this.$0=a};C1.Web.UI.SerializablePrimitives.C1ItemsCollection.prototype={get_owner:function(){return this.$0},get_last:function(){return(this.get_count()>0)?this.get_item(this.get_count()-1):null},get_count:function(){return this.list.length},onListChanged:function(){},add:function(b){var a=this.get_count();this.insert(a,b);return a},insert:function(a,b){if(b){b.$9(this.$0);b.$8=a}this.list.splice(a,0,b);this.onListChanged()},removeAt:function(a){(this.list[a]).$9(null);this.list.splice(a,1);this.onListChanged()},removeRange:function(b,c){for(var a=0;a<c;a++){this.removeAt(b)}},reverse:function(){this.list.reverse();this.onListChanged()},clear:function(){for(var a=0;a<this.list.length;a++){(this.list[a]).$9(null)}this.list=[];this.onListChanged()},contains:function(b){for(var a=0;a<this.list.length;a++){if((this.list[a]).UID===b.UID){return true}}return false},indexOf:function(b){for(var a=0;a<this.list.length;a++){if((this.list[a]).UID===b.UID){return a}}return -1},get_length:function(){return this.list.length},$0:null,$1:function(b){for(var a=0;a<this.get_count();a++){if(this.get_item(a).UID===b.UID){this.removeAt(a);break}}},get_item:function(a){return this.list[a]},set_item:function(b,c){var a=this.list[b];if(c!==a){if(a){a.$9(null)}this.list[b]=c;if(c){c.$9(this.$0)}this.onListChanged()}return c}};C1.Web.UI.FrameworkStringConstants.registerClass("C1.Web.UI.FrameworkStringConstants");C1.Web.UI.C1ClientResLoader.registerClass("C1.Web.UI.C1ClientResLoader");C1.Web.UI.UIElement.registerClass("C1.Web.UI.UIElement",null,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.C1RoundCornerPanel.registerClass("C1.Web.UI.C1RoundCornerPanel",C1.Web.UI.UIElement,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.C1ThemeableControlBase.registerClass("C1.Web.UI.C1ThemeableControlBase",Sys.UI.Control,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.C1ThemeHelper.registerClass("C1.Web.UI.C1ThemeHelper");C1.Web.UI.C1RoundedCornerPanelBase.registerClass("C1.Web.UI.C1RoundedCornerPanelBase",C1.Web.UI.UIElement,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.C1AjaxHelper.registerClass("C1.Web.UI.C1AjaxHelper");C1.Web.UI.ContentPanel.registerClass("C1.Web.UI.ContentPanel",C1.Web.UI.UIElement,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.DockPanel.registerClass("C1.Web.UI.DockPanel",C1.Web.UI.UIElement);C1.Web.UI.DOMScrollBehavior.registerClass("C1.Web.UI.DOMScrollBehavior");C1.Web.UI.DragDropEventArgs.registerClass("C1.Web.UI.DragDropEventArgs",Sys.EventArgs);C1.Web.UI.DragDrop.registerClass("C1.Web.UI.DragDrop",Sys.Component);C1.Web.UI.FlowPanel.registerClass("C1.Web.UI.FlowPanel",C1.Web.UI.UIElement);C1.Web.UI.PopupBehavior.registerClass("C1.Web.UI.PopupBehavior");C1.Web.UI.C1Rounder.registerClass("C1.Web.UI.C1Rounder",Sys.UI.Behavior);C1.Web.UI.ScrollBehavior.registerClass("C1.Web.UI.ScrollBehavior",Sys.Component);C1.Web.UI.ScrollBehaviorSettings.registerClass("C1.Web.UI.ScrollBehaviorSettings",null,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.ScrollPanel.registerClass("C1.Web.UI.ScrollPanel",C1.Web.UI.UIElement);C1.Web.UI.Timer.registerClass("C1.Web.UI.Timer",Sys.Component);C1.Web.UI.UIElementList.registerClass("C1.Web.UI.UIElementList");C1.Web.UI.Behavior.Animation.registerClass("C1.Web.UI.Behavior.Animation",Sys.UI.Behavior);C1.Web.UI.Behavior.AnimationCollection.registerClass("C1.Web.UI.Behavior.AnimationCollection");C1.Web.UI.Behavior.AnimationEffects.registerClass("C1.Web.UI.Behavior.AnimationEffects",Sys.UI.Behavior);C1.Web.UI.Behavior.AnimationManager.registerClass("C1.Web.UI.Behavior.AnimationManager");C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs.registerClass("C1.Web.UI.Behavior.ResizeBehaviorHelperEventArgs",Sys.EventArgs);C1.Web.UI.Behavior.ResizeBehavior.registerClass("C1.Web.UI.Behavior.ResizeBehavior",Sys.UI.Behavior);C1.Web.UI.Interfaces.JsonSerializableHelper.registerClass("C1.Web.UI.Interfaces.JsonSerializableHelper");C1.Web.UI.Utils.BrowserHistory.registerClass("C1.Web.UI.Utils.BrowserHistory");C1.Web.UI.Utils.C1VerticalLinkInfo.registerClass("C1.Web.UI.Utils.C1VerticalLinkInfo");C1.Web.UI.Utils.Common.registerClass("C1.Web.UI.Utils.Common");C1.Web.UI.Utils._RuntimeDebugStub.registerClass("C1.Web.UI.Utils._RuntimeDebugStub");C1.Web.UI.Utils.HtmlTextWriter.registerClass("C1.Web.UI.Utils.HtmlTextWriter");C1.Web.UI.Utils.Measurement.registerClass("C1.Web.UI.Utils.Measurement");C1.Web.UI.Utils.Size.registerClass("C1.Web.UI.Utils.Size");C1.Web.UI.Utils.Rectangle.registerClass("C1.Web.UI.Utils.Rectangle");C1.Web.UI.Utils.RawEvent.registerClass("C1.Web.UI.Utils.RawEvent");C1.Web.UI.Utils.AccessKeyHelper.registerClass("C1.Web.UI.Utils.AccessKeyHelper");C1.Web.UI.Utils.JSON.registerClass("C1.Web.UI.Utils.JSON");C1.Web.UI.Utils.RGBColor.registerClass("C1.Web.UI.Utils.RGBColor");C1.Web.UI.Utils.UTFSupport.registerClass("C1.Web.UI.Utils.UTFSupport");C1.Web.UI.Utils.WindowHashAccessor.registerClass("C1.Web.UI.Utils.WindowHashAccessor");C1.Web.UI.SerializablePrimitives.C1Item.registerClass("C1.Web.UI.SerializablePrimitives.C1Item",C1.Web.UI.UIElement,C1.Web.UI.SerializablePrimitives.IC1ItemsOwner,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.SerializablePrimitives.C1ItemsCollection.registerClass("C1.Web.UI.SerializablePrimitives.C1ItemsCollection");C1.Web.UI.FrameworkStringConstants.frameworK_ASSEMBLY_NAME="C1.Web.UI.2";C1.Web.UI.FrameworkStringConstants.frameworK_SCRIPT_RESOURCE_PATH="C1.Web.UI.Resources.C1.Web.UI.Client.js";C1.Web.UI.FrameworkStringConstants.frameworK_CSS_RESOURCE_PATH="C1.Web.UI.Resources.Framework.css";C1.Web.UI.C1AjaxHelper.$0=-1;C1.Web.UI.PopupBehavior.$12=0;C1.Web.UI.UIElement.all={};C1.Web.UI.UIElement.$0=0;C1.Web.UI.Behavior.Animation.$2_20=0;C1.Web.UI.Behavior.Animation.$2_2B={posTop:true,posRight:true,posBottom:true,posLeft:true,posHeight:true,posWidth:true,length:true,parentRule:true};C1.Web.UI.Behavior.Animation.$2_2C={display:true,position:true,top:true,right:true,bottom:true,left:true};C1.Web.UI.Behavior.AnimationManager.$0=null;C1.Web.UI.Behavior.AnimationManager.$1=null;C1.Web.UI.Behavior.AnimationManager.$2=null;C1.Web.UI.Behavior.AnimationManager.$3=0;C1.Web.UI.Behavior.AnimationManager.$4=false;C1.Web.UI.Behavior.AnimationManager.$5=0;C1.Web.UI.Behavior.AnimationManager.$0=new C1.Web.UI.Behavior.AnimationCollection();C1.Web.UI.Behavior.AnimationManager.$1=new C1.Web.UI.Behavior.AnimationCollection();C1.Web.UI.Behavior.AnimationManager.$2=Function.createDelegate(null,C1.Web.UI.Behavior.AnimationManager.$6);C1.Web.UI.Behavior.AnimationManager.$5=1000;C1.Web.UI.Utils.BrowserHistory.$0=null;C1.Web.UI.Utils.BrowserHistory.$1=null;C1.Web.UI.Utils.BrowserHistory.$2=0;C1.Web.UI.Utils.BrowserHistory.$3=null;C1.Web.UI.Utils.BrowserHistory.$4=null;C1.Web.UI.Utils.Common.$0=["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"];C1.Web.UI.Utils.Common.$1=["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"];C1.Web.UI.Utils.Common.$2=["paddingTop","paddingRight","paddingBottom","paddingLeft"];C1.Web.UI.Utils.Common.$3=["marginTop","marginRight","marginBottom","marginLeft"];C1.Web.UI.Utils.Common.borderThicknesses=null;C1.Web.UI.Utils.Common.$4=new Array(0);C1.Web.UI.Utils.Common.$5=null;C1.Web.UI.Utils.Common.$6=null;C1.Web.UI.Utils.Common.$7=null;C1.Web.UI.Utils.Common.$8=null;C1.Web.UI.Utils.Common.$9=null;C1.Web.UI.Utils.Common.$A=false;C1.Web.UI.Utils.Common.$B=false;C1.Web.UI.Utils.Common.$C=null;var $0=(window)["Sys"];if(C1.Web.UI.Utils.Common.testIsNull($0.Debug)){$0.Debug=new C1.Web.UI.Utils._RuntimeDebugStub()}C1.Web.UI.Utils.AccessKeyHelper.$0=null;C1.Web.UI.Utils.AccessKeyHelper.$1=null;C1.Web.UI.Utils.AccessKeyHelper.$2=null;C1.Web.UI.Utils.AccessKeyHelper.$3=null;C1.Web.UI.Utils.UTFSupport.$0=["\n","\r",'"',"@","+","'","<",">","%","{","}"];C1.Web.UI.Utils.UTFSupport.$1=["!ESC!NN!","!ESC!RR!","!ESC!01!","!ESC!02!","!ESC!03!","!ESC!04!","!ESC!05!","!ESC!06!","!ESC!07!","!ESC!08!","!ESC!09!"];C1.Web.UI.Utils.UTFSupport.$2=["(\n)","(\r)",'(")',"(@)","(\\+)","(')","(\\<)","(\\>)","(%)","(\\{)","(\\})"];function C1__GetPixelFontSize(a){if(typeof(a)=="string"){a=document.getElementById(a)}if(!a||!a.tagName){return null}var c,b;if(typeof document.defaultView!="undefined"&&typeof document.defaultView.getComputedStyle!="undefined"){var b=document.defaultView.getComputedStyle(a,"");c=parseInt(b.getPropertyValue("font-size"),10)}else{b=a.currentStyle;if(b){var d=a.style.left;a.style.left="10em";c=Math.round(a.style.pixelLeft/10);a.style.left=d}}if(!isNaN(c)){return c}return null}if(!this.__JSONC1){__JSONC1={}}(function(){function f(n,k){n=n.toString();while(n.length<k){n="0"+n}return n}Date.prototype.c1ToJSON=function(key){return""+f(this.getFullYear(),4)+"-"+f(this.getMonth()+1,2)+"-"+f(this.getDate(),2)+"T"+f(this.getHours(),2)+":"+f(this.getMinutes(),2)+":"+f(this.getSeconds(),2)+":"+f(this.getMilliseconds(),3)+"Z"};if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=Date.prototype.c1ToJSON;String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.c1ToJSON==="function"){value=value.c1ToJSON(key)}else{if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){k=rep[i];if(typeof k==="string"){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof __JSONC1.stringify!=="function"){__JSONC1.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("json stringify")}return str("",{"":value})}}if(typeof __JSONC1.parse!=="function"){__JSONC1.parse=function(text,customReviver){var reviver=function(key,value){var a;if(typeof value==="string"){a=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?):(\d{3})Z$/.exec(value);if(a){var dt1=new Date(+a[1],+a[2]-1,+a[3],+a[4],+a[5],+a[6],+a[7]);dt1.setFullYear(+a[1]);return dt1}}if(customReviver&&typeof customReviver=="function"){return customReviver.call(this,key,value)}return value};if(window.JSON&&(typeof JSON.parse=="function")){return JSON.parse(text,reviver)}var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("json parse")}}})();Sys.Browser.WebKit={};if(navigator.userAgent.indexOf("WebKit/")>-1){Sys.Browser.agent=Sys.Browser.WebKit;Sys.Browser.version=parseFloat(navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);Sys.Browser.name="WebKit"};
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();