Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadTab=function(){Telerik.Web.UI.RadTab.initializeBase(this); this._properties=new Telerik.Web.UI.PropertyBag(this); }; Telerik.Web.UI.RadTab.prototype={_requiresScrolling:function(){return this.get_tabStrip()._tabContainerRequiresScrolling(this); },_createChildControls:function(){this._children=new Telerik.Web.UI.RadTabCollection(this); Telerik.Web.UI.RadTabStrip._createChildControls(this,this._children); },_tabsFromSameLevel:function(){var a=[]; Array.addRange(a,this.get_tabStrip()._children._array); while(a.length>0){var c=a.length; if(Array.indexOf(a,this)>-1){return a; }for(var b=0; b-1){if(c-1==b){a[a.length]="rtsBefore"; }if(c+1==b){a[a.length]="rtsAfter"; }}return a.join(" "); },_render:function(a){if(this.get_isSeparator()){this._renderSeparator(a); }else{this._renderTab(a); }this._updateSiblings(); if(this.get_tabs().get_count()>0){this._renderChildren(); }},_getPreviousVisibileTab:function(){var a=this.get_parent().get_tabs(); for(var b=this.get_index()-1; b>-1; b--){var c=a.getTab(b); if(c.get_visible()){return c; }}return null; },_getNextVisibleTab:function(){var b=this.get_parent().get_tabs(); for(var c=this.get_index()+1,a=b.get_count(); c-1; b--){if(a.getTab(b).get_visible()){return b; }}return -1; },_updateAppearance:function(b){if(!this.get_element()){return; }var c=this.get_index(); if(this.get_linkElement()){this._setCssClass(this.get_linkElement(),this._determineCssClass(c)); }this._updateImage(); if(b){return; }var a="rtsLI"; if(c==this._getFirstVisibleIndex()){a+=" rtsFirst"; }if(c==this._getLastVisibleIndex()){a+=" rtsLast"; }this._setCssClass(this.get_element(),a); },_determineImage:function(){var a=this.get_imageUrl(); if(this.get_selected()&&this.get_selectedImageUrl()){a=this.get_selectedImageUrl(); }if(!this.get_enabled()&&this.get_disabledImageUrl()){a=this.get_disabledImageUrl(); }return a; },_updateImage:function(){if(!this.get_element()){return; }var a=this._determineImage(); if(!a){return; }if(!this.get_imageElement()){var b=document.createElement("img"); b.className="rtsImg"; b.alt=""; this.get_innerWrapElement().insertBefore(b,this.get_textElement()); }if(this.get_imageElement().src!=a){this.get_imageElement().src=a; }},_setChildListDisplay:function(d){var a=this.get_tabStrip(); var c=this; while(c){var b=c.get_childListElement(); if(b){b.style.display=d; if(d!="none"&&a._align==Telerik.Web.UI.TabStripAlign.Justify){Telerik.Web.UI.RadTabStrip._justify(b,a._orientation); }}c=c.get_selectedTab(); }},_highlight:function(){if(this.get_hoveredCssClass()){Sys.UI.DomElement.addCssClass(this.get_linkElement(),this.get_hoveredCssClass()); }var a=this.get_previousTab(); var b=this.get_nextTab(); if(a){Sys.UI.DomElement.addCssClass(a.get_linkElement(),"rtsHoverBefore"); }if(b){Sys.UI.DomElement.addCssClass(b.get_linkElement(),"rtsHoverAfter"); }if(!this.get_enabled()){return; }if(!this.get_hoveredImageUrl()){return; }if(!this.get_imageElement()){return; }if(this.get_imageElement().src!=this.get_hoveredImageUrl()){this.get_imageElement().src=this.get_hoveredImageUrl(); }},_unhighlight:function(){if(this.get_hoveredCssClass()){Sys.UI.DomElement.removeCssClass(this.get_linkElement(),this.get_hoveredCssClass()); }var a=this.get_previousTab(); var b=this.get_nextTab(); if(a){Sys.UI.DomElement.removeCssClass(a.get_linkElement(),"rtsHoverBefore"); }if(b){Sys.UI.DomElement.removeCssClass(b.get_linkElement(),"rtsHoverAfter"); }this._updateImage(); },_shouldPostBack:function(){var a=this.get_tabStrip(); if(!a){return false; }return this.get_postBack()&&a._postBackReference!=null; },_initialize:function(b,a){Telerik.Web.UI.RadTab.callBaseMethod(this,"_initialize",[b,a]); this._perTabScrolling=this._properties.getValue("perTabScrolling",false); this._scrollChildren=this._properties.getValue("scrollChildren",false); this._scrollButtonsPosition=this._properties.getValue("scrollButtonsPosition",Telerik.Web.UI.TabStripScrollButtonsPosition.Right); this._ensureChildControls(); },_dispose:function(){Telerik.Web.UI.RadTab.callBaseMethod(this,"_dispose"); if(this._scroller){this._scroller.dispose(); }},_initScrolling:function(){if(this.get_selected()&&this._requiresScrolling()){this.get_tabStrip()._initScrollingForTabContainer(this); }},_selectPageView:function(a){var b=this.get_pageView(); if(b){b._select(a); }if(this.get_selectedIndex()>-1){this.get_selectedTab()._selectPageView(a); }},_getGlobalIndex:function(){return Array.indexOf(this.get_tabStrip().get_allTabs(),this); },scrollIntoView:function(){var a=this.get_parent(); if(!a){return; }if(!a._scroller){return; }a._scroller._scrollToTab(this); var b=this.get_tabStrip(); b._updateScrollState(a,a._scroller._currentPosition); },get_nextTab:function(){return this.get_nextSibling(); },get_previousTab:function(){return this.get_previousSibling(); },click:function(b){if(!this.get_isEnabled()){if(b.preventDefault){b.preventDefault(); }return false; }var a=this.get_tabStrip(); if(!a){return false; }if(a.get_causesValidation()){if(typeof(Page_ClientValidate)!=="undefined"&&!Page_ClientValidate(a.get_validationGroup())){return false; }}if(!this.select(b)){return false; }if(this._shouldNavigate()){return true; }if(this._shouldPostBack()){a._postback(this); }return false; },get_pageView:function(){var a=this.get_tabStrip().get_multiPage(); if(!a){return null; }if(this.get_pageViewID()){return a.findPageViewByID(this.get_pageViewID()); }return a.get_pageViews().getPageView(this._getGlobalIndex()); },get_pageViewID:function(){return this._properties.getValue("pageViewID",null); },set_pageViewID:function(a){this._properties.setValue("pageViewID",a); },get_target:function(){if(this.get_linkElement()){return this._properties.getValue("target",this.get_linkElement().target); }return this._properties.getValue("target",null); },set_target:function(a){this._properties.setValue("target",a,true); if(this.get_linkElement()){this.get_linkElement().target=a; }},get_navigateUrl:function(){return this._getNavigateUrl(); },set_navigateUrl:function(a){this._properties.setValue("navigateUrl",a,true); if(this.get_linkElement()){this.get_linkElement().href=a; }},get_postBack:function(){return this._properties.getValue("postback",true); },set_postBack:function(a){this._properties.setValue("postback",a,true); },get_selected:function(){if(!this.get_parent()){return false; }return this.get_index()==this.get_parent().get_selectedIndex(); },set_selected:function(a){if(a){this.select(); }else{this.unselect(); }},selectParents:function(){var a=[]; var b=this; while(b!=this.get_tabStrip()){a[a.length]=b; b=b.get_parent(); }var c=a.length; while(c--){a[c].select(); }},select:function(g){var c=this.get_parent(); if(!c){this._cachedSelected=true; return true; }var d=this._shouldNavigate(); var f=c.get_selectedTab(); var b=this.get_tabStrip(); if(!d&&f==this&&!b.get_clickSelectedTab()){return false; }if(b._raiseCancelEvent("tabSelecting",this,g)){return false; }var a=this._shouldPostBack()||(d&&(!this.get_target()||this.get_target()=="_self")); if(!g){a=false; }if(f&&f!=this){f.unselect(a,g); }c._setSelectedIndex(this.get_index()); b._registerSelectedTab(this); if(!a){this._updateAppearance(true); this._updateSiblings(true); this._setChildListDisplay(""); if(this._scroller){this._scroller._showArrows(); }else{b._scrollInitInProgress=true; this._initScrolling(); b._scrollInitInProgress=false; }if(b._reorderTabsOnSelect){Telerik.Web.UI.RadTabStrip._reorderTabs(c.get_childListElement(),this.get_element()); }}if(b.get_multiPage()){this._selectPageView(a); }b._raiseEvent("tabSelected",this,g); return true; },unselect:function(a,f){var c=this.get_parent(); if(!c){return; }if(!this.get_selected()){return; }c._setSelectedIndex(-1); var b=this.get_tabStrip(); b._unregisterSelectedTab(this); if(!a){this._setChildListDisplay("none"); if(this._scroller){this._scroller._hideArrows(); }this._updateAppearance(true); this._updateSiblings(true); }var d=this.get_selectedTab(); if(b.get_unselectChildren()&&d){d.unselect(a); }b._raiseEvent("tabUnSelected",this,f); },get_selectedIndex:function(){return this._properties.getValue("selectedIndex",-1); },_setSelectedIndex:function(a){this._properties.setValue("selectedIndex",a); },set_selectedIndex:function(a){if(a>-1){var c=this.get_tabs().getTab(a); if(c){c.select(); }}else{var b=this.get_selectedTab(); if(b){b.unselect(); }}},get_selectedTab:function(){return this.get_tabs().getTab(this.get_selectedIndex())||null; },get_tabStrip:function(){return this._getControl(); },get_isSeparator:function(){return this._properties.getValue("isSeparator",false); },set_isSeparator:function(a){this._properties.setValue("isSeparator",a); },get_tabData:function(){return this.get_itemData(); },get_levelElement:function(){if(!this._levelElement){this._levelElement=this._getControl()._getLevelElements()[this._getLevelIndex()]||null; }return this._levelElement; },get_textElement:function(){if(this.get_isSeparator()){return this.get_element(); }if(!this.get_innerWrapElement()){return null; }if(!this._textElement){this._textElement=$telerik.getChildByClassName(this.get_innerWrapElement(),"rtsTxt"); }return this._textElement; },get_linkElement:function(){if(!this.get_element()){return null; }if(!this._linkElement){this._linkElement=$telerik.getChildByClassName(this.get_element(),"rtsLink"); }return this._linkElement; },get_imageElement:function(){if(!this.get_innerWrapElement()){return null; }if(!this._imageElement){this._imageElement=$telerik.getChildByClassName(this.get_innerWrapElement(),"rtsImg"); }return this._imageElement; },get_outerWrapElement:function(){if(!this.get_linkElement()){return null; }if(!this._outerWrapElement){this._outerWrapElement=$telerik.getChildByClassName(this.get_linkElement(),"rtsOut"); }return this._outerWrapElement; },get_innerWrapElement:function(){if(!this.get_outerWrapElement()){return null; }if(!this._innerWrapElement){this._innerWrapElement=$telerik.getChildByClassName(this.get_outerWrapElement(),"rtsIn"); }return this._innerWrapElement; },get_childListElement:function(){if(!this._childListElement){var a=this._getListItemsForTheCurrentLevel(); if(!a){return null; }this._childListElement=a[this._getChildListIndex()]||null; }return this._childListElement; },get_tabs:function(){return this._getChildren(); },enable:function(){this.set_enabled(true); },disable:function(){this.set_enabled(false); },set_visible:function(a){Telerik.Web.UI.RadTab.callBaseMethod(this,"set_visible",[a]); if(a){this.show(); }else{this.hide(); }},show:function(){this.get_element().style.display=""; this._updateSiblings(); },hide:function(){this.get_element().style.display="none"; this._updateSiblings(); this.unselect(); },set_enabled:function(a){Telerik.Web.UI.RadTab.callBaseMethod(this,"set_enabled",[a]); this._updateAppearance(); },get_disabledCssClass:function(){return this._properties.getValue("disabledCssClass",null); },set_disabledCssClass:function(a){this._properties.setValue("disabledCssClass",a,true); this._updateAppearance(); },get_selectedCssClass:function(){return this._properties.getValue("selectedCssClass",null); },set_selectedCssClass:function(a){this._properties.setValue("selectedCssClass",a,true); this._updateAppearance(); },get_hoveredCssClass:function(){return this._properties.getValue("hoveredCssClass",null); },set_hoveredCssClass:function(a){this._properties.setValue("hoveredCssClass",a,true); },get_cssClass:function(){return this._properties.getValue("cssClass",null); },set_cssClass:function(a){this._properties.setValue("cssClass",a,true); this._updateAppearance(); },get_imageUrl:function(){return this._properties.getValue("imageUrl",null); },set_imageUrl:function(a){this._properties.setValue("imageUrl",a,true); this._updateImage(); },get_selectedImageUrl:function(){return this._properties.getValue("selectedImageUrl",null); },set_selectedImageUrl:function(a){this._properties.setValue("selectedImageUrl",a,true); this._updateImage(); },get_disabledImageUrl:function(){return this._properties.getValue("disabledImageUrl",null); },set_disabledImageUrl:function(a){this._properties.setValue("disabledImageUrl",a,true); this._updateImage(); },get_hoveredImageUrl:function(){return this._properties.getValue("hoveredImageUrl",null); },set_hoveredImageUrl:function(a){this._properties.setValue("hoveredImageUrl",a,true); },get_isBreak:function(){return this._properties.getValue("isBreak",false); },set_isBreak:function(a){this._properties.setValue("isBreak",a,true); }}; Telerik.Web.UI.RadTab.registerClass("Telerik.Web.UI.RadTab",Telerik.Web.UI.ControlItem); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.RadTabCollection=function(a){Telerik.Web.UI.RadTabCollection.initializeBase(this,[a]); }; Telerik.Web.UI.RadTabCollection.prototype={getTab:function(a){return this.getItem(a); }}; Telerik.Web.UI.RadTabCollection.registerClass("Telerik.Web.UI.RadTabCollection",Telerik.Web.UI.ControlItemCollection); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.TabStripOrientation=function(){}; Telerik.Web.UI.TabStripOrientation.prototype={HorizontalTop:0,HorizontalBottom:1,VerticalRight:2,VerticalLeft:3}; Telerik.Web.UI.TabStripOrientation.isHorizontal=function(a){return a==Telerik.Web.UI.TabStripOrientation.HorizontalTop||a==Telerik.Web.UI.TabStripOrientation.HorizontalBottom; }; Telerik.Web.UI.TabStripOrientation.isVertical=function(a){return !Telerik.Web.UI.TabStripOrientation.isHorizontal(a); }; Telerik.Web.UI.TabStripOrientation.registerEnum("Telerik.Web.UI.TabStripOrientation"); Telerik.Web.UI.TabStripAlign=function(){}; Telerik.Web.UI.TabStripAlign.prototype={Left:0,Center:1,Right:2,Justify:3}; Telerik.Web.UI.TabStripAlign.registerEnum("Telerik.Web.UI.TabStripAlign"); Telerik.Web.UI.TabStripScrollButtonsPosition=function(){}; Telerik.Web.UI.TabStripScrollButtonsPosition.prototype={Left:0,Middle:1,Right:2}; Telerik.Web.UI.TabStripScrollButtonsPosition.registerEnum("Telerik.Web.UI.TabStripScrollButtonsPosition"); Telerik.Web.UI.RadTabStripCancelEventArgs=function(b,a){Telerik.Web.UI.RadTabStripCancelEventArgs.initializeBase(this); this._tab=b; this._domEvent=a; }; Telerik.Web.UI.RadTabStripCancelEventArgs.prototype={get_tab:function(){return this._tab; },get_domEvent:function(){return this._domEvent; }}; Telerik.Web.UI.RadTabStripCancelEventArgs.registerClass("Telerik.Web.UI.RadTabStripCancelEventArgs",Sys.CancelEventArgs); Telerik.Web.UI.RadTabStripEventArgs=function(b,a){Telerik.Web.UI.RadTabStripEventArgs.initializeBase(this); this._tab=b; this._domEvent=a; }; Telerik.Web.UI.RadTabStripEventArgs.prototype={get_tab:function(){return this._tab; },get_domEvent:function(){return this._domEvent; }}; Telerik.Web.UI.RadTabStripEventArgs.registerClass("Telerik.Web.UI.RadTabStripEventArgs",Sys.EventArgs); Telerik.Web.UI.RadTabStrip=function(a){Telerik.Web.UI.RadTabStrip.initializeBase(this,[a]); this._childTypeName="Telerik.Web.UI.RadTab"; this._orientation=Telerik.Web.UI.TabStripOrientation.HorizontalTop; this._align=Telerik.Web.UI.TabStripAlign.Left; this._selectedIndex=-1; this._selectedIndexes=[]; this._selectedIndexesJson="[]"; this._logEntriesJson="[]"; this._scrollState={}; this._scrollStateJson="{}"; this._multiPageID=null; this._causesValidation=true; this._validationGroup=""; this._postBackReference=null; this._scrollChildren=false; this._scrollButtonsPosition=Telerik.Web.UI.TabStripScrollButtonsPosition.Right; this._perTabScrolling=false; this._reorderTabsOnSelect=false; this._skin=null; }; Telerik.Web.UI.RadTabStrip._getTabGroups=function(b,a){var d=[]; var c=[]; c.size=0; Array.add(d,c); var f=$telerik.getChildrenByTagName(b,"li"); for(var e=0; e-1){b=e[c]; break; }}if(!b||b==f){return; }for(var c=0; c0){f.firstChild.firstChild.firstChild.style.height=e-g+"px"; }}; }Telerik.Web.UI.RadTabStrip._justifyListElement(c,a,b); }; Telerik.Web.UI.RadTabStrip._justifyListElement=function(e,b,g){var a=e.parentNode[b]; if(a<=0){return; }var c=Telerik.Web.UI.RadTabStrip._getTabGroups(e,b); for(var h=0; h0){c.style.marginTop=a+"px"; d._aligned=true; }}; Telerik.Web.UI.RadTabStrip._createChildControls=function(a,b){var g=a.get_tabData(); if(!g){return; }var f=$telerik.getChildrenByClassName(a.get_childListElement(),"rtsLI"); for(var e=0; e-1){return false; }return $telerik.getCurrentStyle(a,"direction","ltr")=="rtl"; },_applyRtl:function(){this.get_element().className=String.format("{0} RadTabStrip_rtl RadTabStrip_{1}_rtl",this.get_element().className,this._skin); },initialize:function(){this._initLevelElements(); Telerik.Web.UI.RadTabStrip.callBaseMethod(this,"initialize"); Telerik.Web.UI.RadTabStrip._align(this.get_id(),this._align,this._orientation); this._updateSelectedState(); this._eventMap.addHandlerForClassName("click","rtsLI",this._click); this._eventMap.addHandlerForClassName("mouseover","rtsLI",this._mouseOver); this._eventMap.addHandlerForClassName("mouseout","rtsLI",this._mouseOut); this._eventMap.addHandlerForClassName("contextmenu","rtsLI",this._contextMenu); this._eventMap.addHandlerForClassName("dblclick","rtsLI",this._doubleClick); if($telerik.isIE){this._eventMap.addHandlerForClassName("activate","rtsLI",this._activate); }this._resizeDelegate=Function.createDelegate(this,this._resize); $addHandler(window,"resize",this._resizeDelegate); if(this._requiresRtl()){this._applyRtl(); }this._initScrolling(); this.raiseEvent("load"); },repaint:function(){this._resize(); },dispose:function(){Telerik.Web.UI.RadTabStrip.callBaseMethod(this,"dispose"); $removeHandler(window,"resize",this._resizeDelegate); if(this._scroller){this._scroller.dispose(); }},commitChanges:function(){this._logEntriesJson=this._log.serialize(); Telerik.Web.UI.RadTabStrip.callBaseMethod(this,"commitChanges"); },enable:function(){this.set_enabled(true); },disable:function(){this.set_enabled(false); },set_enabled:function(a){Telerik.Web.UI.RadTabStrip.callBaseMethod(this,"set_enabled",[a]); if(!this.get_isInitialized()){return; }this.get_element().disabled=!a; var b=String.format("RadTabStrip_{0}_disabled",this._skin); this.toggleCssClass(b); },get_causesValidation:function(){return this._causesValidation; },set_causesValidation:function(a){this._causesValidation=a; },get_validationGroup:function(){return this._validationGroup; },set_validationGroup:function(a){this._validationGroup=a; },get_unselectChildren:function(){return this._unselectChildren==true; },set_unselectChildren:function(a){this._unselectChildren=a; },get_selectedIndexes:function(){return this._selectedIndexes; },set_selectedIndexes:function(a){this._selectedIndexes=a; },saveClientState:function(){return'{"selectedIndexes":'+this._selectedIndexesJson+',"logEntries":'+this._logEntriesJson+',"scrollState":'+this._scrollStateJson+"}"; },get_selectedTab:function(){return this.get_tabs().getTab(this.get_selectedIndex())||null; },get_selectedIndex:function(){return this._selectedIndex; },set_selectedIndex:function(a){if(a>-1){var c=this.get_tabs().getTab(a); if(c){c.select(); }}else{var b=this.get_selectedTab(); if(b){b.unselect(); }}},_setSelectedIndex:function(a){this._selectedIndex=a; },get_levelElement:function(){if(!this._levelElement){this._levelElement=this._getLevelElements()[this._getLevelIndex()]||null; }return this._levelElement; },get_childListElement:function(){if(!this.get_levelElement()){return null; }if(!this._childListElement){this._childListElement=$telerik.getChildByClassName(this.get_levelElement(),"rtsUL"); }return this._childListElement; },get_tabData:function(){return this._tabData; },set_tabData:function(a){this._tabData=a; },get_tabs:function(){return this._getChildren(); },get_clickSelectedTab:function(){return this._clickSelectedTab==true; },set_clickSelectedTab:function(a){this._clickSelectedTab=a; },findTabByText:function(a){return this._findItemByText(a); },findTabByValue:function(a){return this._findItemByValue(a); },findTabByAttribute:function(a,b){return this._findItemByAttribute(a,b); },findTabByUrl:function(a){return this._findItemByUrl(a); },findTabByAbsoluteUrl:function(a){return this._findItemByAbsoluteUrl(a); },get_allTabs:function(){if(!this._allTabs){this._allTabs=this._getAllItems(); }return this._allTabs; },get_multiPage:function(){if(!this.get_multiPageID()){return null; }return $find(this.get_multiPageID()); },set_multiPageID:function(a){this._multiPageID=a; },get_multiPageID:function(){return this._multiPageID; },add_tabSelecting:function(a){this.get_events().addHandler("tabSelecting",a); },remove_tabSelecting:function(a){this.get_events().removeHandler("tabSelecting",a); },add_tabSelected:function(a){this.get_events().addHandler("tabSelected",a); },remove_tabSelected:function(a){this.get_events().removeHandler("tabSelected",a); },add_tabUnSelected:function(a){this.get_events().addHandler("tabUnSelected",a); },remove_tabUnSelected:function(a){this.get_events().removeHandler("tabUnSelected",a); },add_load:function(a){this.get_events().addHandler("load",a); },remove_load:function(a){this.get_events().removeHandler("load",a); },add_mouseOver:function(a){this.get_events().addHandler("mouseOver",a); },remove_mouseOver:function(a){this.get_events().removeHandler("mouseOver",a); },add_mouseOut:function(a){this.get_events().addHandler("mouseOut",a); },remove_mouseOut:function(a){this.get_events().removeHandler("mouseOut",a); },add_contextMenu:function(a){this.get_events().addHandler("contextMenu",a); },remove_contextMenu:function(a){this.get_events().removeHandler("contextMenu",a); },add_doubleClick:function(a){this.get_events().addHandler("doubleClick",a); },remove_doubleClick:function(a){this.get_events().removeHandler("doubleClick",a); }}; Telerik.Web.UI.RadTabStrip.registerClass("Telerik.Web.UI.RadTabStrip",Telerik.Web.UI.ControlItemContainer); Type.registerNamespace("Telerik.Web.UI"); Telerik.Web.UI.TabScroller=function(a,b){this._owner=a; Telerik.Web.UI.TabScroller.initializeBase(this,[a.get_childListElement(),a.get_levelElement(),b]); }; Telerik.Web.UI.TabScroller.prototype={_scrollTo:function(b){var a="marginLeft"; if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){a="marginTop"; }this._currentPosition=b; this._scrolledElement.style[a]=-b+"px"; this._raiseEvent("positionChanged",Sys.EventArgs.Empty); },_createArrow:function(b){var a=document.createElement("a"); a.className=b; a.href="#"; a.innerHTML=" "; if(!$telerik.isIE||$telerik.isIE8){a.style.position="relative"; }return a; },_applyFloat:function(a,b){if($telerik.isIE){a.style.styleFloat=b; }else{a.style.cssFloat=b; }},_preventDefault:function(a){a.preventDefault(); },_scrollForward:function(a){if(this._owner._perTabScrolling){this._scrollToNextTab(1); }else{this.startScroll(Telerik.Web.UI.ScrollerSpeed.Fast,2); }},_stopScroll:function(a){this.stopScroll(); this._owner._getControl()._updateScrollState(this._owner,this._currentPosition); },_scrollBackward:function(a){if(this._owner._perTabScrolling){this._scrollToNextTab(-1); }else{this.startScroll(Telerik.Web.UI.ScrollerSpeed.Fast,-2); }},_positionChanged:function(){this._updateArrows(); },_updateArrows:function(){var a="rtsPrevArrow"; if(this.isAtMinPosition()){a="rtsPrevArrowDisabled"; }if(this._previousArrow.className!=a){this._previousArrow.className=a; }a="rtsNextArrow"; if(this.isAtMaxPosition()){a="rtsNextArrowDisabled"; }if(this._nextArrow.className!=a){this._nextArrow.className=a; }},_positionArrowsHorizontally:function(a){if(!$telerik.isIE||$telerik.isIE8){this._nextArrow.style.position="absolute"; this._previousArrow.style.position="absolute"; this._previousArrow.style.top="0"; this._nextArrow.style.top="0"; }else{this._nextArrow.style.marginTop=this._previousArrow.style.marginTop=-this._element.offsetHeight+5+"px"; }if(a==Telerik.Web.UI.TabStripScrollButtonsPosition.Right){this._applyFloat(this._nextArrow,"right"); this._applyFloat(this._previousArrow,"right"); this._element.appendChild(this._nextArrow); this._element.appendChild(this._previousArrow); if(!$telerik.isIE||$telerik.isIE8){this._nextArrow.style.right="0"; this._previousArrow.style.right=this._nextArrow.offsetWidth+"px"; }}else{if(a==Telerik.Web.UI.TabStripScrollButtonsPosition.Left){this._applyFloat(this._nextArrow,"left"); this._applyFloat(this._previousArrow,"left"); this._element.appendChild(this._previousArrow); this._element.appendChild(this._nextArrow); if(!$telerik.isIE||$telerik.isIE8){this._previousArrow.style.left="0"; this._nextArrow.style.left=this._previousArrow.offsetWidth+"px"; }}else{this._applyFloat(this._nextArrow,"right"); this._applyFloat(this._previousArrow,"left"); this._element.appendChild(this._previousArrow); this._element.appendChild(this._nextArrow); if(!$telerik.isIE||$telerik.isIE8){this._previousArrow.style.left="0"; this._nextArrow.style.right="0"; }}}},_positionArrowsVertically:function(a){this._element.style.position="relative"; this._nextArrow.style.position="absolute"; this._previousArrow.style.position="absolute"; this._nextArrow.style.left="0"; this._previousArrow.style.left="0"; this._element.appendChild(this._previousArrow); this._element.appendChild(this._nextArrow); if(a==Telerik.Web.UI.TabStripScrollButtonsPosition.Right){this._nextArrow.style.bottom="0"; this._previousArrow.style.bottom=this._nextArrow.offsetHeight+"px"; }else{if(a==Telerik.Web.UI.TabStripScrollButtonsPosition.Left){this._previousArrow.style.top="0"; this._nextArrow.style.top=this._previousArrow.offsetHeight+"px"; }else{this._previousArrow.style.top="0"; this._nextArrow.style.bottom="0"; }}},_positionArrows:function(a){if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Horizontal){this._positionArrowsHorizontally(a); }else{this._positionArrowsVertically(a); }},_hideArrows:function(){this._nextArrow.style.display="none"; this._previousArrow.style.display="none"; },_showArrows:function(){this._nextArrow.style.display=""; this._previousArrow.style.display=""; },_nextScrollPosition:function(c){var a=this._owner.get_tabs(); var d="offsetWidth"; if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){d="offsetHeight"; }var b=c<0?a.getTab(this._currentTabIndex+c).get_element():a.getTab(this._currentTabIndex).get_element(); if(b){return this._currentPosition+c*b[d]; }return this._currentPosition; },setScrollingLimits:function(a,c){if(!this._owner._perTabScrolling){var b="offsetWidth"; if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){b="offsetHeight"; }c+=this._getScrollImageSize(b); }Telerik.Web.UI.TabScroller.callBaseMethod(this,"setScrollingLimits",[a,c]); },_getScrollImageSize:function(a){if(this._owner._scrollButtonsPosition==Telerik.Web.UI.TabStripScrollButtonsPosition.Right){return this._nextArrow[a]+this._previousArrow[a]; }if(this._owner._scrollButtonsPosition==Telerik.Web.UI.TabStripScrollButtonsPosition.Middle){return this._nextArrow[a]; }return 0; },_scrollToNextTab:function(b){if(b>0&&this.isAtMaxPosition()){return; }if(b<0&&this.isAtMinPosition()){return; }var a=this._nextScrollPosition(b); if(a==this._currentPosition){return; }this._scrollTo(a); this._currentTabIndex+=b; },_scrollToTab:function(c){var b=c.get_parent(); if(!b){return; }if(c.get_level()>0){return; }var a=c.get_index()-this._currentTabIndex; this._scrollToNextTab(a); },_calculateInitialTab:function(){if(!this._owner._perTabScrolling){return; }var a=0; var b=this._owner.get_tabs(); var c="offsetWidth"; if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){c="offsetHeight"; }while(a