gallery.Transitions.extend({fadeslideleft:function(a,b,c,d){a.options.transition=b.options.transition=Fx.Transitions.Cubic.easeOut;a.options.duration=b.options.duration=1500;if(d>c){b.start({left:[this.galleryElement.offsetWidth,0],opacity:1});a.start({opacity:[1,0]})}else{b.start({opacity:[0,1]});a.start({left:[0,this.galleryElement.offsetWidth],opacity:0}).chain(function(e){e.set({left:0})}.pass(a))}},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]})}}});
