Type.registerNamespace("Telerik.Web.UI.Animations"); Telerik.Web.UI.Animations.playJQueryAnimation=function(_1,_2,_3,_4,_5,_6,_7){ if(!_1){ return; } if(!_2){ _2=2; } if(!_3){ _3=new Sys.UI.Bounds(1,1,1,1); } if(!_4){ _4=new Sys.UI.Bounds(1,1,1,1); } if(!_5){ _5=32; } _5+=""; var _8=parseInt(_5.substr(0,1)); var _9=parseInt(_5.substr(1,1)); if(_6){ _6(); } $telerik.$(_1).stop(false,true); if(_2==2){ $telerik.$(_1).css({"left":_4.x,"top":_4.y}).fadeIn(500,_7); return; } if(_2==8){ var _a=$telerik.getClientBounds(); var _b=$telerik.getClientBounds(); _3.x=_b.width/2; _3.y=_b.height; switch(_9){ case 2: _3.x=_4.x; break; case 3: _3.x=_a.width; break; case 1: _3.x=_a.x; } switch(_8){ case 2: _3.y=_4.y; break; case 1: _3.y=_a.y-_4.height; break; case 3: _3.y=_a.height; } }else{ if(_2==4){ _3.x=_4.x; _3.y=_4.y; _3.width=_4.width; _3.height=1; switch(_9){ case 2: _3.x=_4.x; break; case 3: _3.x=_4.x; break; case 1: var _c=_4.x; if(2==_8){ _c+=_4.width; } _3.x=_c; } switch(_8){ case 2: _3.y=_4.y; _3.height=_4.height; _3.width=1; break; case 1: _3.y=_4.y+_4.height; break; case 3: _3.y=_4.y; } }else{ if(_2==1){ } } } $telerik.$(_1).css({"width":_3.width,"height":_3.height,"left":_3.x,"top":_3.y,"opacity":0.1,"filter":"alpha(opacity=10)"}).show().animate({width:_4.width,height:_4.height,left:_4.x,top:_4.y,opacity:1},500,null,_7); }; $telerik.$.fx.prototype.oldstep=$telerik.$.fx.prototype.step; $telerik.$.fx.prototype.step=function(_d){ if(this.prop=="left"||this.prop=="top"){ if(this.elem.getAttribute("paused")){ if(!this.elem.getAttribute("elapsedTime")){ var _e=(+new Date)-this.startTime; this.elem.setAttribute("elapsedTime",_e); } return true; } if(this.elem.getAttribute("elapsedTime")){ this.startTime=(+new Date)-this.elem.getAttribute("elapsedTime"); this.elem.removeAttribute("elapsedTime"); } } return this.oldstep(_d); }; Telerik.Web.UI.Animations.jMove=function(_f,_10,_11,_12,_13){ this._owner=_f; this._element=_10; this._duration=_11; this._horizontal=(typeof (_12)=="undefined"||_12==null)?0:_12; this._vertical=(typeof (_13)=="undefined"||_13==null)?0:_13; this._events=null; this._animationEndedDelegate=null; this._isPlaying=false; this._isPaused=false; this._isCyclic=false; }; Telerik.Web.UI.Animations.jMove.prototype={initialize:function(){ this._animationEndedDelegate=Function.createDelegate(this,this._animationEnded); },dispose:function(){ this._getAnimationQuery().stop(true,false); this._owner=null; this._element=null; this._events=null; this._animationEndedDelegate=null; },get_vertical:function(){ return this._vertical; },set_vertical:function(_14){ this._vertical=_14; },get_horizontal:function(){ return this._horizontal; },set_horizontal:function(_15){ this._horizontal=_15; },get_isPlaying:function(){ return this._isPlaying; },get_isCyclic:function(){ return this._isCyclic; },set_isCyclic:function(_16){ this._isCyclic=_16; },get_isActive:function(){ return true; },get_events:function(){ if(!this._events){ this._events=new Sys.EventHandlerList(); } return this._events; },play:function(_17){ var _18=this._element; var _19=_18.getAttribute("paused"); _18.removeAttribute("paused"); if(!(_19&&_18.getAttribute("elapsedTime"))){ var _1a=this._owner; var _1b=_1a.get_frameDuration(); if(this._isPaused&&this._isCyclic&&(_1b>0&&!_17)&&_1a._setAnimationTimeout){ _1a._setAnimationTimeout(_1b); }else{ this._animationStarted(); var _1c=(isNaN(parseInt(this._vertical)))?this._horizontal:this._vertical; this._playAnimation(_1c); } } this._isPlaying=true; this._isPaused=false; },stop:function(){ this._getAnimationQuery().stop(false,true); this._isPlaying=false; },pause:function(){ if(this._isPlaying){ this._element.setAttribute("paused",true); } this._isPlaying=false; this._isPaused=true; },add_started:function(_1d){ this.get_events().addHandler("started",_1d); },remove_started:function(_1e){ this.get_events().removeHandler("started",_1e); },add_ended:function(_1f){ this.get_events().addHandler("ended",_1f); },remove_ended:function(_20){ this.get_events().removeHandler("ended",_20); },_getAnimationQuery:function(){ return $telerik.$(this._element); },_playAnimation:function(_21){ var _22=this._getAnimationQuery(); var _23=this._getAnimatedStyleProperty(); var _24={queue:true}; _24[_23]=_21; _22.stop(true,!this._isCyclic).animate(_24,this._duration,null,this._animationEndedDelegate); },_getAnimatedStyleProperty:function(){ return (isNaN(parseInt(this._vertical)))?"left":"top"; },_getPosition:function(){ var _25=this._element; var _26=this._getAnimatedStyleProperty(); return _25.style[_26]; },_animationStarted:function(){ this._raiseEvent("started",Sys.EventArgs.Empty); },_animationEnded:function(){ this._getAnimationQuery().css("opacity","1"); this._isPlaying=false; this._raiseEvent("ended",Sys.EventArgs.Empty); },_raiseEvent:function(_27,_28){ var _29=this.get_events().getHandler(_27); if(_29){ if(!_28){ _28=Sys.EventArgs.Empty; } _29(this,_28); } }}; Telerik.Web.UI.Animations.jMove.registerClass("Telerik.Web.UI.Animations.jMove",null,Sys.IDisposable); if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();