var tps=tps||{};tps.transitions=tps.transitions||{},tps.transitions.slide=function(a,d,i){var e=jQuery,l=a.options.isRtl,c=l?'right':'left',g=a.slideContainer.innerWidth(),k=i-d,j=k>0?1:-1,h=[],f=d!==null?e(a.slides[d].content):null,b;return f&&(a.slideContainer.css('height',f.innerHeight()),h.push(function(){var b={};b[c]=-j*g,f.css('width',g).css('position','absolute').css(c,0).animate(b,a.options.transitionSpeed,function(a,b){return function(){e(this).detach().css('position','').css(c,''),a.decrementSemaphore()}}(a,d))})),b=a.slides[i].content,f==null?a.slideContainer.append(b):(b.css('width',g),b.css('visibility','hidden'),a.slideContainer.append(b),a.onNewSlide(),h.push(function(){a.slideContainer.animate({height:b.innerHeight()},a.options.transitionSpeed,function(a){return function(){e(this).css('position',''),a.decrementSemaphore()}}(a))}),h.push(function(){var d={};d[c]='0',b.css(c,j*g).css('position','absolute').css('visibility','visible').animate(d,a.options.transitionSpeed,function(a){return function(){e(this).css('position','').css('width',''),a.slideContainer.css('height',''),a.decrementSemaphore()}}(a))})),h}