1(function($,undefined){Type.registerNamespace("Telerik.Web.UI");var $T=Telerik.Web.UI,EventType=$T.EventType,global=window,document=global.document,$telerik=global.$telerik,Math=global.Math,proxy=$.proxy,EMPTY_STRING="",PIXELS="px",ROTATOR_NS=".telerikRotator",createDelegate=Function.createDelegate;$telerik.toRotator=function(t){return t},$telerik.findRotator=$find,$.registerEnum($T,"RotatorScrollDirection",{Left:1,Right:2,Up:4,Down:8}),$.registerEnum($T,"RotatorAnimationType",{None:1,Fade:2,Pulse:3,CrossFade:4}),$.registerEnum($T,"RotatorType",{AutomaticAdvance:1,ButtonsOver:2,Buttons:3,SlideShow:4,SlideShowButtons:5,FromCode:6,Carousel:7,CarouselButtons:8,CoverFlow:9,CoverFlowButtons:10}),$T.RadRotator=function(t){var e=this;$T.RadRotator.initializeBase(e,[t]),e._enabled=!0,e._postBackReference=null,e._webServiceSettings=new $T.WebServiceSettings({}),e._webServiceLoader=null,e._containerElement=null,e._clickDelegate=null,e._mouseOutDelegate=null,e._mouseOverDelegate=null,e._itemShownDelegate=null,e._rotatorDisposed=!1,e._scrollDuration=500,e._canPause=!0,e._domScrollSpeed=.6,e._itemWidth=null,e._itemHeight=null,e._isLODEnabled=null,e._lastLODRequestPassed=!1,e._firstLODRequestPassed=!1,e._noActiveLODRequest=!0,e._relativeWrapper=null,e._clipElement=null,e._itemsElement=null,e._loadingSign=null,e._rightButton=null,e._leftButton=null,e._downButton=null,e._upButton=null,e._firstItem=null,e._imageItems=[],e._initialAngle=Math.PI/2,e._carouselAnimationAngle=e._initialAngle,e._coverFlowAnimationIndex=-1,e._pendingImage=null,e._imageOnLoadDelegate=null,e._automaticAdvanceStarted=!1,e._nextItemIndex=-1,e._persistedItemIndex=-1,e._isMouseOverClipElement=!1,e._clientDataSourceID=EMPTY_STRING,e._clientTemplate=EMPTY_STRING,e._clientDataSource=null,e._dataSource=null,e._ieTouchActionManager=new $T.Helpers.IETouchActionManager,e._dragHandler=proxy(e._onDrag,e),e._dragEndHandler=proxy(e._onDragEnd,e)},$T.RadRotator.prototype={initialize:function(){$T.RadRotator.callBaseMethod(this,"initialize"),this._rotatorDisposed=!1,this._isLODEnabled=!this.isCarousel()&&!this.isCoverFlow()&&this.get_webServiceSettings().get_method(),this._setChildElements(),this._createUI();var t=this.get_initialItemIndex();this._isLODEnabled?(this._enableDisableAllButtonsUnconditionally(!1),this._loadChildrenFromWebService(t)):(this._createChildItems(),this._initialItemSet=!1,this._loadInitialFrame(),this._enableDisableButtons()),this._attachEventHandlers(!0),this.add_parentShown(this.get_element()),$telerik.isSafari&&(this._mouseWheelDelegate=createDelegate(this,this._mouseWheelHandler),$addHandler(this._relativeWrapper,"mousewheel",this._mouseWheelDelegate)),this.raiseEvent("load",Sys.EventArgs.Empty),this._isLODEnabled||this._startAutomaticAdvance(),this._itemShownHandler(),-1!=this._persistedItemIndex&&this.set_currentItemIndex(this._persistedItemIndex),this.get_enableDragScrolling()&&$telerik.isTouchDevice&&0==Telerik.Web.Browser.scrollBarWidth&&Sys.UI.DomElement.addCssClass(this.get_element(),"rrTouchEnabled")},dispose:function(){this._imageOnLoadDelegate&&this._pendingImage&&($telerik.removeExternalHandler(this._pendingImage,"load",this._imageOnLoadDelegate),this._pendingImage=null,this._imageOnLoadDelegate=null),this._firstItem=null,this._previousCrossFadeItems=this._currentCrossFadeItems=null,this._rotatorDisposed=!0,this._attachEventHandlers(!1),this._containerElement=null,this._animation&&(this._animation.dispose&&this._animation.dispose(),this._animation=null),this._imageItems=null,$T.RadRotatorAnimation._removeScrollAnimation(this.get_id()),this._rightButton&&$clearHandlers(this._rightButton),this._leftButton&&$clearHandlers(this._leftButton),this._downButton&&$clearHandlers(this._downButton),this._upButton&&$clearHandlers(this._upButton),$telerik.isSafari&&this._mouseWheelDelegate&&this._relativeWrapper&&$removeHandler(this._relativeWrapper,"mousewheel",this._mouseWheelDelegate),this._itemsElement&&$clearHandlers(this._itemsElement),this._ieTouchActionManager.dispose(),$T.RadRotator.callBaseMethod(this,"dispose")}
1,saveClientState:function(){return this.get_persistCurrentItemOnPostBack()?'{"currentItemIndex":'+this.get_currentItemIndex()+"}":null},get_currentItemIndex:function(){var t=this.get_currentItem();return t?t.get_index():-1},_createChildItems:function(){for(var t=this,e=$telerik.getChildrenByTagName(t.get_containerElement(),"li"),i=0;i<e.length;i++){var n=$create($T.RadRotatorItem,t.get_items()[i],null,null,e[i]);n.get_index(),e[i]._item=n,t.get_items()[i]=n}t._createClientDataBoundItems()},_createClientDataBoundItems:function(){var t=this;t._clientDataSourceID?t._dataBindToClientDataSource():t._dataBindToCustomDataSource()},_dataBindToClientDataSource:function(){var t=this.get_clientDataSource();t?this._initializeClientDataSource(t):(this._initializeClientDataSourceDelegate=createDelegate(this,this._initializeClientDataSourceHandler),Sys.Application.add_load(this._initializeClientDataSourceDelegate))},_initializeClientDataSourceHandler:function(){var t=this;t._initializeClientDataSource(t.get_clientDataSource()),t._initializeClientDataSourceDelegate&&(Sys.Application.remove_load(t._initializeClientDataSourceDelegate),t._initializeClientDataSourceDelegate=null)},_dataBindToCustomDataSource:function(){this.get_dataSource()&&this.dataBind()},_initializeClientDataSource:function(t){var e=this;t&&t instanceof $T.RadClientDataSource&&(e._clientDataSource=t,e._bindToClientDataSourceChangeEvent(),e._clientDataSource.fetch())},_bindToClientDataSourceChangeEvent:function(){var t=this,e=t.get_clientDataSource();e&&e instanceof $T.RadClientDataSource&&(t._clientDataSourceChangeDelegate||(t._clientDataSourceChangeDelegate=createDelegate(t,t._clientDataSourceChangeHandler)),e.remove_change(t._clientDataSourceChangeDelegate),e.add_change(t._clientDataSourceChangeDelegate))},_clientDataSourceChangeHandler:function(){var t=this,e=t.get_clientDataSource();if(e){var i=e._kendoDataSource.view();t.set_dataSource(i),t.dataBind()}},dataBind:function(){var t=this,e=t.get_containerElement(),i=t.get_dataSource();t.get_appendClientDataBoundItems()||(t.clearItems(),t.start()),i&&(t.repaint(),t._createDataBoundItems(i),e.style.width="",e.style.height="",t.repaint())},set_dataSource:function(t){this._dataSource=t},get_dataSource:function(){return this._dataSource},_createDataBoundItems:function(t){for(var e=t.length,i=0;i<e;i++)this._createDataBoundItem(t[i]);this._raiseDataBound()},_createDataBoundItem:function(t){var e,i,n,s=this;e=s._initializeRotatorDataItem(t),i=s._createRotatorItem(e),s._raiseItemDataBound(i,t),n=s.get_currentItemIndex(),s.set_currentItemIndex(n)},_initializeRotatorDataItem:function(t){var e={CssClass:t.CssClass,Visible:t.Visible},i=$T.TemplateRenderer.renderTemplate(t,this);return i&&(e.Html=i),e},_raiseItemDataBound:function(t,e){var i=this;if(i._itemDataBoundHandler=i.get_events().getHandler(ITEM_DATABOUND),t&&i._itemDataBoundHandler){var n=new $T.RotatorItemDataBoundEventArgs(t,e);i.raiseEvent(ITEM_DATABOUND,n)}},_raiseDataBound:function(){this.raiseEvent(DATA_BOUND,Sys.EventArgs.Empty)},get_clientDataSourceID:function(){return this._clientDataSourceID},set_clientDataSourceID:function(t){this._clientDataSourceID=t},get_clientDataSource:function(){var t=$find(this.get_clientDataSourceID());return t&&t instanceof $T.RadClientDataSource?t:null},get_clientTemplate:function(){return this._clientTemplate},set_clientTemplate:function(t){this._clientTemplate=t},_mouseWheelHandler:function(t){this._customSafariScroll(t.rawEvent.wheelDeltaX,t.rawEvent.wheelDeltaY),t.preventDefault()},_customSafariScroll:function(t,e){var i=0!=t?"Left":0!=e?"Top":null;if(i){var n=t||e,s=this._domScrollSpeed*n;this._customDomScrollBy(-s,i)}},_customDomScrollBy:function(t,e){for(var i="scroll"+e,n=this._relativeWrapper;n&&n.tagName;n=n.parentNode){var s=n[i];if(n[i]+=t,n[i]!=s)return}},_getNextItemToShow:function(){var t=this._nextItemIndex,e=this.getItemHtmlElements(),i=this.isCarousel()||this.get_wrapFrames()&&!this.isCoverFlow(),n=null;return t<0?(t=this._getCurrentItemIndex(),this.isScrollingForward()?t++:t--,i&&(t<0?t=e.length-1:t>e.length-1&&(t=0)),t>=0&&t<e.length&&(n=e[t])):(i&&(t%=e.length),t>
1=0&&t<e.length&&(n=this.get_items()[t].get_element())),n},_startAutomaticAdvance:function(){this.isAutomaticAdvance()&&!isNaN(this.get_frameDuration())&&(this._automaticAdvanceTimeOut=window.setTimeout(createDelegate(this,this._startAutoPlayItems),this.get_frameDuration()))},get_firstItem:function(){var t=this._firstItem;if(!t){var e=this.getItemHtmlElements();t=this.isScrollingForward()?e[0]:e[e.length-1]}return t},get_currentItem:function(){var t=this.getItemHtmlElements(),e=this._getCurrentItemIndex();return 0<=e&&e<t.length?t[e].control:null},_getCurrentItemIndex:function(){var t=this.getItemHtmlElements(),e=t.length,i=-1;if(e<1)return-1;var n=this.isCarousel();if(n||this.isCoverFlow()){var s=this._animation;if(s)if(n){var a=s.get_angle()-this._initialAngle;i=Math.round(Math.abs(a)/(2*Math.PI/e)),a>0&&i>0&&(i=e-i),i%=e}else i=s.get_index();else i=this.get_initialItemIndex()}else{var r=parseInt(t[0].parentNode.style.left,10),o="left";for((isNaN(r)||0==r)&&(r=parseInt(t[0].parentNode.style.top,10),o="top");++i<e&&r<0;){var l=$telerik.getOuterSize(t[i]);r+="top"==o?l.height:l.width}}return i},set_currentItemIndex:function(t,e){var i=this.get_items();if(!(!this.get_enabled()||t<0||t>=i.length)){var n=i[t];if(n){var s=this.isCarousel(),a=this.isCoverFlow();if(e&&(s||a)){var r=this._animation;r&&this.get_pauseOnMouseOver()&&(r._isPaused=!1,r._isPlaying=!0,r._getAnimationQuery().filter("[paused='true']").removeAttr("paused").removeAttr("elapsedTime"),r.stop()),this._nextItemIndex=t,this.scrollItem(),this._nextItemIndex=-1}else if(s)this._changeCarouselAngleByIndex(t),this._animation||this.set_currentItemIndex(t,!0);else if(a)this._changeCoverFlowIndexByIndex(t),this._animation||this.set_currentItemIndex(t,!0);else{var o=n.get_element(),l=this.get_wrapFrames();if(l)for(var h=this.getItemHtmlElements(),c=0,_=h.length;c<_;c++)if(o===h[c]){t=c;break}var m=this._itemsElement,u=this._getCurrentItemIndex(),d=parseInt(m.style.left,10)||0,g=parseInt(m.style.top,10)||0,f=u-t,p=$telerik.getOuterSize(o),v=this.isVertical();this.get_slideShowAnimationSettings().type==$T.RotatorAnimationType.CrossFade&&this._resetCrossFadeAnimation(),v?m.style.top=g+f*p.height+"px":m.style.left=d+f*p.width+"px",l&&this._fillEmptyVisibleItems(t),this.raiseEvent("itemShown",new $T.RotatorEventArgs(n))}s||this._enableDisableButtons(),this.updateClientState()}}},_fillEmptyVisibleItems:function(t){var e=this.getItemHtmlElements().length,i=Math.min(this._getVisibleItemsCount(),e),n=parseInt(i-e+t,10);if(!isNaN(n))for(;n-- >0;)this._shiftItemInList()},_changeCarouselAngleByIndex:function(t,e,i,n){var s=this._imageItems,a=s.length;if(!(a<1)){t<0?t=0:t>a-1&&(t%=a);var r=2*Math.PI/a,o=e?$(s[0].element).attr("telerikCarouselAngle"):null,l=(void 0!==o&&null!=o?o:this._initialAngle)-t*r;l.toString().indexOf("e")>-1&&(l=Math.round(1e4*l)/1e4);var h=this._animation;h?h.set_angle(l):this._carouselAnimationAngle=l;var c=$T.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id()),_=/^([\d+-.]+)(.*)$/,m=!$.support.opacity&&c&&null!=c.opacity,u=this._getScrollAnimationOptions(i,n);$.each(s,(function(t,e){var i=this,n=Math.sin(l),s=u.minScale,a=s+(n+1)*((1-s)/2),o=u.xO+(Math.cos(l+Math.PI)*u.xR-i.outerWidth/2)*a,h=u.yO+n*u.yR*a,d=$.extend({},c);c&&$.each(d,(function(t,e){var i=_.exec(e);d[t]=i?i[1]*a+i[2]:e}));var g=this.element;g.telerikCarouselAngle=l;var f="px",p=$.extend(d,{width:i.width*a+f,height:i.height*a*(m&&this.reflection?2:1)+f,position:"absolute",left:o+f,top:h+f,zIndex:parseInt(100*a,10)});$(g).css("display","none").css(p).css("display",""),(l+=r).toString().indexOf("e")>-1&&(l=Math.round(1e4*l)/1e4)}))}},_getTransformProperty:function(){var t="transform";return $telerik.isIE9Mode?t="msTransform":$telerik.isIE?t="filter":$telerik.isFirefox?t="MozTransform":$telerik.isSafari?t="WebkitTransform":$telerik.isOpera&&(t="OTransform"),t},_changeCoverFlowIndexByIndex:function(t,e,i){var n=this._imageItems,s=n.length;if(!(s<1)){t<0?t=0:t>s-1&&(t%=s);var a=this._animation;a?a.set_index(t):this._coverFlowAnimationIndex=t;var r=$T.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id()),o=/^([\d+-.]+)(.*)$/,l=this._getScrollAnimationOptions(e,i),h=this.isVertical(),c=n[t],_={top:l.yO-c.outerHeight/2,right:l.xO+c.outerWidth/2,bottom:l.yO+c.outerHeight/2,left:l.xO-c.outerWidth/2},m=l.matrix;1==m.m11&&1==m.m22&&0==m.m12&&0==m.m21&&(m=null);var u=this._getTransformProperty(),d="filter"==u&&m;$.each(n,(function(e,i){var n=this,a=e-t,c=0==a,g=c?1:l.minScale,f=a>0,p=h?l.xO+n.outerWidth/2-n.outerWidth*g:_[f?"right":"left"],v=h?_[f?"bottom":"top"]:l.yO+n.outerHeight/2-n.outerHeight*g,I=a;I>0?h?v+=l.yR+--I*l.yItemSpacing:p+=l.xR+--I*l.xItemSpacing:I<0?h?v+=-(l.yR+n.outerHeight*g)+ ++I*l.yItemSpacing:p+=-(l.xR+n.outerWidth*g)+ ++I*l.xItemSpacing:(p+=l.selectedItemOffsetX,v+=l.selectedItemOffsetY);var S=$.extend({},r);
1r&&!c&&$.each(S,(function(t,e){var i=o.exec(e);S[t]=i?i[1]*g+i[2]:e}));var D="px",E=$.extend(S,{width:n.width*g+D,height:n.height*g*(d&&this.reflection?2:1)+D,position:"absolute",zIndex:100*(s-Math.abs(a))}),T=0,y=0;if(m){var R=$.extend({},m),C=c?0:a<0?-1:1;R.m12*=C,R.m21*=C,c&&(R.m11=R.m22=1);var A="filter"==u,w="matrix("+R.m11+", "+R.m21+", "+R.m12+", "+R.m22+", 0, 0)";A&&(w="progid:DXImageTransform.Microsoft.Matrix(FilterType='bilinear',M11="+R.m11+", M12="+R.m12+", M21="+R.m21+", M22="+R.m22+",sizingMethod='auto expand')"),E[u]=w;var b=Math.abs(R.m11)+Math.abs(R.m12),O=Math.abs(R.m21)+Math.abs(R.m22);h?y=C*((1-O)/2):T=C*((1-b)/2),A&&!c&&(T+=(b-1)/2,y+=(O-1)/2,m.m12&&this.reflection&&(T*=2))}E.left=p-T*g*n.outerWidth+D,E.top=v-y*g*n.outerHeight+D;var x=this.element;x.telerikCoverFlowIndex=a,$(x).css("display","none").css(E).css("display","")}))}},_needsShift:function(t){null==t&&(t=this.get_animationDirection());var e=this._itemsElement,i=this._clipElement,n=parseInt(e.style.left,10),s=parseInt(e.style.top,10),a=$telerik.getOuterSize(e),r=$telerik.getContentSize(i),o=this.get_firstItem();if(!o)return!1;var l=$telerik.getOuterSize(o),h=!1,c=$T.RotatorScrollDirection;switch(t){case c.Left:h=n+a.width<r.width+l.width;break;case c.Up:h=s+a.height<r.height+l.height;break;case c.Right:h=-1*n<l.width;break;case c.Down:h=-1*s<l.height}return h},_getMoveAnimation:function(){if(!this._animation){var t,e=this.isCarousel(),i=this.get_frameDuration()<5?"easeLinear":null;e||this.isCoverFlow()?(t=new $T.Animations[e?"jCarousel":"jCoverFlow"](this,this._itemsElement,this._imageItems,this.get_scrollDuration(),this._getScrollAnimationOptions(),$T.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id()),i),e?t.set_angle(this._carouselAnimationAngle):t.set_index(-1==this._coverFlowAnimationIndex?this.get_initialItemIndex():this._coverFlowAnimationIndex)):t=new $T.Animations.jMove(this,this._itemsElement,this.get_scrollDuration(),!0,!1,i),t.initialize(),t.set_isCyclic(this.isAutomaticAdvance()||this._isRotatorTypeEnabled($T.RotatorType.ButtonsOver)),this._animation=t}return this._animation},_initializeAnimationHandlers:function(t){this._animation.add_started(t.started),this._animation.add_ended(t.ended),this._isPaused&&this._animation.pause()},_getScrollAnimationOptions:function(t,e){var i=t,n=e;if(!i||!n){var s=$telerik.getContentSize(this._clipElement);i=i||s.width,n=n||s.height}var a=$T.RadRotatorAnimation.get_scrollAnimationOptions(this.get_id());if(a.minScale=isNaN(a.minScale)||a.minScale<0||a.minScale>1?.5:a.minScale,a.reflectionHeight=isNaN(a.reflectionHeight)?0:a.reflectionHeight,a.reflectionOpacity=isNaN(a.reflectionOpacity)?1:a.reflectionOpacity,a.xO=isNaN(a.xO)?parseInt(i/2,10):a.xO,this.isCarousel())a.xR=isNaN(a.xR)?parseInt(i/2.3,10):a.xR,a.yR=isNaN(a.yR)?parseInt(n/6,10):a.yR,a.yO=isNaN(a.yO)?parseInt(a.minScale*((n-(1-a.minScale)*a.yR)/2),10):a.yO,a.matrix=null;else if(this.isCoverFlow()){var r=this.isVertical();a.xR=isNaN(a.xR)?r?0:15:a.xR,a.yR=isNaN(a.yR)?r?15:0:a.yR,a.yO=isNaN(a.yO)?parseInt(n/2,10):a.yO,a.xItemSpacing=isNaN(a.xItemSpacing)?r?0:100:a.xItemSpacing,a.yItemSpacing=isNaN(a.yItemSpacing)?r?100:0:a.yItemSpacing,a.selectedItemOffsetX=isNaN(a.selectedItemOffsetX)?0:a.selectedItemOffsetX,a.selectedItemOffsetY=isNaN(a.selectedItemOffsetY)?0:a.selectedItemOffsetY,a.matrix.m11=isNaN(a.matrix.m11)?1:a.matrix.m11,a.matrix.m12=isNaN(a.matrix.m12)?0:a.matrix.m12,a.matrix.m21=isNaN(a.matrix.m21)?0:a.matrix.m21,a.matrix.m22=isNaN(a.matrix.m22)?1:a.matrix.m22,a.coverFlowDirection=isNaN(a.coverFlowDirection)?1:a.coverFlowDirection<0?-1:1}return a},scrollViewport:function(){if(this.get_enabled()){var t=this._itemsElement;if(!this._animation){var e=this._getMoveAnimation();this._initItemAnimation=createDelegate(this,(function(){if(this.get_wrapFrames()&&!this._hasViewportWidth()&&(!this._isLODEnabled||this._noActiveLODRequest))for(var i=this.getItemHtmlElements().length,n=0;n<i&&(this._shiftItemInList(),!this._hasViewportWidth());n++);var s=this._getViewPortPixelsToScroll(),a=this.isScrollingForward();if(this.get_vertical()){var r=parseInt(t.style.top,10)+(a?-s:s);e.set_vertical(r)}else{var o=parseInt(t.style.left,10)+(a?-s:s);
1e.set_horizontal(o)}this.isSlideShow()&&(this._initCrossFadeItemAnimation(),t.style.visibility="hidden")})),this._initializeAnimationHandlers({started:createDelegate(this,(function(t,e){if(this.stopViewportAnimation(),!this.get_wrapFrames()&&!this._canSlideMore()&&(!this._isLODEnabled||this._lastLODRequestPassed))return e.set_cancel(!0),!1;this._doLoadOnDemand(e);var i=this.get_currentItem(),n=new $T.RotatorCancelEventArgs(i);if(this.raiseEvent("itemShowing",n),n.get_cancel&&n.get_cancel())return e.set_cancel(!0),!1;this._initItemAnimation()})),ended:createDelegate(this,(function(){if(this._isLODEnabled&&!this._lastLODRequestPassed||this._enableDisableButtons(),this.isSlideShow()){var e=this.get_slideShowAnimationSettings().type||$T.RotatorAnimationType.None;$T.RotatorAnimationType.CrossFade!=e&&(t.style.visibility="visible"),this.runSlideShowAnimation()}else{var i=this.get_currentItem();this.raiseEvent("itemShown",new $T.RotatorEventArgs(i))}this.updateClientState()}))})}this._animation.play()}},_getVisibleItemsCount:function(){var t=this._getVarSizeAttribute(),e=this.getItemHtmlElements(),i=this._getCurrentItemIndex();if(-1==i||i>=e.length)return 0;var n=$telerik.getOuterSize(e[i])[t];return!n&&this._isLODEnabled&&(n=this.get_vertical()?parseInt(this._itemHeight,10):parseInt(this._itemWidth,10)),parseInt($telerik.getContentSize(this._clipElement)[t]/n,10)},_initCrossFadeItemAnimation:function(){var t=this.get_slideShowAnimationSettings().type||$T.RotatorAnimationType.None;if($T.RotatorAnimationType.CrossFade==t){var e=this._itemsElement,i=-1*parseInt(e.style.top,10)+"px",n=-1*parseInt(e.style.left,10)+"px",s=this.getItemHtmlElements(),a=this._getCurrentItemIndex();if(a>=s.length)return;var r=this._getVarSizeAttribute(),o=$telerik.getOuterSize(s[a])[r],l=this._getVisibleItemsCount(),h=a+(this.isScrollingForward()?1:-1)*l;if(h>=0&&h<s.length){for(var c=$(s[a]).css({left:n,top:i}),_=$(s[h]).css({left:n,top:i}),m=this.get_vertical();--l;)m?i=parseInt(i,10)+o+"px":n=parseInt(n,10)+o+"px",++a<s.length&&(c=c.add($(s[a]).css({left:n,top:i}))),++h<s.length&&(_=_.add($(s[h]).css({left:n,top:i})));c.css({position:"absolute",visibility:"visible",opacity:1}),_.css({position:"absolute",visibility:"visible",opacity:0})}}},scrollItem:function(){if(this.get_enabled()){if(this.isCarousel()||this.isCoverFlow())return this._scrollImageItem();var t=this._itemsElement;if(!this._animation){var e=this._animation=this._getMoveAnimation();this._initItemAnimation=createDelegate(this,(function(){var i=this._getNextItemToShow();if(i){this._firstItem=i;var n=$telerik.getOuterSize(i);if(this.isScrollingForward()&&(n.width*=-1,n.height*=-1),this.get_vertical()){var s=parseInt(t.style.top,10)+n.height;e.set_vertical(s)}else{var a=parseInt(t.style.left,10)+n.width;e.set_horizontal(a)}}})),this._initializeAnimationHandlers({started:createDelegate(this,(function(t,e){var i=this.get_wrapFrames();if(!i&&!this._canSlideMore()&&(!this._isLODEnabled||this._lastLODRequestPassed))return e.set_cancel(!0),!1;this._doLoadOnDemand(e);var n=this.get_currentItem(),s=new $T.RotatorCancelEventArgs(n);if(this.raiseEvent("itemShowing",s),s.get_cancel&&s.get_cancel())return e.set_cancel(!0),!1;i&&this._needsShift()&&(this._isLODEnabled&&!this._noActiveLODRequest||this._shiftItemInList()),this._stopAnimationButtonOver||this._initItemAnimation()})),ended:createDelegate(this,(function(){this._isLODEnabled&&!this._lastLODRequestPassed||this._enableDisableButtons();var t=this.get_currentItem();null!=t&&this.raiseEvent("itemShown",new $T.RotatorEventArgs(t)),this.updateClientState(),this._stopAnimationButtonOver||(this.isAutomaticAdvance()||this._isRotatorTypeEnabled($T.RotatorType.ButtonsOver))&&(this.get_frameDuration()>0?this._setAnimationTimeout(this.get_frameDuration()):this._animation.play())}))})}this._animation.stop(),this._animation.play()}},_scrollImageItem:function(){var t=this.isCarousel(),e=this.isCoverFlow();if(!this._animation){var i=this._imageItems.length;if(i<1)return;this._animation=this._getMoveAnimation(),this._initializeAnimationHandlers({started:createDelegate(this,(function(t,e){var i=this._getNextItemToShow();if(!i)return e.set_cancel(!0),!1;var n=new $T.RotatorCancelEventArgs(i.control);if(this.raiseEvent("itemShowing",n),n.get_cancel&&n.get_cancel())return e.set_cancel(!0),!1;this._initItemAnimation()})),ended:createDelegate(this,(function(){var t=this._itemsElement;if(t&&t.parentNode&&!($(t).children("li:animated").length>1)){e&&this._enableDisableButtons();var i=this.get_currentItem();null!=i&&this.raiseEvent("itemShown",new $T.RotatorEventArgs(i)),this.isAutomaticAdvance()&&(this.get_frameDuration()>0?this._setAnimationTimeout(this.get_frameDuration()):this._animation.play()),this.updateClientState()}}))}),this._initItemAnimation=createDelegate(this,(function(){var e=this._getCurrentItemIndex(!0),n=this._getNextItemToShow().control.get_index(),s=e-n;if(t){(s=Math.abs(s))>Math.floor(i/2)&&(s=Math.abs(i-s));var a=(e+Math.floor(i/2))%i;n<=a&&n<=e&&(n+=i),a<e&&(a+=i),a>=n&&n>=e&&(s*=-1);var r=this.getItemHtmlElements(),o=r.length>0?2*Math.PI/r.length:0;s*=o;var l=this._animation.get_angle()+s,h=this._initialAngle,c=2*Math.PI+o;if(0==Math.round((l-(h+c))/o)||0==Math.round((l-(h-c))/o))l=h+s+(1!=n?(n-i)*o:0);l.toString().indexOf("e")>-1&&(l=Math.round(1e4*l)/1e4);var _=l-s;$(r).each((function(t,e){_.toString().indexOf("e")>-1&&(_=Math.round(1e4*_)/1e4),e.telerikCarouselAngle=_,_+=o})),this._animation.set_angle(l)}else{var m=this._animation.get_index()-this._getScrollAnimationOptions().coverFlowDirection*s;this._animation.set_index(m)}}))}this._animation.stop(),this._animation.play()},_checkItemsSize:function(){var t=$telerik.getOuterSize(this._itemsElement),e=this.get_vertical(),i=e?t.height:t.width,n=e?this.get_height():this.get_width();return parseInt(i,10)>parseInt(n,10)},_shiftItemInList:function(){var t=this._initialItemSet&&this.get_enableRandomOrder(),e=this._itemsElement,i=this.getItemHtmlElements(),n=this.get_vertical(),s=this.isScrollingForward(),a=parseInt(e.style.left,10),r=parseInt(e.style.top,10),o=0;if(t){var l=this._getVisibleItemsCount(),h=Math.ceil(Math.random()*(i.length-l))-1;o=s?h:h+l}else o=s?0:i.length-1;var c=i[o=(o=o>=i.length?e.length-1:o)<0?0:o],_=$telerik.getOuterSize(c);return c.parentNode.removeChild(c),s||e.insertBefore(c,e.firstChild),n?e.style.top=r+(s?_.height:-_.height)+"px":e.style.left=a+(s?_.width:-_.width)+"px",s&&e.appendChild(c),c},_shuffleFrames:function(){if(this._canShuffle())for(var t=this._getShuffledArray($.makeArray(this.getItemHtmlElements()));t.length;)this._itemsElement.appendChild(t.pop())},_getShuffledArray:function(t){for(var e=[];t.length;)e.push(this._extractRandomFromArray(t));return e},_extractRandomFromArray:function(t){return t.splice(Math.random()*t.length,1)[0]},_canShuffle:function(){return!this._initialItemSet&&this.get_enableRandomOrder()},_loadInitialFrame:function(){var t=this.get_initialItemIndex();if(!this.isCarousel()&&!this.isCoverFlow()){this._shuffleFrames();var e=this.get_defaultAnimationDirection(),i=$T.RotatorScrollDirection,n=this.isVertical(),s=this._itemsElement,a=$telerik.getOuterSize(s),r=$telerik.getContentSize(this._clipElement),o=0,l=0;if((t=this.get_initialItemIndex())>=0?n?l=e==i.Up?0:-a.height+r.height:o=e==i.Left?0:-a.width+r.width:-1==t&&(n?l=e==i.Down?-a.height:r.height:o=e==i.Right?-a.width:r.width),s.style.left=o+"px",s.style.top=l+"px",t>0&&!this._initialItemSet){for(var h=0;h<t;h++)this._shiftItemInList();s.style.left=o+"px",s.style.top=l+"px"}}!this._initialItemSet&&t>=0&&this.raiseEvent("itemShown",new $T.RotatorEventArgs(this.get_items()[t])),this._initialItemSet=!0},_setImageItems:function(){if(!(this._imageItems.length>0)){var t={};this._itemWidth&&(t.width=parseInt(this._itemWidth,10)),this._itemHeight&&(t.height=parseInt(this._itemHeight,10));var e=t.width&&t.height,i=[];$(this.getItemHtmlElements()).each((function(n,s){var a=$.extend({},t);if(!e){var r=$(s).css("float","left");a=$.extend($telerik.getContentSize(s),a),r.css("float","")}var o=$telerik.getBorderBox(s),l=$telerik.getPaddingBox(s),h=$telerik.getMarginBox(s);o.horizontal+=l.horizontal+h.horizontal,o.vertical+=l.vertical+h.vertical,i[n]=$.extend(a,{element:s,outerWidth:a.width+o.horizontal,outerHeight:a.height+o.vertical})})),this._imageItems=i}}
1,stop:function(){this._clearAnimationTimeout(),this._canPause=!1,this.pause()},pause:function(){this._isPaused||(this._isPaused=!0,this._animation&&this._animation.get_isActive()&&this._animation.pause())},start:function(){this._canPause=!0,this._isPaused=!1,this.resume()},resume:function(){var t=this._animation;t&&t._isPlaying||(this._timeoutPassed||!this._isPaused?t&&t.play(this._timeoutPassed):this._isPaused&&t&&t.get_isActive()&&t.play()),this._isPaused=!1},isViewportScrollMode:function(){var t=$T.RotatorType;return!(this._isRotatorTypeEnabled(t.AutomaticAdvance)||this._isRotatorTypeEnabled(t.ButtonsOver)||this._isRotatorTypeEnabled(t.FromCode)||this._isRotatorTypeEnabled(t.Carousel)||this._isRotatorTypeEnabled(t.CarouselButtons)||this._isRotatorTypeEnabled(t.CoverFlow)||this._isRotatorTypeEnabled(t.CoverFlowButtons))},_getButtonScrollDirection:function(t){var e=$T.RotatorScrollDirection,i=e.Left;switch(t){case this._rightButton:i=e.Left;break;case this._leftButton:i=e.Right;break;case this._downButton:i=e.Up;break;case this._upButton:i=e.Down}return i},_buttonClicked:function(t){if(!this.get_enabled())return $telerik.cancelRawEvent(t),!1;this._raiseItemClickedFlags();var e=this._animation;e&&e.get_isPlaying()&&e.stop();var i=t.target,n=i.parentNode;if(n&&Sys.UI.DomElement.containsCssClass(n,"RadButton")&&(i=n),!this._isButtonDisabled(i)&&0!=this.get_items().length){var s=new $T.RotatorButtonEventArgs(i);if(this.raiseEvent("buttonClick",s),!s.get_cancel()){var a=this._getButtonScrollDirection(i);return this.set_animationDirection(a),this.isCarousel()||this.isCoverFlow()?this.scrollItem():this.scrollViewport(),$telerik.cancelRawEvent(t)}}},_buttonOver:function(t){if(!this.get_enabled())return $telerik.cancelRawEvent(t),!1;var e=t.target;if(!this._isButtonDisabled(e)&&0!=this.get_items().length){var i=new $T.RotatorButtonEventArgs(e);if(this.raiseEvent("buttonOver",i),!i.get_cancel()){var n=this._getButtonScrollDirection(e);return this.set_animationDirection(n),this._stopAnimationButtonOver=!1,this.scrollItem(),$telerik.cancelRawEvent(t)}}},_buttonOut:function(t){if(!this.get_enabled())return $telerik.cancelRawEvent(t),!1;var e=t.target;if(!this._isButtonDisabled(e)){var i=new $T.RotatorButtonEventArgs(e);if(this.raiseEvent("buttonOut",i),!i.get_cancel()){var n=this._getButtonScrollDirection(e);return this.set_animationDirection(n),this._stopAnimationButtonOver=!0,$telerik.cancelRawEvent(t)}}},_initializeButtonsRotatorType:function(){this._rightButton=$telerik.getElementByClassName(this._rootElement,this._rotatorRightClass),this._leftButton=$telerik.getElementByClassName(this._rootElement,this._rotatorLeftClass),this._downButton=$telerik.getElementByClassName(this._rootElement,this._rotatorDownClass),this._upButton=$telerik.getElementByClassName(this._rootElement,this._rotatorUpClass);for(var t=this.get_controlButtons(),e=this._clipElement,i=$T.RotatorScrollDirection,n=[i.Right,i.Left,i.Down,i.Up],s=[this._leftButton,this._rightButton,this._upButton,this._downButton],a=[t.LeftButtonID?$get(t.LeftButtonID):null,t.RightButtonID?$get(t.RightButtonID):null,t.UpButtonID?$get(t.UpButtonID):null,t.DownButtonID?$get(t.DownButtonID):null],r=[this._rotatorLeftClass,this._rotatorRightClass,this._rotatorUpClass,this._rotatorDownClass],o=["marginLeft","marginRight","marginTop","marginBottom"],l=["width","width","height","height"],h=0;h<s.length;h++){var c=s[h],_=null!=a[h]?a[h]:c;if(this._createButton(c,r[h]),this._isScrollDirectionEnabled(n[h])&&null==a[h]){c.style.display="block";var m=l[h],u=parseInt($telerik.getBounds(c)[m],10);isNaN(u)&&(u=0),e.style[o[h]]=u+"px"}this._isRotatorTypeEnabled($T.RotatorType.Buttons)||this._isRotatorTypeEnabled($T.RotatorType.SlideShowButtons)||this._isRotatorTypeEnabled($T.RotatorType.CarouselButtons)||this._isRotatorTypeEnabled($T.RotatorType.CoverFlowButtons)?(Sys.UI.DomElement.containsCssClass(_,"RadButton")||$clearHandlers(_),$addHandlers(_,{click:this._buttonClicked},this)):($clearHandlers(_),$addHandlers(_,{mouseover:this._buttonOver,mouseout:this._buttonOut},this))}this._ensureButtonsPosition(),this._rightButton=a[1]||this._rightButton,this._leftButton=a[0]||this._leftButton,this._downButton=a[3]||this._downButton,this._upButton=a[2]||this._upButton;for(var d=!1,g=0;g<a.length;g++){a[g]&&(d=!0);break}return d},_ensureButtonsPosition:function(){this.set_buttonTopPosition(this._leftButton),this.set_buttonTopPosition(this._rightButton),this.set_buttonLeftPosition(this._upButton),this.set_buttonLeftPosition(this._downButton)},set_buttonTopPosition:function(t){if(t&&!this._isHeightInPersent()){var e=this._element.offsetHeight/2-t.offsetHeight/2+10+"px";$(t).css({top:e})}},set_buttonLeftPosition:function(t){if(t&&!this._isWidthInPersent()){var e=this._element.offsetWidth/2-t.offsetWidth/2+10+"px";$(t).css({left:e})}},runSlideShowAnimation:function(){var t=this._itemsElement,e=this.get_slideShowAnimationSettings().duration||500,i=this.get_slideShowAnimationSettings().type||$T.RotatorAnimationType.None,n=createDelegate(this,(function(){if(t&&t.parentNode){var e=i==$T.RotatorAnimationType.CrossFade;if(!(e&&$(t).children("li:animated").length>
11)){this._canPause=!0,i!=$T.RotatorAnimationType.None&&(e?($(this.getItemHtmlElements()).css({position:"",visibility:""}),$(t).css("visibility","visible")):$(t).css("opacity","1"));var n=this.get_currentItem();if(this.raiseEvent("itemShown",new $T.RotatorEventArgs(n)),(!this.get_pauseOnMouseOver()||!this._isMouseOverClipElement)&&this.isAutomaticAdvance()){var s=this.get_frameDuration();s>=0&&this._setAnimationTimeout(s)}}}}));switch(i){case $T.RotatorAnimationType.Fade:this._canPause=!1,$(t).css("opacity","0").fadeTo(e,1,n);break;case $T.RotatorAnimationType.Pulse:this._canPause=!1,$(t).fadeTo(e,0).fadeTo(e,1,n);break;case $T.RotatorAnimationType.CrossFade:this._canPause=!1,this._runCrossFadeSlideShowAnimation(e,n);break;default:n()}},_runCrossFadeSlideShowAnimation:function(t,e){var i=this._itemsElement,n=-1*parseInt(i.style.top,10)+"px",s=-1*parseInt(i.style.left,10)+"px",a=this.getItemHtmlElements(),r=this._getCurrentItemIndex();if(!(r>=a.length)){var o=this._getVarSizeAttribute(),l=$telerik.getOuterSize(a[r])[o],h=parseInt($telerik.getContentSize(this._clipElement)[o]/l,10),c=r-(this.isScrollingForward()?1:-1)*h;if(c>=0&&c<a.length){for(var _=$(a[c]).css({left:s,top:n}),m=$(a[r]).css({left:s,top:n}),u=this.get_vertical();--h;)u?n=parseInt(n,10)+l+"px":s=parseInt(s,10)+l+"px",++c<a.length&&(_=_.add($(a[c]).css({left:s,top:n}))),++r<a.length&&(m=m.add($(a[r]).css({left:s,top:n})));_.fadeTo(t,0,e),m.fadeTo(t,1,e),this._previousCrossFadeItems=_,this._currentCrossFadeItems=m}}},_resetCrossFadeAnimation:function(){this._previousCrossFadeItems&&this._currentCrossFadeItems&&(this._previousCrossFadeItems.stop(!0,!0),this._currentCrossFadeItems.stop(!0,!0),$(this.getItemHtmlElements()).css({position:"",visibility:"",opacity:1}),$(this._itemsElement).css({visibility:"visible",opacity:1}))},_getVarSizeAttribute:function(t){return this.get_vertical()?"height":"width"},_hasViewportWidth:function(t){null==t&&(t=this.get_animationDirection());var e=this._itemsElement,i=this._clipElement,n=parseInt(e.style.left,10),s=parseInt(e.style.top,10),a=$telerik.getOuterSize(e),r=$telerik.getContentSize(i),o=!1,l=$T.RotatorScrollDirection;switch(t){case l.Left:o=a.width+n<2*r.width;break;case l.Up:o=a.height+s<2*r.height;break;case l.Right:o=-1*n<r.width;break;case l.Down:o=-1*s<r.height}return!o},stopViewportAnimation:function(){var t=this._animation;if(t&&t.get_isPlaying()){t.stop();var e=this.get_vertical(),i=e?t.get_vertical():t.get_horizontal();null!=i&&(this._itemsElement.style[e?"top":"left"]=i+"px")}},_getViewPortPixelsToScroll:function(){var t=this.get_vertical(),e=$telerik.getContentSize(this._clipElement);return t?e.height:e.width},showNext:function(t){this.set_animationDirection(t||$T.RotatorScrollDirection.Left),(this._checkItemsSize()||this.isCarousel()||this.isCoverFlow()||this._isLODEnabled&&!this._lastLODRequestPassed)&&(this.isViewportScrollMode()?this.scrollViewport():this.scrollItem())},getItemHtmlElements:function(){var t=this._itemsElement;if(!this._hasCleanedList){for(var e=t.childNodes,i=e.length-1;i>=0;i--){var n=e[i];n&&"LI"!=n.tagName&&t.removeChild(n)}this._hasCleanedList=!0}return t.childNodes},_setAnimationTimeout:function(t){this._clearAnimationTimeout(),this._currentAnimationTimeout=window.setTimeout(createDelegate(this,(function(){this._isPaused||this.resume(),this._timeoutPassed=!0})),t)},_clearAnimationTimeout:function(){this._currentAnimationTimeout&&window.clearTimeout(this._currentAnimationTimeout),this._currentAnimationTimeout=0,this._timeoutPassed=!1},isAutomaticAdvance:function(){var t=$T.RotatorType;return!!(this._isRotatorTypeEnabled(t.AutomaticAdvance)||this._isRotatorTypeEnabled(t.SlideShow)||this._isRotatorTypeEnabled(t.Carousel)||this._isRotatorTypeEnabled(t.CoverFlow))},isCarousel:function(){var t=$T.RotatorType;return!(!this._isRotatorTypeEnabled(t.Carousel)&&!this._isRotatorTypeEnabled(t.CarouselButtons))},isCoverFlow:function(){var t=$T.RotatorType;return!(!this._isRotatorTypeEnabled(t.CoverFlow)&&!this._isRotatorTypeEnabled(t.CoverFlowButtons))},isSlideShow:function(){var t=$T.RotatorType;return!(!this._isRotatorTypeEnabled(t.SlideShow)&&!this._isRotatorTypeEnabled(t.SlideShowButtons))},isScrollingForward:function(){return this.isScrollingLeft()||this.isScrollingUp()},isScrollingLeft:function(){return this._isAnimationDirectionOn($T.RotatorScrollDirection.Left)},isScrollingUp:function(){return this._isAnimationDirectionOn($T.RotatorScrollDirection.Up)},_isAnimationDirectionOn:function(t){return t==this.get_animationDirection()},_enableDisableButtons:function(){var t=this.get_rotatorType();if(t!=$T.RotatorType.AutomaticAdvance&&t!=$T.RotatorType.Carousel&&t!=$T.RotatorType.CoverFlow){var e=this.get_wrapFrames(),i=this.isCarousel(),n=this.isCoverFlow(),s=e&&!n||i,a=$T.RotatorScrollDirection;this._enableButton(this._rightButton,s||this._canSlideMore(a.Left)),this._enableButton(this._leftButton,s||this._canSlideMore(a.Right)),this._enableButton(this._downButton,s||this._canSlideMore(a.Up)),this._enableButton(this._upButton,s||this._canSlideMore(a.Down))}},_enableDisableAllButtonsUnconditionally:function(t){this._enableButton(this._rightButton,t),this._enableButton(this._leftButton,t),this._enableButton(this._downButton,t),this._enableButton(this._upButton,t)},_enableButton:function(t,e){t&&(e?(Sys.UI.DomElement.removeCssClass(t,this._rotatorButtonDisabledClass),t.removeAttribute("disabled")):(Sys.UI.DomElement.addCssClass(t,this._rotatorButtonDisabledClass),t.setAttribute("disabled","disabled")))},_canSlideMore:function(t){null==t&&(t=this.get_animationDirection());var e=!1,i=$T.RotatorScrollDirection;if(this.isCoverFlow()){var n=this._getCurrentItemIndex(),s=this._getScrollAnimationOptions().coverFlowDirection,a=t==i.Right||t==i.Down,r=t==i.Left||t==i.Up;a&&1==s||r&&-1==s?e=n>0:(r&&1==s||a&&-1==s)&&(e=n<this.getItemHtmlElements().length-1)}else{var o=this._itemsElement,l=this._clipElement,h=parseInt(o.style.left,10),c=parseInt(o.style.top,10),_=$telerik.getBounds(o),m=$telerik.getBounds(l);t==i.Left?e=_.width+h>m.width:t==i.Up?e=_.height+c>m.height:t==i.Right?e=h<0:t==i.Down&&(e=c<0)}return e},_getCalculatedAnimationDirection:function(){var t=this.get_animationDirection(),e=$T.RotatorScrollDirection,i=23;switch(t){case e.Left:i=21;break;case e.Down:i=32;break;case e.Up:i=12;break;default:i=23}return i},startAutoPlay:function(){this._rotatorDisposed||(this._loadInitialFrame(),this._startAutoPlayItems())},_startAutoPlayItems:function(){this._rotatorDisposed||(!this.isCarousel()&&!this.isCoverFlow()||this._automaticAdvanceStarted?this.showNext(this.get_defaultAnimationDirection()):this._automaticAdvanceStarted=!0)},get_defaultAnimationDirection:function(){var t=$T.RotatorScrollDirection,e=0;return this._isScrollDirectionEnabled(t.Left)?e=t.Left:this._isScrollDirectionEnabled(t.Up)?e=t.Up:this._isScrollDirectionEnabled(t.Right)?e=t.Right:this._isScrollDirectionEnabled(t.Down)&&(e=t.Down),e||(e=t.Left),e},get_containerElement:function(){return this._itemsElement},_setChildElements:function(){this._rotatorListClass="rrItemsList",this._rotatorListItemClass="rrItem",this._rotatorVerticalClass="rrVerticalList",this._rotatorRelativeWrapperClass="rrRelativeWrapper",this._rotatorClipRegionClass="rrClipRegion",this._rotatorRightClass="rrButtonRight",this._rotatorLeftClass="rrButtonLeft",this._rotatorDownClass="rrButtonDown",this._rotatorUpClass="rrButtonUp",this._rotatorButtonDisabledClass="rrButtonDisabled",this._rootElement=this.get_element
1(),this._relativeWrapper=$telerik.getElementByClassName(this._rootElement,this._rotatorRelativeWrapperClass),this._clipElement=$telerik.getElementByClassName(this._rootElement,this._rotatorClipRegionClass),this._itemsElement=$telerik.getElementByClassName(this._rootElement,this._rotatorListClass),0==this.get_items().length&&this._itemsElement.children.length&&this._itemsElement.removeChild(this._itemsElement.firstChild),this._fixEmptyList()},_fixEmptyList:function(){var t=this._itemsElement.getElementsByTagName("li");0==this.get_items().length&&1==t.length&&this._itemsElement.removeChild(t[0])},_createUI:function(){if(this.isVisible()){var t=this.get_element(),e=this._relativeWrapper,i=this._clipElement,n={top:0,bottom:0,left:0,right:0,horizontal:0,vertical:0},s=this._hasButtons();if(t){if(this._isCreated)s&&(n=$telerik.getBorderBox(i));else{var a=!0;s&&(a=this._initializeButtonsRotatorType()),a&&Sys.UI.DomElement.addCssClass(t,"rrNoBorder"),n=$telerik.getBorderBox(i),this._fixRootElementSize(),e.style.height=t.offsetHeight+n.vertical+"px",e.style.width=t.offsetWidth+n.horizontal+"px",this._isCreated=!0}this.get_vertical()&&this.set_vertical(!0),e.style.overflow="auto",i.style.overflow="auto";var r=this._itemsElement;this._isLODEnabled&&(r.style.width="",r.style.height="");var o,l=1e4;try{l=1e3+r.offsetWidth*$telerik.getChildrenByTagName(r,"li").length}catch(t){l=1e4}i.style.width=Math.max(l,1e4)+"px",i.style.height="10000px";var h=$telerik.getMarginBox(i);l=Math.max(0,e.offsetWidth-h.horizontal-n.horizontal)+"px",o=Math.max(0,e.offsetHeight-h.vertical-n.vertical)+"px";var c=this.isCarousel()||this.isCoverFlow();c&&this._setImageItemsSize(parseInt(l,10),parseInt(o,10),!0),r.style.width=c?l:this.get_vertical()?e.style.width:r.offsetWidth+"px",r.style.height=c?o:r.offsetHeight+"px",e.style.overflow="",i.style.width=l,i.style.height=o,i.style.overflow="hidden",i.style.position="relative",r.style.position="relative",t.style.visibility="visible",this._ensureWrappersPersentWidht()}}},_hasButtons:function(){var t=this;return t._isRotatorTypeEnabled($T.RotatorType.Buttons)||t._isRotatorTypeEnabled($T.RotatorType.ButtonsOver)||t._isRotatorTypeEnabled($T.RotatorType.SlideShowButtons)||t._isRotatorTypeEnabled($T.RotatorType.CarouselButtons)||t._isRotatorTypeEnabled($T.RotatorType.CoverFlowButtons)},_ensureWrappersPersentWidht:function(){var t=this;t._isWidthInPersent()&&(t._relativeWrapper.style.width="auto",t._clipElement.style.width="auto")},_isWidthInPersent:function(){return this._element.style.width.indexOf("%")>-1},_isHeightInPersent:function(){return this._element.style.height.indexOf("%")>-1},_setImageItemsSize:function(t,e,i){this._shouldWaitForImagesToLoad(t,e)?this._waitForImagesToLoad(createDelegate(this,(function(){this._finishSetImageItemSize(t,e,i)}))):this._finishSetImageItemSize(t,e,i)},_finishSetImageItemSize:function(t,e,i){if(i){this._shuffleFrames(),this._setImageItems(),this.isCarousel()?this._changeCarouselAngleByIndex(this.get_initialItemIndex(),!0,t,e):this._changeCoverFlowIndexByIndex(this.get_initialItemIndex(),t,e);var n=this.getItemHtmlElements();$(n).children("div").css({width:"100%",height:"100%"}).children("img").css({width:"100%",height:"100%"})}this._createReflection(t,e),i&&this._startAutomaticAdvance()},_shouldWaitForImagesToLoad:function(t,e){var i=this._imageItems.length>0,n=this._itemWidth&&this._itemHeight,s=this._toCreateReflection(t,e);return!i&&!n||s},_waitForImagesToLoad:function(t){var e=$(this._itemsElement).find("img");this._imagesToLoad=e.length,this._imagesLoadedDelegate=t,this._imageOnLoadDelegate=createDelegate(this,this._loadedImageHandler);for(var i=0,n=e.length;i<n;i++){var s=e[i];this._isImageLoading(s)?($telerik.addExternalHandler(s,"load",this._imageOnLoadDelegate),s.src=s.src):this._imagesToLoad--}this._checkImagesLoaded()},_isImageLoading:function(t){return t.width===undefined||""!=t.src&&t.complete!==undefined&&!1===t.complete},_loadedImageHandler:function(t){$telerik.removeExternalHandler(t.target||t.srcElement,"load",this._imageOnLoadDelegate),this._imagesToLoad--,this._checkImagesLoaded()},_checkImagesLoaded:function(){this._imagesToLoad<=0&&(this._imagesLoadedDelegate.call(this),this._imagesLoadedDelegate=Function.emptyFunction)}
1,_fixRootElementSize:function(){var t=this.get_element();if(t){var e=$T.RotatorScrollDirection,i=parseInt(t.style.paddingLeft,10);i&&!isNaN(i)&&this._isScrollDirectionEnabled(e.Left)&&(t.style.width=parseInt(t.style.width,10)+i+"px",t.style.paddingLeft=""),(i=parseInt(t.style.paddingRight,10))&&!isNaN(i)&&this._isScrollDirectionEnabled(e.Right)&&(t.style.width=parseInt(t.style.width,1)+i+"px",t.style.paddingRight=""),(i=parseInt(t.style.paddingTop,10))&&!isNaN(i)&&this._isScrollDirectionEnabled(e.Up)&&(t.style.height=parseInt(t.style.height,10)+i+"px",t.style.paddingTop=""),(i=parseInt(t.style.paddingBottom,10))&&!isNaN(i)&&this._isScrollDirectionEnabled(e.Down)&&(t.style.height=parseInt(t.style.height,10)+i+"px",t.style.paddingBottom="")}},_toCreateReflection:function(t,e){var i=this._getScrollAnimationOptions(t,e);return!this.isVertical()&&(this.isCoverFlow()||this.isCarousel())&&i.reflectionHeight>0&&i.reflectionOpacity>0},_createReflection:function(t,e){var i=this._imageItems;if(i&&0!=i.length&&!i[0].reflection&&this._toCreateReflection(t,e)){var n=this._getScrollAnimationOptions(t,e),s=n.reflectionHeight;s=n.reflectionHeight=s>1?1:s;var a=n.reflectionOpacity;a=n.reflectionOpacity=a>1?1:a;var r=s,o=s<=.5?0:s-.5,l=n.matrix,h=$T.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id()),c=null!=l&&"filter"==this._getTransformProperty()&&!(1==l.m11&&1==l.m22&&0==l.m12&&0==l.m21)||h&&null!=h.opacity&&!$.support.opacity;$.each(i,(function(t,e){var i=this.element,n=i.getElementsByTagName("img"),l={width:"100%",height:"100%"};if((n=n&&n.length>0?n[0]:null)&&!this.reflection){var h=document.createElement("canvas");if(h.getContext){h.height=this.height,h.width=this.width,i.appendChild(h);var _=h.getContext("2d");_.save(),_.globalAlpha=a,_.translate(0,this.height),_.scale(1,-1),_.drawImage(n,0,0,this.width,this.height),_.restore(),_.globalCompositeOperation="destination-in";var m=_.createLinearGradient(0,0,0,this.height);m.addColorStop(0,"rgba(255, 255, 255, "+r+")"),m.addColorStop(s>=.5?1:2*s,"rgba(255, 255, 255, "+o+")"),_.fillStyle=m,_.rect(0,0,this.width,this.height),_.fill(),this.reflection=h}else{var u=$(n).clone(!1).appendTo(i);$telerik.isIE&&u.css({filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1) progid:DXImageTransform.Microsoft.Alpha(opacity="+r*a*100+", style=1, finishOpacity="+o*a*100+", startx=0, starty=0, finishx=0, finishy="+this.height*(s>=.5?1:2*s)+")"}),this.reflection=u[0],c&&($(i).children("div").css({height:"50%"}),l.height="50%")}$(this.reflection).css(l)}}));var _=this._animation;!c||_&&_.get_isPlaying()||(this.isCoverFlow()?this._changeCoverFlowIndexByIndex(this._getCurrentItemIndex(),t,e):this.isCarousel()&&this._changeCarouselAngleByIndex(this._getCurrentItemIndex(),!1,t,e))}},_createButton:function(t,e){var i=t;return i||(i=document.createElement("div")),i.className||(i.className=this._rotatorDownClass),i},_isButtonDisabled:function(t){return!t||Sys.UI.DomElement.containsCssClass(t,this._rotatorButtonDisabledClass)},_isScrollDirectionEnabled:function(t){return!!(t&this.get_scrollDirection())},_isRotatorTypeEnabled:function(t){return t==this.get_rotatorType()},get_scrollDuration:function(){return this.isSlideShow()?1:this._scrollDuration},set_scrollDuration:function(t){this._scrollDuration=t,this._animation&&this._animation.set_duration(this.get_scrollDuration())},set_vertical:function(t){var e=this._itemsElement;e&&Sys.UI.DomElement.addCssClass(e,this._rotatorVerticalClass)},get_vertical:function(){var t=$T.RotatorScrollDirection;return this._isScrollDirectionEnabled(t.Down)||this._isScrollDirectionEnabled(t.Up)},isVertical:function(){return!!this._itemsElement&&Sys.UI.DomElement.containsCssClass(this._itemsElement,this._rotatorVerticalClass)},get_height:function(){return this.get_element().style.height},set_height:function(t){this.get_element().style.height=this._toStyleComplientValue(t),this.isVisible()&&(this._isCreated=!1,this.repaint())},get_width:function(){return this.get_element().style.width},set_width:function(t){this.get_element().style.width=this._toStyleComplientValue(t),this.isVisible()&&(this._isCreated=!1,this.repaint())},_toStyleComplientValue:function(t){return isNaN(t)?t:t+"px"},_attachEventHandlers:function(t){var e=this,i=this.get_containerElement();if(null!=i){var n=$(i).find("li."+this._rotatorListItemClass);0!=t?(this._clickDelegate=createDelegate(this,this._mouseClickHandler),this._mouseOutDelegate=createDelegate(this,this._mouseOutHandler),this._mouseOverDelegate=createDelegate(this,this._mouseOverHandler),this._itemShownDelegate=createDelegate(this,this._itemShownHandler),n.on({mouseenter:this._mouseOverDelegate,mouseleave:this._mouseOutDelegate}),$addHandler(i,"click",this._clickDelegate),!this.get_enableDragScrolling()||this.isCarousel()||this.isCoverFlow()||this.isSlideShow()||(e._dragStartHandler=proxy(e._onDragStart,e),$(i).onEvent(EventType.Down+ROTATOR_NS,e._dragStartHandler),e._ieTouchActionManager.element=i,e._ieTouchActionManager.allowUserTouch(),e._dragStartHandler=proxy(e._onDragStart,e),e._attachImagesDragHandler()),this.add_itemShown(this._itemShownDelegate),$telerik.isSafari&&(this._documentClickDelegate=createDelegate(this,this._documentClickHandler),this._keyDownDelegate=createDelegate(this,this._keyDownHandler),$telerik.addHandler(document,"click",this._documentClickDelegate),$telerik.addHandler(document,"keydown",this._keyDownDelegate))):(this._mouseOverDelegate&&n.off({mouseenter:this._mouseOverDelegate,mouseleave:this._mouseOutDelegate}),this._clickDelegate&&$removeHandler(i,"click",this._clickDelegate),this._dragStartHandler&&$(i).offEvent(EventType.Down+ROTATOR_NS,e._dragStartHandler),this._imgDragStartHandler&&e._detachImagesDragHandler(),this._clickDelegate=this._mouseOutDelegate=this._mouseOverDelegate=this._dragStartHandler=null,this._itemShownDelegate&&this.remove_itemShown(this._itemShownDelegate),$telerik.isSafari&&(this._documentClickDelegate&&($telerik.removeHandler(document,"click",this._documentClickDelegate),this._documentClickDelegate=null),this._keyDownDelegate&&($telerik.removeHandler(document,"keydown",this._keyDownDelegate),this._keyDownDelegate=null)))}},_attachImagesDragHandler:function(){var t=this;t._imgDragStartHandler=proxy(t._imgDragStart,t),t._getRotatorItemImages().on("dragstart"+ROTATOR_NS,t._imgDragStartHandler)},_detachImagesDragHandler:function(){this._getRotatorItemImages().off("dragstart"+ROTATOR_NS,this._imgDragStartHandler)},_imgDragStart:function(t){t.preventDefault()}
1,_getRotatorItemImages:function(){return $(this.get_element()).find(".rrItemsList .rrItem img")},_documentClickHandler:function(t){this._itemClickedChanged?this._itemClickedChanged=!1:this._itemClicked&&(this._itemClicked=!1)},_keyDownHandler:function(t){if(this._itemClicked&&t.keyCode>32&&t.keyCode<41&&$(t.target).is("body"))return $telerik.cancelRawEvent(t.rawEvent)},_itemShownHandler:function(t){if(void 0!==$T.RadTicker)for(var e=this.get_items(),i=0,n=e.length;i<n;i++){var s=e[i];this._isItemVisible(s)?this._fireTickersForItem(s):this._resetTickersForItem(s)}},_mouseOverHandler:function(t){var e=this;if(!e._isMouseOverClipElement){e._isMouseOverClipElement=!0,e.isAutomaticAdvance()&&e._canPause&&e.get_pauseOnMouseOver()&&(e.get_frameDuration()<100?this._isPaused=!0:e.pause());var i=e._getItemFromEvent(t.currentTarget);null!=i&&e.raiseEvent("mouseOver",new $T.RotatorEventArgs(i))}},_mouseOutHandler:function(t){var e=this;if(!e._isMouseOverItemsList(t.originalEvent)){e._isMouseOverClipElement=!1,e.isAutomaticAdvance()&&e._canPause&&e.get_pauseOnMouseOver()&&(e._isPaused=!1,e._setAnimationTimeout(e.get_frameDuration()));var i=e._getItemFromEvent(t.currentTarget);return null!=i&&e.raiseEvent("mouseOut",new $T.RotatorEventArgs(i)),!1}},_isMouseOverItemsList:function(t){var e=$telerik.getBounds(this.get_containerElement()),i=$telerik.getBounds(this._clipElement),n=new Telerik.Web.UI.Bounds(i.x,i.y,Math.min(i.width,e.width),Math.min(i.height,e.height)),s=$telerik.getDocumentRelativeCursorPosition(t);return $telerik.containsPoint(n,s.x,s.y)},_mouseClickHandler:function(t){if(this._raiseItemClickedFlags(),!this.get_enabled())return $telerik.cancelRawEvent(t.rawEvent),!1;var e=this._getItemFromEvent(t.target);if(null!=e){var i=new $T.RotatorCancelEventArgs(e);if(this.raiseEvent("itemClicking",i),i.get_cancel&&i.get_cancel())return $telerik.cancelRawEvent(t.rawEvent),!1;window.setTimeout(createDelegate(this,(function(){this.raiseEvent("itemClicked",new $T.RotatorEventArgs(e)),this._postback(e.getServerIndex())})),0)}},_raiseItemClickedFlags:function(){this._itemClicked=!0,this._itemClickedChanged=!0},_startMousePos:{},_startListPos:{},_onDragStart:function(t){var e=this,i=$telerik.getEventLocation(t);this._eventDirectionName=this.isVertical()?"clientY":"clientX",e._startMousePos=i[e._eventDirectionName],e._finishDragStart(),$telerik.cancelRawEvent(t)},_finishDragStart:function(){var t=$(document);this.isAutomaticAdvance()&&this.stop();var e=this.get_containerElement();this._startListPos=this.isVertical()?parseInt(e.style.top,10):parseInt(e.style.left,10),this._draggingCssDirection=this._getCssDirection();var i=this._getOffsetDimension();this._maxDragOffset=parseInt(this._clipElement.style[this._getCssDimension()],10)-e[i],t.onEvent(EventType.Move+ROTATOR_NS,this._dragHandler),t.onEvent(EventType.Up+ROTATOR_NS,this._dragEndHandler)},_onDrag:function(t){var e=$telerik.getEventLocation(t)[this._eventDirectionName]-this._startMousePos;this._offsetListWhenDragging(e),$telerik.cancelRawEvent(t)},_offsetListWhenDragging:function(t){var e=this,i=e._itemsElement,n=Math.min(0,e._startListPos+t);e._isDragged=!0,i.style[e._draggingCssDirection]=Math.max(e._maxDragOffset,n)+PIXELS},_onDragEnd:function(t){var e=$(document);e.offEvent(EventType.Move+ROTATOR_NS,this._dragHandler),e.offEvent(EventType.Up+ROTATOR_NS,this._dragEndHandler),this.snapToEdge(),this.isAutomaticAdvance()&&this.start(),$telerik.cancelRawEvent(t);var i=!!this._isDragged;this.add_itemClicking((function(t,e){e.set_cancel(i)})),delete this._isDragged},getItemAtEdge:function(){return this._getElementAtEdge().control},snapToEdge:function(){var t=this,e=t._getElementAtEdge(),i=t._getCssDirection(),n=t._getOffsetDirection(),s=t.get_containerElement();e&&(s.style[i]=-1*e[n]+PIXELS)},_getElementAtEdge:function(){var t=this._getCssDirection(),e=parseInt(this.isVertical()?this._itemHeight:this._itemWidth,10),i=this.get_containerElement(),n=-1*parseInt(i.style[t],10),s=n<0?0:Math.round(n/e-.15);return $("li",i)[s]},_getCssDirection:function(){return this.isVertical()?"top":"left"},_getCssDimension:function(){return this.isVertical()?"height":"width"},_getOffsetDirection:function(){return this.isVertical()?"offsetTop":"offsetLeft"},_getOffsetDimension:function(){return this.isVertical()?"offsetHeight":"offsetWidth"},_postback:function(itemIndex){if(this._postBackReference){var postbackFunction=this._postBackReference.replace("arguments",itemIndex);eval(postbackFunction)}},_isItemVisible:function(t){var e=$telerik.getContentSize(this._clipElement),i=$telerik.getLocation(this._clipElement);e.x=i.x,e.y=i.y;
1var n=$telerik.getOuterSize(t.get_element());i=$telerik.getLocation(t.get_element()),n.x=i.x,n.y=i.y;var s=$telerik.containsPoint(e,n.x,n.y)&&$telerik.containsPoint(e,n.x+n.width,n.y+n.height),a=$telerik.containsPoint(n,e.x,e.y)&&$telerik.containsPoint(n,e.x+e.width,e.y+e.height);return s||a},_fireTickersForItem:function(t){for(var e=t.get_tickers(),i=0,n=e.length;i<n;i++)if(e[i]){var s=$find(e[i]);s&&s.startTicker()}},_resetTickersForItem:function(t){for(var e=t.get_tickers(),i=0,n=e.length;i<n;i++)if(e[i]){var s=$find(e[i]);s&&s.resetTicker()}},_getItemFromEvent:function(t){for(var e=this.get_containerElement(),i=null;null!=t&&t!=e&&t!=document;)"li"==t.tagName.toLowerCase()&&null!=t._item&&"Telerik.Web.UI.RadRotatorItem"==Object.getTypeName(t._item)&&(i=t._item),t=t.parentNode;return i},_initializeWebServiceLoader:function(){this._webServiceLoader=new $T.WebServiceLoader(this.get_webServiceSettings()),this._webServiceLoader.add_loadingStarted(createDelegate(this,this._onItemLoadingStarted)),this._webServiceLoader.add_loadingSuccess(createDelegate(this,this._onItemLoadingSuccess)),this._webServiceLoader.add_loadingError(createDelegate(this,this._onItemLoadingError))},_loadChildrenFromWebService:function(t){this._webServiceLoader||this._initializeWebServiceLoader();var e=new Sys.CancelEventArgs;if(e._argument=null,e.get_argument=function(){return this._argument},e.set_argument=function(t){this._argument=t},this.raiseEvent("itemsRequesting",e),!e.get_cancel()){var i={itemIndex:t,argument:e.get_argument()};this._webServiceLoader.loadData(i)}},loadItemsFromWebService:function(t){var e=t||0,i=this;0==i.get_items().length&&(i._nextItemIndex=-1);var n=function(t,s){i.set_currentItemIndex(e),i.start(),i.remove_itemsRequested(n)};i.add_itemsRequested(n),i._enableDisableAllButtonsUnconditionally(!1),i._loadChildrenFromWebService(e)},showLoadingSign:function(t){if(!this._loadingSign){var e=this._clipElement,i=document.createElement("div");e.appendChild(i);var n=i.style;n.width="16px",n.height="16px",n.position="absolute",n.left=Math.round(e.offsetWidth/2)-8+"px",n.top=Math.round(e.offsetHeight/2)-8+"px",Sys.UI.DomElement.addCssClass(i,"rrLoadingSign"),this._loadingSign=i}this._loadingSign.style.display=t?"":"none"},_onItemLoadingStarted:function(t,e){this._enableDisableAllButtonsUnconditionally(!1),this.showLoadingSign(!0)},_onItemLoadingSuccess:function(t,e){var i=e.get_data(),n=this._itemsElement,s=n.children.length;if(!this._firstLODRequestPassed&&s>0){n.innerHTML="";var a=n.firstChild;a&&n.removeChild&&n.removeChild(a)}if(i&&i.length>0){for(var r=0;r<i.length;r++)this.addRotatorItem(i[r],s),this.isScrollingForward()||this._shiftItemInList();this._hasButtons()?this._repaintUI():this.repaint(),this._firstLODRequestPassed?(this._enableDisableButtons(),this.raiseEvent("itemsRequested",Sys.EventArgs.Empty)):(this._firstLODRequestPassed=!0,this._loadInitialFrame(),this._enableDisableAllButtonsUnconditionally(!0),this.raiseEvent("itemsRequested",Sys.EventArgs.Empty))}else this._lastLODRequestPassed=!0,this._enableDisableButtons();this.showLoadingSign(!1),this._noActiveLODRequest=!0,this._animation&&!this._isRotatorTypeEnabled($T.RotatorType.ButtonsOver)&&this._animation.play()},_onItemLoadingError:function(t,e){var i=e.get_message();i||(i="No error data available");var n=new Telerik.Web.UI.RotatorErrorEventArgs(i);this.raiseEvent("itemsRequestFailed",n),n.get_cancelErrorAlert()||alert("RadRotator items request failed :\n Exception="+i),this.showLoadingSign(!1),this._lastLODRequestPassed=!0,this._noActiveLODRequest=!0,this._enableDisableButtons(),this._animation&&!this._isRotatorTypeEnabled($T.RotatorType.ButtonsOver)&&this._animation.play()},addRotatorItem:function(t,e){var i=this,n=i.get_containerElement();i._createRotatorItem(t,e),i._isLODEnabled||(n.style.width="",n.style.height="",i.repaint())},_createRotatorItem:function(t,e){if(!(e<0)){var i=this.get_items(),n=this.get_containerElement(),s=n.ownerDocument.createElement("li");$(s).addClass(this._rotatorListItemClass),this._itemWidth&&(s.style.width=parseInt(this._itemWidth,10)+"px"),this._itemHeight&&(s.style.height=parseInt(this._itemHeight,10)+"px"),t||(t={}),t.Html===undefined&&(t.Html=""),t.CssClass===undefined&&(t.CssClass=""),t.Visible===undefined&&(t.Visible=!0),s.innerHTML=t.Html;var a={cssClass:t.CssClass,visible:t.Visible},r=$create($T.RadRotatorItem,a,null,null,s);return s._item=r,e>=n.children.length||void 0===e||null==e||this._isLODEnabled?(n.appendChild(s),Array.add(i,r)):(n.insertBefore(s,n.children[e]),Array.insert(this.get_items(),e,r),this._fixItemsIndices(i,e)),r}},removeRotatorItem:function(t){var e=this.get_items(),i=e.length;t=parseInt(t,10),(t=isNaN(t)||t>=i?i-1:t)<0&&(t=0);var n=this.get_containerElement();if(i){this.pause();var s=this._getCurrentItemIndex(),a=e.splice(t,1)[0].get_element
1(),r=$telerik.getOuterSize(a);if(n.removeChild(a),n.style.width="",n.style.height="",this._firstItem=null,e.length<1)return void this.stop();if(this.repaint(),this._fixItemsIndices(e,t),this.isVertical()){var o=Math.floor(parseInt(this._itemsElement.style.top,10)/r.height);0!=o&&s<=Math.abs(o)&&(this._itemsElement.style.top=-(s-1)*r.height+"px")}else{var l=Math.floor(parseInt(this._itemsElement.style.left,10)/r.width);0!=l&&s<=Math.abs(l)&&(this._itemsElement.style.left=-(s-1)*r.width+"px")}var h=this.get_rotatorType();h!=$T.RotatorType.AutomaticAdvance&&h!=$T.RotatorType.SlideShow&&h!=$T.RotatorType.FromCode||this.resume()}},_fixItemsIndices:function(t,e){for(var i=t.length,n=e;n<i;n++)t[n]._index=-1},clearItems:function(){this.stop();for(var t=this.get_containerElement(),e=this.get_items();e.length;){var i=e.pop();t.removeChild(i.get_element())}var n=new Telerik.Web.UI.Bounds(0,0,0,0);$telerik.setBounds(this._itemsElement,n)},isEmptyItemElement:function(){},_doLoadOnDemand:function(t){var e=this._loadNextFrame();if(this._isLODEnabled&&this._noActiveLODRequest&&e)return this._animation.stop(),t.set_cancel(!0),this._noActiveLODRequest=!1,this._enableDisableAllButtonsUnconditionally(!1),this._loadChildrenFromWebService(e),!1},_loadNextFrame:function(){var t=this._getCurrentItemIndex(),e=this._getVisibleItemsCount()||1,i=this.get_items().length,n=null,s=this.isScrollingForward()?t+e:t-1;return this.isViewportScrollMode()&&(s=this.isScrollingForward()?s+e-1:s-e+1),this._isLODEnabled&&!this.get_items()[s]&&(this._lastLODRequestPassed||(n=i)),n},isVisible:function(){return null==$telerik.getInvisibleParent(this.get_element())},repaint:function(){window.clearTimeout(this._automaticAdvanceTimeOut);var t=this.get_currentItemIndex();this._repaintUI(),this._animation?(this._animation.dispose&&this._animation.dispose(),this._animation=null,this._startAutoPlayItems()):this._startAutomaticAdvance(),this.set_currentItemIndex(t)},_repaintUI:function(){this._isWidthInPersent()&&(this._relativeWrapper.style.width=this._relativeWrapper.offsetWidth+"px",this._clipElement.style.width=this._clipElement.offsetWidth+"px"),this._createUI(),this._enableDisableButtons()},get_webServiceSettings:function(){return this._webServiceSettings},set_webServiceSettings:function(t){var e=Sys.Serialization.JavaScriptSerializer.deserialize(t);this._webServiceSettings=new $T.WebServiceSettings(e)},get_enabled:function(){return this._enabled},get_rippleZonesConfiguration:function(){return[{element:this.get_element(),rippleConfigurations:[{containerSelector:".rrButton"}]}]},set_enabled:function(t){t!=this._enabled&&(this._enabled=t,this.get_isInitialized()&&(t?this.start():this.stop()))}},$.registerControlProperties($T.RadRotator,{skin:"Default",pauseOnMouseOver:!0,persistCurrentItemOnPostBack:!1,items:null,rotatorType:$T.RotatorType.AutomaticAdvance,wrapFrames:!0,scrollDirection:$T.RotatorScrollDirection.Left+$T.RotatorScrollDirection.Right,frameDuration:2e3,controlButtons:{},initialItemIndex:0,slideShowAnimationSettings:{},animationDirection:$T.RotatorScrollDirection.Left,enableRandomOrder:!1,enableDragScrolling:!1,appendClientDataBoundItems:!1});var ITEM_CLICKING="itemClicking",ITEM_CLICKED="itemClicked",MOUSE_OVER="mouseOver",MOUSE_OUT="mouseOut",ITEM_SHOWING="itemShowing",ITEM_SHOWN="itemShown",LOAD="load",BUTTON_OVER="buttonOver",BUTTON_OUT="buttonOut",BUTTON_CLICK="buttonClick",ITEM_REQUESTED="itemsRequested",ITEM_REQUEST_FAILED="itemsRequestFailed",ITEM_REQUESTING="itemsRequesting",ITEM_DATABOUND="itemDataBound",DATA_BOUND="dataBound",TEMPLATE_DATA_BOUND="templateDataBound";$.registerControlEvents($T.RadRotator,[ITEM_CLICKING,ITEM_CLICKED,MOUSE_OVER,MOUSE_OUT,ITEM_SHOWING,ITEM_SHOWN,LOAD,BUTTON_OVER,BUTTON_OUT,BUTTON_CLICK,ITEM_REQUESTED,ITEM_REQUEST_FAILED,ITEM_REQUESTING,ITEM_DATABOUND,DATA_BOUND,TEMPLATE_DATA_BOUND]),$T.RadRotator.registerClass("Telerik.Web.UI.RadRotator",$T.RadWebControl);var createRadEventArgs=function(t,e){$T[t]=function(){var e=Array.prototype.slice.call(arguments);$T[t].initializeBase(this,e)},$T[t].registerClass("Telerik.Web.UI."+t,e)};$T.RotatorEventArgs=function(t){$T.RotatorEventArgs.initializeBase(this),this._item=t},$T.RotatorEventArgs.prototype={get_item:function(){return this._item}},$T.RotatorEventArgs.registerClass("Telerik.Web.UI.RotatorEventArgs",Sys.EventArgs),createRadEventArgs("RadRotatorEventArgs",Telerik.Web.UI.RotatorEventArgs),$T.RotatorCancelEventArgs=function(t){$T.RotatorCancelEventArgs.initializeBase(this),this._item=t},$T.RotatorCancelEventArgs.prototype={get_item:function(){return this._item}},$T.RotatorCancelEventArgs.registerClass("Telerik.Web.UI.RotatorCancelEventArgs",Sys.CancelEventArgs),createRadEventArgs("RadRotatorCancelEventArgs",Telerik.Web.UI.RotatorCancelEventArgs),$T.RotatorButtonEventArgs=function(t){$T.RotatorButtonEventArgs.initializeBase(this),this._button=t},$T.RotatorButtonEventArgs.prototype={get_button:function(){return this._button}},$T.RotatorButtonEventArgs.registerClass("Telerik.Web.UI.RotatorButtonEventArgs",Sys.CancelEventArgs),createRadEventArgs("RadRotatorButtonEventArgs",Telerik.Web.UI.RotatorButtonEventArgs),$T.RotatorErrorEventArgs=function(t){$T.RotatorErrorEventArgs.initializeBase(this),this._cancelErrorAlert=!1,this._errorMessage=t},$T.RotatorErrorEventArgs.prototype={get_errorMessage:function(){return this._errorMessage},get_cancelErrorAlert:function(){return this._cancelErrorAlert},set_cancelErrorAlert:function(t){this._cancelErrorAlert=t}},$T.RotatorErrorEventArgs.registerClass("Telerik.Web.UI.RotatorErrorEventArgs",Sys.EventArgs),createRadEventArgs("RadRotatorErrorEventArgs",Telerik.Web.UI.RotatorErrorEventArgs),$T.RotatorItemDataBoundEventArgs=function(t,e){var i=this;$T.RotatorItemDataBoundEventArgs.initializeBase(i),i._item=t,i._dataItem=e},$T.RotatorItemDataBoundEventArgs.prototype={get_item:function(){return this._item},get_dataItem:function(){return this._dataItem}},$T.RotatorItemDataBoundEventArgs.registerClass("Telerik.Web.UI.RotatorItemDataBoundEventArgs",Sys.EventArgs),createRadEventArgs("RadRotatorItemDataBoundEventArgs",Telerik.Web.UI.RotatorItemDataBoundEventArgs),$T.RadRotatorItem=function(t){$T.RadRotatorItem.initializeBase(this,[t]),this._visible=null,this._cssClass=null,this._index=-1},$T.RadRotatorItem.prototype={initialize:function(){$T.RadRotatorItem.callBaseMethod(this,"initialize"),this._tickers=null},dispose:function(){$T.RadRotatorItem.callBaseMethod(this,"dispose")},get_index:function(){if(-1==this._index){var t=0,e=this.get_element
1(),i=e.parentNode;if(null!=i){var n=$telerik.getChildrenByTagName(i,"li");if(null!=n){for(t=0;t<n.length&&n[t]!=e;)t++;t==n.length&&(t=0)}}this._index=t}return this._index},getServerIndex:function(){var t=$(this.get_element()).children("div");if(t.length>0){var e=t[0].id.match(/_i(\d+)$/);if(e)return parseInt(e[1],10)}return this.get_index()},get_visible:function(){return this._visible},set_visible:function(t){this._visible=t},get_cssClass:function(){return this._cssClass},set_cssClass:function(t){this._cssClass=t},get_tickers:function(){if(null==this._tickers&&void 0!==$T.RadTicker){this._tickers=[];for(var t=0,e=$telerik.radControls.length;t<e;t++){var i=$telerik.radControls[t];$T.RadTicker.isInstanceOfType(i)&&$telerik.isDescendant(this.get_element(),i.get_element())&&Array.add(this._tickers,i.get_id())}}return this._tickers}},$T.RadRotatorItem.registerClass("Telerik.Web.UI.RadRotatorItem",Sys.UI.Control),$T.RadRotatorAnimationClass=function(){this._scrollAnimations={}},$T.RadRotatorAnimationClass.prototype={get_scrollAnimationProperties:function(t){return t&&this._scrollAnimations[t]?this._scrollAnimations[t].properties:null},set_scrollAnimationProperties:function(t,e){if(t){var i=this._scrollAnimations;i[t]||(i[t]={}),void 0===e||null==e?delete i[t].properties:i[t].properties=e}},get_scrollAnimationOptions:function(t){if(!t)return null;var e=this._scrollAnimations,i=e[t]?e[t].options:{};return i=$.extend({},{xR:this.get_xRadius(t),yR:this.get_yRadius(t),xO:this.get_xCenter(t),yO:this.get_yCenter(t),minScale:this.get_minimumScale(t),xItemSpacing:this.get_xItemSpacing(t),yItemSpacing:this.get_yItemSpacing(t),selectedItemOffsetX:this.get_selectedItemOffsetX(t),selectedItemOffsetY:this.get_selectedItemOffsetY(t),matrix:this.get_matrix(t),reflectionHeight:this.get_reflectionHeight(t),reflectionOpacity:this.get_reflectionOpacity(t),coverFlowDirection:this.get_coverFlowDirection(t)},i)},set_scrollAnimationOptions:function(t,e){if(t){var i=this._scrollAnimations;i[t]||(i[t]={}),void 0!==e&&null!=e||delete i[t].options,i[t].options=$.extend({},this.get_scrollAnimationOptions(),e)}},get_xRadius:function(t){return this._getScrollAnimationOption(t,"xR")},set_xRadius:function(t,e){this._setScrollAnimationOption(t,"xR",e)},get_yRadius:function(t){return this._getScrollAnimationOption(t,"yR")},set_yRadius:function(t,e){this._setScrollAnimationOption(t,"yR",e)},get_xCenter:function(t){return this._getScrollAnimationOption(t,"xO")},set_xCenter:function(t,e){this._setScrollAnimationOption(t,"xO",e)},get_yCenter:function(t){return this._getScrollAnimationOption(t,"yO")},set_yCenter:function(t,e){this._setScrollAnimationOption(t,"yO",e)},get_minimumScale:function(t){return this._getScrollAnimationOption(t,"minScale")},set_minimumScale:function(t,e){this._setScrollAnimationOption(t,"minScale",e)},get_xItemSpacing:function(t){return this._getScrollAnimationOption(t,"xItemSpacing")},set_xItemSpacing:function(t,e){this._setScrollAnimationOption(t,"xItemSpacing",e)},get_yItemSpacing:function(t){return this._getScrollAnimationOption(t,"yItemSpacing")},set_yItemSpacing:function(t,e){this._setScrollAnimationOption(t,"yItemSpacing",e)},get_selectedItemOffsetX:function(t){return this._getScrollAnimationOption(t,"selectedItemOffsetX")},set_selectedItemOffsetX:function(t,e){this._setScrollAnimationOption(t,"selectedItemOffsetX",e)},get_selectedItemOffsetY:function(t){return this._getScrollAnimationOption(t,"selectedItemOffsetY")},set_selectedItemOffsetY:function(t,e){this._setScrollAnimationOption(t,"selectedItemOffsetY",e)},get_matrix:function(t){var e=this._getScrollAnimationOption(t,"matrix");return e=$.extend({},{m11:Number.NaN,m12:Number.NaN,m21:Number.NaN,m22:Number.NaN},e)},set_matrix:function(t,e){this._setScrollAnimationOption(t,"matrix",e)},get_reflectionHeight:function(t){return this._getScrollAnimationOption(t,"reflectionHeight")},set_reflectionHeight:function(t,e){this._setScrollAnimationOption(t,"reflectionHeight",e)},get_reflectionOpacity:function(t){return this._getScrollAnimationOption(t,"reflectionOpacity")},set_reflectionOpacity:function(t,e){this._setScrollAnimationOption(t,"reflectionOpacity",e)},get_coverFlowDirection:function(t){return this._getScrollAnimationOption(t,"coverFlowDirection")},set_coverFlowDirection:function(t,e){this._setScrollAnimationOption(t,"coverFlowDirection",e)},_getScrollAnimationOption:function(t,e){return t&&this._scrollAnimations[t]&&this._scrollAnimations[t].options?this._scrollAnimations[t].options[e]:Number.NaN}
1,_setScrollAnimationOption:function(t,e,i){if(t){var n=this._scrollAnimations;n[t]||(n[t]={}),n[t].options||(n[t].options={}),n[t].options[e]=i}},_removeScrollAnimation:function(t){var e=this._scrollAnimations[t];e&&(delete e.options,delete e.properties,e=null),delete this._scrollAnimations[t]},getInstance:function(){return this}},$T.RadRotatorAnimationClass.registerClass("Telerik.Web.UI.RadRotatorAnimationClass",null),$T.RadRotatorAnimation||($T.RadRotatorAnimation=new $T.RadRotatorAnimationClass)})($telerik.$);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.