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