!function(e){function t(t){e.fn.cycle.debug&&n(t)}function n(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function i(t,i,c){function o(t,i,c){if(!t&&i===!0){var s=e(c).data("cycle.opts");if(!s)return n("options not found, can not resume"),!1;c.cycleTimeout&&(clearTimeout(c.cycleTimeout),c.cycleTimeout=0),f(s.elements,s,1,!s.backwards)}}if(void 0==t.cycleStop&&(t.cycleStop=0),(void 0===i||null===i)&&(i={}),i.constructor==String){switch(i){case"destroy":case"stop":var r=e(t).data("cycle.opts");return r?(t.cycleStop++,t.cycleTimeout&&clearTimeout(t.cycleTimeout),t.cycleTimeout=0,e(t).removeData("cycle.opts"),"destroy"==i&&s(r),!1):!1;case"toggle":return t.cyclePause=1===t.cyclePause?0:1,o(t.cyclePause,c,t),!1;case"pause":return t.cyclePause=1,!1;case"resume":return t.cyclePause=0,o(!1,c,t),!1;case"prev":case"next":var r=e(t).data("cycle.opts");return r?(e.fn.cycle[i](r),!1):(n('options not found, "prev/next" ignored'),!1);default:i={fx:i}}return i}if(i.constructor==Number){var l=i;return(i=e(t).data("cycle.opts"))?0>l||l>=i.elements.length?(n("invalid slide index: "+l),!1):(i.nextSlide=l,t.cycleTimeout&&(clearTimeout(t.cycleTimeout),t.cycleTimeout=0),"string"==typeof c&&(i.oneTimeFx=c),f(i.elements,i,1,l>=i.currSlide),!1):(n("options not found, can not advance slide"),!1)}return i}function c(t,n){if(!e.support.opacity&&n.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(i){}}function s(t){t.next&&e(t.next).unbind(t.prevNextEvent),t.prev&&e(t.prev).unbind(t.prevNextEvent),(t.pager||t.pagerAnchorBuilder)&&e.each(t.pagerAnchors||[],function(){this.unbind().remove()}),t.pagerAnchors=null,t.destroy&&t.destroy(t)}function o(t,i,s,o,u){var p=e.extend({},e.fn.cycle.defaults,o||{},e.metadata?t.metadata():e.meta?t.data():{});p.autostop&&(p.countdown=p.autostopCount||s.length);var y=t[0];if(t.data("cycle.opts",p),p.$cont=t,p.stopCount=y.cycleStop,p.elements=s,p.before=p.before?[p.before]:[],p.after=p.after?[p.after]:[],!e.support.opacity&&p.cleartype&&p.after.push(function(){c(this,p)}),p.continuous&&p.after.push(function(){f(s,p,0,!p.backwards)}),r(p),e.support.opacity||!p.cleartype||p.cleartypeNoBg||m(i),"static"==t.css("position")&&t.css("position","relative"),p.width&&t.width(p.width),p.height&&"auto"!=p.height&&t.height(p.height),p.startingSlide?p.startingSlide=parseInt(p.startingSlide):p.backwards&&(p.startingSlide=s.length-1),p.random){p.randomMap=[];for(var g=0;g=s.length&&(p.startingSlide=0);p.currSlide=p.startingSlide||0;var x=p.startingSlide;i.css({position:"absolute",top:0,left:0}).hide().each(function(t){var n;n=p.backwards?x?x>=t?s.length+(t-x):x-t:s.length-t:x?t>=x?s.length-(t-x):x-t:s.length-t,e(this).css("z-index",n)}),e(s[x]).css("opacity",1).show(),c(s[x],p),p.fit&&p.width&&i.width(p.width),p.fit&&p.height&&"auto"!=p.height&&i.height(p.height);var v=p.containerResize&&!t.innerHeight();if(v){for(var w=0,b=0,B=0;Bw?O:w,b=F>b?F:b}w>0&&b>0&&t.css({width:w+"px",height:b+"px"})}if(p.pause&&t.hover(function(){this.cyclePause++},function(){this.cyclePause--}),l(p)===!1)return!1;var A=!1;if(o.requeueAttempts=o.requeueAttempts||0,i.each(function(){var t=e(this);if(this.cycleH=p.fit&&p.height?p.height:t.height()||this.offsetHeight||this.height||t.attr("height")||0,this.cycleW=p.fit&&p.width?p.width:t.width()||this.offsetWidth||this.width||t.attr("width")||0,t.is("img")){var i=e.browser.msie&&28==this.cycleW&&30==this.cycleH&&!this.complete,c=e.browser.mozilla&&34==this.cycleW&&19==this.cycleH&&!this.complete,s=e.browser.opera&&(42==this.cycleW&&19==this.cycleH||37==this.cycleW&&17==this.cycleH)&&!this.complete,r=0==this.cycleH&&0==this.cycleW&&!this.complete;if(i||c||s||r){if(u.s&&p.requeueOnImageNotLoaded&&++o.requeueAttempts<100)return n(o.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){e(u.s,u.c).cycle(o)},p.requeueTimeout),A=!0,!1;n("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),A)return!1;if(p.cssBefore=p.cssBefore||{},p.cssAfter=p.cssAfter||{},p.cssFirst=p.cssFirst||{},p.animIn=p.animIn||{},p.animOut=p.animOut||{},i.not(":eq("+x+")").css(p.cssBefore),e(i[x]).css(p.cssFirst),p.timeout){p.timeout=parseInt(p.timeout),p.speed.constructor==String&&(p.speed=e.fx.speeds[p.speed]||parseInt(p.speed)),p.sync||(p.speed=p.speed/2);for(var H="none"==p.fx?0:"shuffle"==p.fx?500:250;p.timeout-p.speed=s.length-1?0:p.startingSlide+1,!p.multiFx){var T=e.fn.cycle.transitions[p.fx];if(e.isFunction(T))T(t,i,p);else if("custom"!=p.fx&&!p.multiFx)return n("unknown transition: "+p.fx,"; slideshow terminating"),!1}var k=i[x];return p.before.length&&p.before[0].apply(k,[k,k,p,!0]),p.after.length&&p.after[0].apply(k,[k,k,p,!0]),p.next&&e(p.next).bind(p.prevNextEvent,function(){return d(p,1)}),p.prev&&e(p.prev).bind(p.prevNextEvent,function(){return d(p,0)}),(p.pager||p.pagerAnchorBuilder)&&h(s,p),a(p,s),p}function r(t){t.original={before:[],after:[]},t.original.cssBefore=e.extend({},t.cssBefore),t.original.cssAfter=e.extend({},t.cssAfter),t.original.animIn=e.extend({},t.animIn),t.original.animOut=e.extend({},t.animOut),e.each(t.before,function(){t.original.before.push(this)}),e.each(t.after,function(){t.original.after.push(this)})}function l(i){var c,s,o=e.fn.cycle.transitions;if(i.fx.indexOf(",")>0){for(i.multiFx=!0,i.fxs=i.fx.replace(/\s*/g,"").split(","),c=0;cc;c++){var a=Math.floor(Math.random()*i.fxs.length);i.fxs.push(i.fxs.splice(a,1)[0])}t("randomized fx sequence: ",i.fxs)}return!0}function a(t,n){t.addSlide=function(i,c){var s=e(i),o=s[0];t.autostopCount||t.countdown++,n[c?"unshift":"push"](o),t.els&&t.els[c?"unshift":"push"](o),t.slideCount=n.length,s.css("position","absolute"),s[c?"prependTo":"appendTo"](t.$cont),c&&(t.currSlide++,t.nextSlide++),e.support.opacity||!t.cleartype||t.cleartypeNoBg||m(s),t.fit&&t.width&&s.width(t.width),t.fit&&t.height&&"auto"!=t.height&&s.height(t.height),o.cycleH=t.fit&&t.height?t.height:s.height(),o.cycleW=t.fit&&t.width?t.width:s.width(),s.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&e.fn.cycle.createPagerAnchor(n.length-1,o,e(t.pager),n,t),e.isFunction(t.onAddSlide)?t.onAddSlide(s):s.hide()}}function f(n,i,c,s){if(c&&i.busy&&i.manualTrump&&(t("manualTrump in go(), stopping active transition"),e(n).stop(!0,!0),i.busy=0),i.busy)return void t("transition active, ignoring new tx request");var o=i.$cont[0],r=n[i.currSlide],l=n[i.nextSlide];if(o.cycleStop==i.stopCount&&(0!==o.cycleTimeout||c)){if(!c&&!o.cyclePause&&!i.bounce&&(i.autostop&&--i.countdown<=0||i.nowrap&&!i.random&&i.nextSlide=i.fxs.length)&&(i.lastFx=0),d=i.fxs[i.lastFx],i.currFx=d),i.oneTimeFx&&(d=i.oneTimeFx,i.oneTimeFx=null),e.fn.cycle.resetState(i,d),i.before.length&&e.each(i.before,function(e,t){o.cycleStop==i.stopCount&&t.apply(l,[r,l,i,s])});var h=function(){i.busy=0,e.each(i.after,function(e,t){o.cycleStop==i.stopCount&&t.apply(l,[r,l,i,s])})};t("tx firing("+d+"); currSlide: "+i.currSlide+"; nextSlide: "+i.nextSlide),i.busy=1,i.fxFn?i.fxFn(r,l,i,h,s,c&&i.fastOnEvent):e.isFunction(e.fn.cycle[i.fx])?e.fn.cycle[i.fx](r,l,i,h,s,c&&i.fastOnEvent):e.fn.cycle.custom(r,l,i,h,s,c&&i.fastOnEvent)}if(a||i.nextSlide==i.currSlide)if(i.lastSlide=i.currSlide,i.random)i.currSlide=i.nextSlide,++i.randomIndex==n.length&&(i.randomIndex=0),i.nextSlide=i.randomMap[i.randomIndex],i.nextSlide==i.currSlide&&(i.nextSlide=i.currSlide==i.slideCount-1?0:i.currSlide+1);else if(i.backwards){var p=i.nextSlide-1<0;p&&i.bounce?(i.backwards=!i.backwards,i.nextSlide=1,i.currSlide=0):(i.nextSlide=p?n.length-1:i.nextSlide-1,i.currSlide=p?0:i.nextSlide+1)}else{var p=i.nextSlide+1==n.length;p&&i.bounce?(i.backwards=!i.backwards,i.nextSlide=n.length-2,i.currSlide=n.length-1):(i.nextSlide=p?0:i.nextSlide+1,i.currSlide=p?n.length-1:i.nextSlide-1)}a&&i.pager&&i.updateActivePagerLink(i.pager,i.currSlide,i.activePagerClass);var m=0;i.timeout&&!i.continuous?m=u(n[i.currSlide],n[i.nextSlide],i,s):i.continuous&&o.cyclePause&&(m=10),m>0&&(o.cycleTimeout=setTimeout(function(){f(n,i,0,!i.backwards)},m))}}function u(e,n,i,c){if(i.timeoutFn){for(var s=i.timeoutFn.call(e,e,n,i,c);"none"!=i.fx&&s-i.speed<250;)s+=i.speed;if(t("calculated timeout: "+s+"; speed: "+i.speed),s!==!1)return s}return i.timeout}function d(t,n){var i=n?1:-1,c=t.elements,s=t.$cont[0],o=s.cycleTimeout;if(o&&(clearTimeout(o),s.cycleTimeout=0),t.random&&0>i)t.randomIndex--,-2==--t.randomIndex?t.randomIndex=c.length-2:-1==t.randomIndex&&(t.randomIndex=c.length-1),t.nextSlide=t.randomMap[t.randomIndex];else if(t.random)t.nextSlide=t.randomMap[t.randomIndex];else if(t.nextSlide=t.currSlide+i,t.nextSlide<0){if(t.nowrap)return!1;t.nextSlide=c.length-1}else if(t.nextSlide>=c.length){if(t.nowrap)return!1;t.nextSlide=0}var r=t.onPrevNextEvent||t.prevNextClick;return e.isFunction(r)&&r(i>0,t.nextSlide,c[t.nextSlide]),f(c,t,1,n),!1}function h(t,n){var i=e(n.pager);e.each(t,function(c,s){e.fn.cycle.createPagerAnchor(c,s,i,t,n)}),n.updateActivePagerLink(n.pager,n.startingSlide,n.activePagerClass)}function m(n){function i(e){return e=parseInt(e).toString(16),e.length<2?"0"+e:e}function c(t){for(;t&&"html"!=t.nodeName.toLowerCase();t=t.parentNode){var n=e.css(t,"background-color");if(n&&n.indexOf("rgb")>=0){var c=n.match(/\d+/g);return"#"+i(c[0])+i(c[1])+i(c[2])}if(n&&"transparent"!=n)return n}return"#ffffff"}t("applying clearType background-color hack"),n.each(function(){e(this).css("background-color",c(this))})}var y="2.99";void 0==e.support&&(e.support={opacity:!e.browser.msie}),e.expr[":"].paused=function(e){return e.cyclePause},e.fn.cycle=function(c,s){var r={s:this.selector,c:this.context};return 0===this.length&&"stop"!=c?!e.isReady&&r.s?(n("DOM not ready, queuing slideshow"),e(function(){e(r.s,r.c).cycle(c,s)}),this):(n("terminating; zero elements found by selector"+(e.isReady?"":" (DOM not ready)")),this):this.each(function(){var l=i(this,c,s);if(l!==!1){l.updateActivePagerLink=l.updateActivePagerLink||e.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0;var a=e(this),d=l.slideExpr?e(l.slideExpr,this):a.children(),h=d.get();if(h.length<2)return void n("terminating; too few slides: "+h.length);var p=o(a,d,h,l,r);if(p!==!1){var m=p.continuous?10:u(h[p.currSlide],h[p.nextSlide],p,!p.backwards);m&&(m+=p.delay||0,10>m&&(m=10),t("first timeout: "+m),this.cycleTimeout=setTimeout(function(){f(h,p,0,!l.backwards)},m))}}})},e.fn.cycle.resetState=function(t,n){n=n||t.fx,t.before=[],t.after=[],t.cssBefore=e.extend({},t.original.cssBefore),t.cssAfter=e.extend({},t.original.cssAfter),t.animIn=e.extend({},t.original.animIn),t.animOut=e.extend({},t.original.animOut),t.fxFn=null,e.each(t.original.before,function(){t.before.push(this)}),e.each(t.original.after,function(){t.after.push(this)});var i=e.fn.cycle.transitions[n];e.isFunction(i)&&i(t.$cont,e(t.elements),t)},e.fn.cycle.updateActivePagerLink=function(t,n,i){e(t).each(function(){e(this).children().removeClass(i).eq(n).addClass(i)})},e.fn.cycle.next=function(e){d(e,1)},e.fn.cycle.prev=function(e){d(e,0)},e.fn.cycle.createPagerAnchor=function(n,i,c,s,o){var r;if(e.isFunction(o.pagerAnchorBuilder)?(r=o.pagerAnchorBuilder(n,i),t("pagerAnchorBuilder("+n+", el) returned: "+r)):r=''+(n+1)+"",r){var l=e(r);if(0===l.parents("body").length){var a=[];c.length>1?(c.each(function(){var t=l.clone(!0);e(this).append(t),a.push(t[0])}),l=e(a)):l.appendTo(c)}o.pagerAnchors=o.pagerAnchors||[],o.pagerAnchors.push(l),l.bind(o.pagerEvent,function(t){t.preventDefault(),o.nextSlide=n;var i=o.$cont[0],c=i.cycleTimeout;c&&(clearTimeout(c),i.cycleTimeout=0);var r=o.onPagerEvent||o.pagerClick;e.isFunction(r)&&r(o.nextSlide,s[o.nextSlide]),f(s,o,1,o.currSlidei?c-i:e.slideCount-i:i>c?i-c:i+e.slideCount-c},e.fn.cycle.commonReset=function(t,n,i,c,s,o){e(i.elements).not(t).hide(),"undefined"==typeof i.cssBefore.opacity&&(i.cssBefore.opacity=1),i.cssBefore.display="block",i.slideResize&&c!==!1&&n.cycleW>0&&(i.cssBefore.width=n.cycleW),i.slideResize&&s!==!1&&n.cycleH>0&&(i.cssBefore.height=n.cycleH),i.cssAfter=i.cssAfter||{},i.cssAfter.display="none",e(t).css("zIndex",i.slideCount+(o===!0?1:0)),e(n).css("zIndex",i.slideCount+(o===!0?0:1))},e.fn.cycle.custom=function(t,n,i,c,s,o){var r=e(t),l=e(n),a=i.speedIn,f=i.speedOut,u=i.easeIn,d=i.easeOut;l.css(i.cssBefore),o&&(a=f="number"==typeof o?o:1,u=d=null);var h=function(){l.animate(i.animIn,a,u,function(){c()})};r.animate(i.animOut,f,d,function(){r.css(i.cssAfter),i.sync||h()}),i.sync&&h()},e.fn.cycle.transitions={fade:function(t,n,i){n.not(":eq("+i.currSlide+")").css("opacity",0),i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i),i.cssBefore.opacity=0}),i.animIn={opacity:1},i.animOut={opacity:0},i.cssBefore={top:0,left:0}}},e.fn.cycle.ver=function(){return y},e.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:!1,before:null,cleartype:!e.support.opacity,cleartypeNoBg:!1,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null}}(jQuery),function(e){e.fn.cycle.transitions.none=function(t,n,i){i.fxFn=function(t,n,i,c){e(n).show(),e(t).hide(),c()}},e.fn.cycle.transitions.fadeout=function(t,n,i){n.not(":eq("+i.currSlide+")").css({display:"block",opacity:1}),i.before.push(function(t,n,i,c,s,o){e(t).css("zIndex",i.slideCount+(!o==!0?1:0)),e(n).css("zIndex",i.slideCount+(!o==!0?0:1))}),i.animIn.opacity=1,i.animOut.opacity=0,i.cssBefore.opacity=1,i.cssBefore.display="block",i.cssAfter.zIndex=0},e.fn.cycle.transitions.scrollUp=function(t,n,i){t.css("overflow","hidden"),i.before.push(e.fn.cycle.commonReset);var c=t.height();i.cssBefore.top=c,i.cssBefore.left=0,i.cssFirst.top=0,i.animIn.top=0,i.animOut.top=-c},e.fn.cycle.transitions.scrollDown=function(t,n,i){t.css("overflow","hidden"),i.before.push(e.fn.cycle.commonReset);var c=t.height();i.cssFirst.top=0,i.cssBefore.top=-c,i.cssBefore.left=0,i.animIn.top=0,i.animOut.top=c},e.fn.cycle.transitions.scrollLeft=function(t,n,i){t.css("overflow","hidden"),i.before.push(e.fn.cycle.commonReset);var c=t.width();i.cssFirst.left=0,i.cssBefore.left=c,i.cssBefore.top=0,i.animIn.left=0,i.animOut.left=0-c},e.fn.cycle.transitions.scrollRight=function(t,n,i){t.css("overflow","hidden"),i.before.push(e.fn.cycle.commonReset);var c=t.width();i.cssFirst.left=0,i.cssBefore.left=-c,i.cssBefore.top=0,i.animIn.left=0,i.animOut.left=c},e.fn.cycle.transitions.scrollHorz=function(t,n,i){t.css("overflow","hidden").width(),i.before.push(function(t,n,i,c){i.rev&&(c=!c),e.fn.cycle.commonReset(t,n,i),i.cssBefore.left=c?n.cycleW-1:1-n.cycleW,i.animOut.left=c?-t.cycleW:t.cycleW}),i.cssFirst.left=0,i.cssBefore.top=0,i.animIn.left=0,i.animOut.top=0},e.fn.cycle.transitions.scrollVert=function(t,n,i){t.css("overflow","hidden"),i.before.push(function(t,n,i,c){i.rev&&(c=!c),e.fn.cycle.commonReset(t,n,i),i.cssBefore.top=c?1-n.cycleH:n.cycleH-1,i.animOut.top=c?t.cycleH:-t.cycleH}),i.cssFirst.top=0,i.cssBefore.left=0,i.animIn.top=0,i.animOut.left=0},e.fn.cycle.transitions.slideX=function(t,n,i){i.before.push(function(t,n,i){e(i.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,i,!1,!0),i.animIn.width=n.cycleW}),i.cssBefore.left=0,i.cssBefore.top=0,i.cssBefore.width=0,i.animIn.width="show",i.animOut.width=0},e.fn.cycle.transitions.slideY=function(t,n,i){i.before.push(function(t,n,i){e(i.elements).not(t).hide(),e.fn.cycle.commonReset(t,n,i,!0,!1),i.animIn.height=n.cycleH}),i.cssBefore.left=0,i.cssBefore.top=0,i.cssBefore.height=0,i.animIn.height="show",i.animOut.height=0},e.fn.cycle.transitions.shuffle=function(t,n,i){var c,s=t.css("overflow","visible").width();for(n.css({left:0,top:0}),i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!0,!0)}),i.speedAdjusted||(i.speed=i.speed/2,i.speedAdjusted=!0),i.random=0,i.shuffle=i.shuffle||{left:-s,top:15},i.els=[],c=0;cl;l++)s?i.els.push(i.els.shift()):i.els.unshift(i.els.pop());if(s)for(var a=0,f=i.els.length;f>a;a++)e(i.els[a]).css("z-index",f-a+r);else{var u=e(t).css("z-index");o.css("z-index",parseInt(u)+1+r)}o.animate({left:0,top:0},i.speedOut,i.easeOut,function(){e(s?this:t).hide(),c&&c()})})},e.extend(i.cssBefore,{display:"block",opacity:1,top:0,left:0})},e.fn.cycle.transitions.turnUp=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!1),i.cssBefore.top=n.cycleH,i.animIn.height=n.cycleH,i.animOut.width=n.cycleW}),i.cssFirst.top=0,i.cssBefore.left=0,i.cssBefore.height=0,i.animIn.top=0,i.animOut.height=0},e.fn.cycle.transitions.turnDown=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!1),i.animIn.height=n.cycleH,i.animOut.top=t.cycleH}),i.cssFirst.top=0,i.cssBefore.left=0,i.cssBefore.top=0,i.cssBefore.height=0,i.animOut.height=0},e.fn.cycle.transitions.turnLeft=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!0),i.cssBefore.left=n.cycleW,i.animIn.width=n.cycleW}),i.cssBefore.top=0,i.cssBefore.width=0,i.animIn.left=0,i.animOut.width=0},e.fn.cycle.transitions.turnRight=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!0),i.animIn.width=n.cycleW,i.animOut.left=t.cycleW}),e.extend(i.cssBefore,{top:0,left:0,width:0}),i.animIn.left=0,i.animOut.width=0},e.fn.cycle.transitions.zoom=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!1,!0),i.cssBefore.top=n.cycleH/2,i.cssBefore.left=n.cycleW/2,e.extend(i.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH}),e.extend(i.animOut,{width:0,height:0,top:t.cycleH/2,left:t.cycleW/2})}),i.cssFirst.top=0,i.cssFirst.left=0,i.cssBefore.width=0,i.cssBefore.height=0},e.fn.cycle.transitions.fadeZoom=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!1),i.cssBefore.left=n.cycleW/2,i.cssBefore.top=n.cycleH/2,e.extend(i.animIn,{top:0,left:0,width:n.cycleW,height:n.cycleH})}),i.cssBefore.width=0,i.cssBefore.height=0,i.animOut.opacity=0},e.fn.cycle.transitions.blindX=function(t,n,i){var c=t.css("overflow","hidden").width();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i),i.animIn.width=n.cycleW,i.animOut.left=t.cycleW}),i.cssBefore.left=c,i.cssBefore.top=0,i.animIn.left=0,i.animOut.left=c},e.fn.cycle.transitions.blindY=function(t,n,i){var c=t.css("overflow","hidden").height();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i),i.animIn.height=n.cycleH,i.animOut.top=t.cycleH}),i.cssBefore.top=c,i.cssBefore.left=0,i.animIn.top=0,i.animOut.top=c},e.fn.cycle.transitions.blindZ=function(t,n,i){var c=t.css("overflow","hidden").height(),s=t.width();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i),i.animIn.height=n.cycleH,i.animOut.top=t.cycleH}),i.cssBefore.top=c,i.cssBefore.left=s,i.animIn.top=0,i.animIn.left=0,i.animOut.top=c,i.animOut.left=s},e.fn.cycle.transitions.growX=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!0),i.cssBefore.left=this.cycleW/2,i.animIn.left=0,i.animIn.width=this.cycleW,i.animOut.left=0}),i.cssBefore.top=0,i.cssBefore.width=0},e.fn.cycle.transitions.growY=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!1),i.cssBefore.top=this.cycleH/2,i.animIn.top=0,i.animIn.height=this.cycleH,i.animOut.top=0}),i.cssBefore.height=0,i.cssBefore.left=0},e.fn.cycle.transitions.curtainX=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!1,!0,!0),i.cssBefore.left=n.cycleW/2,i.animIn.left=0,i.animIn.width=this.cycleW,i.animOut.left=t.cycleW/2,i.animOut.width=0}),i.cssBefore.top=0,i.cssBefore.width=0},e.fn.cycle.transitions.curtainY=function(t,n,i){i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!1,!0),i.cssBefore.top=n.cycleH/2,i.animIn.top=0,i.animIn.height=n.cycleH,i.animOut.top=t.cycleH/2,i.animOut.height=0}),i.cssBefore.height=0,i.cssBefore.left=0},e.fn.cycle.transitions.cover=function(t,n,i){var c=i.direction||"left",s=t.css("overflow","hidden").width(),o=t.height();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i),"right"==c?i.cssBefore.left=-s:"up"==c?i.cssBefore.top=o:"down"==c?i.cssBefore.top=-o:i.cssBefore.left=s}),i.animIn.left=0,i.animIn.top=0,i.cssBefore.top=0,i.cssBefore.left=0},e.fn.cycle.transitions.uncover=function(t,n,i){var c=i.direction||"left",s=t.css("overflow","hidden").width(),o=t.height();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!0,!0),"right"==c?i.animOut.left=s:"up"==c?i.animOut.top=-o:"down"==c?i.animOut.top=o:i.animOut.left=-s}),i.animIn.left=0,i.animIn.top=0,i.cssBefore.top=0,i.cssBefore.left=0},e.fn.cycle.transitions.toss=function(t,n,i){var c=t.css("overflow","visible").width(),s=t.height();i.before.push(function(t,n,i){e.fn.cycle.commonReset(t,n,i,!0,!0,!0),i.animOut.left||i.animOut.top?i.animOut.opacity=0:e.extend(i.animOut,{left:2*c,top:-s/2,opacity:0})}),i.cssBefore.left=0,i.cssBefore.top=0,i.animIn.left=0},e.fn.cycle.transitions.wipe=function(t,n,i){var c=t.css("overflow","hidden").width(),s=t.height();i.cssBefore=i.cssBefore||{};var o;if(i.clip)if(/l2r/.test(i.clip))o="rect(0px 0px "+s+"px 0px)";else if(/r2l/.test(i.clip))o="rect(0px "+c+"px "+s+"px "+c+"px)";else if(/t2b/.test(i.clip))o="rect(0px "+c+"px 0px 0px)";else if(/b2t/.test(i.clip))o="rect("+s+"px "+c+"px "+s+"px 0px)";else if(/zoom/.test(i.clip)){var r=parseInt(s/2),l=parseInt(c/2);o="rect("+r+"px "+l+"px "+r+"px "+l+"px)"}i.cssBefore.clip=i.cssBefore.clip||o||"rect(0px 0px 0px 0px)";var a=i.cssBefore.clip.match(/(\d+)/g),f=parseInt(a[0]),u=parseInt(a[1]),d=parseInt(a[2]),h=parseInt(a[3]);i.before.push(function(t,n,i){if(t!=n){var o=e(t),r=e(n);e.fn.cycle.commonReset(t,n,i,!0,!0,!1),i.cssAfter.display="block";var l=1,a=parseInt(i.speedIn/13)-1;!function p(){var e=f?f-parseInt(l*(f/a)):0,t=h?h-parseInt(l*(h/a)):0,n=s>d?d+parseInt(l*((s-d)/a||1)):s,i=c>u?u+parseInt(l*((c-u)/a||1)):c;r.css({clip:"rect("+e+"px "+i+"px "+n+"px "+t+"px)"}),l++<=a?setTimeout(p,13):o.css("display","none")}()}}),e.extend(i.cssBefore,{display:"block",opacity:1,top:0,left:0}),i.animIn={left:0},i.animOut={left:0}}}(jQuery);