﻿// Copyright (c) ComponentOne L.L.C., All rights reserved.
Type.registerNamespace("C1.Web.UI.Controls.C1TabStrip");C1.Web.UI.Controls.C1TabStrip.ITabOwner=function(){};C1.Web.UI.Controls.C1TabStrip.ITabOwner.registerInterface("C1.Web.UI.Controls.C1TabStrip.ITabOwner");C1.Web.UI.Controls.C1TabStrip.OverlapOrder=function(){};C1.Web.UI.Controls.C1TabStrip.OverlapOrder.prototype={ascending:0,descending:1};C1.Web.UI.Controls.C1TabStrip.OverlapOrder.registerEnum("C1.Web.UI.Controls.C1TabStrip.OverlapOrder",false);C1.Web.UI.Controls.C1TabStrip.TabAlignment=function(){};C1.Web.UI.Controls.C1TabStrip.TabAlignment.prototype={left:0,center:1,right:2,justify:3};C1.Web.UI.Controls.C1TabStrip.TabAlignment.registerEnum("C1.Web.UI.Controls.C1TabStrip.TabAlignment",false);C1.Web.UI.Controls.C1TabStrip.TabDirection=function(){};C1.Web.UI.Controls.C1TabStrip.TabDirection.prototype={top:0,right:1,bottom:2,left:3};C1.Web.UI.Controls.C1TabStrip.TabDirection.registerEnum("C1.Web.UI.Controls.C1TabStrip.TabDirection",false);C1.Web.UI.Controls.C1TabStrip.C1Tab=function(b,a,c){this._propertiesState={};this.$5=b;this.$0=a;this.$1=c;this.$3=null;this.$6=b.firstChild;this.$7=this.$6.firstChild.firstChild.firstChild;this.$11=-1;this.$12=c.get_level()+1;this.$13=false;this.events=new Sys.EventHandlerList();this.$B=Function.createDelegate(this,this.$1C);this.$C=Function.createDelegate(this,this.$1D);this.$D=Function.createDelegate(this,this.$1E);this.$E=Function.createDelegate(this,this.$1F);this.$F=Function.createDelegate(this,this.$21);this.$10=Function.createDelegate(this,this.$20);this.$35()};C1.Web.UI.Controls.C1TabStrip.C1Tab.prototype={$0:null,$1:null,$2:null,$3:null,$4:null,$5:null,$6:null,$7:null,$8:null,$9:null,$A:null,$B:null,$C:null,$D:null,$E:null,$F:null,$10:null,$11:0,$12:0,$13:false,events:null,get_tabStrip:function(){return this.$0},get_index:function(){return this.$11},get_displayVisible:function(){return this.$18("DisplayVisible","")},set_displayVisible:function(a){this.$19("DisplayVisible",a);C1.Web.UI.Utils.Common.setVisible(this.$5,a);return a},get_text:function(){return this.get_$16().innerHTML},set_text:function(a){this.get_$16().innerHTML=a;return a},get_value:function(){return this.$18("Value","")},set_value:function(a){this.$19("Value",a);return a},get_forceNewLine:function(){return this.$18("ForceNewLine",false)},set_forceNewLine:function(a){this.$19("ForceNewLine",a);return a},get_textImageRelation:function(){return this.$18("TextImageRelation",1)},set_textImageRelation:function(a){this.$19("TextImageRelation",a);return a},get_childGroupCssClass:function(){return this.$18("ChildGroupCssClass","C1List")},set_childGroupCssClass:function(a){this.$19("ChildGroupCssClass",a);return a},get_imageUrl:function(){return this.$18("ImageUrl","")},set_imageUrl:function(a){this.$19("ImageUrl",a);return a},get_disabledImageUrl:function(){return this.$18("DisabledImageUrl","")},set_disabledImageUrl:function(a){this.$19("DisabledImageUrl",a);return a},get_selectedImageUrl:function(){return this.$18("SelectedImageUrl","")},set_selectedImageUrl:function(a){this.$19("SelectedImageUrl",a);return a},get_cssClass:function(){return this.$18("CssClass","")},set_cssClass:function(a){this.$19("CssClass",a);return a},get_cssClassSelected:function(){return this.$18("CssClassSelected","C1Selected")},set_cssClassSelected:function(a){this.$19("CssClassSelected",a);return a},get_cssClassDisabled:function(){return this.$18("CssClassDisabled","C1Disabled")},set_cssClassDisabled:function(a){this.$19("CssClassDisabled",a);return a},get_pageViewID:function(){return this.$18("PageViewID","")},set_pageViewID:function(a){this.$19("PageViewID",a);return a},get_selected:function(){return(this.$1.get_selectedIndex()===this.get_index())},get_enabled:function(){if(!this.$0.get_enabled()){return false}return this.$18("Enabled",true)},set_enabled:function(a){this.$19("Enabled",a);this.$2A();return a},get_parent:function(){if(C1.Web.UI.Controls.C1TabStrip.C1Tab.isInstanceOfType(this.$1)){return this.$1}return null},get_owner:function(){return this.$1},get_level:function(){return this.$12},get_alignment:function(){return this.$18("Alignment",0)},set_alignment:function(a){this.$19("Alignment",a);return a},get_scrollSettings:function(){if(!this.$4){this.$4=new C1.Web.UI.ScrollBehaviorSettings()}return this.$4},get_selectedIndex:function(){return this.$18("SelectedIndex",0)},set_selectedIndex:function(a){this.$19("SelectedIndex",a);return a},get_selectedTab:function(){var a=this.get_selectedIndex();if(a===-1){return null}if(!this.$3){return null}return this.get_tabs()[a]},get_tabs:function(){if(!this.$2){this.$2=[]}return this.$2},get_propertiesState:function(){return this._propertiesState},assignPropertiesState:function(a){this._propertiesState=a;this.$23();this.$22()},createInstance:function(a){return null},get_$14:function(){return this.$3},get_$15:function(){return this.$18("ClientPageViewID","")},set_$15:function(a){this.$19("ClientPageViewID",a);return a},get_$16:function(){if(!this.$8){for(var b=0;b<this.$7.childNodes.length;b++){var a=this.$7.childNodes[b];if(a.className==="C1TextNode"){this.$8=a}}}return this.$8},get_$17:function(){if(!this.$9){for(var b=0;b<this.$7.childNodes.length;b++){var a=this.$7.childNodes[b];if(a.className==="C1TabImage"){this.$9=a;this.$A=this.$9.firstChild.firstChild;break}}}return this.$9},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))}},$18:function(b,a){if(typeof(this._propertiesState[b])==="undefined"){return a}return this._propertiesState[b]},$19:function(b,a){if(this._propertiesState[b]!==a){this._propertiesState[b]=a;this.raisePropertyChanged(b);this.$1A(b);this.$1B()}},$1A:function(a){switch(a){case"ImageUrl":case"DisabledImageUrl":case"SelectedImageUrl":this.$2C();break;case"CssClass":case"CssClassDisabled":case"CssClassSelected":this.$2B();break;case"Alignment":if(this.$3){this.$3.$F();this.$3.$10()}break;case"TextImageAlignment":if(this.$3){this.$3.$7()}break;case"Enabled":this.$2A();break}},$1B:function(){if(this.$0){this.$0.$2_19()}},$1C:function(a){if(this.$13){return}if(!this.$2F(a.target,true)){return}this.$13=true;this.$0.onTabMouseEnter(new C1.Web.UI.Controls.C1TabStrip.TabEventArgs(this))},$1D:function(a){if(!this.$13){return}if(!C1.Web.UI.Utils.Common.testIsNull(a.rawEvent.toElement)){if(this.$2F(a.rawEvent.toElement,true)){return}}else{if(!C1.Web.UI.Utils.Common.testIsNull(a.rawEvent.relatedTarget)){if(this.$2F(a.rawEvent.relatedTarget,true)){return}}else{if(this.$2F(a.target,true)){return}}}this.$13=false;this.$0.onTabMouseOut(new C1.Web.UI.Controls.C1TabStrip.TabEventArgs(this))},$1E:function(a){if(!this.get_enabled()||!this.$26()){a.preventDefault();a.stopPropagation();return}if(!this.get_selected()){this.$27(true)}},$1F:function(a){},$20:function(a){},$21:function(a){if(!a.altKey){return}this.$1E(a)},$22:function(){if(typeof(this._propertiesState.Tabs)==="undefined"){return}var b=this._propertiesState.Tabs;for(var a=0;a<b.length;a++){if(a>=this.get_tabs().length){break}(this.get_tabs()[a]).assignPropertiesState(b[a])}},$23:function(){if(typeof(this._propertiesState.ScrollSettings)==="undefined"){return}this.get_scrollSettings().assignPropertiesState((this._propertiesState.ScrollSettings));this.get_scrollSettings()._jsonHelper=this.$0.$2_6},$24:function(){var b=this.$5.getElementsByTagName("ul")[0];if(b){var a=this.get_level();if(a>0){b.style.display="none"}this.$3=new C1.Web.UI.Controls.C1TabStrip._C1TabGroup(b,this.$0,this)}},$25:function(c){this.$1.set_selectedIndex(this.get_index());var b=this.$1.get_tabs().length;if(this.$5.style.zIndex!==(b+10)){this.$5.style.zIndex=(b+10)}if(this.$6.style.zIndex!==(b+9)){this.$6.style.zIndex=(b+9)}this.$2A();if(this.$3){this.$3.set_$5(true)}this.$0.$2_11(this);this.$0.onAfterTabSelect(new C1.Web.UI.Controls.C1TabStrip.TabEventArgs(this));if(c){var a=this.get_selectedTab();if(a){a.$25(true)}}},$26:function(){if(!this.get_tabStrip().get_$2_C()){return true}if(typeof(window.Page_ClientValidate)!=="function"){return true}return Page_ClientValidate(this.get_tabStrip().get_$2_D())},$27:function(e){if(typeof(e)==="undefined"){e=false}if(e){var b=this.$1.get_selectedTab();if(b===this){return}var a=new C1.Web.UI.Controls.C1TabStrip.TabEventArgs(this);this.$0.onBeforeTabSelect(a);if(a.get_cancel()){return}if(b){b.$28()}this.$25(false)}else{var f=[];var d=this;while(d){f[f.length]=d;d=d.get_parent()}var c=f.length;while(c-->=0){(f[c]).$27(true)}}},$28:function(){this.$1.set_selectedIndex(-1);var a=this.get_index();if(this.$0.get_overlapOrder()===1){a=this.$1.get_tabs().length-this.get_index()}this.$5.style.zIndex=a;this.$6.style.zIndex=a;this.$2A();if(this.$3){this.$3.set_$5(false)}this.$0.onTabUnSelect(new C1.Web.UI.Controls.C1TabStrip.TabEventArgs(this))},$29:function(){this.$2E();this.$2C();this.get_$16().style.display="";if(this.get_textImageRelation()===2){if(!C1.Web.UI.Utils.Common.testIsNull(this.get_$17())){this.get_$17().style.display="block"}}if(this.get_textImageRelation()===3){if(!C1.Web.UI.Utils.Common.testIsNull(this.get_$16())){this.get_$16().style.display="block"}}},$2A:function(){this.$2B();this.$2C();this.$5.disabled=!this.get_enabled();this.$6.disabled=!this.get_enabled()},$2B:function(){var a="C1Link";if(this.get_selected()&&this.get_cssClassSelected()&&this.get_cssClassSelected()!==""){a+=" "+this.get_cssClassSelected()}if(!this.get_enabled()&&this.get_cssClassDisabled()&&this.get_cssClassDisabled()!==""){a+=" "+this.get_cssClassDisabled()}this.$6.className=a},$2C:function(){var a=this.get_imageUrl();if(this.get_selected()&&this.get_selectedImageUrl()&&this.get_selectedImageUrl()!==""){a=this.get_selectedImageUrl()}if(!this.get_enabled()&&this.get_disabledImageUrl()&&this.get_disabledImageUrl()!==""){a=this.get_disabledImageUrl()}if(a===""){this.$2E();return}if(!this.get_$17()){this.$2D()}if(!this.get_$17()){return}if(this.$A){this.$A.src=a}},$2D:function(){if(this.get_$17()){return}this.$9=document.createElement("span");this.$9.className="C1TabImage";var a=document.createElement("div");this.$9.appendChild(a);this.$A=document.createElement("img");a.appendChild(this.$A);switch(this.get_textImageRelation()){case 1:this.get_$16().style.styleFloat="left";this.get_$16().style.cssFloat="left";this.$7.appendChild(this.$9);break;default:this.$7.insertBefore(this.$9,this.get_$16());break}},$2E:function(){var b=this.get_$17();if(!b){return}var a=this.get_$16();while(this.$7.childNodes.length>0){this.$7.removeChild(this.$7.childNodes[0])}if(a){this.$7.appendChild(a)}this.$9=null},$2F:function(b,a){if(b===this.$5){return a}b=b.parentNode;while(b){if(b===this.$5){return true}b=b.parentNode}return false},$30:function(){return C1.Web.UI.Utils.Common.getOuterWidth(this.$5)},$31:function(){return C1.Web.UI.Utils.Common.getOuterHeight(this.$5)},$32:function(a){this.$5.style.marginLeft=a+"px"},$33:function(a){this.$5.style.marginTop=a+"px"},$34:function(a){this.$11=a},$35:function(){Sys.UI.DomEvent.addHandler(this.$5,"mouseover",this.$B);Sys.UI.DomEvent.addHandler(this.$5,"mouseout",this.$C);Sys.UI.DomEvent.addHandler(this.$5,"click",this.$D);Sys.UI.DomEvent.addHandler(this.$5,"dblclick",this.$E);Sys.UI.DomEvent.addHandler(this.$5,"focus",this.$F);Sys.UI.DomEvent.addHandler(this.$5,"contextmenu",this.$10)},$36:function(){Sys.UI.DomEvent.removeHandler(this.$5,"mouseover",this.$B);Sys.UI.DomEvent.removeHandler(this.$5,"mouseout",this.$C);Sys.UI.DomEvent.removeHandler(this.$5,"click",this.$D);Sys.UI.DomEvent.removeHandler(this.$5,"dblclick",this.$E);Sys.UI.DomEvent.removeHandler(this.$5,"focus",this.$F);Sys.UI.DomEvent.removeHandler(this.$5,"contextmenu",this.$10)}};C1.Web.UI.Controls.C1TabStrip._C1TabGroup=function(b,a,c){this.$0=b;this.$1=a;this.$3=c;this.$2=true;this.$B()};C1.Web.UI.Controls.C1TabStrip._C1TabGroup.prototype={$0:null,$1:null,$2:false,$3:null,$4:null,get_$5:function(){if(!this.$0){return false}return this.$0.style.display!=="none"},set_$5:function(a){if(!this.$0){return}this.$0.style.display=(a)?"block":"none";if(a&&this.$2){this.$10()}if(this.$3.get_selectedTab()&&this.$3.get_selectedTab().get_$14()){this.$3.get_selectedTab().get_$14().set_$5(a)}return a},$6:function(){this.$7();this.$10();this.$8()},$7:function(){for(var b=0;b<this.$3.get_tabs().length;b++){var a=this.$3.get_tabs()[b];a.$29()}},$8:function(){if(this.$3.get_scrollSettings().get_scrollMode()!==1){this.$9()}else{if(this.$4){this.$4.dispose();this.$4=null}}},$9:function(){if(!this.$0){return}if(this.$4){this.$4.remove_scrollStop(Function.createDelegate(this,this.$A));this.$4.dispose();this.$4=null}var b=this.$3.get_scrollSettings();if(!this.$4){var a=this.$1.get_orientation();var d=b.get_scrollMode()===2||b.get_scrollMode()===3;var c=b.get_scrollMode()===3;this.$4=new C1.Web.UI.ScrollBehavior(this.$0,a,d,true);if(c){this.$4.set_buttonHoverScroll(true)}this.$4.set_buttonAlign(b.get_scrollButtonAlign());if(b.get_scrollPosition()){this.$4.set_value(b.get_scrollPosition())}this.$4.add_scrollStop(Function.createDelegate(this,this.$A))}},$A:function(b,a){this.$3.get_scrollSettings().set_scrollPosition(this.$4.get_value())},$B:function(){if(!this.$0){return}var b=this.$3.get_level();var a=this.$1.$2_13(b);if(b>0){a.appendChild(this.$0)}var d=this.$0.firstChild;while(d){if(d.nodeType===1&&d.tagName.toLowerCase()==="li"){if(d.getElementsByTagName("a").length>0){var c=new C1.Web.UI.Controls.C1TabStrip.C1Tab(d,this.$1,this.$3);this.$C(c);this.$1.$2_12(c);c.$24()}}d=d.nextSibling}},$C:function(a){a.$34(this.$3.get_tabs().length);this.$3.get_tabs()[this.$3.get_tabs().length]=a},$D:function(d,c){if(typeof(d)==="undefined"){d=0}if(typeof(c)==="undefined"){c=this.$3.get_tabs().length-1}var b=0;for(var a=d;a<=c;a++){b+=(this.$3.get_tabs()[a]).$30()}return b},$E:function(d,c){if(typeof(d)==="undefined"){d=0}if(typeof(c)==="undefined"){c=this.$3.get_tabs().length-1}var b=0;for(var a=d;a<=c;a++){b+=(this.$3.get_tabs()[a]).$31()}return b},$F:function(){this.$2=true;for(var b=0;b<this.$3.get_tabs().length;b++){var a=this.$3.get_tabs()[b];if(a.get_$14()){a.get_$14().$F()}}},$10:function(){if(!this.$0){return}if(!this.$2){return}if(!this.get_$5()){return}var i=this.$3.get_tabs();if(i.length<=0){return}var h=this.$3.get_alignment();if(!h){return}var g=this.$0.parentNode;if(!g){return}var f=C1.Web.UI.Utils.Common.getContentBounds(g,false);var e=f.width;var d=f.height;if(!e||!d){return}var c=this.$D(0,i.length-1);var b=this.$E(0,i.length-1);if(!c||!b){return}var a=i[0];if(!this.$1.get_orientation()){var m=e-c;switch(h){case 1:if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){m=m/4}else{m=m/2}m=Math.max(0,m);a.$32(m);break;case 2:if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version<7){m=m/2}a.$32(m);break;case 3:var l=new C1.Web.UI.Controls.C1TabStrip.JustifyHelper(this.$0,0,true);l.align();break}}else{var k=d-b;switch(h){case 1:k=k/4;a.$33(k);break;case 2:k=k/2;a.$33(k);break;case 3:var j=new C1.Web.UI.Controls.C1TabStrip.JustifyHelper(this.$0,1,true);j.align();break}}this.$2=false}};C1.Web.UI.Controls.C1TabStrip.TabEventArgs=function(a){C1.Web.UI.Controls.C1TabStrip.TabEventArgs.initializeBase(this);this.$2_0=a};C1.Web.UI.Controls.C1TabStrip.TabEventArgs.prototype={$2_0:null,get_tab:function(){return this.$2_0}};C1.Web.UI.Controls.C1TabStrip._AlignGroup=function(a,b){this.$4=a;this.$5=b;this.$0=0;this.$1=0;this.$2=0;this.$3=[]};C1.Web.UI.Controls.C1TabStrip._AlignGroup.prototype={$0:0,$1:0,$2:0,$3:null,$4:0,$5:false,$6:function(e){var b=e.sep;if(typeof(b)==="undefined"){b=false}var a=e.firstChild;var f=this.$7(a);this.$1+=f;var d=a.firstChild.firstChild.firstChild;var c=(!this.$4)?d.style.width:d.style.height;if(b||(this.$5&&c)){this.$0+=f;return}this.$2+=f;this.$3[this.$3.length]=a},$7:function(a){if(!this.$4){return C1.Web.UI.Utils.Common.getOuterWidth(a)}else{return C1.Web.UI.Utils.Common.getOuterHeight(a)}}};C1.Web.UI.Controls.C1TabStrip.JustifyHelper=function(d,c,h){this.$0=d;this.$2=c;this.$3=h;this.$1=[];this.$1[this.$1.length]=new C1.Web.UI.Controls.C1TabStrip._AlignGroup(this.$2,this.$3);var b=-1;var a=0;for(var g=0;g<this.$0.childNodes.length;g++){var f=this.$0.childNodes[g];if(f.nodeType===1&&f.tagName.toLowerCase()==="li"){if(!f.hasChildNodes()){continue}if(!f.firstChild.firstChild){continue}var e=(!c)?f.offsetLeft:f.offsetTop;if(b<0){b=e+1}else{if(e<b){a++;this.$1[a]=new C1.Web.UI.Controls.C1TabStrip._AlignGroup(this.$2,this.$3);b=e+1}}(this.$1[a]).$6(f)}}this.$5()};C1.Web.UI.Controls.C1TabStrip.JustifyHelper.prototype={$0:null,$1:null,$2:0,$3:false,$4:function(a){if(!this.$2){return C1.Web.UI.Utils.Common.getOuterWidth(a)}else{return C1.Web.UI.Utils.Common.getOuterHeight(a)}},$5:function(){for(var b=0;b<this.$1.length;b++){var a=this.$1[b];for(var g=0;g<a.$3.length;g++){var f=a.$3[g];var e=(!this.$2)?f.style.width:f.style.height;if(this.$3&&e){continue}var d=this.$4(f);var c=this.$4(f.firstChild.firstChild.firstChild);if(!a.$2){f.Percentage=0}else{f.Percentage=d/a.$2}f.PaddingDiff=d-c}}},align:function(){var i=C1.Web.UI.Utils.Common.getContentBounds(this.$0,false);var h=(!this.$2)?C1.Web.UI.Utils.Common.getContentWidth(this.$0):C1.Web.UI.Utils.Common.getContentHeight(this.$0);for(var g=0;g<this.$1.length;g++){var f=this.$1[g];if(!f.$3.length){continue}for(var e=0;e<f.$3.length;e++){var d=f.$3[e];var c=d.Percentage;var b=d.PaddingDiff;if(typeof(c)==="undefined"){continue}var a=c*(h-f.$0);var j=Math.floor(a-b-1);if(!this.$2){C1.Web.UI.Utils.Common.setOuterWidth(d.firstChild.firstChild.firstChild,j)}else{C1.Web.UI.Utils.Common.setOuterHeight(d.firstChild.firstChild.firstChild,j)}}}}};C1.Web.UI.Controls.C1TabStrip.C1TabStrip=function(a){this._propertiesState={};C1.Web.UI.Controls.C1TabStrip.C1TabStrip.initializeBase(this,[a])};C1.Web.UI.Controls.C1TabStrip.C1TabStrip.prototype={$2_0:null,$2_1:null,$2_2:0,$2_3:null,$2_4:null,$2_5:null,$2_6:null,$2_7:null,$2_8:0,initialize:function(){C1.Web.UI.Controls.C1TabStrip.C1TabStrip.callBaseMethod(this,"initialize");this.$2_6=new C1.Web.UI.Interfaces.JsonSerializableHelper(this.get_element().id,this);this.$2_8=0;if(this.get_direction()===3||this.get_direction()===1){this.$2_8=this.get_element().offsetWidth}this.$2_2=0;this.$2_3=[];this.$2_4=[];this.$2_5=new C1.Web.UI.ScrollBehaviorSettings();var b=this.get_element().getElementsByTagName("ul")[0];this.$2_1=new C1.Web.UI.Controls.C1TabStrip._C1TabGroup(b,this,this);this.$2_B();this.$2_A();this.$2_14();var a=false;var c=this.get_element().parentNode;if(c){a=(c.offsetHeight>0||c.offsetWidth>0)}if(!a){if(!this.$2_7){this.$2_7=Function.createDelegate(this,this.$2_9);C1.Web.UI.Utils.Common.listenVisibleState(this.get_element(),this.$2_7)}}else{this.$2_1.$6()}this.get_element().style.visibility="visible"},$2_9:function(b,a){if(a){if(this.$2_7){C1.Web.UI.Utils.Common.unListenVisibleState(this.get_element(),this.$2_7);this.$2_7=null}this.$2_1.$6()}},$2_A:function(){if(typeof(this._propertiesState.Tabs)==="undefined"){return}var b=this._propertiesState.Tabs;for(var a=0;a<b.length;a++){if(a>=this.get_tabs().length){break}(this.get_tabs()[a]).assignPropertiesState(b[a])}},$2_B:function(){if(typeof(this._propertiesState.ScrollSettings)==="undefined"){return}this.get_scrollSettings().assignPropertiesState((this._propertiesState.ScrollSettings));this.get_scrollSettings()._jsonHelper=this.$2_6},get_owner:function(){return null},get_level:function(){return this.$2_2},get_alignment:function(){return this.$2_16("Alignment",0)},set_alignment:function(a){this.$2_17("Alignment",a);return a},get_scrollSettings:function(){if(!this.$2_5){this.$2_5=new C1.Web.UI.ScrollBehaviorSettings()}return this.$2_5},get_selectedIndex:function(){return this.$2_16("SelectedIndex",0)},set_selectedIndex:function(a){this.$2_17("SelectedIndex",a);return a},get_selectedTab:function(){var a=this.get_selectedIndex();if(a===-1){return null}if(!this.$2_1){return null}return this.get_tabs()[a]},get_tabs:function(){if(!this.$2_0){this.$2_0=[]}return this.$2_0},get_propertiesState:function(){return this._propertiesState},assignPropertiesState:function(a){this._propertiesState=a},createInstance:function(a){return new C1.Web.UI.Controls.C1TabStrip.C1TabStrip(a)},get_visualStyle:function(){return this.$2_16("VisualStyle","ArcticFox")},set_visualStyle:function(c){var b=this.get_visualStyle();if(b!==""&&b!==c){var a=new RegExp("("+b+")","g");this.$2_17("VisualStyle",c);var d=this.get_element().className;d=d.replace(a,c);this.get_element().className=d}return c},get_autoPostBack:function(){return this.$2_16("AutoPostBack",false)},set_autoPostBack:function(a){this.$2_17("AutoPostBack",a);return a},get_orientation:function(){if(!this.get_direction()||this.get_direction()===2){return 0}return 1},get_direction:function(){return this.$2_16("Direction",0)},set_direction:function(a){this.$2_17("Direction",a);return a},get_overlapOrder:function(){return this.$2_16("OverlapOrder",0)},set_overlapOrder:function(a){this.$2_17("OverlapOrder",a);return a},get_$2_C:function(){return this.$2_16("CausesValidation",false)},set_$2_C:function(a){this.$2_17("CausesValidation",a);return a},get_$2_D:function(){return this.$2_16("ValidationGroup","")},set_$2_D:function(a){this.$2_17("ValidationGroup",a);return a},get_$2_E:function(){return this.$2_16("MultiPageID","")},set_$2_E:function(a){this.$2_17("MultiPageID",a);return a},get_$2_F:function(){return this.$2_16("ClientMultiPageID","")},set_$2_F:function(a){this.$2_17("ClientMultiPageID",a);return a},get_textImageRelation:function(){return this.$2_16("TextImageRelation",1)},set_textImageRelation:function(a){this.$2_17("TextImageRelation",a);return a},get_childGroupCssClass:function(){return this.$2_16("ChildGroupCssClass","C1List")},set_childGroupCssClass:function(a){this.$2_17("ChildGroupCssClass",a);return a},get_enabled:function(){return this.$2_16("Enabled",true)},set_enabled:function(a){this.get_element().disabled=!a;this.$2_17("Enabled",a);this.$2_15();return a},get_onClientAfterTabSelect:function(){return this.$2_16("OnClientAfterTabSelect","")},set_onClientAfterTabSelect:function(a){this.$2_17("OnClientAfterTabSelect",a);return a},get_onClientBeforeTabSelect:function(){return this.$2_16("OnClientBeforeTabSelect","")},set_onClientBeforeTabSelect:function(a){this.$2_17("OnClientBeforeTabSelect",a);return a},get_onClientTabUnSelect:function(){return this.$2_16("OnClientTabUnSelect","")},set_onClientTabUnSelect:function(a){this.$2_17("OnClientTabUnSelect",a);return a},get_onClientTabMouseEnter:function(){return this.$2_16("OnClientTabMouseEnter","")},set_onClientTabMouseEnter:function(a){this.$2_17("OnClientTabMouseEnter",a);return a},get_onClientTabMouseOut:function(){return this.$2_16("OnClientTabMouseOut","")},set_onClientTabMouseOut:function(a){this.$2_17("OnClientTabMouseOut",a);return a},get_$2_10:function(){var a=this.get_$2_F();if(a&&a!==""){return $find(a)}return null},$2_11:function(b){if(!this.get_$2_10()){return}this.get_$2_10()._slideOrientation=this.get_orientation();var a=b.get_$15();if(!a||a===""){this.get_$2_10().set_selectedIndex(b.get_index())}else{this.get_$2_10().selectPageView(a)}},$2_12:function(a){this.$2_4[this.$2_4.length]=a},$2_13:function(c){if(this.$2_3[c]){return this.$2_3[c]}var b=null;if(c>0){b=document.createElement("div");b.className="level"+c;if(this.get_direction()===3||this.get_direction()===1){b.style.position="absolute";b.style.width=this.$2_8+"px";var a=(this.get_direction()===3)?c*this.$2_8:c*this.$2_8*-1;b.style.left=a+"px"}this.get_element().appendChild(b)}else{b=this.get_element().getElementsByTagName("div")[0];if(this.get_direction()===3||this.get_direction()===1){b.style.position="absolute";b.style.width=this.$2_8+"px"}}this.$2_3[c]=b;return b},$2_14:function(){this.$2_15();var a=this.get_selectedTab();if(a){a.$25(true)}},$2_15:function(){for(var b=0;b<this.get_tabs().length;b++){var a=this.get_tabs()[b];a.$2A()}},$2_16:function(b,a){if(typeof(this._propertiesState[b])==="undefined"){return a}return this._propertiesState[b]},$2_17:function(b,a){if(this._propertiesState[b]!==a){this._propertiesState[b]=a;this.raisePropertyChanged(b);this.$2_18(b);this.$2_19()}},$2_18:function(a){switch(a){case"Alignment":if(this.$2_1){this.$2_1.$F();this.$2_1.$10()}break;case"TextImageAlignment":if(this.$2_1){this.$2_1.$7()}break}},$2_19:function(){this.$2_6.saveState()},$2_1A:function(c,b){if(c&&c!==""){var a=(((window)[c]));if(a){a(this,b)}}},add_beforeTabSelect:function(a){this.get_events().addHandler("beforetabselect",a)},remove_beforeTabSelect:function(a){this.get_events().removeHandler("beforetabselect",a)},onBeforeTabSelect:function(b){this.$2_1A(this.get_onClientBeforeTabSelect(),b);var a=this.get_events().getHandler("beforetabselect");if(a){a(this,b)}},add_afterTabSelect:function(a){this.get_events().addHandler("aftertabselect",a)},remove_afterTabSelect:function(a){this.get_events().removeHandler("aftertabselect",a)},onAfterTabSelect:function(b){this.$2_1A(this.get_onClientAfterTabSelect(),b);var a=this.get_events().getHandler("aftertabselect");if(a){a(this,b)}},add_tabUnSelect:function(a){this.get_events().addHandler("tabunselect",a)},remove_tabUnSelect:function(a){this.get_events().removeHandler("tabunselect",a)},onTabUnSelect:function(b){this.$2_1A(this.get_onClientTabUnSelect(),b);var a=this.get_events().getHandler("tabunselect");if(a){a(this,b)}},add_tabMouseEnter:function(a){this.get_events().addHandler("tabmouseenter",a)},remove_tabMouseEnter:function(a){this.get_events().removeHandler("tabmouseenter",a)},onTabMouseEnter:function(b){this.$2_1A(this.get_onClientTabMouseEnter(),b);var a=this.get_events().getHandler("tabmouseenter");if(a){a(this,b)}},add_tabMouseOut:function(a){this.get_events().addHandler("tabmouseout",a)},remove_tabMouseOut:function(a){this.get_events().removeHandler("tabmouseout",a)},onTabMouseOut:function(b){this.$2_1A(this.get_onClientTabMouseOut(),b);var a=this.get_events().getHandler("tabmouseout");if(a){a(this,b)}}};C1.Web.UI.Controls.C1TabStrip.C1Tab.registerClass("C1.Web.UI.Controls.C1TabStrip.C1Tab",null,C1.Web.UI.Controls.C1TabStrip.ITabOwner,C1.Web.UI.Interfaces.IJsonSerializableSupport);C1.Web.UI.Controls.C1TabStrip._C1TabGroup.registerClass("C1.Web.UI.Controls.C1TabStrip._C1TabGroup");C1.Web.UI.Controls.C1TabStrip.TabEventArgs.registerClass("C1.Web.UI.Controls.C1TabStrip.TabEventArgs",Sys.CancelEventArgs);C1.Web.UI.Controls.C1TabStrip._AlignGroup.registerClass("C1.Web.UI.Controls.C1TabStrip._AlignGroup");C1.Web.UI.Controls.C1TabStrip.JustifyHelper.registerClass("C1.Web.UI.Controls.C1TabStrip.JustifyHelper");C1.Web.UI.Controls.C1TabStrip.C1TabStrip.registerClass("C1.Web.UI.Controls.C1TabStrip.C1TabStrip",Sys.UI.Control,C1.Web.UI.Controls.C1TabStrip.ITabOwner,C1.Web.UI.Interfaces.IJsonSerializableSupport);
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();