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;d>c?(b.start({left:[this.galleryElement.offsetWidth,0],opacity:1}),a.start({opacity:[1,0]})):(b.start({opacity:[0,1]}),a.start({left:[0,this.galleryElement.offsetWidth],opacity:0}).chain(function(a){a.set({left:0})}.pass(a)))},continuoushorizontal:function(a,b,c,d){a.options.transition=b.options.transition=Fx.Transitions.linear;
(d>c||0==d&&c==this.maxIter-1)&&!(d==this.maxIter-1&&0==c)?(a.set({opacity:1}),a.start({left:[0,-1*this.galleryElement.offsetWidth]}),b.set({opacity:1,left:this.galleryElement.offsetWidth}),b.start({left:[this.galleryElement.offsetWidth,0]})):(a.set({opacity:1}),a.start({left:[0,this.galleryElement.offsetWidth]}),b.set({opacity:1,left:-1*this.galleryElement.offsetWidth}),b.start({left:[-1*this.galleryElement.offsetWidth,0]}))},continuousvertical:function(a,b,c,d){a.options.transition=b.options.transition=
Fx.Transitions.linear;(d>c||0==d&&c==this.maxIter-1)&&!(d==this.maxIter-1&&0==c)?(a.set({opacity:1}),a.start({top:[0,-1*this.galleryElement.offsetHeight]}),b.set({opacity:1,top:this.galleryElement.offsetHeight}),b.start({top:[this.galleryElement.offsetHeight,0]})):(a.set({opacity:1}),a.start({top:[0,this.galleryElement.offsetHeight]}),b.set({opacity:1,top:-1*this.galleryElement.offsetHeight}),b.start({top:[-1*this.galleryElement.offsetHeight,0]}))}});
