/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.65 (07-APR-2009)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.6 or later
 *
 * Originally based on the work of:
 *	1) Matt Oakes
 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)
 */
(function(g){var j="2.65";if(g.support==undefined){g.support={opacity:!(g.browser.msie)}}function e(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}g.fn.cycle=function(q,n){var r={s:this.selector,c:this.context};if(this.length==0&&q!="stop"){if(!g.isReady&&r.s){e("DOM not ready, queuing slideshow");g(function(){g(r.s,r.c).cycle(q,n)});return this}e("terminating; zero elements found by selector"+(g.isReady?"":" (DOM not ready)"));return this}return this.each(function(){q=k(this,q,n);if(q===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var t=g(this);var u=q.slideExpr?g(q.slideExpr,this):t.children();var o=u.get();if(o.length<2){e("terminating; too few slides: "+o.length);return}var s=i(t,u,o,q,r);if(s===false){return}if(s.timeout||s.continuous){this.cycleTimeout=setTimeout(function(){d(o,s,0,!s.rev)},s.continuous?10:s.timeout+(s.delay||0))}})};function k(n,r,o){if(n.cycleStop==undefined){n.cycleStop=0}if(r===undefined||r===null){r={}}if(r.constructor==String){switch(r){case"stop":n.cycleStop++;if(n.cycleTimeout){clearTimeout(n.cycleTimeout)}n.cycleTimeout=0;g(n).removeData("cycle.opts");return false;case"pause":n.cyclePause=1;return false;case"resume":n.cyclePause=0;if(o===true){r=g(n).data("cycle.opts");if(!r){e("options not found, can not resume");return false}if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}d(r.elements,r,1,1)}return false;default:r={fx:r}}}else{if(r.constructor==Number){var q=r;r=g(n).data("cycle.opts");if(!r){e("options not found, can not advance slide");return false}if(q<0||q>=r.elements.length){e("invalid slide index: "+q);return false}r.nextSlide=q;if(n.cycleTimeout){clearTimeout(n.cycleTimeout);n.cycleTimeout=0}if(typeof o=="string"){r.oneTimeFx=o}d(r.elements,r,1,q>=r.currSlide);return false}}return r}function a(n,o){if(!g.support.opacity&&o.cleartype&&n.style.filter){try{n.style.removeAttribute("filter")}catch(q){}}}function i(x,H,t,s,D){var B=g.extend({},g.fn.cycle.defaults,s||{},g.metadata?x.metadata():g.meta?x.data():{});if(B.autostop){B.countdown=B.autostopCount||t.length}var q=x[0];x.data("cycle.opts",B);B.$cont=x;B.stopCount=q.cycleStop;B.elements=t;B.before=B.before?[B.before]:[];B.after=B.after?[B.after]:[];B.after.unshift(function(){B.busy=0});if(!g.support.opacity&&B.cleartype){B.after.push(function(){a(this,B)})}if(B.continuous){B.after.push(function(){d(t,B,0,!B.rev)})}l(B);if(x.css("position")=="static"){x.css("position","relative")}if(B.width){x.width(B.width)}if(B.height&&B.height!="auto"){x.height(B.height)}if(B.startingSlide){B.startingSlide=parseInt(B.startingSlide)}if(B.random){B.randomMap=[];for(var F=0;F<t.length;F++){B.randomMap.push(F)}B.randomMap.sort(function(w,o){return Math.random()-0.5});B.randomIndex=0;B.startingSlide=B.randomMap[0]}else{if(B.startingSlide>=t.length){B.startingSlide=0}}B.currSlide=B.startingSlide=B.startingSlide||0;var v=B.startingSlide;H.css({position:"absolute",top:0,left:0}).hide().each(function(o){var w=v?o>=v?t.length-(o-v):v-o:t.length-o;g(this).css("z-index",w)});g(t[v]).css("opacity",1).show();a(t[v],B);if(B.fit&&B.width){H.width(B.width)}if(B.fit&&B.height&&B.height!="auto"){H.height(B.height)}var C=B.containerResize&&!x.innerHeight();if(C){var u=0,A=0;for(var F=0;F<t.length;F++){var n=g(t[F]),I=n[0],z=n.outerWidth(),G=n.outerHeight();if(!z){z=I.offsetWidth}if(!G){G=I.offsetHeight}u=z>u?z:u;A=G>A?G:A}if(u>0&&A>0){x.css({width:u+"px",height:A+"px"})}}if(B.pause){x.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(b(B)===false){return false}if(!B.multiFx){var E=g.fn.cycle.transitions[B.fx];if(g.isFunction(E)){E(x,H,B)}else{if(B.fx!="custom"&&!B.multiFx){e("unknown transition: "+B.fx,"; slideshow terminating");return false}}}var r=false;s.requeueAttempts=s.requeueAttempts||0;H.each(function(){var K=g(this);this.cycleH=(B.fit&&B.height)?B.height:K.height();this.cycleW=(B.fit&&B.width)?B.width:K.width();if(K.is("img")){var w=(g.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var J=(g.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var o=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(w||J||o){if(D.s&&B.requeueOnImageNotLoaded&&++s.requeueAttempts<100){e(s.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){g(D.s,D.c).cycle(s)},B.requeueTimeout);r=true;return false}else{e("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(r){return false}B.cssBefore=B.cssBefore||{};B.animIn=B.animIn||{};B.animOut=B.animOut||{};H.not(":eq("+v+")").css(B.cssBefore);if(B.cssFirst){g(H[v]).css(B.cssFirst)}if(B.timeout){B.timeout=parseInt(B.timeout);if(B.speed.constructor==String){B.speed=g.fx.speeds[B.speed]||parseInt(B.speed)}if(!B.sync){B.speed=B.speed/2}while((B.timeout-B.speed)<250){B.timeout+=B.speed}}if(B.easing){B.easeIn=B.easeOut=B.easing}if(!B.speedIn){B.speedIn=B.speed}if(!B.speedOut){B.speedOut=B.speed}B.slideCount=t.length;B.currSlide=B.lastSlide=v;if(B.random){B.nextSlide=B.currSlide;if(++B.randomIndex==t.length){B.randomIndex=0}B.nextSlide=B.randomMap[B.randomIndex]}else{B.nextSlide=B.startingSlide>=(t.length-1)?0:B.startingSlide+1}var y=H[v];if(B.before.length){B.before[0].apply(y,[y,y,B,true])}if(B.after.length>1){B.after[1].apply(y,[y,y,B,true])}if(B.next){g(B.next).click(function(){return m(B,B.rev?-1:1)})}if(B.prev){g(B.prev).click(function(){return m(B,B.rev?1:-1)})}if(B.pager){c(t,B)}h(B,t);return B}function l(n){n.original={before:[],after:[]};n.original.cssBefore=g.extend({},n.cssBefore);n.original.cssAfter=g.extend({},n.cssAfter);n.original.animIn=g.extend({},n.animIn);n.original.animOut=g.extend({},n.animOut);g.each(n.before,function(){n.original.before.push(this)});g.each(n.after,function(){n.original.after.push(this)})}function b(u){var q=g.fn.cycle.transitions;if(u.fx.indexOf(",")>0){u.multiFx=true;u.fxs=u.fx.replace(/\s*/g,"").split(",");for(var s=0;s<u.fxs.length;s++){var t=u.fxs[s];var o=q[t];if(!o||!q.hasOwnProperty(t)||!g.isFunction(o)){e("discarding unknown transition: ",t);u.fxs.splice(s,1);s--}}if(!u.fxs.length){e("No valid transitions named; slideshow terminating.");return false}}else{if(u.fx=="all"){u.multiFx=true;u.fxs=[];for(p in q){var o=q[p];if(q.hasOwnProperty(p)&&g.isFunction(o)){u.fxs.push(p)}}}}if(u.multiFx&&u.randomizeEffects){var r=Math.floor(Math.random()*20)+30;for(var s=0;s<r;s++){var n=Math.floor(Math.random()*u.fxs.length);u.fxs.push(u.fxs.splice(n,1)[0])}e("randomized fx sequence: ",u.fxs)}return true}function h(o,n){o.addSlide=function(r,t){var q=g(r),u=q[0];if(!o.autostopCount){o.countdown++}n[t?"unshift":"push"](u);if(o.els){o.els[t?"unshift":"push"](u)}o.slideCount=n.length;q.css("position","absolute");q[t?"prependTo":"appendTo"](o.$cont);if(t){o.currSlide++;o.nextSlide++}if(o.fit&&o.width){q.width(o.width)}if(o.fit&&o.height&&o.height!="auto"){$slides.height(o.height)}u.cycleH=(o.fit&&o.height)?o.height:q.height();u.cycleW=(o.fit&&o.width)?o.width:q.width();q.css(o.cssBefore);if(o.pager){g.fn.cycle.createPagerAnchor(n.length-1,u,g(o.pager),n,o)}if(g.isFunction(o.onAddSlide)){o.onAddSlide(q)}else{q.hide()}}}g.fn.cycle.resetState=function(o,n){n=n||o.fx;o.before=[];o.after=[];o.cssBefore=g.extend({},o.original.cssBefore);o.cssAfter=g.extend({},o.original.cssAfter);o.animIn=g.extend({},o.original.animIn);o.animOut=g.extend({},o.original.animOut);o.fxFn=null;g.each(o.original.before,function(){o.before.push(this)});g.each(o.original.after,function(){o.after.push(this)});var q=g.fn.cycle.transitions[n];if(g.isFunction(q)){q(o.$cont,g(o.elements),o)}};function d(v,n,u,w){if(u&&n.busy&&n.manualTrump){g(v).stop(true,true);n.busy=false}if(n.busy){return}var s=n.$cont[0],y=v[n.currSlide],x=v[n.nextSlide];if(s.cycleStop!=n.stopCount||s.cycleTimeout===0&&!u){return}if(!u&&!s.cyclePause&&((n.autostop&&(--n.countdown<=0))||(n.nowrap&&!n.random&&n.nextSlide<n.currSlide))){if(n.end){n.end(n)}return}if(u||!s.cyclePause){var t=n.fx;y.cycleH=y.cycleH||g(y).height();y.cycleW=y.cycleW||g(y).width();x.cycleH=x.cycleH||g(x).height();x.cycleW=x.cycleW||g(x).width();if(n.multiFx){if(n.lastFx==undefined||++n.lastFx>=n.fxs.length){n.lastFx=0}t=n.fxs[n.lastFx];n.currFx=t}if(n.oneTimeFx){t=n.oneTimeFx;n.oneTimeFx=null}g.fn.cycle.resetState(n,t);if(n.before.length){g.each(n.before,function(z,A){if(s.cycleStop!=n.stopCount){return}A.apply(x,[y,x,n,w])})}var q=function(){g.each(n.after,function(z,A){if(s.cycleStop!=n.stopCount){return}A.apply(x,[y,x,n,w])})};if(n.nextSlide!=n.currSlide){n.busy=1;if(n.fxFn){n.fxFn(y,x,n,q,w)}else{if(g.isFunction(g.fn.cycle[n.fx])){g.fn.cycle[n.fx](y,x,n,q)}else{g.fn.cycle.custom(y,x,n,q,u&&n.fastOnEvent)}}}n.lastSlide=n.currSlide;if(n.random){n.currSlide=n.nextSlide;if(++n.randomIndex==v.length){n.randomIndex=0}n.nextSlide=n.randomMap[n.randomIndex]}else{var r=(n.nextSlide+1)==v.length;n.nextSlide=r?0:n.nextSlide+1;n.currSlide=r?v.length-1:n.nextSlide-1}if(n.pager){g.fn.cycle.updateActivePagerLink(n.pager,n.currSlide)}}var o=0;if(n.timeout&&!n.continuous){o=f(y,x,n,w)}else{if(n.continuous&&s.cyclePause){o=10}}if(o>0){s.cycleTimeout=setTimeout(function(){d(v,n,0,!n.rev)},o)}}g.fn.cycle.updateActivePagerLink=function(n,o){g(n).find("a").removeClass("activeSlide").filter("a:eq("+o+")").addClass("activeSlide")};function f(s,q,r,o){if(r.timeoutFn){var n=r.timeoutFn(s,q,r,o);if(n!==false){return n}}return r.timeout}g.fn.cycle.next=function(n){m(n,n.rev?-1:1)};g.fn.cycle.prev=function(n){m(n,n.rev?1:-1)};function m(o,s){var n=o.elements;var r=o.$cont[0],q=r.cycleTimeout;if(q){clearTimeout(q);r.cycleTimeout=0}if(o.random&&s<0){o.randomIndex--;if(--o.randomIndex==-2){o.randomIndex=n.length-2}else{if(o.randomIndex==-1){o.randomIndex=n.length-1}}o.nextSlide=o.randomMap[o.randomIndex]}else{if(o.random){if(++o.randomIndex==n.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{o.nextSlide=o.currSlide+s;if(o.nextSlide<0){if(o.nowrap){return false}o.nextSlide=n.length-1}else{if(o.nextSlide>=n.length){if(o.nowrap){return false}o.nextSlide=0}}}}if(g.isFunction(o.prevNextClick)){o.prevNextClick(s>0,o.nextSlide,n[o.nextSlide])}d(n,o,1,s>=0);return false}function c(o,q){var n=g(q.pager);g.each(o,function(r,s){g.fn.cycle.createPagerAnchor(r,s,n,o,q)});g.fn.cycle.updateActivePagerLink(q.pager,q.startingSlide)}g.fn.cycle.createPagerAnchor=function(s,t,q,r,u){var o=(g.isFunction(u.pagerAnchorBuilder))?u.pagerAnchorBuilder(s,t):'<a href="#">'+(s+1)+"</a>";if(!o){return}var v=g(o);if(v.parents("body").length==0){var n=[];if(q.length>1){q.each(function(){var w=v.clone(true);g(this).append(w);n.push(w)});v=g(n)}else{v.appendTo(q)}}v.bind(u.pagerEvent,function(){u.nextSlide=s;var x=u.$cont[0],w=x.cycleTimeout;if(w){clearTimeout(w);x.cycleTimeout=0}if(g.isFunction(u.pagerClick)){u.pagerClick(u.nextSlide,r[u.nextSlide])}d(r,u,1,u.currSlide<s);return false});if(u.pauseOnPagerHover){v.hover(function(){u.$cont[0].cyclePause++},function(){u.$cont[0].cyclePause--})}};g.fn.cycle.hopsFromLast=function(r,q){var o,n=r.lastSlide,s=r.currSlide;if(q){o=s>n?s-n:r.slideCount-n}else{o=s<n?n-s:n+r.slideCount-s}return o};g.fn.cycle.commonReset=function(t,r,s,o,q,n){g(s.elements).not(t).hide();s.cssBefore.opacity=1;s.cssBefore.display="block";if(o!==false&&r.cycleW>0){s.cssBefore.width=r.cycleW}if(q!==false&&r.cycleH>0){s.cssBefore.height=r.cycleH}s.cssAfter=s.cssAfter||{};s.cssAfter.display="none";g(t).css("zIndex",s.slideCount+(n===true?1:0));g(r).css("zIndex",s.slideCount+(n===true?0:1))};g.fn.cycle.custom=function(z,t,n,q,o){var y=g(z),u=g(t);var r=n.speedIn,x=n.speedOut,s=n.easeIn,w=n.easeOut;u.css(n.cssBefore);if(o){if(typeof o=="number"){r=x=o}else{r=x=1}s=w=null}var v=function(){u.animate(n.animIn,r,s,q)};y.animate(n.animOut,x,w,function(){if(n.cssAfter){y.css(n.cssAfter)}if(!n.sync){v()}});if(n.sync){v()}};g.fn.cycle.transitions={fade:function(o,q,n){q.not(":eq("+n.currSlide+")").css("opacity",0);n.before.push(function(t,r,s){g.fn.cycle.commonReset(t,r,s);s.cssBefore.opacity=0});n.animIn={opacity:1};n.animOut={opacity:0};n.cssBefore={top:0,left:0}}};g.fn.cycle.ver=function(){return j};g.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!g.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.52
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function(a){a.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true)});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<f.length;c++){d.els.push(f[c])}for(var c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,i){var h=i?a(m):a(j);a(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);for(var q=0;q<o;q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())}if(i){for(var r=0,n=l.els.length;r<n;r++){a(l.els[r]).css("z-index",n-r+k)}}else{var s=a(m).css("z-index");h.css("z-index",parseInt(s)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,height:0};b.animIn={top:0};b.animOut={height:0}};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst={top:0};b.cssBefore={left:0,top:0,height:0};b.animOut={height:0}};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore={top:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});b.cssBefore={top:0,left:0,width:0};b.animIn={left:0};b.animOut={width:0}};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,height:0}};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,height:0};b.animOut={opacity:0}};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore={top:b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);h.animIn.height=g.cycleH;h.animOut.top=i.cycleH});d.cssBefore={top:c,left:b};d.animIn={top:0,left:0};d.animOut={top:c,left:b}};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top:0}};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn={top:0,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,left:0}};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,width:0}};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height:0}};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn={left:0,top:0};e.animOut={opacity:1};e.cssBefore={top:0,left:0}};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(o,k,e){var n=o.css("overflow","hidden").width();var i=o.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+i+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+n+"px "+i+"px "+n+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+n+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+i+"px "+n+"px "+i+"px 0px)"}else{if(/zoom/.test(e.clip)){var q=parseInt(i/2);var g=parseInt(n/2);f="rect("+q+"px "+g+"px "+q+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var j=e.cssBefore.clip.match(/(\d+)/g);var q=parseInt(j[0]),c=parseInt(j[1]),m=parseInt(j[2]),g=parseInt(j[3]);e.before.push(function(u,h,s){if(u==h){return}var d=a(u),b=a(h);a.fn.cycle.commonReset(u,h,s,true,true,false);s.cssAfter.display="block";var r=1,l=parseInt((s.speedIn/13))-1;(function t(){var w=q?q-parseInt(r*(q/l)):0;var x=g?g-parseInt(r*(g/l)):0;var y=m<i?m+parseInt(r*((i-m)/l||1)):i;var v=c<n?c+parseInt(r*((n-c)/l||1)):n;b.css({clip:"rect("+w+"px "+v+"px "+y+"px "+x+"px)"});(r++<=l)?setTimeout(t,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);
