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