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]})}}});
