(function(I){var L="2.73";if(I.support==undefined){I.support={opacity:!(I.browser.msie)};}function A(P){if(I.fn.cycle.debug){F(P);}}function F(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}I.fn.cycle=function(Q,P){var R={s:this.selector,c:this.context};if(this.length===0&&Q!="stop"){if(!I.isReady&&R.s){F("DOM not ready, queuing slideshow");I(function(){I(R.s,R.c).cycle(Q,P);});return this;}F("terminating; zero elements found by selector"+(I.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var V=M(this,Q,P);if(V===false){return ;}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var W=I(this);var X=V.slideExpr?I(V.slideExpr,this):W.children();var T=X.get();if(T.length<2){F("terminating; too few slides: "+T.length);return ;}var S=K(W,X,T,V,R);if(S===false){return ;}var U=S.continuous?10:H(S.currSlide,S.nextSlide,S,!S.rev);if(U){U+=(S.delay||0);if(U<10){U=10;}A("first timeout: "+U);this.cycleTimeout=setTimeout(function(){E(T,S,0,!S.rev);},U);}});};function M(P,S,Q){if(P.cycleStop==undefined){P.cycleStop=0;}if(S===undefined||S===null){S={};}if(S.constructor==String){switch(S){case"stop":P.cycleStop++;if(P.cycleTimeout){clearTimeout(P.cycleTimeout);}P.cycleTimeout=0;I(P).removeData("cycle.opts");return false;case"pause":P.cyclePause=1;return false;case"resume":P.cyclePause=0;if(Q===true){S=I(P).data("cycle.opts");if(!S){F("options not found, can not resume");return false;}if(P.cycleTimeout){clearTimeout(P.cycleTimeout);P.cycleTimeout=0;}E(S.elements,S,1,1);}return false;case"prev":case"next":var T=I(P).data("cycle.opts");if(!T){F('options not found, "prev/next" ignored');return false;}I.fn.cycle[S](T);return false;default:S={fx:S};}return S;}else{if(S.constructor==Number){var R=S;S=I(P).data("cycle.opts");if(!S){F("options not found, can not advance slide");return false;}if(R<0||R>=S.elements.length){F("invalid slide index: "+R);return false;}S.nextSlide=R;if(P.cycleTimeout){clearTimeout(P.cycleTimeout);P.cycleTimeout=0;}if(typeof Q=="string"){S.oneTimeFx=Q;}E(S.elements,S,1,R>=S.currSlide);return false;}}return S;}function B(P,Q){if(!I.support.opacity&&Q.cleartype&&P.style.filter){try{P.style.removeAttribute("filter");}catch(R){}}}function K(W,l,T,S,c){var a=I.extend({},I.fn.cycle.defaults,S||{},I.metadata?W.metadata():I.meta?W.data():{});if(a.autostop){a.countdown=a.autostopCount||T.length;}var Q=W[0];W.data("cycle.opts",a);a.$cont=W;a.stopCount=Q.cycleStop;a.elements=T;a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:[];a.after.unshift(function(){a.busy=0;});if(!I.support.opacity&&a.cleartype){a.after.push(function(){B(this,a);});}if(a.continuous){a.after.push(function(){E(T,a,0,!a.rev);});}N(a);if(!I.support.opacity&&a.cleartype&&!a.cleartypeNoBg){G(l);}if(W.css("position")=="static"){W.css("position","relative");}if(a.width){W.width(a.width);}if(a.height&&a.height!="auto"){W.height(a.height);}if(a.startingSlide){a.startingSlide=parseInt(a.startingSlide);}if(a.random){a.randomMap=[];for(var g=0;g<T.length;g++){a.randomMap.push(g);}a.randomMap.sort(function(h,e){return Math.random()-0.5;});a.randomIndex=0;a.startingSlide=a.randomMap[0];}else{if(a.startingSlide>=T.length){a.startingSlide=0;}}a.currSlide=a.startingSlide=a.startingSlide||0;var V=a.startingSlide;l.css({position:"absolute",top:0,left:0}).hide().each(function(e){var h=V?e>=V?T.length-(e-V):V-e:T.length-e;I(this).css("z-index",h);});I(T[V]).css("opacity",1).show();B(T[V],a);if(a.fit&&a.width){l.width(a.width);}if(a.fit&&a.height&&a.height!="auto"){l.height(a.height);}var b=a.containerResize&&!W.innerHeight();if(b){var U=0,Z=0;for(var d=0;d<T.length;d++){var P=I(T[d]),m=P[0],Y=P.outerWidth(),k=P.outerHeight();if(!Y){Y=m.offsetWidth;}if(!k){k=m.offsetHeight;}U=Y>U?Y:U;Z=k>Z?k:Z;}if(U>0&&Z>0){W.css({width:U+"px",height:Z+"px"});}}if(a.pause){W.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(C(a)===false){return false;}var R=false;S.requeueAttempts=S.requeueAttempts||0;l.each(function(){var j=I(this);this.cycleH=(a.fit&&a.height)?a.height:j.height();this.cycleW=(a.fit&&a.width)?a.width:j.width();if(j.is("img")){var h=(I.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var n=(I.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var i=(I.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var e=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(h||n||i||e){if(c.s&&a.requeueOnImageNotLoaded&&++S.requeueAttempts<100){F(S.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){I(c.s,c.c).cycle(S);},a.requeueTimeout);R=true;return false;}else{F("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(R){return false;}a.cssBefore=a.cssBefore||{};a.animIn=a.animIn||{};a.animOut=a.animOut||{};l.not(":eq("+V+")").css(a.cssBefore);if(a.cssFirst){I(l[V]).css(a.cssFirst);}if(a.timeout){a.timeout=parseInt(a.timeout);if(a.speed.constructor==String){a.speed=I.fx.speeds[a.speed]||parseInt(a.speed);}if(!a.sync){a.speed=a.speed/2;}while((a.timeout-a.speed)<250){a.timeout+=a.speed;}}if(a.easing){a.easeIn=a.easeOut=a.easing;}if(!a.speedIn){a.speedIn=a.speed;}if(!a.speedOut){a.speedOut=a.speed;}a.slideCount=T.length;a.currSlide=a.lastSlide=V;if(a.random){a.nextSlide=a.currSlide;if(++a.randomIndex==T.length){a.randomIndex=0;}a.nextSlide=a.randomMap[a.randomIndex];}else{a.nextSlide=a.startingSlide>=(T.length-1)?0:a.startingSlide+1;}if(!a.multiFx){var f=I.fn.cycle.transitions[a.fx];if(I.isFunction(f)){f(W,l,a);}else{if(a.fx!="custom"&&!a.multiFx){F("unknown transition: "+a.fx,"; slideshow terminating");return false;}}}var X=l[V];if(a.before.length){a.before[0].apply(X,[X,X,a,true]);}if(a.after.length>1){a.after[1].apply(X,[X,X,a,true]);}if(a.next){I(a.next).bind(a.prevNextEvent,function(){return O(a,a.rev?-1:1);});}if(a.prev){I(a.prev).bind(a.prevNextEvent,function(){return O(a,a.rev?1:-1);});}if(a.pager){D(T,a);}J(a,T);return a;}function N(P){P.original={before:[],after:[]};P.original.cssBefore=I.extend({},P.cssBefore);P.original.cssAfter=I.extend({},P.cssAfter);P.original.animIn=I.extend({},P.animIn);P.original.animOut=I.extend({},P.animOut);I.each(P.before,function(){P.original.before.push(this);});I.each(P.after,function(){P.original.after.push(this);});}function C(V){var T,R,Q=I.fn.cycle.transitions;if(V.fx.indexOf(",")>0){V.multiFx=true;V.fxs=V.fx.replace(/\s*/g,"").split(",");for(T=0;T<V.fxs.length;T++){var U=V.fxs[T];R=Q[U];if(!R||!Q.hasOwnProperty(U)||!I.isFunction(R)){F("discarding unknown transition: ",U);V.fxs.splice(T,1);T--;}}if(!V.fxs.length){F("No valid transitions named; slideshow terminating.");return false;}}else{if(V.fx=="all"){V.multiFx=true;V.fxs=[];for(p in Q){R=Q[p];if(Q.hasOwnProperty(p)&&I.isFunction(R)){V.fxs.push(p);}}}}if(V.multiFx&&V.randomizeEffects){var S=Math.floor(Math.random()*20)+30;for(T=0;T<S;T++){var P=Math.floor(Math.random()*V.fxs.length);V.fxs.push(V.fxs.splice(P,1)[0]);}A("randomized fx sequence: ",V.fxs);}return true;}function J(Q,P){Q.addSlide=function(S,T){var R=I(S),U=R[0];if(!Q.autostopCount){Q.countdown++;}P[T?"unshift":"push"](U);if(Q.els){Q.els[T?"unshift":"push"](U);}Q.slideCount=P.length;R.css("position","absolute");R[T?"prependTo":"appendTo"](Q.$cont);if(T){Q.currSlide++;Q.nextSlide++;}if(!I.support.opacity&&Q.cleartype&&!Q.cleartypeNoBg){G(R);}if(Q.fit&&Q.width){R.width(Q.width);}if(Q.fit&&Q.height&&Q.height!="auto"){$slides.height(Q.height);}U.cycleH=(Q.fit&&Q.height)?Q.height:R.height();U.cycleW=(Q.fit&&Q.width)?Q.width:R.width();R.css(Q.cssBefore);if(Q.pager){I.fn.cycle.createPagerAnchor(P.length-1,U,I(Q.pager),P,Q);}if(I.isFunction(Q.onAddSlide)){Q.onAddSlide(R);}else{R.hide();}};}I.fn.cycle.resetState=function(Q,P){P=P||Q.fx;Q.before=[];Q.after=[];Q.cssBefore=I.extend({},Q.original.cssBefore);Q.cssAfter=I.extend({},Q.original.cssAfter);Q.animIn=I.extend({},Q.original.animIn);Q.animOut=I.extend({},Q.original.animOut);Q.fxFn=null;I.each(Q.original.before,function(){Q.before.push(this);});I.each(Q.original.after,function(){Q.after.push(this);});var R=I.fn.cycle.transitions[P];if(I.isFunction(R)){R(Q.$cont,I(Q.elements),Q);}};function E(W,P,V,X){if(V&&P.busy&&P.manualTrump){I(W).stop(true,true);P.busy=false;}if(P.busy){return ;}var T=P.$cont[0],Z=W[P.currSlide],Y=W[P.nextSlide];if(T.cycleStop!=P.stopCount||T.cycleTimeout===0&&!V){return ;}if(!V&&!T.cyclePause&&((P.autostop&&(--P.countdown<=0))||(P.nowrap&&!P.random&&P.nextSlide<P.currSlide))){if(P.end){P.end(P);}return ;}if(V||!T.cyclePause){var U=P.fx;Z.cycleH=Z.cycleH||I(Z).height();Z.cycleW=Z.cycleW||I(Z).width();Y.cycleH=Y.cycleH||I(Y).height();Y.cycleW=Y.cycleW||I(Y).width();if(P.multiFx){if(P.lastFx==undefined||++P.lastFx>=P.fxs.length){P.lastFx=0;}U=P.fxs[P.lastFx];P.currFx=U;}if(P.oneTimeFx){U=P.oneTimeFx;P.oneTimeFx=null;}I.fn.cycle.resetState(P,U);if(P.before.length){I.each(P.before,function(a,b){if(T.cycleStop!=P.stopCount){return ;}b.apply(Y,[Z,Y,P,X]);});}var R=function(){I.each(P.after,function(a,b){if(T.cycleStop!=P.stopCount){return ;}b.apply(Y,[Z,Y,P,X]);});};if(P.nextSlide!=P.currSlide){P.busy=1;if(P.fxFn){P.fxFn(Z,Y,P,R,X);}else{if(I.isFunction(I.fn.cycle[P.fx])){I.fn.cycle[P.fx](Z,Y,P,R);}else{I.fn.cycle.custom(Z,Y,P,R,V&&P.fastOnEvent);}}}P.lastSlide=P.currSlide;if(P.random){P.currSlide=P.nextSlide;if(++P.randomIndex==W.length){P.randomIndex=0;}P.nextSlide=P.randomMap[P.randomIndex];}else{var S=(P.nextSlide+1)==W.length;P.nextSlide=S?0:P.nextSlide+1;P.currSlide=S?W.length-1:P.nextSlide-1;}if(P.pager){I.fn.cycle.updateActivePagerLink(P.pager,P.currSlide);}}var Q=0;if(P.timeout&&!P.continuous){Q=H(Z,Y,P,X);}else{if(P.continuous&&T.cyclePause){Q=10;}}if(Q>0){T.cycleTimeout=setTimeout(function(){E(W,P,0,!P.rev);},Q);}}I.fn.cycle.updateActivePagerLink=function(P,Q){I(P).each(function(){I(this).find("a").removeClass("activeSlide").filter("a:eq("+Q+")").addClass("activeSlide");});};function H(T,R,S,Q){if(S.timeoutFn){var P=S.timeoutFn(T,R,S,Q);while((P-S.speed)<250){P+=S.speed;}A("calculated timeout: "+P+"; speed: "+S.speed);if(P!==false){return P;}}return S.timeout;}I.fn.cycle.next=function(P){O(P,P.rev?-1:1);};I.fn.cycle.prev=function(P){O(P,P.rev?1:-1);};function O(Q,T){var P=Q.elements;var S=Q.$cont[0],R=S.cycleTimeout;if(R){clearTimeout(R);S.cycleTimeout=0;}if(Q.random&&T<0){Q.randomIndex--;if(--Q.randomIndex==-2){Q.randomIndex=P.length-2;}else{if(Q.randomIndex==-1){Q.randomIndex=P.length-1;}}Q.nextSlide=Q.randomMap[Q.randomIndex];}else{if(Q.random){if(++Q.randomIndex==P.length){Q.randomIndex=0;}Q.nextSlide=Q.randomMap[Q.randomIndex];}else{Q.nextSlide=Q.currSlide+T;if(Q.nextSlide<0){if(Q.nowrap){return false;}Q.nextSlide=P.length-1;}else{if(Q.nextSlide>=P.length){if(Q.nowrap){return false;}Q.nextSlide=0;}}}}if(I.isFunction(Q.prevNextClick)){Q.prevNextClick(T>0,Q.nextSlide,P[Q.nextSlide]);}E(P,Q,1,T>=0);return false;}function D(Q,R){var P=I(R.pager);I.each(Q,function(S,T){I.fn.cycle.createPagerAnchor(S,T,P,Q,R);});I.fn.cycle.updateActivePagerLink(R.pager,R.startingSlide);}I.fn.cycle.createPagerAnchor=function(T,U,R,S,V){var Q;if(I.isFunction(V.pagerAnchorBuilder)){Q=V.pagerAnchorBuilder(T,U);}else{Q='<a href="#">'+(T+1)+"</a>";}if(!Q){return ;}var W=I(Q);if(W.parents("body").length===0){var P=[];if(R.length>1){R.each(function(){var X=W.clone(true);I(this).append(X);P.push(X[0]);});W=I(P);}else{W.appendTo(R);}}W.bind(V.pagerEvent,function(Z){Z.preventDefault();V.nextSlide=T;var Y=V.$cont[0],X=Y.cycleTimeout;if(X){clearTimeout(X);Y.cycleTimeout=0;}if(I.isFunction(V.pagerClick)){V.pagerClick(V.nextSlide,S[V.nextSlide]);}E(S,V,1,V.currSlide<T);return false;});if(V.pagerEvent!="click"){W.click(function(){return false;});}if(V.pauseOnPagerHover){W.hover(function(){V.$cont[0].cyclePause++;},function(){V.$cont[0].cyclePause--;});}};I.fn.cycle.hopsFromLast=function(S,R){var Q,P=S.lastSlide,T=S.currSlide;if(R){Q=T>P?T-P:S.slideCount-P;}else{Q=T<P?P-T:P+S.slideCount-T;}return Q;};function G(R){function Q(S){S=parseInt(S).toString(16);return S.length<2?"0"+S:S;}function P(U){for(;U&&U.nodeName.toLowerCase()!="html";U=U.parentNode){var S=I.css(U,"background-color");if(S.indexOf("rgb")>=0){var T=S.match(/\d+/g);return"#"+Q(T[0])+Q(T[1])+Q(T[2]);}if(S&&S!="transparent"){return S;}}return"#ffffff";}R.each(function(){I(this).css("background-color",P(this));});}I.fn.cycle.commonReset=function(U,S,T,Q,R,P){I(T.elements).not(U).hide();T.cssBefore.opacity=1;T.cssBefore.display="block";if(Q!==false&&S.cycleW>0){T.cssBefore.width=S.cycleW;}if(R!==false&&S.cycleH>0){T.cssBefore.height=S.cycleH;}T.cssAfter=T.cssAfter||{};T.cssAfter.display="none";I(U).css("zIndex",T.slideCount+(P===true?1:0));I(S).css("zIndex",T.slideCount+(P===true?0:1));};I.fn.cycle.custom=function(a,U,P,R,Q){var Z=I(a),V=I(U);var S=P.speedIn,Y=P.speedOut,T=P.easeIn,X=P.easeOut;V.css(P.cssBefore);if(Q){if(typeof Q=="number"){S=Y=Q;}else{S=Y=1;}T=X=null;}var W=function(){V.animate(P.animIn,S,T,R);};Z.animate(P.animOut,Y,X,function(){if(P.cssAfter){Z.css(P.cssAfter);}if(!P.sync){W();}});if(P.sync){W();}};I.fn.cycle.transitions={fade:function(Q,R,P){R.not(":eq("+P.currSlide+")").css("opacity",0);P.before.push(function(U,S,T){I.fn.cycle.commonReset(U,S,T);T.cssBefore.opacity=0;});P.animIn={opacity:1};P.animOut={opacity:0};P.cssBefore={top:0,left:0};}};I.fn.cycle.ver=function(){return L;};I.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,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:!I.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};})(jQuery);
/*
 */
(function(A){A.fn.cycle.transitions.scroll=function(D,E,C){D.css("overflow","hidden");C.before.push(A.fn.cycle.commonReset);var B=D.width();C.cssFirst={left:0};C.cssBefore={left:B,top:0};C.animIn={left:0};C.animOut={left:0-B};};A.fn.cycle.transitions.zoom=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,false,true);F.cssBefore.top=E.cycleH/2;F.cssBefore.left=E.cycleW/2;F.animIn={top:0,left:0,width:E.cycleW,height:E.cycleH};F.animOut={width:0,height:0,top:G.cycleH/2,left:G.cycleW/2};});B.cssFirst={top:0,left:0};B.cssBefore={width:0,height:0};};A.fn.cycle.transitions.blind=function(D,E,C){var B=D.css("overflow","hidden").height();C.before.push(function(H,F,G){A.fn.cycle.commonReset(H,F,G);G.animIn.height=F.cycleH;G.animOut.top=H.cycleH;});C.cssBefore={top:B,left:0};C.animIn={top:0};C.animOut={top:B};};A.fn.cycle.transitions.curtain=function(C,D,B){B.before.push(function(G,E,F){A.fn.cycle.commonReset(G,E,F,false,true,true);F.cssBefore.left=E.cycleW/2;F.animIn={left:0,width:this.cycleW};F.animOut={left:G.cycleW/2,width:0};});B.cssBefore={top:0,width:0};};A.fn.cycle.transitions.cover=function(E,F,D){var G=D.direction||"left";var B=E.css("overflow","hidden").width();var C=E.height();D.before.push(function(J,H,I){A.fn.cycle.commonReset(J,H,I);if(G=="right"){I.cssBefore.left=-B;}else{if(G=="up"){I.cssBefore.top=C;}else{if(G=="down"){I.cssBefore.top=-C;}else{I.cssBefore.left=B;}}}});D.animIn={left:0,top:0};D.animOut={opacity:1};D.cssBefore={top:0,left:0};};})(jQuery);
