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