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