(function(c){function h(a){c.fn.cycle.debug&&m(a)}function m(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function e(a,d,f){if(a.cycleStop==undefined)a.cycleStop=0;if(d===undefined||d===null)d={};if(d.constructor==String){switch(d){case "stop":a.cycleStop++;a.cycleTimeout&&clearTimeout(a.cycleTimeout);a.cycleTimeout=0;c(a).removeData("cycle.opts");return false;case "pause":a.cyclePause=1;return false;case "resume":a.cyclePause=0;if(f=== true){d=c(a).data("cycle.opts");if(!d){m("options not found, can not resume");return false}if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}q(d.elements,d,1,1)}return false;case "prev":case "next":a=c(a).data("cycle.opts");if(!a){m('options not found, "prev/next" ignored');return false}c.fn.cycle[d](a);return false;default:d={fx:d}}return d}else if(d.constructor==Number){var j=d;d=c(a).data("cycle.opts");if(!d){m("options not found, can not advance slide");return false}if(j<0||j>= d.elements.length){m("invalid slide index: "+j);return false}d.nextSlide=j;if(a.cycleTimeout){clearTimeout(a.cycleTimeout);a.cycleTimeout=0}if(typeof f=="string")d.oneTimeFx=f;q(d.elements,d,1,j>=d.currSlide);return false}return d}function k(a,d){if(!c.support.opacity&&d.cleartype&&a.style.filter)try{a.style.removeAttribute("filter")}catch(f){}}function i(a,d,f,j,l){var b=c.extend({},c.fn.cycle.defaults,j||{},c.metadata?a.metadata():c.meta?a.data():{});if(b.autostop)b.countdown=b.autostopCount||f.length; var n=a[0];a.data("cycle.opts",b);b.$cont=a;b.stopCount=n.cycleStop;b.elements=f;b.before=b.before?[b.before]:[];b.after=b.after?[b.after]:[];b.after.unshift(function(){b.busy=0});!c.support.opacity&&b.cleartype&&b.after.push(function(){k(this,b)});b.continuous&&b.after.push(function(){q(f,b,0,!b.rev)});g(b);!c.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&A(d);a.css("position")=="static"&&a.css("position","relative");b.width&&a.width(b.width);b.height&&b.height!="auto"&&a.height(b.height);if(b.startingSlide)b.startingSlide= parseInt(b.startingSlide);if(b.random){b.randomMap=[];for(n=0;n=f.length)b.startingSlide=0;b.currSlide=b.startingSlide=b.startingSlide||0;var o=b.startingSlide;d.css({position:"absolute",top:0,left:0}).hide().each(function(v){v=o?v>=o?f.length-(v-o):o-v:f.length-v;c(this).css("z-index",v)});c(f[o]).css("opacity",1).show();k(f[o],b);b.fit&& b.width&&d.width(b.width);b.fit&&b.height&&b.height!="auto"&&d.height(b.height);if(b.containerResize&&!a.innerHeight()){for(var u=n=0,z=0;zn?B:n;u=y>u?y:u}n>0&&u>0&&a.css({width:n+"px",height:u+"px"})}b.pause&&a.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(r(b)===false)return false;var D=false;j.requeueAttempts=j.requeueAttempts||0;d.each(function(){var v= c(this);this.cycleH=b.fit&&b.height?b.height:v.height();this.cycleW=b.fit&&b.width?b.width:v.width();if(v.is("img")){v=c.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete;var E=c.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,F=this.cycleH==0&&this.cycleW==0&&!this.complete;if(c.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete||v||E||F)if(l.s&&b.requeueOnImageNotLoaded&&++j.requeueAttempts<100){m(j.requeueAttempts, " - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){c(l.s,l.c).cycle(j)},b.requeueTimeout);D=true;return false}else m("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||{};d.not(":eq("+o+")").css(b.cssBefore);b.cssFirst&&c(d[o]).css(b.cssFirst);if(b.timeout){b.timeout=parseInt(b.timeout);if(b.speed.constructor==String)b.speed= c.fx.speeds[b.speed]||parseInt(b.speed);for(b.sync||(b.speed/=2);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=f.length;b.currSlide=b.lastSlide=o;if(b.random){b.nextSlide=b.currSlide;if(++b.randomIndex==f.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else b.nextSlide=b.startingSlide>=f.length-1?0:b.startingSlide+1;if(!b.multiFx){n=c.fn.cycle.transitions[b.fx];if(c.isFunction(n))n(a, d,b);else if(b.fx!="custom"&&!b.multiFx){m("unknown transition: "+b.fx,"; slideshow terminating");return false}}a=d[o];b.before.length&&b.before[0].apply(a,[a,a,b,true]);b.after.length>1&&b.after[1].apply(a,[a,a,b,true]);b.next&&c(b.next).bind(b.prevNextEvent,function(){return t(b,b.rev?-1:1)});b.prev&&c(b.prev).bind(b.prevNextEvent,function(){return t(b,b.rev?1:-1)});b.pager&&w(f,b);s(b,f);return b}function g(a){a.original={before:[],after:[]};a.original.cssBefore=c.extend({},a.cssBefore);a.original.cssAfter= c.extend({},a.cssAfter);a.original.animIn=c.extend({},a.animIn);a.original.animOut=c.extend({},a.animOut);c.each(a.before,function(){a.original.before.push(this)});c.each(a.after,function(){a.original.after.push(this)})}function r(a){var d,f,j=c.fn.cycle.transitions;if(a.fx.indexOf(",")>0){a.multiFx=true;a.fxs=a.fx.replace(/\s*/g,"").split(",");for(d=0;d=d.fxs.length)d.lastFx=0;o=d.fxs[d.lastFx];d.currFx=o}if(d.oneTimeFx){o=d.oneTimeFx;d.oneTimeFx=null}c.fn.cycle.resetState(d,o);d.before.length&&c.each(d.before,function(u,z){l.cycleStop==d.stopCount&&z.apply(n,[b,n,d,j])});o=function(){c.each(d.after,function(u,z){l.cycleStop==d.stopCount&&z.apply(n,[b,n,d,j])})};if(d.nextSlide!=d.currSlide){d.busy=1;if(d.fxFn)d.fxFn(b,n,d,o,j);else c.isFunction(c.fn.cycle[d.fx])?c.fn.cycle[d.fx](b, n,d,o):c.fn.cycle.custom(b,n,d,o,f&&d.fastOnEvent)}d.lastSlide=d.currSlide;if(d.random){d.currSlide=d.nextSlide;if(++d.randomIndex==a.length)d.randomIndex=0;d.nextSlide=d.randomMap[d.randomIndex]}else{f=d.nextSlide+1==a.length;d.nextSlide=f?0:d.nextSlide+1;d.currSlide=f?a.length-1:d.nextSlide-1}d.pager&&c.fn.cycle.updateActivePagerLink(d.pager,d.currSlide)}f=0;if(d.timeout&&!d.continuous)f=x(b,n,d,j);else if(d.continuous&&l.cyclePause)f=10;if(f>0)l.cycleTimeout=setTimeout(function(){q(a,d,0,!d.rev)}, f)}}}function x(a,d,f,j){if(f.timeoutFn){for(a=f.timeoutFn(a,d,f,j);a-f.speed<250;)a+=f.speed;h("calculated timeout: "+a+"; speed: "+f.speed);if(a!==false)return a}return f.timeout}function t(a,d){var f=a.elements,j=a.$cont[0],l=j.cycleTimeout;if(l){clearTimeout(l);j.cycleTimeout=0}if(a.random&&d<0){a.randomIndex--;if(--a.randomIndex==-2)a.randomIndex=f.length-2;else if(a.randomIndex==-1)a.randomIndex=f.length-1;a.nextSlide=a.randomMap[a.randomIndex]}else if(a.random){if(++a.randomIndex==f.length)a.randomIndex= 0;a.nextSlide=a.randomMap[a.randomIndex]}else{a.nextSlide=a.currSlide+d;if(a.nextSlide<0){if(a.nowrap)return false;a.nextSlide=f.length-1}else if(a.nextSlide>=f.length){if(a.nowrap)return false;a.nextSlide=0}}c.isFunction(a.prevNextClick)&&a.prevNextClick(d>0,a.nextSlide,f[a.nextSlide]);q(f,a,1,d>=0);return false}function w(a,d){var f=c(d.pager);c.each(a,function(j,l){c.fn.cycle.createPagerAnchor(j,l,f,a,d)});c.fn.cycle.updateActivePagerLink(d.pager,d.startingSlide)}function A(a){function d(j){j= parseInt(j).toString(16);return j.length<2?"0"+j:j}function f(j){for(;j&&j.nodeName.toLowerCase()!="html";j=j.parentNode){var l=c.css(j,"background-color");if(l.indexOf("rgb")>=0){j=l.match(/\d+/g);return"#"+d(j[0])+d(j[1])+d(j[2])}if(l&&l!="transparent")return l}return"#ffffff"}a.each(function(){c(this).css("background-color",f(this))})}if(c.support==undefined)c.support={opacity:!c.browser.msie};c.fn.cycle=function(a,d){var f={s:this.selector,c:this.context};if(this.length===0&&a!="stop"){if(!c.isReady&& f.s){m("DOM not ready, queuing slideshow");c(function(){c(f.s,f.c).cycle(a,d)});return this}m("terminating; zero elements found by selector"+(c.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var j=e(this,a,d);if(j!==false){this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var l=c(this),b=j.slideExpr?c(j.slideExpr,this):l.children(),n=b.get();if(n.length<2)m("terminating; too few slides: "+n.length);else{var o=i(l,b,n,j,f);if(o!==false)if(j= o.continuous?10:x(o.currSlide,o.nextSlide,o,!o.rev)){j+=o.delay||0;if(j<10)j=10;h("first timeout: "+j);this.cycleTimeout=setTimeout(function(){q(n,o,0,!o.rev)},j)}}}})};c.fn.cycle.resetState=function(a,d){d=d||a.fx;a.before=[];a.after=[];a.cssBefore=c.extend({},a.original.cssBefore);a.cssAfter=c.extend({},a.original.cssAfter);a.animIn=c.extend({},a.original.animIn);a.animOut=c.extend({},a.original.animOut);a.fxFn=null;c.each(a.original.before,function(){a.before.push(this)});c.each(a.original.after, function(){a.after.push(this)});var f=c.fn.cycle.transitions[d];c.isFunction(f)&&f(a.$cont,c(a.elements),a)};c.fn.cycle.updateActivePagerLink=function(a,d){c(a).find("a").removeClass("activeSlide").filter("a:eq("+d+")").addClass("activeSlide")};c.fn.cycle.next=function(a){t(a,a.rev?-1:1)};c.fn.cycle.prev=function(a){t(a,a.rev?1:-1)};c.fn.cycle.createPagerAnchor=function(a,d,f,j,l){if(d=c.isFunction(l.pagerAnchorBuilder)?l.pagerAnchorBuilder(a,d):''+(a+1)+""){var b=c(d);if(b.parents("body").length=== 0){var n=[];if(f.length>1){f.each(function(){var o=b.clone(true);c(this).append(o);n.push(o)});b=c(n)}else b.appendTo(f)}b.bind(l.pagerEvent,function(o){o.preventDefault();l.nextSlide=a;o=l.$cont[0];var u=o.cycleTimeout;if(u){clearTimeout(u);o.cycleTimeout=0}c.isFunction(l.pagerClick)&&l.pagerClick(l.nextSlide,j[l.nextSlide]);q(j,l,1,l.currSlidef?j-f:a.slideCount-f:j0)f.cssBefore.width=d.cycleW;if(l!==false&&d.cycleH>0)f.cssBefore.height=d.cycleH;f.cssAfter=f.cssAfter||{};f.cssAfter.display="none";c(a).css("zIndex",f.slideCount+(b===true?1:0));c(d).css("zIndex",f.slideCount+(b===true?0:1))}; c.fn.cycle.custom=function(a,d,f,j,l){var b=c(a),n=c(d),o=f.speedIn;a=f.speedOut;var u=f.easeIn;d=f.easeOut;n.css(f.cssBefore);if(l){o=typeof l=="number"?(a=l):(a=1);u=d=null}b.animate(f.animOut,a,d,function(){f.cssAfter&&b.css(f.cssAfter);f.sync||n.animate(f.animIn,o,u,j)});f.sync&&n.animate(f.animIn,o,u,j)};c.fn.cycle.transitions={fade:function(a,d,f){d.not(":eq("+f.currSlide+")").css("opacity",0);f.before.push(function(j,l,b){c.fn.cycle.commonReset(j,l,b);b.cssBefore.opacity=0});f.animIn={opacity:1}; f.animOut={opacity:0};f.cssBefore={top:0,left:0}}};c.fn.cycle.ver=function(){return"2.72"};c.fn.cycle.defaults={fx:"fade",timeout:4E3,timeoutFn:null,continuous:0,speed:1E3,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",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:!c.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery); (function(c){c.fn.cycle.transitions.none=function(h,m,e){e.fxFn=function(k,i,g,r){c(i).show();c(k).hide();r()}};c.fn.cycle.transitions.scrollUp=function(h,m,e){h.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);h=h.height();e.cssBefore={top:h,left:0};e.cssFirst={top:0};e.animIn={top:0};e.animOut={top:-h}};c.fn.cycle.transitions.scrollDown=function(h,m,e){h.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);h=h.height();e.cssFirst={top:0};e.cssBefore={top:-h,left:0};e.animIn= {top:0};e.animOut={top:h}};c.fn.cycle.transitions.scrollLeft=function(h,m,e){h.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);h=h.width();e.cssFirst={left:0};e.cssBefore={left:h,top:0};e.animIn={left:0};e.animOut={left:0-h}};c.fn.cycle.transitions.scrollRight=function(h,m,e){h.css("overflow","hidden");e.before.push(c.fn.cycle.commonReset);h=h.width();e.cssFirst={left:0};e.cssBefore={left:-h,top:0};e.animIn={left:0};e.animOut={left:h}};c.fn.cycle.transitions.scrollHorz=function(h,m, e){h.css("overflow","hidden").width();e.before.push(function(k,i,g,r){c.fn.cycle.commonReset(k,i,g);g.cssBefore.left=r?i.cycleW-1:1-i.cycleW;g.animOut.left=r?-k.cycleW:k.cycleW});e.cssFirst={left:0};e.cssBefore={top:0};e.animIn={left:0};e.animOut={top:0}};c.fn.cycle.transitions.scrollVert=function(h,m,e){h.css("overflow","hidden");e.before.push(function(k,i,g,r){c.fn.cycle.commonReset(k,i,g);g.cssBefore.top=r?1-i.cycleH:i.cycleH-1;g.animOut.top=r?k.cycleH:-k.cycleH});e.cssFirst={top:0};e.cssBefore= {left:0};e.animIn={top:0};e.animOut={left:0}};c.fn.cycle.transitions.slideX=function(h,m,e){e.before.push(function(k,i,g){c(g.elements).not(k).hide();c.fn.cycle.commonReset(k,i,g,false,true);g.animIn.width=i.cycleW});e.cssBefore={left:0,top:0,width:0};e.animIn={width:"show"};e.animOut={width:0}};c.fn.cycle.transitions.slideY=function(h,m,e){e.before.push(function(k,i,g){c(g.elements).not(k).hide();c.fn.cycle.commonReset(k,i,g,true,false);g.animIn.height=i.cycleH});e.cssBefore={left:0,top:0,height:0}; e.animIn={height:"show"};e.animOut={height:0}};c.fn.cycle.transitions.shuffle=function(h,m,e){h=h.css("overflow","visible").width();m.css({left:0,top:0});e.before.push(function(k,i,g){c.fn.cycle.commonReset(k,i,g,true,true,true)});if(!e.speedAdjusted){e.speed/=2;e.speedAdjusted=true}e.random=0;e.shuffle=e.shuffle||{left:-h,top:15};e.els=[];for(h=0;h