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