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