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