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