gallery.Transitions.extend({fadeslideleft:function(C,D,A,B){C.options.transition=D.options.transition=Fx.Transitions.Cubic.easeOut;C.options.duration=D.options.duration=1500;if(B>A){D.start({left:[this.galleryElement.offsetWidth,0],opacity:1});C.start({opacity:[1,0]})}else{D.start({opacity:[0,1]});C.start({left:[0,this.galleryElement.offsetWidth],opacity:0}).chain(function(E){E.set({left:0})}.pass(C))}},continuoushorizontal:function(C,D,A,B){C.options.transition=D.options.transition=Fx.Transitions.linear;if(((B>A)||((B==0)&&(A==(this.maxIter-1))))&&(!((B==(this.maxIter-1))&&(A==0)))){C.set({opacity:1});C.start({left:[0,this.galleryElement.offsetWidth*-1]});D.set({opacity:1,left:this.galleryElement.offsetWidth});D.start({left:[this.galleryElement.offsetWidth,0]})}else{C.set({opacity:1});C.start({left:[0,this.galleryElement.offsetWidth]});D.set({opacity:1,left:this.galleryElement.offsetWidth*-1});D.start({left:[this.galleryElement.offsetWidth*-1,0]})}},continuousvertical:function(C,D,A,B){C.options.transition=D.options.transition=Fx.Transitions.linear;if(((B>A)||((B==0)&&(A==(this.maxIter-1))))&&(!((B==(this.maxIter-1))&&(A==0)))){C.set({opacity:1});C.start({top:[0,this.galleryElement.offsetHeight*-1]});D.set({opacity:1,top:this.galleryElement.offsetHeight});D.start({top:[this.galleryElement.offsetHeight,0]})}else{C.set({opacity:1});C.start({top:[0,this.galleryElement.offsetHeight]});D.set({opacity:1,top:this.galleryElement.offsetHeight*-1});D.start({top:[this.galleryElement.offsetHeight*-1,0]})}}})