(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)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()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=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=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=''+(b+1)+"";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.currSlidef?c-f:b.slideCount-f:c0)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