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