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

