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