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