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