/*
 * 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(h){var k="2.65";if(h.support==undefined){h.support={opacity:!(h.browser.msie)}}function e(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}}h.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length==0&&r!="stop"){if(!h.isReady&&s.s){e("DOM not ready, queuing slideshow");h(function(){h(s.s,s.c).cycle(r,q)});return this}e("terminating; zero elements found by selector"+(h.isReady?"":" (DOM not ready)"));return this}return this.each(function(){r=l(this,r,q);if(r===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var u=h(this);var v=r.slideExpr?h(r.slideExpr,this):u.children();var o=v.get();if(o.length<2){e("terminating; too few slides: "+o.length);return}var t=j(u,v,o,r,s);if(t===false){return}if(t.timeout||t.continuous){this.cycleTimeout=setTimeout(function(){d(o,t,0,!t.rev)},t.continuous?10:t.timeout+(t.delay||0))}})};function l(o,s,q){if(o.cycleStop==undefined){o.cycleStop=0}if(s===undefined||s===null){s={}}if(s.constructor==String){switch(s){case"stop":o.cycleStop++;if(o.cycleTimeout){clearTimeout(o.cycleTimeout)}o.cycleTimeout=0;h(o).removeData("cycle.opts");return false;case"pause":o.cyclePause=1;return false;case"resume":o.cyclePause=0;if(q===true){s=h(o).data("cycle.opts");if(!s){e("options not found, can not resume");return false}if(o.cycleTimeout){clearTimeout(o.cycleTimeout);o.cycleTimeout=0}d(s.elements,s,1,1)}return false;default:s={fx:s}}}else{if(s.constructor==Number){var r=s;s=h(o).data("cycle.opts");if(!s){e("options not found, can not advance slide");return false}if(r<0||r>=s.elements.length){e("invalid slide index: "+r);return false}s.nextSlide=r;if(o.cycleTimeout){clearTimeout(o.cycleTimeout);o.cycleTimeout=0}if(typeof q=="string"){s.oneTimeFx=q}d(s.elements,s,1,r>=s.currSlide);return false}}return s}function a(o,q){if(!h.support.opacity&&q.cleartype&&o.style.filter){try{o.style.removeAttribute("filter")}catch(r){}}}function j(y,I,u,t,E){var C=h.extend({},h.fn.cycle.defaults,t||{},h.metadata?y.metadata():h.meta?y.data():{});if(C.autostop){C.countdown=C.autostopCount||u.length}var r=y[0];y.data("cycle.opts",C);C.$cont=y;C.stopCount=r.cycleStop;C.elements=u;C.before=C.before?[C.before]:[];C.after=C.after?[C.after]:[];C.after.unshift(function(){C.busy=0});if(!h.support.opacity&&C.cleartype){C.after.push(function(){a(this,C)})}if(C.continuous){C.after.push(function(){d(u,C,0,!C.rev)})}m(C);if(!h.support.opacity&&C.cleartype&&!C.cleartypeNoBg){f(I)}if(y.css("position")=="static"){y.css("position","relative")}if(C.width){y.width(C.width)}if(C.height&&C.height!="auto"){y.height(C.height)}if(C.startingSlide){C.startingSlide=parseInt(C.startingSlide)}if(C.random){C.randomMap=[];for(var G=0;G<u.length;G++){C.randomMap.push(G)}C.randomMap.sort(function(w,o){return Math.random()-0.5});C.randomIndex=0;C.startingSlide=C.randomMap[0]}else{if(C.startingSlide>=u.length){C.startingSlide=0}}C.currSlide=C.startingSlide=C.startingSlide||0;var x=C.startingSlide;I.css({position:"absolute",top:0,left:0}).hide().each(function(o){var w=x?o>=x?u.length-(o-x):x-o:u.length-o;h(this).css("z-index",w)});h(u[x]).css("opacity",1).show();a(u[x],C);if(C.fit&&C.width){I.width(C.width)}if(C.fit&&C.height&&C.height!="auto"){I.height(C.height)}var D=C.containerResize&&!y.innerHeight();if(D){var v=0,B=0;for(var G=0;G<u.length;G++){var q=h(u[G]),J=q[0],A=q.outerWidth(),H=q.outerHeight();if(!A){A=J.offsetWidth}if(!H){H=J.offsetHeight}v=A>v?A:v;B=H>B?H:B}if(v>0&&B>0){y.css({width:v+"px",height:B+"px"})}}if(C.pause){y.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(b(C)===false){return false}if(!C.multiFx){var F=h.fn.cycle.transitions[C.fx];if(h.isFunction(F)){F(y,I,C)}else{if(C.fx!="custom"&&!C.multiFx){e("unknown transition: "+C.fx,"; slideshow terminating");return false}}}var s=false;t.requeueAttempts=t.requeueAttempts||0;I.each(function(){var L=h(this);this.cycleH=(C.fit&&C.height)?C.height:L.height();this.cycleW=(C.fit&&C.width)?C.width:L.width();if(L.is("img")){var w=(h.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var K=(h.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var o=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(w||K||o){if(E.s&&C.requeueOnImageNotLoaded&&++t.requeueAttempts<100){e(t.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){h(E.s,E.c).cycle(t)},C.requeueTimeout);s=true;return false}else{e("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(s){return false}C.cssBefore=C.cssBefore||{};C.animIn=C.animIn||{};C.animOut=C.animOut||{};I.not(":eq("+x+")").css(C.cssBefore);if(C.cssFirst){h(I[x]).css(C.cssFirst)}if(C.timeout){C.timeout=parseInt(C.timeout);if(C.speed.constructor==String){C.speed=h.fx.speeds[C.speed]||parseInt(C.speed)}if(!C.sync){C.speed=C.speed/2}while((C.timeout-C.speed)<250){C.timeout+=C.speed}}if(C.easing){C.easeIn=C.easeOut=C.easing}if(!C.speedIn){C.speedIn=C.speed}if(!C.speedOut){C.speedOut=C.speed}C.slideCount=u.length;C.currSlide=C.lastSlide=x;if(C.random){C.nextSlide=C.currSlide;if(++C.randomIndex==u.length){C.randomIndex=0}C.nextSlide=C.randomMap[C.randomIndex]}else{C.nextSlide=C.startingSlide>=(u.length-1)?0:C.startingSlide+1}var z=I[x];if(C.before.length){C.before[0].apply(z,[z,z,C,true])}if(C.after.length>1){C.after[1].apply(z,[z,z,C,true])}if(C.next){h(C.next).click(function(){return n(C,C.rev?-1:1)})}if(C.prev){h(C.prev).click(function(){return n(C,C.rev?1:-1)})}if(C.pager){c(u,C)}i(C,u);return C}function m(o){o.original={before:[],after:[]};o.original.cssBefore=h.extend({},o.cssBefore);o.original.cssAfter=h.extend({},o.cssAfter);o.original.animIn=h.extend({},o.animIn);o.original.animOut=h.extend({},o.animOut);h.each(o.before,function(){o.original.before.push(this)});h.each(o.after,function(){o.original.after.push(this)})}function b(v){var r=h.fn.cycle.transitions;if(v.fx.indexOf(",")>0){v.multiFx=true;v.fxs=v.fx.replace(/\s*/g,"").split(",");for(var t=0;t<v.fxs.length;t++){var u=v.fxs[t];var q=r[u];if(!q||!r.hasOwnProperty(u)||!h.isFunction(q)){e("discarding unknown transition: ",u);v.fxs.splice(t,1);t--}}if(!v.fxs.length){e("No valid transitions named; slideshow terminating.");return false}}else{if(v.fx=="all"){v.multiFx=true;v.fxs=[];for(p in r){var q=r[p];if(r.hasOwnProperty(p)&&h.isFunction(q)){v.fxs.push(p)}}}}if(v.multiFx&&v.randomizeEffects){var s=Math.floor(Math.random()*20)+30;for(var t=0;t<s;t++){var o=Math.floor(Math.random()*v.fxs.length);v.fxs.push(v.fxs.splice(o,1)[0])}e("randomized fx sequence: ",v.fxs)}return true}function i(q,o){q.addSlide=function(t,u){var r=h(t),v=r[0];if(!q.autostopCount){q.countdown++}o[u?"unshift":"push"](v);if(q.els){q.els[u?"unshift":"push"](v)}q.slideCount=o.length;r.css("position","absolute");r[u?"prependTo":"appendTo"](q.$cont);if(u){q.currSlide++;q.nextSlide++}if(!h.support.opacity&&q.cleartype&&!q.cleartypeNoBg){f(r)}if(q.fit&&q.width){r.width(q.width)}if(q.fit&&q.height&&q.height!="auto"){$slides.height(q.height)}v.cycleH=(q.fit&&q.height)?q.height:r.height();v.cycleW=(q.fit&&q.width)?q.width:r.width();r.css(q.cssBefore);if(q.pager){h.fn.cycle.createPagerAnchor(o.length-1,v,h(q.pager),o,q)}if(h.isFunction(q.onAddSlide)){q.onAddSlide(r)}else{r.hide()}}}h.fn.cycle.resetState=function(q,o){o=o||q.fx;q.before=[];q.after=[];q.cssBefore=h.extend({},q.original.cssBefore);q.cssAfter=h.extend({},q.original.cssAfter);q.animIn=h.extend({},q.original.animIn);q.animOut=h.extend({},q.original.animOut);q.fxFn=null;h.each(q.original.before,function(){q.before.push(this)});h.each(q.original.after,function(){q.after.push(this)});var r=h.fn.cycle.transitions[o];if(h.isFunction(r)){r(q.$cont,h(q.elements),q)}};function d(w,o,v,x){if(v&&o.busy&&o.manualTrump){h(w).stop(true,true);o.busy=false}if(o.busy){return}var t=o.$cont[0],z=w[o.currSlide],y=w[o.nextSlide];if(t.cycleStop!=o.stopCount||t.cycleTimeout===0&&!v){return}if(!v&&!t.cyclePause&&((o.autostop&&(--o.countdown<=0))||(o.nowrap&&!o.random&&o.nextSlide<o.currSlide))){if(o.end){o.end(o)}return}if(v||!t.cyclePause){var u=o.fx;z.cycleH=z.cycleH||h(z).height();z.cycleW=z.cycleW||h(z).width();y.cycleH=y.cycleH||h(y).height();y.cycleW=y.cycleW||h(y).width();if(o.multiFx){if(o.lastFx==undefined||++o.lastFx>=o.fxs.length){o.lastFx=0}u=o.fxs[o.lastFx];o.currFx=u}if(o.oneTimeFx){u=o.oneTimeFx;o.oneTimeFx=null}h.fn.cycle.resetState(o,u);if(o.before.length){h.each(o.before,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})}var r=function(){h.each(o.after,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})};if(o.nextSlide!=o.currSlide){o.busy=1;if(o.fxFn){o.fxFn(z,y,o,r,x)}else{if(h.isFunction(h.fn.cycle[o.fx])){h.fn.cycle[o.fx](z,y,o,r)}else{h.fn.cycle.custom(z,y,o,r,v&&o.fastOnEvent)}}}o.lastSlide=o.currSlide;if(o.random){o.currSlide=o.nextSlide;if(++o.randomIndex==w.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{var s=(o.nextSlide+1)==w.length;o.nextSlide=s?0:o.nextSlide+1;o.currSlide=s?w.length-1:o.nextSlide-1}if(o.pager){h.fn.cycle.updateActivePagerLink(o.pager,o.currSlide)}}var q=0;if(o.timeout&&!o.continuous){q=g(z,y,o,x)}else{if(o.continuous&&t.cyclePause){q=10}}if(q>0){t.cycleTimeout=setTimeout(function(){d(w,o,0,!o.rev)},q)}}h.fn.cycle.updateActivePagerLink=function(o,q){h(o).find("a").removeClass("activeSlide").filter("a:eq("+q+")").addClass("activeSlide")};function g(u,r,s,q){if(s.timeoutFn){var o=s.timeoutFn(u,r,s,q);if(o!==false){return o}}return s.timeout}h.fn.cycle.next=function(o){n(o,o.rev?-1:1)};h.fn.cycle.prev=function(o){n(o,o.rev?1:-1)};function n(q,t){var o=q.elements;var s=q.$cont[0],r=s.cycleTimeout;if(r){clearTimeout(r);s.cycleTimeout=0}if(q.random&&t<0){q.randomIndex--;if(--q.randomIndex==-2){q.randomIndex=o.length-2}else{if(q.randomIndex==-1){q.randomIndex=o.length-1}}q.nextSlide=q.randomMap[q.randomIndex]}else{if(q.random){if(++q.randomIndex==o.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{q.nextSlide=q.currSlide+t;if(q.nextSlide<0){if(q.nowrap){return false}q.nextSlide=o.length-1}else{if(q.nextSlide>=o.length){if(q.nowrap){return false}q.nextSlide=0}}}}if(h.isFunction(q.prevNextClick)){q.prevNextClick(t>0,q.nextSlide,o[q.nextSlide])}d(o,q,1,t>=0);return false}function c(q,r){var o=h(r.pager);h.each(q,function(s,t){h.fn.cycle.createPagerAnchor(s,t,o,q,r)});h.fn.cycle.updateActivePagerLink(r.pager,r.startingSlide)}h.fn.cycle.createPagerAnchor=function(t,u,r,s,v){var q=(h.isFunction(v.pagerAnchorBuilder))?v.pagerAnchorBuilder(t,u):'<a href="#">'+(t+1)+"</a>";if(!q){return}var w=h(q);if(w.parents("body").length==0){var o=[];if(r.length>1){r.each(function(){var x=w.clone(true);h(this).append(x);o.push(x)});w=h(o)}else{w.appendTo(r)}}w.bind(v.pagerEvent,function(){v.nextSlide=t;var y=v.$cont[0],x=y.cycleTimeout;if(x){clearTimeout(x);y.cycleTimeout=0}if(h.isFunction(v.pagerClick)){v.pagerClick(v.nextSlide,s[v.nextSlide])}d(s,v,1,v.currSlide<t);return false});if(v.pauseOnPagerHover){w.hover(function(){v.$cont[0].cyclePause++},function(){v.$cont[0].cyclePause--})}};h.fn.cycle.hopsFromLast=function(s,r){var q,o=s.lastSlide,t=s.currSlide;if(r){q=t>o?t-o:s.slideCount-o}else{q=t<o?o-t:o+s.slideCount-t}return q};function f(r){function q(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function o(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var s=h.css(u,"background-color");if(s.indexOf("rgb")>=0){var t=s.match(/\d+/g);return"#"+q(t[0])+q(t[1])+q(t[2])}if(s&&s!="transparent"){return s}}return"#ffffff"}r.each(function(){h(this).css("background-color",o(this))})}h.fn.cycle.commonReset=function(u,s,t,q,r,o){h(t.elements).not(u).hide();t.cssBefore.opacity=1;t.cssBefore.display="block";if(q!==false&&s.cycleW>0){t.cssBefore.width=s.cycleW}if(r!==false&&s.cycleH>0){t.cssBefore.height=s.cycleH}t.cssAfter=t.cssAfter||{};t.cssAfter.display="none";h(u).css("zIndex",t.slideCount+(o===true?1:0));h(s).css("zIndex",t.slideCount+(o===true?0:1))};h.fn.cycle.custom=function(A,u,o,r,q){var z=h(A),v=h(u);var s=o.speedIn,y=o.speedOut,t=o.easeIn,x=o.easeOut;v.css(o.cssBefore);if(q){if(typeof q=="number"){s=y=q}else{s=y=1}t=x=null}var w=function(){v.animate(o.animIn,s,t,r)};z.animate(o.animOut,y,x,function(){if(o.cssAfter){z.css(o.cssAfter)}if(!o.sync){w()}});if(o.sync){w()}};h.fn.cycle.transitions={fade:function(q,r,o){r.not(":eq("+o.currSlide+")").css("opacity",0);o.before.push(function(u,s,t){h.fn.cycle.commonReset(u,s,t);t.cssBefore.opacity=0});o.animIn={opacity:1};o.animOut={opacity:0};o.cssBefore={top:0,left:0}}};h.fn.cycle.ver=function(){return k};h.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:!h.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);