Type.registerNamespace("Telerik.Web.UI");
(function(){$telerik.toRotator=function(c){return c;
};
$telerik.findRotator=$find;
var a=$telerik.$;
var b=Telerik.Web.UI;
a.registerEnum(b,"RotatorScrollDirection",{Left:1,Right:2,Up:4,Down:8});
a.registerEnum(b,"RotatorAnimationType",{None:1,Fade:2,Pulse:3,CrossFade:4});
a.registerEnum(b,"RotatorType",{AutomaticAdvance:1,ButtonsOver:2,Buttons:3,SlideShow:4,SlideShowButtons:5,FromCode:6,Carousel:7,CarouselButtons:8,CoverFlow:9,CoverFlowButtons:10});
b.RadRotator=function(c){b.RadRotator.initializeBase(this,[c]);
this._enabled=true;
this._postBackReference=null;
this._webServiceSettings=new b.WebServiceSettings({});
this._webServiceLoader=null;
this._containerElement=null;
this._clickDelegate=null;
this._mouseOutDelegate=null;
this._mouseOverDelegate=null;
this._itemShownDelegate=null;
this._rotatorDisposed=false;
this._scrollDuration=500;
this._canPause=true;
this._itemWidth=null;
this._itemHeight=null;
this._isLODEnabled=null;
this._lastLODRequestPassed=false;
this._firstLODRequestPassed=false;
this._noActiveLODRequest=true;
this._relativeWrapper=null;
this._clipElement=null;
this._itemsElement=null;
this._loadingSign=null;
this._rightButton=null;
this._leftButton=null;
this._downButton=null;
this._upButton=null;
this._firstItem=null;
this._imageItems=[];
this._initialAngle=(Math.PI/2);
this._carouselAnimationAngle=this._initialAngle;
this._coverFlowAnimationIndex=-1;
this._pendingImage=null;
this._imageOnLoadDelegate=null;
this._automaticAdvanceStarted=false;
this._nextItemIndex=-1;
this._isMouseOverClipElement=false;
};
b.RadRotator.prototype={initialize:function(){b.RadRotator.callBaseMethod(this,"initialize");
this._rotatorDisposed=false;
this._isLODEnabled=!this.isCarousel()&&!this.isCoverFlow()&&this.get_webServiceSettings().get_method();
this._setChildElements();
this._createUI();
var c=this.get_initialItemIndex();
if(this._isLODEnabled){this._enableDisableAllButtonsUnconditionally(false);
this._loadChildrenFromWebService(c);
}else{this._createChildItems();
this._initialItemSet=false;
this._loadInitialFrame();
this._enableDisableButtons();
}this._attachEvents(true);
this._fixVisibilityProblems(true);
if($telerik.isSafari){$addHandler(this._relativeWrapper,"mousewheel",this._mouseWheelHandler);
}this.raiseEvent("load",Sys.EventArgs.Empty);
if(!this._isLODEnabled){this._startAutomaticAdvance();
}this._itemShownHandler();
},dispose:function(){if(this._imageOnLoadDelegate&&this._pendingImage){$telerik.removeExternalHandler(this._pendingImage,"load",this._imageOnLoadDelegate);
this._pendingImage=null;
this._imageOnLoadDelegate=null;
}this._firstItem=null;
this._rotatorDisposed=true;
this._fixVisibilityProblems(false);
this._attachEvents(false);
this._containerElement=null;
if(this._animation){this._animation.dispose();
this._animation=null;
}this._imageItems=null;
b.RadRotatorAnimation._removeScrollAnimation(this.get_id());
if(this._rightButton){$clearHandlers(this._rightButton);
}if(this._leftButton){$clearHandlers(this._leftButton);
}if(this._downButton){$clearHandlers(this._downButton);
}if(this._upButton){$clearHandlers(this._upButton);
}if($telerik.isSafari){$removeHandler(this._relativeWrapper,"mousewheel",this._mouseWheelHandler);
}if(this._itemsElement){$clearHandlers(this._itemsElement);
}b.RadRotator.callBaseMethod(this,"dispose");
},_createChildItems:function(){var f=$telerik.getChildrenByTagName(this.get_containerElement(),"li");
for(var d=0;
d<f.length;
d++){var c=$create(b.RadRotatorItem,this.get_items()[d],null,null,f[d]);
var e=c.get_index();
f[d]._item=c;
this.get_items()[d]=c;
}},_mouseWheelHandler:function(c){c.preventDefault();
},_getNextItemToShow:function(){var d=this._nextItemIndex;
var e=this.getItemHtmlElements();
var f=this.isCarousel()||(this.get_wrapFrames()&&!this.isCoverFlow());
var c=null;
if(d<0){d=this._getCurrentItemIndex();
if(this.isScrollingForward()){d++;
}else{d--;
}if(f){if(d<0){d=e.length-1;
}else{if(d>e.length-1){d=0;
}}}if(d>=0&&d<e.length){c=e[d];
}}else{if(f){d=d%e.length;
}if(d>=0&&d<e.length){c=this.get_items()[d].get_element();
}}return c;
},_startAutomaticAdvance:function(){if(this.isAutomaticAdvance()){var c=this.get_frameDuration();
if(c>0){window.setTimeout(Function.createDelegate(this,this.startAutoPlay),c);
}else{this.startAutoPlay();
}}},get_firstItem:function(){var d=this._firstItem;
if(!d){var c=this.getItemHtmlElements();
d=this.isScrollingForward()?c[0]:c[c.length-1];
}return d;
},get_currentItem:function(){var c=this.getItemHtmlElements();
var d=this._getCurrentItemIndex();
return((0<=d&&d<c.length)?c[d].control:null);
},_getCurrentItemIndex:function(){var g=this.getItemHtmlElements();
var f=g.length;
var k=-1;
if(f<1){return -1;
}var l=this.isCarousel();
if(l||this.isCoverFlow()){var h=this._animation;
if(!h){k=this.get_initialItemIndex();
}else{if(l){var d=h.get_angle()-this._initialAngle;
k=Math.round(Math.abs(d)/((Math.PI*2)/f));
if(d>0&&k>0){k=f-k;
}k%=f;
}else{k=h.get_index();
}}}else{var e=parseInt(g[0].parentNode.style.left),c="left";
if(isNaN(e)||e==0){e=parseInt(g[0].parentNode.style.top);
c="top";
}while(++k<f&&e<0){var j=$telerik.getOuterSize(g[k]);
e=e+(c=="top"?j.height:j.width);
}}return k;
},set_currentItemIndex:function(m,s){var d=this.get_items();
if(!this.get_enabled()||m<0||m>=d.length){return;
}var c=d[m];
if(!c){return;
}var k=this.isCarousel();
var u=this.isCoverFlow();
if(s&&(k||u)){var t=this._animation;
if(t&&this.get_pauseOnMouseOver()){t._isPaused=false;
t._isPlaying=true;
t._getAnimationQuery().filter("[paused='true']").removeAttr("paused").removeAttr("elapsedTime");
t.stop();
}this._nextItemIndex=m;
this.scrollItem();
this._nextItemIndex=-1;
}else{if(k){this._changeCarouselAngleByIndex(m);
}else{if(u){this._changeCoverFlowIndexByIndex(m);
}else{var o=c.get_element();
if(this.get_wrapFrames()){var e=this.getItemHtmlElements();
for(var r=0,j=e.length;
r<j;
r++){if(o===e[r]){m=r;
break;
}}}var h=this._itemsElement;
var p=this._getCurrentItemIndex();
var l=parseInt(h.style.left);
var g=parseInt(h.style.top);
var n=(p-m);
var q=$telerik.getOuterSize(o);
var f=this.isVertical();
if(f){h.style.top=g+n*q.height+"px";
}else{h.style.left=l+n*q.width+"px";
}}}}if(!k){this._enableDisableButtons();
}},_changeCarouselAngleByIndex:function(h,d,c,i){var j=this._imageItems;
var f=j.length;
if(f<1){return;
}if(h<0){h=0;
}else{if(h>(f-1)){h%=f;
}}var p=(Math.PI*2)/f;
var k=d?a(j[0].element).attr("telerikCarouselAngle"):null;
var l=((typeof(k)!="undefined"&&k!=null)?k:this._initialAngle)-h*p;
if(l.toString().indexOf("e")>-1){l=(Math.round(l*10000)/10000);
}var n=this._animation;
if(n){n.set_angle(l);
}else{this._carouselAnimationAngle=l;
}var m=b.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id());
var g=/^([\d+-.]+)(.*)$/;
var o=!a.support.opacity&&(m&&m.opacity!=null);
var e=this._getScrollAnimationOptions(c,i);
a.each(j,function(A,w){var s=this;
var r=Math.sin(l);
var v=e.minScale;
var t=v+(r+1)*((1-v)/2);
var B=e.xO+(((Math.cos(l+Math.PI)*e.xR)-s.outerWidth/2)*t);
var C=e.yO+((r*e.yR)*t);
var q=a.extend({},m);
if(m){a.each(q,function(y,E){var x=g.exec(E);
q[y]=x?(x[1]*t+x[2]):E;
});
}var D=this.element;
D.telerikCarouselAngle=l;
var z="px";
var u=a.extend(q,{width:s.width*t+z,height:s.height*t*(o&&this.reflection?2:1)+z,position:"absolute",left:B+z,top:C+z,zIndex:parseInt(t*100)});
a(D).css("display","none").css(u).css("display","");
l+=p;
if(l.toString().indexOf("e")>-1){l=(Math.round(l*10000)/10000);
}});
},_getTransformProperty:function(){var c="transform";
if($telerik.isIE9){c="msTransform";
}else{if($telerik.isIE){c="filter";
}else{if($telerik.isFirefox){c="MozTransform";
}else{if($telerik.isSafari){c="WebkitTransform";
}else{if($telerik.isOpera){c="OTransform";
}}}}}return c;
},_changeCoverFlowIndexByIndex:function(k,i,j){var l=this._imageItems;
var h=l.length;
if(h<1){return;
}if(k<0){k=0;
}else{if(k>(h-1)){k%=h;
}}var p=this._animation;
if(p){p.set_index(k);
}else{this._coverFlowAnimationIndex=k;
}var o=b.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id());
var e=/^([\d+-.]+)(.*)$/;
var g=this._getScrollAnimationOptions(i,j);
var n=this.isVertical();
var m=l[k];
var d={top:g.yO-m.outerHeight/2,right:g.xO+m.outerWidth/2,bottom:g.yO+m.outerHeight/2,left:g.xO-m.outerWidth/2};
var f=g.matrix;
if(f.m11==1&&f.m22==1&&f.m12==0&&f.m21==0){f=null;
}var c=this._getTransformProperty();
var q=("filter"==c)&&f;
a.each(l,function(F,M){var J=this;
var N=(F-k);
var r=(N==0);
var A=r?1:g.minScale;
var I=(N>0);
var D=n?(g.xO+J.outerWidth/2-J.outerWidth*A):(d[I?"right":"left"]);
var E=n?(d[I?"bottom":"top"]):(g.yO+J.outerHeight/2-J.outerHeight*A);
var t=N;
if(t>0){if(n){E+=g.yR+(--t*g.yItemSpacing);
}else{D+=g.xR+(--t*g.xItemSpacing);
}}else{if(t<0){if(n){E+=-(g.yR+J.outerHeight*A)+(++t*g.yItemSpacing);
}else{D+=-(g.xR+J.outerWidth*A)+(++t*g.xItemSpacing);
}}else{D+=g.selectedItemOffsetX;
E+=g.selectedItemOffsetY;
}}var u=a.extend({},o);
if(o&&!r){a.each(u,function(y,P){var x=e.exec(P);
u[y]=x?(x[1]*A+x[2]):P;
});
}var w="px";
var G=a.extend(u,{width:J.width*A+w,height:J.height*A*(q&&this.reflection?2:1)+w,position:"absolute",zIndex:((h-Math.abs(N))*100)});
var s=0;
var L=0;
if(f){var C=a.extend({},f);
var B=r?0:(N<0?-1:1);
C.m12*=B;
C.m21*=B;
if(r){C.m11=C.m22=1;
}var O=("filter"==c);
var v="matrix("+C.m11+", "+C.m21+", "+C.m12+", "+C.m22+", 0, 0)";
if(O){v="progid:DXImageTransform.Microsoft.Matrix(FilterType='bilinear',M11="+C.m11+", M12="+C.m12+", M21="+C.m21+", M22="+C.m22+",sizingMethod='auto expand')";
}G[c]=v;
var H=Math.abs(C.m11)+Math.abs(C.m12);
var K=Math.abs(C.m21)+Math.abs(C.m22);
if(!n){s=B*((1-H)/2);
}else{L=B*((1-K)/2);
}if(O&&!r){s+=(H-1)/2;
L+=(K-1)/2;
if(f.m12&&this.reflection){s*=2;
}}}G.left=D-s*A*J.outerWidth+w;
G.top=E-L*A*J.outerHeight+w;
var z=this.element;
z.telerikCoverFlowIndex=N;
a(z).css("display","none").css(G).css("display","");
});
},_needsShift:function(k){if(null==k){k=this.get_animationDirection();
}var m=this._itemsElement;
var l=this._clipElement;
var h=parseInt(m.style.left);
var f=parseInt(m.style.top);
var c=$telerik.getOuterSize(m);
var d=$telerik.getContentSize(l);
var j=this.get_firstItem();
if(!j){return false;
}var g=$telerik.getOuterSize(j);
var e=false;
var i=b.RotatorScrollDirection;
switch(k){case i.Left:e=h+c.width<d.width+g.width;
break;
case i.Up:e=f+c.height<d.height+g.height;
break;
case i.Right:e=h*-1<g.width;
break;
case i.Down:e=f*-1<d.height;
break;
}return e;
},_getMoveAnimation:function(){if(!this._animation){var c=this.isCarousel();
var d=(this.get_frameDuration()<5?"easeLinear":null);
var e;
if(c||this.isCoverFlow()){e=new b.Animations[c?"jCarousel":"jCoverFlow"](this,this._itemsElement,this._imageItems,this.get_scrollDuration(),this._getScrollAnimationOptions(),b.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id()),d);
if(c){e.set_angle(this._carouselAnimationAngle);
}else{e.set_index(this._coverFlowAnimationIndex==-1?this.get_initialItemIndex():this._coverFlowAnimationIndex);
}}else{e=new b.Animations.jMove(this,this._itemsElement,this.get_scrollDuration(),true,false,d);
}e.initialize();
e.set_isCyclic(this.isAutomaticAdvance()||this._isRotatorTypeEnabled(b.RotatorType.ButtonsOver));
this._animation=e;
}return this._animation;
},_initializeAnimationHandlers:function(c){this._animation.add_started(c.started);
this._animation.add_ended(c.ended);
if(this._isPaused){this._animation.pause();
}},_getScrollAnimationOptions:function(g,h){var e=g;
var f=h;
if(!e||!f){var c=$telerik.getContentSize(this._clipElement);
e=e?e:c.width;
f=f?f:c.height;
}var d=b.RadRotatorAnimation.get_scrollAnimationOptions(this.get_id());
d.minScale=(isNaN(d.minScale)||d.minScale<0||d.minScale>1)?0.5:d.minScale;
d.reflectionHeight=isNaN(d.reflectionHeight)?0:d.reflectionHeight;
d.reflectionOpacity=isNaN(d.reflectionOpacity)?1:d.reflectionOpacity;
d.xO=isNaN(d.xO)?parseInt(e/2):d.xO;
if(this.isCarousel()){d.xR=isNaN(d.xR)?parseInt(e/2.3):d.xR;
d.yR=isNaN(d.yR)?parseInt(f/6):d.yR;
d.yO=isNaN(d.yO)?parseInt(d.minScale*((f-(1-d.minScale)*d.yR)/2)):d.yO;
d.matrix=null;
}else{if(this.isCoverFlow()){var i=this.isVertical();
d.xR=isNaN(d.xR)?(i?0:15):d.xR;
d.yR=isNaN(d.yR)?(i?15:0):d.yR;
d.yO=isNaN(d.yO)?parseInt(f/2):d.yO;
d.xItemSpacing=isNaN(d.xItemSpacing)?(i?0:100):d.xItemSpacing;
d.yItemSpacing=isNaN(d.yItemSpacing)?(i?100:0):d.yItemSpacing;
d.selectedItemOffsetX=isNaN(d.selectedItemOffsetX)?0:d.selectedItemOffsetX;
d.selectedItemOffsetY=isNaN(d.selectedItemOffsetY)?0:d.selectedItemOffsetY;
d.matrix.m11=isNaN(d.matrix.m11)?1:d.matrix.m11;
d.matrix.m12=isNaN(d.matrix.m12)?0:d.matrix.m12;
d.matrix.m21=isNaN(d.matrix.m21)?0:d.matrix.m21;
d.matrix.m22=isNaN(d.matrix.m22)?1:d.matrix.m22;
d.coverFlowDirection=isNaN(d.coverFlowDirection)?1:(d.coverFlowDirection<0?-1:1);
}}return d;
},scrollViewport:function(){if(!this.get_enabled()){return;
}var c=this._itemsElement;
if(!this._animation){var d=this._getMoveAnimation();
this._initItemAnimation=Function.createDelegate(this,function(){if(this.get_wrapFrames()&&!this._hasViewportWidth()){if(!this._isLODEnabled||this._noActiveLODRequest){var h=this.getItemHtmlElements().length;
for(var j=0;
j<h;
j++){this._shiftItemInList();
if(this._hasViewportWidth()){break;
}}}}var e=this._getViewPortPixelsToScroll();
var k=this.isScrollingForward();
if(this.get_vertical()){var f=parseInt(c.style.top)+(k?-e:e);
d.set_vertical(f);
}else{var g=parseInt(c.style.left)+(k?-e:e);
d.set_horizontal(g);
}if(this.isSlideShow()){this._initCrossFadeItemAnimation();
c.style.visibility="hidden";
}});
this._initializeAnimationHandlers({started:Function.createDelegate(this,function(e,h){this.stopViewportAnimation();
if(!this.get_wrapFrames()&&!this._canSlideMore()){if(!this._isLODEnabled||this._lastLODRequestPassed){h.set_cancel(true);
return false;
}}this._doLoadOnDemand(h);
var f=this.get_currentItem();
var g=new b.RadRotatorCancelEventArgs(f);
this.raiseEvent("itemShowing",g);
if(g.get_cancel&&g.get_cancel()){h.set_cancel(true);
return false;
}this._initItemAnimation();
}),ended:Function.createDelegate(this,function(){if(!this._isLODEnabled||this._lastLODRequestPassed){this._enableDisableButtons();
}if(this.isSlideShow()){var f=this.get_slideShowAnimationSettings().type||b.RotatorAnimationType.None;
if(b.RotatorAnimationType.CrossFade!=f){c.style.visibility="visible";
}this.runSlideShowAnimation();
}else{var e=this.get_currentItem();
this.raiseEvent("itemShown",new b.RadRotatorEventArgs(e));
}})});
}this._animation.play();
},_getVisibleItemsCount:function(){var d=this._getVarSizeAttribute();
var e=this.getItemHtmlElements();
var g=this._getCurrentItemIndex();
if(g>=e.length){return 0;
}var f=$telerik.getOuterSize(e[g])[d];
if(!f&&this._isLODEnabled){f=this.get_vertical()?parseInt(this._itemHeight):parseInt(this._itemWidth);
}var c=parseInt($telerik.getContentSize(this._clipElement)[d]/f);
return c;
},_initCrossFadeItemAnimation:function(){var k=this.get_slideShowAnimationSettings().type||b.RotatorAnimationType.None;
if(b.RotatorAnimationType.CrossFade==k){var f=this._itemsElement;
var n=(-1)*parseInt(f.style.top)+"px";
var i=(-1)*parseInt(f.style.left)+"px";
var g=this.getItemHtmlElements();
var m=this._getCurrentItemIndex();
if(m>=g.length){return;
}var j=this._getVarSizeAttribute();
var h=$telerik.getOuterSize(g[m])[j];
var o=this._getVisibleItemsCount();
var c=m+(this.isScrollingForward()?1:-1)*o;
if(c>=0&&c<g.length){var e=a(g[m]).css({left:i,top:n});
var l=a(g[c]).css({left:i,top:n});
var d=this.get_vertical();
while(--o){if(d){n=(parseInt(n)+h+"px");
}else{i=(parseInt(i)+h+"px");
}if(++m<g.length){e=e.add(a(g[m]).css({left:i,top:n}));
}if(++c<g.length){l=l.add(a(g[c]).css({left:i,top:n}));
}}e.css({position:"absolute",visibility:"visible",opacity:1});
l.css({position:"absolute",visibility:"visible",opacity:0});
}}},scrollItem:function(){if(!this.get_enabled()){return;
}if(this.isCarousel()||this.isCoverFlow()){return this._scrollImageItem();
}var c=this._clipElement;
var e=this._itemsElement;
if(!this._animation){var d=this._animation=this._getMoveAnimation();
this._initItemAnimation=Function.createDelegate(this,function(){var f=this._getNextItemToShow();
if(!f){return;
}this._firstItem=f;
var h=$telerik.getOuterSize(f);
if(this.isScrollingForward()){h.width*=-1;
h.height*=-1;
}if(this.get_vertical()){var g=parseInt(e.style.top)+h.height;
d.set_vertical(g);
}else{var i=parseInt(e.style.left)+h.width;
d.set_horizontal(i);
}});
this._initializeAnimationHandlers({started:Function.createDelegate(this,function(f,i){var j=this.get_wrapFrames();
if(!j&&!this._canSlideMore()){if(!this._isLODEnabled||this._lastLODRequestPassed){i.set_cancel(true);
return false;
}}this._doLoadOnDemand(i);
var g=this.get_currentItem();
var h=new b.RadRotatorCancelEventArgs(g);
this.raiseEvent("itemShowing",h);
if(h.get_cancel&&h.get_cancel()){i.set_cancel(true);
return false;
}if(j&&this._needsShift()){if(!this._isLODEnabled||this._noActiveLODRequest){this._shiftItemInList();
}}if(this._stopAnimationButtonOver){return;
}this._initItemAnimation();
}),ended:Function.createDelegate(this,function(){if(!this._isLODEnabled||this._lastLODRequestPassed){this._enableDisableButtons();
}var f=this.get_currentItem();
if(f!=null){this.raiseEvent("itemShown",new b.RadRotatorEventArgs(f));
}if(this._stopAnimationButtonOver){return;
}if(this.isAutomaticAdvance()||this._isRotatorTypeEnabled(b.RotatorType.ButtonsOver)){if(this.get_frameDuration()>0){this._setAnimationTimeout(this.get_frameDuration());
}else{this._animation.play();
}}})});
}this._animation.stop();
this._animation.play();
},_scrollImageItem:function(){var d=this.isCarousel();
var c=this.isCoverFlow();
if(!this._animation){var f=this._imageItems.length;
if(f<1){return;
}var e=this._animation=this._getMoveAnimation();
this._initializeAnimationHandlers({started:Function.createDelegate(this,function(g,i){var j=this._getNextItemToShow();
if(!j){i.set_cancel(true);
return false;
}var h=new b.RadRotatorCancelEventArgs(j.control);
this.raiseEvent("itemShowing",h);
if(h.get_cancel&&h.get_cancel()){i.set_cancel(true);
return false;
}this._initItemAnimation();
}),ended:Function.createDelegate(this,function(){var g=this._itemsElement;
if(!g||!g.parentNode){return;
}if(a(g).children("li:animated").length>1){return;
}if(c){this._enableDisableButtons();
}var h=this.get_currentItem();
if(h!=null){this.raiseEvent("itemShown",new b.RadRotatorEventArgs(h));
}if(this.isAutomaticAdvance()){if(this.get_frameDuration()>0){this._setAnimationTimeout(this.get_frameDuration());
}else{this._animation.play();
}}})});
this._initItemAnimation=Function.createDelegate(this,function(){var l=this._getCurrentItemIndex(true);
var j=this._getNextItemToShow().control.get_index();
var m=l-j;
if(d){m=Math.abs(m);
if(m>Math.floor(f/2)){m=Math.abs(f-m);
}var q=(l+Math.floor(f/2))%f;
if(j<=q&&j<=l){j+=f;
}if(q<l){q+=f;
}if(q>=j&&j>=l){m*=(-1);
}var n=this.getItemHtmlElements();
var g=(n.length>0)?((Math.PI*2)/n.length):0;
m*=g;
var o=this._animation.get_angle()+m;
var i=this._initialAngle;
var k=Math.PI*2+g;
if(Math.round((o-(i+k))/g)==0||Math.round((o-(i-k))/g)==0){o=i+m;
}if(o.toString().indexOf("e")>-1){o=(Math.round(o*10000)/10000);
}var h=o-m;
a(n).each(function(s,r){if(h.toString().indexOf("e")>-1){h=(Math.round(h*10000)/10000);
}r.telerikCarouselAngle=h;
h+=g;
});
this._animation.set_angle(o);
}else{var p=this._animation.get_index()-this._getScrollAnimationOptions().coverFlowDirection*m;
this._animation.set_index(p);
}});
}this._animation.stop();
this._animation.play();
},_checkItemsSize:function(){var e=$telerik.getOuterSize(this._itemsElement);
var d=this.get_vertical();
var f=(d)?e.height:e.width;
var c=(d)?this.get_height():this.get_width();
return parseInt(f)>parseInt(c);
},_shiftItemInList:function(){var e=(this._initialItemSet&&this.get_enableRandomOrder());
var h=this._itemsElement;
var m=this.getItemHtmlElements();
var j=this.get_vertical();
var l=this.isScrollingForward();
var n=parseInt(h.style.left);
var g=parseInt(h.style.top);
var f=0;
if(e){var k=this._getVisibleItemsCount();
var i=Math.ceil(Math.random()*(m.length-k))-1;
f=l?i:i+k;
}else{f=l?0:m.length-1;
}var c=m[f];
var d=$telerik.getOuterSize(c);
c.parentNode.removeChild(c);
if(!l){h.insertBefore(c,h.firstChild);
}if(j){h.style.top=(g+(l?d.height:-d.height))+"px";
}else{h.style.left=(n+(l?d.width:-d.width))+"px";
}if(l){h.appendChild(c);
}return c;
},_shuffleFrames:function(){if(!this._initialItemSet&&this.get_enableRandomOrder()){var c=this._itemsElement;
var g=this.getItemHtmlElements();
for(var e=0,d=g.length;
e<d;
e++){var f=Math.ceil(Math.random()*d)-1;
c.appendChild(g[f]);
}}},_loadInitialFrame:function(){var c=this.get_initialItemIndex();
if(!this.isCarousel()&&!this.isCoverFlow()){this._shuffleFrames();
var l=this.get_defaultAnimationDirection();
var e=b.RotatorScrollDirection;
var h=this.isVertical();
var m=this._itemsElement;
var d=$telerik.getOuterSize(m);
var f=$telerik.getContentSize(this._clipElement);
var i=0;
var k=0;
var c=this.get_initialItemIndex();
if(c>=0){if(h){k=(l==e.Up)?0:-d.height+f.height;
}else{i=(l==e.Left)?0:-d.width+f.width;
}}else{if(c==-1){if(h){k=(l==e.Down)?-d.height:f.height;
}else{i=(l==e.Right)?-d.width:f.width;
}}}m.style.left=i+"px";
m.style.top=k+"px";
if(c>0&&!this._initialItemSet){for(var g=0;
g<c;
g++){this._shiftItemInList();
}m.style.left=i+"px";
m.style.top=k+"px";
}}if(!this._initialItemSet&&c>=0){this.raiseEvent("itemShown",new b.RadRotatorEventArgs(this.get_items()[c]));
}this._initialItemSet=true;
},_setImageItems:function(){if(this._imageItems.length>0){return;
}var d={};
if(this._itemWidth){d.width=parseInt(this._itemWidth);
}if(this._itemHeight){d.height=parseInt(this._itemHeight);
}var c=(d.width&&d.height);
var e=[];
a(this.getItemHtmlElements()).each(function(k,f){var j=a.extend({},d);
if(!c){var g=a(f).css("float","left");
j=a.extend($telerik.getContentSize(f),j);
g.css("float","");
}var h=$telerik.getBorderBox(f);
var i=$telerik.getPaddingBox(f);
var l=$telerik.getMarginBox(f);
h.horizontal+=i.horizontal+l.horizontal;
h.vertical+=i.vertical+l.vertical;
e[k]=a.extend(j,{element:f,outerWidth:(j.width+h.horizontal),outerHeight:(j.height+h.vertical)});
});
this._imageItems=e;
},pause:function(){if(this._isPaused){return;
}this._isPaused=true;
if(this._animation&&this._animation.get_isActive()){this._animation.pause();
}},resume:function(){var c=this._animation;
if(!c||!c._isPlaying){if(this._timeoutPassed||!this._isPaused){if(c){c.play(this._timeoutPassed);
}}else{if(this._isPaused){if(c&&c.get_isActive()){c.play();
}}}}this._isPaused=false;
},stop:function(){this._clearAnimationTimeout();
this._canPause=false;
this.pause();
},start:function(){this._canPause=true;
this._isPaused=false;
this.resume();
},isViewportScrollMode:function(){var c=b.RotatorType;
if(this._isRotatorTypeEnabled(c.AutomaticAdvance)||this._isRotatorTypeEnabled(c.ButtonsOver)||this._isRotatorTypeEnabled(c.FromCode)||this._isRotatorTypeEnabled(c.Carousel)||this._isRotatorTypeEnabled(c.CarouselButtons)||this._isRotatorTypeEnabled(c.CoverFlow)||this._isRotatorTypeEnabled(c.CoverFlowButtons)){return false;
}return true;
},_getButtonScrollDirection:function(e){var c=b.RotatorScrollDirection;
var d=c.Left;
switch(e){case this._rightButton:d=c.Left;
break;
case this._leftButton:d=c.Right;
break;
case this._downButton:d=c.Up;
break;
case this._upButton:d=c.Down;
break;
}return d;
},_buttonClicked:function(c){if(!this.get_enabled()){$telerik.cancelRawEvent(c);
return false;
}var d=this._animation;
if(d&&d.get_isPlaying()){d.stop();
}var h=c.target;
if(this._isButtonDisabled(h)||this.get_items().length==0){return;
}var g=new b.RadRotatorButtonEventArgs(h);
this.raiseEvent("buttonClick",g);
if(g.get_cancel()){return;
}var f=this._getButtonScrollDirection(h);
this.set_animationDirection(f);
if(this.isCarousel()||this.isCoverFlow()){this.scrollItem();
}else{this.scrollViewport();
}return $telerik.cancelRawEvent(c);
},_buttonOver:function(d){if(!this.get_enabled()){$telerik.cancelRawEvent(d);
return false;
}var c=d.target;
if(this._isButtonDisabled(c)||this.get_items().length==0){return;
}var g=new b.RadRotatorButtonEventArgs(c);
this.raiseEvent("buttonOver",g);
if(g.get_cancel()){return;
}var f=this._getButtonScrollDirection(c);
this.set_animationDirection(f);
this._stopAnimationButtonOver=false;
this.scrollItem();
return $telerik.cancelRawEvent(d);
},_buttonOut:function(d){if(!this.get_enabled()){$telerik.cancelRawEvent(d);
return false;
}var c=d.target;
if(this._isButtonDisabled(c)){return;
}var g=new b.RadRotatorButtonEventArgs(c);
this.raiseEvent("buttonOut",g);
if(g.get_cancel()){return;
}var f=this._getButtonScrollDirection(c);
this.set_animationDirection(f);
this._stopAnimationButtonOver=true;
return $telerik.cancelRawEvent(d);
},_initializeButtonsRotatorType:function(){var o=this.get_controlButtons();
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);
var m=b.RotatorScrollDirection;
var v=[m.Right,m.Left,m.Down,m.Up];
var f=[this._leftButton,this._rightButton,this._upButton,this._downButton];
var l=[o.LeftButtonID?$get(o.LeftButtonID):null,o.RightButtonID?$get(o.RightButtonID):null,o.UpButtonID?$get(o.UpButtonID):null,o.DownButtonID?$get(o.DownButtonID):null];
var t=[this._rotatorLeftClass,this._rotatorRightClass,this._rotatorUpClass,this._rotatorDownClass];
var e=["marginLeft","marginRight","marginTop","marginBottom"];
var u=["paddingLeft","paddingRight","paddingTop","paddingBottom"];
var c=["width","width","height","height"];
var g=this._relativeWrapper;
var h=this.get_element();
for(var r=0;
r<f.length;
r++){var d=f[r];
var n=(null!=l[r])?l[r]:d;
this._createButton(d,t[r]);
if(this._isScrollDirectionEnabled(v[r])&&null==l[r]){d.style.display="block";
var s=c[r];
var q=parseInt($telerik.getCurrentStyle(d,s));
if(isNaN(q)){q=0;
}g.style[s]=(parseInt(g.style[s])-q)+"px";
h.style[s]=(parseInt(h.style[s])-q)+"px";
h.style[u[r]]=q+"px";
}if(this._isRotatorTypeEnabled(b.RotatorType.Buttons)||this._isRotatorTypeEnabled(b.RotatorType.SlideShowButtons)||this._isRotatorTypeEnabled(b.RotatorType.CarouselButtons)||this._isRotatorTypeEnabled(b.RotatorType.CoverFlowButtons)){$clearHandlers(n);
$addHandlers(n,{click:this._buttonClicked},this);
}else{$clearHandlers(n);
$addHandlers(n,{mouseover:this._buttonOver,mouseout:this._buttonOut},this);
}}this._rightButton=l[1]||this._rightButton;
this._leftButton=l[0]||this._leftButton;
this._downButton=l[3]||this._downButton;
this._upButton=l[2]||this._upButton;
var k=false;
for(var p=0;
p<l.length;
p++){if(l[p]){k=true;
}break;
}return k;
},runSlideShowAnimation:function(){var d=this._itemsElement;
var e=this.get_slideShowAnimationSettings().duration||500;
var f=this.get_slideShowAnimationSettings().type||b.RotatorAnimationType.None;
var c=Function.createDelegate(this,function(){if(!d||!d.parentNode){return;
}var h=(f==b.RotatorAnimationType.CrossFade);
if(h&&a(d).children("li:animated").length>1){return;
}this._canPause=true;
if(f!=b.RotatorAnimationType.None){if(h){a(this.getItemHtmlElements()).css({position:"",visibility:""});
a(d).css("visibility","visible");
}else{a(d).css("opacity","1");
}}var g=this.get_currentItem();
this.raiseEvent("itemShown",new b.RadRotatorEventArgs(g));
if(!this.get_pauseOnMouseOver()||(!this._isMouseOverClipElement)){if(this.isAutomaticAdvance()){var i=this.get_frameDuration();
if(i>=0){this._setAnimationTimeout(i);
}}}});
switch(f){case b.RotatorAnimationType.Fade:this._canPause=false;
a(d).css("opacity","0").fadeTo(e,1,c);
break;
case b.RotatorAnimationType.Pulse:this._canPause=false;
a(d).fadeTo(e,0).fadeTo(e,1,c);
break;
case b.RotatorAnimationType.CrossFade:this._canPause=false;
this._runCrossFadeSlideShowAnimation(e,c);
break;
default:c();
break;
}},_runCrossFadeSlideShowAnimation:function(g,e){var f=this._itemsElement;
var p=(-1)*parseInt(f.style.top)+"px";
var j=(-1)*parseInt(f.style.left)+"px";
var h=this.getItemHtmlElements();
var n=this._getCurrentItemIndex();
if(n>=h.length){return;
}var k=this._getVarSizeAttribute();
var i=$telerik.getOuterSize(h[n])[k];
var l=parseInt($telerik.getContentSize(this._clipElement)[k]/i);
var m=n-(this.isScrollingForward()?1:-1)*l;
if(m>=0&&m<h.length){var o=a(h[m]).css({left:j,top:p});
var d=a(h[n]).css({left:j,top:p});
var c=this.get_vertical();
while(--l){if(c){p=(parseInt(p)+i+"px");
}else{j=(parseInt(j)+i+"px");
}if(++m<h.length){o=o.add(a(h[m]).css({left:j,top:p}));
}if(++n<h.length){d=d.add(a(h[n]).css({left:j,top:p}));
}}o.fadeTo(g,0,e);
d.fadeTo(g,1,e);
}},_getVarSizeAttribute:function(c){return(this.get_vertical()?"height":"width");
},_hasViewportWidth:function(i){if(null==i){i=this.get_animationDirection();
}var k=this._itemsElement;
var j=this._clipElement;
var g=parseInt(k.style.left);
var f=parseInt(k.style.top);
var c=$telerik.getOuterSize(k);
var d=$telerik.getContentSize(j);
var e=false;
var h=b.RotatorScrollDirection;
switch(i){case h.Left:e=c.width+g<d.width*2;
break;
case h.Up:e=c.height+f<d.height*2;
break;
case h.Right:e=(g*-1<d.width);
break;
case h.Down:e=(f*-1<d.height);
break;
}return !e;
},stopViewportAnimation:function(){var d=this._animation;
if(!d){return;
}if(d.get_isPlaying()){d.stop();
var c=this.get_vertical();
var e=c?d.get_vertical():d.get_horizontal();
if(null!=e){this._itemsElement.style[c?"top":"left"]=e+"px";
}}},_getViewPortPixelsToScroll:function(){var e=this.get_vertical();
var c=$telerik.getContentSize(this._clipElement);
var d=e?c.height:c.width;
return d;
},showNext:function(c){this.set_animationDirection(c?c:b.RotatorScrollDirection.Left);
if(!this._checkItemsSize()&&!this.isCarousel()&&!this.isCoverFlow()&&(!this._isLODEnabled||this._lastLODRequestPassed)){return;
}if(this.isViewportScrollMode()){this.scrollViewport();
}else{this.scrollItem();
}},getItemHtmlElements:function(){var d=this._itemsElement;
if(!this._hasCleanedList){var c=d.childNodes;
for(var e=0;
e<c.length;
e++){var f=c[e];
if(f&&f.tagName!="LI"){d.removeChild(f);
e--;
}}this._hasCleanedList=true;
}return d.childNodes;
},_setAnimationTimeout:function(c){this._clearAnimationTimeout();
this._currentAnimationTimeout=window.setTimeout(Function.createDelegate(this,function(){if(!this._isPaused){this.resume();
}this._timeoutPassed=true;
}),c);
},_clearAnimationTimeout:function(){if(this._currentAnimationTimeout){window.clearTimeout(this._currentAnimationTimeout);
}this._currentAnimationTimeout=0;
this._timeoutPassed=false;
},isAutomaticAdvance:function(){var c=b.RotatorType;
if(this._isRotatorTypeEnabled(c.AutomaticAdvance)||this._isRotatorTypeEnabled(c.SlideShow)||this._isRotatorTypeEnabled(c.Carousel)||this._isRotatorTypeEnabled(c.CoverFlow)){return true;
}return false;
},isCarousel:function(){var c=b.RotatorType;
if(this._isRotatorTypeEnabled(c.Carousel)||this._isRotatorTypeEnabled(c.CarouselButtons)){return true;
}return false;
},isCoverFlow:function(){var c=b.RotatorType;
if(this._isRotatorTypeEnabled(c.CoverFlow)||this._isRotatorTypeEnabled(c.CoverFlowButtons)){return true;
}return false;
},isSlideShow:function(){var c=b.RotatorType;
if(this._isRotatorTypeEnabled(c.SlideShow)||this._isRotatorTypeEnabled(c.SlideShowButtons)){return true;
}return false;
},isScrollingForward:function(){return this.isScrollingLeft()||this.isScrollingUp();
},isScrollingLeft:function(){return this._isAnimationDirectionOn(b.RotatorScrollDirection.Left);
},isScrollingUp:function(){return this._isAnimationDirectionOn(b.RotatorScrollDirection.Up);
},_isAnimationDirectionOn:function(c){return c==this.get_animationDirection()?true:false;
},_enableDisableButtons:function(){var d=this.get_rotatorType();
if(d==b.RotatorType.AutomaticAdvance||d==b.RotatorType.Carousel||d==b.RotatorType.CoverFlow){return;
}var h=this.get_wrapFrames();
var f=this.isCarousel();
var g=this.isCoverFlow();
var c=(h&&!g)||f;
var e=b.RotatorScrollDirection;
this._enableButton(this._rightButton,c||this._canSlideMore(e.Left));
this._enableButton(this._leftButton,c||this._canSlideMore(e.Right));
this._enableButton(this._downButton,c||this._canSlideMore(e.Up));
this._enableButton(this._upButton,c||this._canSlideMore(e.Down));
},_enableDisableAllButtonsUnconditionally:function(c){this._enableButton(this._rightButton,c);
this._enableButton(this._leftButton,c);
this._enableButton(this._downButton,c);
this._enableButton(this._upButton,c);
},_enableButton:function(c,d){if(!c){return;
}if(d){Sys.UI.DomElement.removeCssClass(c,this._rotatorButtonDisabledClass);
c.removeAttribute("disabled");
}else{Sys.UI.DomElement.addCssClass(c,this._rotatorButtonDisabledClass);
c.setAttribute("disabled","disabled");
}},_canSlideMore:function(j){if(null==j){j=this.get_animationDirection();
}var e=false;
var m=b.RotatorScrollDirection;
if(this.isCoverFlow()){var o=this._getCurrentItemIndex();
var i=this._getScrollAnimationOptions().coverFlowDirection;
var l=(j==m.Right||j==m.Down);
var n=(j==m.Left||j==m.Up);
if((l&&i==1)||(n&&i==-1)){e=o>0;
}else{if((n&&i==1)||(l&&i==-1)){e=o<this.getItemHtmlElements().length-1;
}}}else{var g=this._itemsElement;
var h=this._clipElement;
var c=parseInt(g.style.left);
var k=parseInt(g.style.top);
var d=$telerik.getBounds(g);
var f=$telerik.getBounds(h);
if(j==m.Left){e=(d.width+c)>f.width;
}else{if(j==m.Up){e=(d.height+k)>f.height;
}else{if(j==m.Right){e=(c<0);
}else{if(j==m.Down){e=(k<0);
}}}}}return e;
},_getCalculatedAnimationDirection:function(){var e=this.get_animationDirection();
var d=b.RotatorScrollDirection;
var c=23;
switch(e){case d.Left:c=21;
break;
case d.Down:c=32;
break;
case d.Up:c=12;
break;
default:c=23;
}return c;
},startAutoPlay:function(){if(this._rotatorDisposed){return;
}this._loadInitialFrame();
if((this.isCarousel()||this.isCoverFlow())&&!this._automaticAdvanceStarted){this._automaticAdvanceStarted=true;
return;
}this.showNext(this.get_defaultAnimationDirection());
},get_defaultAnimationDirection:function(){var d=b.RotatorScrollDirection;
var c=0;
if(this._isScrollDirectionEnabled(d.Left)){c=d.Left;
}else{if(this._isScrollDirectionEnabled(d.Up)){c=d.Up;
}else{if(this._isScrollDirectionEnabled(d.Right)){c=d.Right;
}else{if(this._isScrollDirectionEnabled(d.Down)){c=d.Down;
}}}}if(!c){c=d.Left;
}return c;
},get_containerElement:function(){return this._itemsElement;
},_setChildElements:function(){this._rotatorListClass="rrItemsList";
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();
this._relativeWrapper=$telerik.getElementByClassName(this._rootElement,this._rotatorRelativeWrapperClass);
this._clipElement=$telerik.getElementByClassName(this._rootElement,this._rotatorClipRegionClass);
this._itemsElement=$telerik.getElementByClassName(this._rootElement,this._rotatorListClass);
},_createUI:function(){if(!this.isVisible()){return;
}var l=this.get_element();
var f=this._relativeWrapper;
if(!l){return;
}if(!this._isCreated){this._fixRootElementSize();
f.style.height=l.offsetHeight+"px";
f.style.width=l.offsetWidth+"px";
var h=true;
if(this._isRotatorTypeEnabled(b.RotatorType.Buttons)||this._isRotatorTypeEnabled(b.RotatorType.ButtonsOver)||this._isRotatorTypeEnabled(b.RotatorType.SlideShowButtons)||this._isRotatorTypeEnabled(b.RotatorType.CarouselButtons)||this._isRotatorTypeEnabled(b.RotatorType.CoverFlowButtons)){h=this._initializeButtonsRotatorType();
}if(h){Sys.UI.DomElement.addCssClass(l,"rrNoBorder");
}this._isCreated=true;
}if(this.get_vertical()){this.set_vertical(true);
}f.style.overflow="auto";
var c=this._clipElement;
c.style.overflow="auto";
var j=this._itemsElement;
if(this._isLODEnabled){j.style.width="";
j.style.height="";
}var k=10000;
try{k=1000+j.offsetWidth*$telerik.getChildrenByTagName(j,"li").length;
}catch(g){k=10000;
}c.style.width=Math.max(k,10000)+"px";
c.style.height="10000px";
var k=f.style.width;
var i=f.style.height;
var d=this.isCarousel()||this.isCoverFlow();
if(d){this._setImageItemsSize(parseInt(k),parseInt(i),true);
}j.style.width=d?k:(this.get_vertical()?f.style.width:j.offsetWidth+"px");
j.style.height=d?i:(j.offsetHeight+"px");
f.style.overflow="";
c.style.width=k;
c.style.height=i;
c.style.overflow="hidden";
c.style.position="relative";
j.style.position="relative";
l.style.visibility="visible";
},_setImageItemsSize:function(j,k,c){var f=(this._imageItems.length>0);
var l=this._itemsElement;
var h=(this._itemWidth&&this._itemHeight);
var d=this._toCreateReflection(j,k);
if((!f&&!h)||d){var o=a(l).find("img");
if(!h&&o.length==0){return;
}for(var m=0,g=o.length;
m<g;
m++){var e=o[m];
if(this._pendingImage&&this._pendingImage===e&&this._imageOnLoadDelegate){$telerik.removeExternalHandler(e,"load",this._imageOnLoadDelegate);
this._pendingImage=null;
this._imageOnLoadDelegate=null;
}else{if((e.width===undefined)||((e.complete!==undefined)&&!e.complete)){this._pendingImage=e;
this._imageOnLoadDelegate=Function.createDelegate(this,function(){this._setImageItemsSize(j,k,!h);
});
$telerik.addExternalHandler(e,"load",this._imageOnLoadDelegate);
e.src=e.src;
if(!h||!c){return;
}else{break;
}}}}}if(!f&&c){this._shuffleFrames();
this._setImageItems();
if(this.isCarousel()){this._changeCarouselAngleByIndex(this.get_initialItemIndex(),true,j,k);
}else{this._changeCoverFlowIndexByIndex(this.get_initialItemIndex(),j,k);
}var n=this.getItemHtmlElements();
a(n).children("div").css({width:"100%",height:"100%"}).children("img").css({width:"100%",height:"100%"});
}if(!this._pendingImage){this._createReflection(j,k);
}if(!f&&c){this._startAutomaticAdvance();
}},_fixRootElementSize:function(){var d=this.get_element();
if(!d){return;
}var c=b.RotatorScrollDirection;
var e=parseInt(d.style.paddingLeft);
if(e&&!isNaN(e)&&this._isScrollDirectionEnabled(c.Left)){d.style.width=(parseInt(d.style.width)+e)+"px";
d.style.paddingLeft="";
}e=parseInt(d.style.paddingRight);
if(e&&!isNaN(e)&&this._isScrollDirectionEnabled(c.Right)){d.style.width=(parseInt(d.style.width)+e)+"px";
d.style.paddingRight="";
}e=parseInt(d.style.paddingTop);
if(e&&!isNaN(e)&&this._isScrollDirectionEnabled(c.Up)){d.style.height=(parseInt(d.style.height)+e)+"px";
d.style.paddingTop="";
}e=parseInt(d.style.paddingBottom);
if(e&&!isNaN(e)&&this._isScrollDirectionEnabled(c.Down)){d.style.height=(parseInt(d.style.height)+e)+"px";
d.style.paddingBottom="";
}},_toCreateReflection:function(d,c){var e=this._getScrollAnimationOptions(d,c);
return(!this.isVertical()&&(this.isCoverFlow()||this.isCarousel())&&e.reflectionHeight>0&&e.reflectionOpacity>0);
},_createReflection:function(j,k){var l=this._imageItems;
if(!l||l.length==0||l[0].reflection||!this._toCreateReflection(j,k)){return;
}var h=this._getScrollAnimationOptions(j,k);
var e=h.reflectionHeight;
e=h.reflectionHeight=(e>1)?1:e;
var n=h.reflectionOpacity;
n=h.reflectionOpacity=(n>1)?1:n;
var m=e;
var d=(e<=0.5)?0:(e-0.5);
var f=h.matrix;
var c=b.RadRotatorAnimation.get_scrollAnimationProperties(this.get_id());
var g=(f!=null&&("filter"==this._getTransformProperty())&&!(f.m11==1&&f.m22==1&&f.m12==0&&f.m21==0))||(c&&c.opacity!=null&&!a.support.opacity);
a.each(l,function(v,u){var q=this.element;
var w=q.getElementsByTagName("img");
w=(w&&w.length>0)?w[0]:null;
var r={width:"100%",height:"100%"};
if(w&&!this.reflection){var p=document.createElement("canvas");
if(p.getContext){p.height=this.height;
p.width=this.width;
q.appendChild(p);
var t=p.getContext("2d");
t.save();
t.globalAlpha=n;
t.translate(0,this.height);
t.scale(1,-1);
t.drawImage(w,0,0,this.width,this.height);
t.restore();
t.globalCompositeOperation="destination-in";
var o=t.createLinearGradient(0,0,0,this.height);
o.addColorStop(0,"rgba(255, 255, 255, "+m+")");
o.addColorStop((e>=0.5)?1:2*e,"rgba(255, 255, 255, "+d+")");
t.fillStyle=o;
t.rect(0,0,this.width,this.height);
t.fill();
this.reflection=p;
}else{var s=a(w).clone(false).appendTo(q);
if($telerik.isIE){s.css({filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1) progid:DXImageTransform.Microsoft.Alpha(opacity="+m*n*100+", style=1, finishOpacity="+d*n*100+", startx=0, starty=0, finishx=0, finishy="+this.height*((e>=0.5)?1:2*e)+")"});
}this.reflection=s[0];
if(g){a(q).children("div").css({height:"50%"});
r.height="50%";
}}a(this.reflection).css(r);
}});
var i=this._animation;
if(g&&(!i||!i.get_isPlaying())){if(this.isCoverFlow()){this._changeCoverFlowIndexByIndex(this._getCurrentItemIndex(),j,k);
}else{if(this.isCarousel()){this._changeCarouselAngleByIndex(this._getCurrentItemIndex(),false,j,k);
}}}},_createButton:function(c,e){var d=c;
if(!d){d=document.createElement("div");
}if(!d.className){d.className=this._rotatorDownClass;
}return d;
},_isButtonDisabled:function(c){if(!c){return true;
}return Sys.UI.DomElement.containsCssClass(c,this._rotatorButtonDisabledClass);
},_isScrollDirectionEnabled:function(c){return c&this.get_scrollDirection()?true:false;
},_isRotatorTypeEnabled:function(c){return c==this.get_rotatorType()?true:false;
},get_scrollDuration:function(){if(this.isSlideShow()){return 1;
}else{return this._scrollDuration;
}},set_scrollDuration:function(c){this._scrollDuration=c;
if(this._animation){this._animation.set_duration(this.get_scrollDuration());
}},set_vertical:function(c){var d=this._itemsElement;
if(d){Sys.UI.DomElement.addCssClass(d,this._rotatorVerticalClass);
}},get_vertical:function(){var c=b.RotatorScrollDirection;
return(this._isScrollDirectionEnabled(c.Down)||this._isScrollDirectionEnabled(c.Up));
},isVertical:function(){if(this._itemsElement){return Sys.UI.DomElement.containsCssClass(this._itemsElement,this._rotatorVerticalClass);
}return false;
},get_height:function(){return this.get_element().style.height;
},set_height:function(c){this.get_element().style.height=this._toStyleComplientValue(c);
if(this.isVisible()){this.repaint();
}},get_width:function(){return this.get_element().style.width;
},set_width:function(c){this.get_element().style.width=this._toStyleComplientValue(c);
if(this.isVisible()){this.repaint();
}},_toStyleComplientValue:function(c){return isNaN(c)?c:c+"px";
},_attachEvents:function(c){var d=this.get_containerElement();
if(null==d){return;
}if(c!=false){this._clickDelegate=Function.createDelegate(this,this._mouseClickHandler);
this._mouseOutDelegate=Function.createDelegate(this,this._mouseOutHandler);
this._mouseOverDelegate=Function.createDelegate(this,this._mouseOverHandler);
this._itemShownDelegate=Function.createDelegate(this,this._itemShownHandler);
$addHandler(d,"mouseover",this._mouseOverDelegate);
$addHandler(d,"mouseout",this._mouseOutDelegate);
$addHandler(d,"click",this._clickDelegate);
this.add_itemShown(this._itemShownDelegate);
if($telerik.isSafari){this._documentClickDelegate=Function.createDelegate(this,this._documentClickHandler);
this._keyDownDelegate=Function.createDelegate(this,this._keyDownHandler);
$addHandler(document,"click",this._documentClickDelegate);
$addHandler(document,"keydown",this._keyDownDelegate);
}}else{$removeHandler(d,"mouseover",this._mouseOverDelegate);
$removeHandler(d,"mouseout",this._mouseOutDelegate);
$removeHandler(d,"click",this._clickDelegate);
this._clickDelegate=null;
this._mouseOutDelegate=null;
this._mouseOverDelegate=null;
this.remove_itemShown(this._itemShownDelegate);
if($telerik.isSafari){$removeHandler(document,"click",this._documentClickDelegate);
$removeHandler(document,"keydown",this._keyDownDelegate);
}}},_documentClickHandler:function(c){if(this._itemClickedChanged){this._itemClickedChanged=false;
}else{if(this._itemClicked){this._itemClicked=false;
}}},_keyDownHandler:function(c){if(this._itemClicked){return $telerik.cancelRawEvent(c.rawEvent);
}},_itemShownHandler:function(f){if(typeof(b.RadTicker)=="undefined"){return;
}var d=this.get_items();
for(var e=0,g=d.length;
e<g;
e++){var c=d[e];
if(this._isItemVisible(c)){this._fireTickersForItem(c);
}else{this._resetTickersForItem(c);
}}},_mouseOverHandler:function(d){if(this._isMouseOverClipElement){return;
}this._isMouseOverClipElement=true;
if(this.isAutomaticAdvance()&&this._canPause&&this.get_pauseOnMouseOver()){this.pause();
}var c=this._getItemFromEvent(d.target);
if(null!=c){this.raiseEvent("mouseOver",new b.RadRotatorEventArgs(c));
}},_mouseOutHandler:function(d){if($telerik.isMouseOverElementEx(this._clipElement,d.rawEvent)){return;
}this._isMouseOverClipElement=false;
if(this.isAutomaticAdvance()&&this._canPause&&this.get_pauseOnMouseOver()){this.resume();
}var c=this._getItemFromEvent(d.target);
if(null!=c){this.raiseEvent("mouseOut",new b.RadRotatorEventArgs(c));
}return false;
},_mouseClickHandler:function(d){this._raiseItemClickedFlags();
if(!this.get_enabled()){$telerik.cancelRawEvent(d.rawEvent);
return false;
}var c=this._getItemFromEvent(d.target);
if(null!=c){var e=new b.RadRotatorCancelEventArgs(c);
this.raiseEvent("itemClicking",e);
if(e.get_cancel&&e.get_cancel()){$telerik.cancelRawEvent(d.rawEvent);
return false;
}window.setTimeout(Function.createDelegate(this,function(){this.raiseEvent("itemClicked",new b.RadRotatorEventArgs(c));
this._postback(c.getServerIndex());
}),0);
}},_raiseItemClickedFlags:function(){this._itemClicked=true;
this._itemClickedChanged=true;
},_postback:function(d){if(!this._postBackReference){return;
}var c=this._postBackReference.replace("arguments",d);
eval(c);
},_isItemVisible:function(e){var h=$telerik.getContentSize(this._clipElement);
var d=$telerik.getLocation(this._clipElement);
h.x=d.x;
h.y=d.y;
var c=$telerik.getOuterSize(e.get_element());
d=$telerik.getLocation(e.get_element());
c.x=d.x;
c.y=d.y;
var f=($telerik.containsPoint(h,c.x,c.y)&&$telerik.containsPoint(h,c.x+c.width,c.y+c.height));
var g=($telerik.containsPoint(c,h.x,h.y)&&$telerik.containsPoint(c,h.x+h.width,h.y+h.height));
return f||g;
},_fireTickersForItem:function(c){var f=c.get_tickers();
for(var d=0,e=f.length;
d<e;
d++){if(f[d]){var g=$find(f[d]);
if(g){g.startTicker();
}}}},_resetTickersForItem:function(c){var f=c.get_tickers();
for(var d=0,e=f.length;
d<e;
d++){if(f[d]){var g=$find(f[d]);
if(g){g.resetTicker();
}}}},_getItemFromEvent:function(c){var e=this.get_containerElement();
var d=null;
while(null!=c&&c!=e&&c!=document){if(c.tagName.toLowerCase()=="li"&&null!=c._item&&Object.getTypeName(c._item)=="Telerik.Web.UI.RadRotatorItem"){d=c._item;
}c=c.parentNode;
}return d;
},_initializeWebServiceLoader:function(){this._webServiceLoader=new b.WebServiceLoader(this.get_webServiceSettings());
this._webServiceLoader.add_loadingStarted(Function.createDelegate(this,this._onItemLoadingStarted));
this._webServiceLoader.add_loadingSuccess(Function.createDelegate(this,this._onItemLoadingSuccess));
this._webServiceLoader.add_loadingError(Function.createDelegate(this,this._onItemLoadingError));
},_loadChildrenFromWebService:function(c){if(!this._webServiceLoader){this._initializeWebServiceLoader();
}var e=new Sys.CancelEventArgs();
e._argument=null;
e.get_argument=function(){return this._argument;
};
e.set_argument=function(f){this._argument=f;
};
this.raiseEvent("itemsRequesting",e);
if(e.get_cancel()){return;
}var d={itemIndex:c,argument:e.get_argument()};
this._webServiceLoader.loadData(d);
},showLoadingSign:function(f){if(!this._loadingSign){var d=this._clipElement;
var e=document.createElement("div");
d.appendChild(e);
var c=e.style;
c.width="16px";
c.height="16px";
c.position="absolute";
c.left=Math.round(d.offsetWidth/2)-8+"px";
c.top=Math.round(d.offsetHeight/2)-8+"px";
Sys.UI.DomElement.addCssClass(e,"rrLoadingSign");
this._loadingSign=e;
}if(f){this._loadingSign.style.display="";
}else{this._loadingSign.style.display="none";
}},_onItemLoadingStarted:function(c,d){this._enableDisableAllButtonsUnconditionally(false);
this.showLoadingSign(true);
},_onItemLoadingSuccess:function(h,d){var j=d.get_data();
var e=this._itemsElement;
var c=e.children.length;
if(!this._firstLODRequestPassed&&c>0){e.innerHTML="";
var f=e.firstChild;
if(f&&e.removeChild){e.removeChild(f);
}}if(j&&j.length>0){for(var g=0;
g<j.length;
g++){this.addRotatorItem(j[g],c);
if(!this.isScrollingForward()){this._shiftItemInList();
}}this.repaint();
if(!this._firstLODRequestPassed){this._firstLODRequestPassed=true;
this._loadInitialFrame();
this._enableDisableAllButtonsUnconditionally(true);
this.raiseEvent("itemsRequested",Sys.EventArgs.Empty);
this._startAutomaticAdvance();
}else{this._enableDisableButtons();
this.raiseEvent("itemsRequested",Sys.EventArgs.Empty);
}}else{this._lastLODRequestPassed=true;
this._enableDisableButtons();
}this.showLoadingSign(false);
this._noActiveLODRequest=true;
if(this._animation&&!this._isRotatorTypeEnabled(b.RotatorType.ButtonsOver)){this._animation.play();
}},_onItemLoadingError:function(c,f){var e=f.get_message();
if(!e){e="No error data available";
}var d=new Telerik.Web.UI.RadRotatorErrorEventArgs(e);
this.raiseEvent("itemsRequestFailed",d);
if(!d.get_cancelErrorAlert()){alert("RadRotator items request failed :\n Exception="+e);
}this.showLoadingSign(false);
this._lastLODRequestPassed=true;
this._noActiveLODRequest=true;
this._enableDisableButtons();
if(this._animation&&!this._isRotatorTypeEnabled(b.RotatorType.ButtonsOver)){this._animation.play();
}},addRotatorItem:function(g,e){if(e<0){return;
}var h=this.get_containerElement();
var d=h.ownerDocument.createElement("li");
if(this._itemWidth){d.style.width=parseInt(this._itemWidth)+"px";
}if(this._itemHeight){d.style.height=parseInt(this._itemHeight)+"px";
}d.innerHTML=g.Html;
var f={cssClass:g.CssClass,visible:g.Visible};
var c=$create(b.RadRotatorItem,f,null,null,d);
d._item=c;
if(e>=h.children.length||e==null||this._isLODEnabled){h.appendChild(d);
Array.add(this.get_items(),c);
}else{h.insertBefore(d,h.childNodes[e]);
Array.insert(this.get_items(),e,c);
}if(!this._isLODEnabled){h.style.width="";
h.style.height="";
this.repaint();
}},_doLoadOnDemand:function(c){var d=this._loadNextFrame();
if(this._isLODEnabled&&this._noActiveLODRequest&&d){this._animation.stop();
c.set_cancel(true);
this._noActiveLODRequest=false;
this._enableDisableAllButtonsUnconditionally(false);
this._loadChildrenFromWebService(d);
return false;
}},_loadNextFrame:function(){var f=this._getCurrentItemIndex();
var e=this._getVisibleItemsCount();
var c=this.get_items().length;
var d=null;
var g=this.isScrollingForward()?f+e:f-1;
if(this.isViewportScrollMode()){g=this.isScrollingForward()?g+e-1:g-e+1;
}if(this._isLODEnabled&&!this.get_items()[g]){if(!this._lastLODRequestPassed){d=c;
}}return d;
},isVisible:function(){return($telerik.getInvisibleParent(this.get_element())==null);
},_fixVisibilityProblems:function(c){if(c){var d=$telerik.getInvisibleParent(this.get_element());
if(d){this._onParentVisibilityChangeDelegate=Function.createDelegate(this,this._onParentVisibilityChange);
this._invisibleParent=d;
if($telerik.isIE){$telerik.addHandler(this._invisibleParent,"propertychange",this._onParentVisibilityChangeDelegate);
}else{this._invisibleParent.addEventListener("DOMAttrModified",this._onParentVisibilityChangeDelegate,false);
}}}else{if(this._invisibleParent&&this._onParentVisibilityChangeDelegate){if($telerik.isIE){$telerik.removeHandler(this._invisibleParent,"propertychange",this._onParentVisibilityChangeDelegate);
}else{this._invisibleParent.removeEventListener("DOMAttrModified",this._onParentVisibilityChangeDelegate,false);
}this._onParentVisibilityChangeDelegate=null;
this._invisibleParent=null;
}}},_onParentVisibilityChange:function(d){if($telerik.isIE){d=d.rawEvent;
if(!d){return;
}if(d.propertyName=="style.display"||d.propertyName=="className"){var f=$telerik.getCurrentStyle(this._invisibleParent,"display");
if(f!="none"){this.repaint();
}}}else{if(d.attrName=="style"||d.attrName=="class"){var c=d.target;
if((d.currentTarget==d.originalTarget)&&"none"!=$telerik.getCurrentStyle(c,"display")){window.setTimeout(Function.createDelegate(this,function(){this.repaint();
}),0);
}}}this._fixVisibilityProblems(false);
},repaint:function(){this._createUI();
this._enableDisableButtons();
if(!this._animation){this._startAutomaticAdvance();
}},get_webServiceSettings:function(){return this._webServiceSettings;
},set_webServiceSettings:function(c){var d=Sys.Serialization.JavaScriptSerializer.deserialize(c);
this._webServiceSettings=new b.WebServiceSettings(d);
},get_enabled:function(){return this._enabled;
},set_enabled:function(c){if(c!=this._enabled){this._enabled=c;
if(this.get_isInitialized()){if(c){this.start();
}else{this.stop();
}}}}};
a.registerControlProperties(b.RadRotator,{skin:"Default",pauseOnMouseOver:true,items:null,rotatorType:b.RotatorType.AutomaticAdvance,wrapFrames:true,scrollDirection:b.RotatorScrollDirection.Left+b.RotatorScrollDirection.Right,frameDuration:2000,controlButtons:{},initialItemIndex:0,slideShowAnimationSettings:{},animationDirection:b.RotatorScrollDirection.Left,enableRandomOrder:false});
a.registerControlEvents(b.RadRotator,["itemClicking","itemClicked","mouseOver","mouseOut","itemShowing","itemShown","load","buttonOver","buttonOut","buttonClick","itemsRequested","itemsRequestFailed","itemsRequesting"]);
b.RadRotator.registerClass("Telerik.Web.UI.RadRotator",b.RadWebControl);
b.RadRotatorEventArgs=function(c){b.RadRotatorEventArgs.initializeBase(this);
this._item=c;
};
b.RadRotatorEventArgs.prototype={get_item:function(){return this._item;
}};
b.RadRotatorEventArgs.registerClass("Telerik.Web.UI.RadRotatorEventArgs",Sys.EventArgs);
b.RadRotatorCancelEventArgs=function(c){b.RadRotatorCancelEventArgs.initializeBase(this);
this._item=c;
};
b.RadRotatorCancelEventArgs.prototype={get_item:function(){return this._item;
}};
b.RadRotatorCancelEventArgs.registerClass("Telerik.Web.UI.RadRotatorCancelEventArgs",Sys.CancelEventArgs);
b.RadRotatorButtonEventArgs=function(c){b.RadRotatorButtonEventArgs.initializeBase(this);
this._button=c;
};
b.RadRotatorButtonEventArgs.prototype={get_button:function(){return this._button;
}};
b.RadRotatorButtonEventArgs.registerClass("Telerik.Web.UI.RadRotatorButtonEventArgs",Sys.CancelEventArgs);
b.RadRotatorErrorEventArgs=function(c){b.RadRotatorErrorEventArgs.initializeBase(this);
this._cancelErrorAlert=false;
this._errorMessage=c;
};
b.RadRotatorErrorEventArgs.prototype={get_errorMessage:function(){return this._errorMessage;
},get_cancelErrorAlert:function(){return this._cancelErrorAlert;
},set_cancelErrorAlert:function(c){this._cancelErrorAlert=c;
}};
b.RadRotatorErrorEventArgs.registerClass("Telerik.Web.UI.RadRotatorErrorEventArgs",Sys.EventArgs);
b.RadRotatorItem=function(c){b.RadRotatorItem.initializeBase(this,[c]);
this._visible=null;
this._cssClass=null;
this._index=-1;
};
b.RadRotatorItem.prototype={initialize:function(){b.RadRotatorItem.callBaseMethod(this,"initialize");
this._tickers=null;
},dispose:function(){b.RadRotatorItem.callBaseMethod(this,"dispose");
},get_index:function(){if(this._index==-1){var d=0;
var c=this.get_element();
var e=c.parentNode;
if(null!=e){var f=$telerik.getChildrenByTagName(e,"li");
if(null!=f){for(d=0;
d<f.length&&f[d]!=c;
d++){}if(d==f.length){d=0;
}}}this._index=d;
}return this._index;
},getServerIndex:function(){var d=$telerik.$(this.get_element());
var c=d.children("div")[0].id.match(/_i(\d+)$/);
if(c){return parseInt(c[1]);
}else{return this.get_index();
}},get_visible:function(){return this._visible;
},set_visible:function(c){this._visible=c;
},get_cssClass:function(){return this._cssClass;
},set_cssClass:function(c){this._cssClass=c;
},get_tickers:function(){if(null==this._tickers&&typeof(b.RadTicker)!="undefined"){this._tickers=[];
for(var c=0,d=$telerik.radControls.length;
c<d;
c++){var e=$telerik.radControls[c];
if(b.RadTicker.isInstanceOfType(e)&&$telerik.isDescendant(this.get_element(),e.get_element())){Array.add(this._tickers,e.get_id());
}}}return this._tickers;
}};
b.RadRotatorItem.registerClass("Telerik.Web.UI.RadRotatorItem",Sys.UI.Control);
b.RadRotatorAnimationClass=function(){this._scrollAnimations={};
};
b.RadRotatorAnimationClass.prototype={get_scrollAnimationProperties:function(c){if(!c||!this._scrollAnimations[c]){return null;
}return this._scrollAnimations[c].properties;
},set_scrollAnimationProperties:function(e,c){if(!e){return;
}var d=this._scrollAnimations;
if(!d[e]){d[e]={};
}if(typeof(c)=="undefined"||c==null){delete d[e].properties;
}else{d[e].properties=c;
}},get_scrollAnimationOptions:function(e){if(!e){return null;
}var d=this._scrollAnimations;
var c=d[e]?d[e].options:{};
c=a.extend({},{xR:this.get_xRadius(e),yR:this.get_yRadius(e),xO:this.get_xCenter(e),yO:this.get_yCenter(e),minScale:this.get_minimumScale(e),xItemSpacing:this.get_xItemSpacing(e),yItemSpacing:this.get_yItemSpacing(e),selectedItemOffsetX:this.get_selectedItemOffsetX(e),selectedItemOffsetY:this.get_selectedItemOffsetY(e),matrix:this.get_matrix(e),reflectionHeight:this.get_reflectionHeight(e),reflectionOpacity:this.get_reflectionOpacity(e),coverFlowDirection:this.get_coverFlowDirection(e)},c);
return c;
},set_scrollAnimationOptions:function(d,e){if(!d){return;
}var c=this._scrollAnimations;
if(!c[d]){c[d]={};
}if(typeof(e)=="undefined"||e==null){delete c[d].options;
}var e=a.extend({},this.get_scrollAnimationOptions(),e);
c[d].options=e;
},get_xRadius:function(c){return this._getScrollAnimationOption(c,"xR");
},set_xRadius:function(c,d){this._setScrollAnimationOption(c,"xR",d);
},get_yRadius:function(c){return this._getScrollAnimationOption(c,"yR");
},set_yRadius:function(c,d){this._setScrollAnimationOption(c,"yR",d);
},get_xCenter:function(c){return this._getScrollAnimationOption(c,"xO");
},set_xCenter:function(c,d){this._setScrollAnimationOption(c,"xO",d);
},get_yCenter:function(c){return this._getScrollAnimationOption(c,"yO");
},set_yCenter:function(c,d){this._setScrollAnimationOption(c,"yO",d);
},get_minimumScale:function(c){return this._getScrollAnimationOption(c,"minScale");
},set_minimumScale:function(c,d){this._setScrollAnimationOption(c,"minScale",d);
},get_xItemSpacing:function(c){return this._getScrollAnimationOption(c,"xItemSpacing");
},set_xItemSpacing:function(c,d){this._setScrollAnimationOption(c,"xItemSpacing",d);
},get_yItemSpacing:function(c){return this._getScrollAnimationOption(c,"yItemSpacing");
},set_yItemSpacing:function(c,d){this._setScrollAnimationOption(c,"yItemSpacing",d);
},get_selectedItemOffsetX:function(c){return this._getScrollAnimationOption(c,"selectedItemOffsetX");
},set_selectedItemOffsetX:function(c,d){this._setScrollAnimationOption(c,"selectedItemOffsetX",d);
},get_selectedItemOffsetY:function(c){return this._getScrollAnimationOption(c,"selectedItemOffsetY");
},set_selectedItemOffsetY:function(c,d){this._setScrollAnimationOption(c,"selectedItemOffsetY",d);
},get_matrix:function(c){var d=this._getScrollAnimationOption(c,"matrix");
d=a.extend({},{m11:Number.NaN,m12:Number.NaN,m21:Number.NaN,m22:Number.NaN},d);
return d;
},set_matrix:function(c,d){this._setScrollAnimationOption(c,"matrix",d);
},get_reflectionHeight:function(c){return this._getScrollAnimationOption(c,"reflectionHeight");
},set_reflectionHeight:function(c,d){this._setScrollAnimationOption(c,"reflectionHeight",d);
},get_reflectionOpacity:function(c){return this._getScrollAnimationOption(c,"reflectionOpacity");
},set_reflectionOpacity:function(c,d){this._setScrollAnimationOption(c,"reflectionOpacity",d);
},get_coverFlowDirection:function(c){return this._getScrollAnimationOption(c,"coverFlowDirection");
},set_coverFlowDirection:function(c,d){this._setScrollAnimationOption(c,"coverFlowDirection",d);
},_getScrollAnimationOption:function(c,d){if(!c||!this._scrollAnimations[c]||!this._scrollAnimations[c].options){return Number.NaN;
}return this._scrollAnimations[c].options[d];
},_setScrollAnimationOption:function(f,c,e){if(!f){return;
}var d=this._scrollAnimations;
if(!d[f]){d[f]={};
}if(!d[f].options){d[f].options={};
}d[f].options[c]=e;
},_removeScrollAnimation:function(c){var d=this._scrollAnimations[c];
if(d){delete d.options;
delete d.properties;
d=null;
}delete this._scrollAnimations[c];
},getInstance:function(){return this;
}};
b.RadRotatorAnimationClass.registerClass("Telerik.Web.UI.RadRotatorAnimationClass",null);
if(!b.RadRotatorAnimation){b.RadRotatorAnimation=new b.RadRotatorAnimationClass();
}})();
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
