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