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