(function(C){var D="2.28";var F=C.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function A(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}C.fn.cycle=function(J){var I=arguments[1];return this.each(function(){if(J===undefined||J===null){J={}}if(J.constructor==String){switch(J){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;C(this).data("cycle.opts","");return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;if(I===true){J=C(this).data("cycle.opts");if(!J){A("options not found, can not resume");return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}H(J.elements,J,1,1)}return;default:J={fx:J}}}else{if(J.constructor==Number){var Q=J;J=C(this).data("cycle.opts");if(!J){A("options not found, can not advance slide");return}if(Q<0||Q>=J.elements.length){A("invalid slide index: "+Q);return}J.nextSlide=Q;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}H(J.elements,J,1,Q>=J.currSlide);return}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var L=C(this);var N=J.slideExpr?C(J.slideExpr,this):L.children();var O=N.get();if(O.length<2){A("terminating; too few slides: "+O.length);return}var T=C.extend({},C.fn.cycle.defaults,J||{},C.metadata?L.metadata():C.meta?L.data():{});if(T.autostop){T.countdown=T.autostopCount||O.length}L.data("cycle.opts",T);T.container=this;T.elements=O;T.before=T.before?[T.before]:[];T.after=T.after?[T.after]:[];T.after.unshift(function(){T.busy=0});if(T.continuous){T.after.push(function(){H(O,T,0,!T.rev)})}if(F&&T.cleartype&&!T.cleartypeNoBg){E(N)}var M=this.className;T.width=parseInt((M.match(/w:(\d+)/)||[])[1])||T.width;T.height=parseInt((M.match(/h:(\d+)/)||[])[1])||T.height;T.timeout=parseInt((M.match(/t:(\d+)/)||[])[1])||T.timeout;if(L.css("position")=="static"){L.css("position","relative")}if(T.width){L.width(T.width)}if(T.height&&T.height!="auto"){L.height(T.height)}if(T.startingSlide){T.startingSlide=parseInt(T.startingSlide)}if(T.random){T.randomMap=[];for(var K=0;K<O.length;K++){T.randomMap.push(K)}T.randomMap.sort(function(U,V){return Math.random()-0.5});T.randomIndex=0;T.startingSlide=T.randomMap[0]}else{if(T.startingSlide>=O.length){T.startingSlide=0}}var P=T.startingSlide||0;N.css({position:"absolute",top:0,left:0}).hide().each(function(V){var U=P?V>=P?O.length-(V-P):P-V:O.length-V;C(this).css("z-index",U)});C(O[P]).css("opacity",1).show();if(C.browser.msie){O[P].style.removeAttribute("filter")}if(T.fit&&T.width){N.width(T.width)}if(T.fit&&T.height&&T.height!="auto"){N.height(T.height)}if(T.pause){L.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var S=C.fn.cycle.transitions[T.fx];if(C.isFunction(S)){S(L,N,T)}else{if(T.fx!="custom"){A("unknown transition: "+T.fx)}}N.each(function(){var U=C(this);this.cycleH=(T.fit&&T.height)?T.height:U.height();this.cycleW=(T.fit&&T.width)?T.width:U.width()});T.cssBefore=T.cssBefore||{};T.animIn=T.animIn||{};T.animOut=T.animOut||{};N.not(":eq("+P+")").css(T.cssBefore);if(T.cssFirst){C(N[P]).css(T.cssFirst)}if(T.timeout){T.timeout=parseInt(T.timeout);if(T.speed.constructor==String){T.speed=C.fx.speeds[T.speed]||parseInt(T.speed)}if(!T.sync){T.speed=T.speed/2}while((T.timeout-T.speed)<250){T.timeout+=T.speed}}if(T.easing){T.easeIn=T.easeOut=T.easing}if(!T.speedIn){T.speedIn=T.speed}if(!T.speedOut){T.speedOut=T.speed}T.slideCount=O.length;T.currSlide=P;if(T.random){T.nextSlide=T.currSlide;if(++T.randomIndex==O.length){T.randomIndex=0}T.nextSlide=T.randomMap[T.randomIndex]}else{T.nextSlide=T.startingSlide>=(O.length-1)?0:T.startingSlide+1}var R=N[P];if(T.before.length){T.before[0].apply(R,[R,R,T,true])}if(T.after.length>1){T.after[1].apply(R,[R,R,T,true])}if(T.click&&!T.next){T.next=T.click}if(T.next){C(T.next).bind("click",function(){return B(O,T,T.rev?-1:1)})}if(T.prev){C(T.prev).bind("click",function(){return B(O,T,T.rev?1:-1)})}if(T.pager){G(O,T)}T.addSlide=function(W){var V=C(W),U=V[0];if(!T.autostopCount){T.countdown++}O.push(U);if(T.els){T.els.push(U)}T.slideCount=O.length;V.css("position","absolute").appendTo(L);if(F&&T.cleartype&&!T.cleartypeNoBg){E(V)}if(T.fit&&T.width){V.width(T.width)}if(T.fit&&T.height&&T.height!="auto"){N.height(T.height)}U.cycleH=(T.fit&&T.height)?T.height:V.height();U.cycleW=(T.fit&&T.width)?T.width:V.width();V.css(T.cssBefore);if(T.pager){C.fn.cycle.createPagerAnchor(O.length-1,U,C(T.pager),O,T)}if(typeof T.onAddSlide=="function"){T.onAddSlide(V)}};if(T.timeout||T.continuous){this.cycleTimeout=setTimeout(function(){H(O,T,0,!T.rev)},T.continuous?10:T.timeout+(T.delay||0))}})};function H(K,Q,P,M){if(Q.busy){return}var N=Q.container,O=K[Q.currSlide],I=K[Q.nextSlide];if(N.cycleTimeout===0&&!P){return}if(!P&&!N.cyclePause&&((Q.autostop&&(--Q.countdown<=0))||(Q.nowrap&&!Q.random&&Q.nextSlide<Q.currSlide))){if(Q.end){Q.end(Q)}return}if(P||!N.cyclePause){if(Q.before.length){C.each(Q.before,function(S,R){R.apply(I,[O,I,Q,M])})}var J=function(){if(C.browser.msie&&Q.cleartype){this.style.removeAttribute("filter")}C.each(Q.after,function(S,R){R.apply(I,[O,I,Q,M])})};if(Q.nextSlide!=Q.currSlide){Q.busy=1;if(Q.fxFn){Q.fxFn(O,I,Q,J,M)}else{if(C.isFunction(C.fn.cycle[Q.fx])){C.fn.cycle[Q.fx](O,I,Q,J)}else{C.fn.cycle.custom(O,I,Q,J,P&&Q.fastOnEvent)}}}if(Q.random){Q.currSlide=Q.nextSlide;if(++Q.randomIndex==K.length){Q.randomIndex=0}Q.nextSlide=Q.randomMap[Q.randomIndex]}else{var L=(Q.nextSlide+1)==K.length;Q.nextSlide=L?0:Q.nextSlide+1;Q.currSlide=L?K.length-1:Q.nextSlide-1}if(Q.pager){C.fn.cycle.updateActivePagerLink(Q.pager,Q.currSlide)}}if(Q.timeout&&!Q.continuous){N.cycleTimeout=setTimeout(function(){H(K,Q,0,!Q.rev)},Q.timeout)}else{if(Q.continuous&&N.cyclePause){N.cycleTimeout=setTimeout(function(){H(K,Q,0,!Q.rev)},10)}}}C.fn.cycle.updateActivePagerLink=function(J,I){C(J).find("a").removeClass("activeSlide").filter("a:eq("+I+")").addClass("activeSlide")};function B(M,I,L){var J=I.container,K=J.cycleTimeout;if(K){clearTimeout(K);J.cycleTimeout=0}if(I.random&&L<0){I.randomIndex--;if(--I.randomIndex==-2){I.randomIndex=M.length-2}else{if(I.randomIndex==-1){I.randomIndex=M.length-1}}I.nextSlide=I.randomMap[I.randomIndex]}else{if(I.random){if(++I.randomIndex==M.length){I.randomIndex=0}I.nextSlide=I.randomMap[I.randomIndex]}else{I.nextSlide=I.currSlide+L;if(I.nextSlide<0){if(I.nowrap){return false}I.nextSlide=M.length-1}else{if(I.nextSlide>=M.length){if(I.nowrap){return false}I.nextSlide=0}}}}if(I.prevNextClick&&typeof I.prevNextClick=="function"){I.prevNextClick(L>0,I.nextSlide,M[I.nextSlide])}H(M,I,1,L>=0);return false}function G(K,I){var J=C(I.pager);C.each(K,function(M,L){C.fn.cycle.createPagerAnchor(M,L,J,K,I)});C.fn.cycle.updateActivePagerLink(I.pager,I.startingSlide)}C.fn.cycle.createPagerAnchor=function(M,L,K,N,I){var J=(typeof I.pagerAnchorBuilder=="function")?C(I.pagerAnchorBuilder(M,L)):C('<a href="#">'+(M+1)+"</a>");if(J.parents("body").length==0){J.appendTo(K)}J.bind(I.pagerEvent,function(){I.nextSlide=M;var P=I.container,O=P.cycleTimeout;if(O){clearTimeout(O);P.cycleTimeout=0}if(typeof I.pagerClick=="function"){I.pagerClick(I.nextSlide,N[I.nextSlide])}H(N,I,1,I.currSlide<M);return false});if(I.pauseOnPagerHover){J.hover(function(){I.container.cyclePause=1},function(){I.container.cyclePause=0})}};function E(I){function J(L){var L=parseInt(L).toString(16);return L.length<2?"0"+L:L}function K(N){for(;N&&N.nodeName.toLowerCase()!="html";N=N.parentNode){var L=C.css(N,"background-color");if(L.indexOf("rgb")>=0){var M=L.match(/\d+/g);return"#"+J(M[0])+J(M[1])+J(M[2])}if(L&&L!="transparent"){return L}}return"#ffffff"}I.each(function(){C(this).css("background-color",K(this))})}C.fn.cycle.custom=function(P,J,O,Q,I){var L=C(P),T=C(J);T.css(O.cssBefore);var K=I?1:O.speedIn;var N=I?1:O.speedOut;var S=I?null:O.easeIn;var R=I?null:O.easeOut;var M=function(){T.animate(O.animIn,K,S,Q)};L.animate(O.animOut,N,R,function(){if(O.cssAfter){L.css(O.cssAfter)}if(!O.sync){M()}});if(O.sync){M()}};C.fn.cycle.transitions={fade:function(J,K,I){K.not(":eq("+I.startingSlide+")").css("opacity",0);I.before.push(function(){C(this).show()});I.animIn={opacity:1};I.animOut={opacity:0};I.cssBefore={opacity:0};I.cssAfter={display:"none"}}};C.fn.cycle.ver=function(){return D};C.fn.cycle.defaults={fx:"fade",timeout:4000,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,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,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0,fastOnEvent:0}})(jQuery);(function(A){A.fn.cycle.transitions.scrollUp=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,G,E){A(this).show();E.cssBefore.top=G.offsetHeight;E.animOut.top=0-F.offsetHeight});B.cssFirst={top:0};B.animIn={top:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.scrollDown=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,G,E){A(this).show();E.cssBefore.top=0-G.offsetHeight;E.animOut.top=F.offsetHeight});B.cssFirst={top:0};B.animIn={top:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.scrollLeft=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,G,E){A(this).show();E.cssBefore.left=G.offsetWidth;E.animOut.left=0-F.offsetWidth});B.cssFirst={left:0};B.animIn={left:0}};A.fn.cycle.transitions.scrollRight=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,G,E){A(this).show();E.cssBefore.left=0-G.offsetWidth;E.animOut.left=F.offsetWidth});B.cssFirst={left:0};B.animIn={left:0}};A.fn.cycle.transitions.scrollHorz=function(C,D,B){C.css("overflow","hidden").width();B.before.push(function(G,I,E,J){A(this).show();var F=G.offsetWidth,H=I.offsetWidth;E.cssBefore=J?{left:H}:{left:-H};E.animIn.left=0;E.animOut.left=J?-F:F;D.not(G).css(E.cssBefore)});B.cssFirst={left:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.scrollVert=function(C,D,B){C.css("overflow","hidden");B.before.push(function(F,I,E,J){A(this).show();var H=F.offsetHeight,G=I.offsetHeight;E.cssBefore=J?{top:-G}:{top:G};E.animIn.top=0;E.animOut.top=J?H:-H;D.not(F).css(E.cssBefore)});B.cssFirst={top:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.slideX=function(C,D,B){B.before.push(function(F,G,E){A(F).css("zIndex",1)});B.onAddSlide=function(E){E.hide()};B.cssBefore={zIndex:2};B.animIn={width:"show"};B.animOut={width:"hide"}};A.fn.cycle.transitions.slideY=function(C,D,B){B.before.push(function(F,G,E){A(F).css("zIndex",1)});B.onAddSlide=function(E){E.hide()};B.cssBefore={zIndex:2};B.animIn={height:"show"};B.animOut={height:"hide"}};A.fn.cycle.transitions.shuffle=function(C,D,B){var E=C.css("overflow","visible").width();D.css({left:0,top:0});B.before.push(function(){A(this).show()});B.speed=B.speed/2;B.random=0;B.shuffle=B.shuffle||{left:-E,top:15};B.els=[];for(var F=0;F<D.length;F++){B.els.push(D[F])}for(var F=0;F<B.startingSlide;F++){B.els.push(B.els.shift())}B.fxFn=function(I,K,G,J,L){var H=L?A(I):A(K);H.animate(G.shuffle,G.speedIn,G.easeIn,function(){L?G.els.push(G.els.shift()):G.els.unshift(G.els.pop());if(L){for(var O=0,M=G.els.length;O<M;O++){A(G.els[O]).css("z-index",M-O)}}else{var N=A(I).css("z-index");H.css("z-index",parseInt(N)+1)}H.animate({left:0,top:0},G.speedOut,G.easeOut,function(){A(L?this:I).hide();if(J){J()}})})};B.onAddSlide=function(G){G.hide()}};A.fn.cycle.transitions.turnUp=function(C,D,B){B.before.push(function(F,G,E){A(this).show();E.cssBefore.top=G.cycleH;E.animIn.height=G.cycleH});B.onAddSlide=function(E){E.hide()};B.cssFirst={top:0};B.cssBefore={height:0};B.animIn={top:0};B.animOut={height:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.turnDown=function(C,D,B){B.before.push(function(F,G,E){A(this).show();E.animIn.height=G.cycleH;E.animOut.top=F.cycleH});B.onAddSlide=function(E){E.hide()};B.cssFirst={top:0};B.cssBefore={top:0,height:0};B.animOut={height:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.turnLeft=function(C,D,B){B.before.push(function(F,G,E){A(this).show();E.cssBefore.left=G.cycleW;E.animIn.width=G.cycleW});B.onAddSlide=function(E){E.hide()};B.cssBefore={width:0};B.animIn={left:0};B.animOut={width:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.turnRight=function(C,D,B){B.before.push(function(F,G,E){A(this).show();E.animIn.width=G.cycleW;E.animOut.left=F.cycleW});B.onAddSlide=function(E){E.hide()};B.cssBefore={left:0,width:0};B.animIn={left:0};B.animOut={width:0};B.cssAfter={display:"none"}};A.fn.cycle.transitions.zoom=function(C,D,B){B.cssFirst={top:0,left:0};B.cssAfter={display:"none"};B.before.push(function(F,G,E){A(this).show();E.cssBefore={width:0,height:0,top:G.cycleH/2,left:G.cycleW/2};E.cssAfter={display:"none"};E.animIn={top:0,left:0,width:G.cycleW,height:G.cycleH};E.animOut={width:0,height:0,top:F.cycleH/2,left:F.cycleW/2};A(F).css("zIndex",2);A(G).css("zIndex",1)});B.onAddSlide=function(E){E.hide()}};A.fn.cycle.transitions.fadeZoom=function(C,D,B){B.before.push(function(F,G,E){E.cssBefore={width:0,height:0,opacity:1,left:G.cycleW/2,top:G.cycleH/2,zIndex:1};E.animIn={top:0,left:0,width:G.cycleW,height:G.cycleH}});B.animOut={opacity:0};B.cssAfter={zIndex:0}};A.fn.cycle.transitions.blindX=function(C,D,B){var E=C.css("overflow","hidden").width();D.show();B.before.push(function(G,H,F){A(G).css("zIndex",1)});B.cssBefore={left:E,zIndex:2};B.cssAfter={zIndex:1};B.animIn={left:0};B.animOut={left:E}};A.fn.cycle.transitions.blindY=function(C,D,B){var E=C.css("overflow","hidden").height();D.show();B.before.push(function(G,H,F){A(G).css("zIndex",1)});B.cssBefore={top:E,zIndex:2};B.cssAfter={zIndex:1};B.animIn={top:0};B.animOut={top:E}};A.fn.cycle.transitions.blindZ=function(C,D,B){var F=C.css("overflow","hidden").height();var E=C.width();D.show();B.before.push(function(H,I,G){A(H).css("zIndex",1)});B.cssBefore={top:F,left:E,zIndex:2};B.cssAfter={zIndex:1};B.animIn={top:0,left:0};B.animOut={top:F,left:E}};A.fn.cycle.transitions.growX=function(C,D,B){B.before.push(function(F,G,E){E.cssBefore={left:this.cycleW/2,width:0,zIndex:2};E.animIn={left:0,width:this.cycleW};E.animOut={left:0};A(F).css("zIndex",1)});B.onAddSlide=function(E){E.hide().css("zIndex",1)}};A.fn.cycle.transitions.growY=function(C,D,B){B.before.push(function(F,G,E){E.cssBefore={top:this.cycleH/2,height:0,zIndex:2};E.animIn={top:0,height:this.cycleH};E.animOut={top:0};A(F).css("zIndex",1)});B.onAddSlide=function(E){E.hide().css("zIndex",1)}};A.fn.cycle.transitions.curtainX=function(C,D,B){B.before.push(function(F,G,E){E.cssBefore={left:G.cycleW/2,width:0,zIndex:1,display:"block"};E.animIn={left:0,width:this.cycleW};E.animOut={left:F.cycleW/2,width:0};A(F).css("zIndex",2)});B.onAddSlide=function(E){E.hide()};B.cssAfter={zIndex:1,display:"none"}};A.fn.cycle.transitions.curtainY=function(C,D,B){B.before.push(function(F,G,E){E.cssBefore={top:G.cycleH/2,height:0,zIndex:1,display:"block"};E.animIn={top:0,height:this.cycleH};E.animOut={top:F.cycleH/2,height:0};A(F).css("zIndex",2)});B.onAddSlide=function(E){E.hide()};B.cssAfter={zIndex:1,display:"none"}};A.fn.cycle.transitions.cover=function(C,D,B){var G=B.direction||"left";var E=C.css("overflow","hidden").width();var F=C.height();B.before.push(function(I,J,H){H.cssBefore=H.cssBefore||{};H.cssBefore.zIndex=2;H.cssBefore.display="block";if(G=="right"){H.cssBefore.left=-E}else{if(G=="up"){H.cssBefore.top=F}else{if(G=="down"){H.cssBefore.top=-F}else{H.cssBefore.left=E}}}A(I).css("zIndex",1)});if(!B.animIn){B.animIn={left:0,top:0}}if(!B.animOut){B.animOut={left:0,top:0}}B.cssAfter=B.cssAfter||{};B.cssAfter.zIndex=2;B.cssAfter.display="none"};A.fn.cycle.transitions.uncover=function(C,D,B){var G=B.direction||"left";var E=C.css("overflow","hidden").width();var F=C.height();B.before.push(function(I,J,H){H.cssBefore.display="block";if(G=="right"){H.animOut.left=E}else{if(G=="up"){H.animOut.top=-F}else{if(G=="down"){H.animOut.top=F}else{H.animOut.left=-E}}}A(I).css("zIndex",2);A(J).css("zIndex",1)});B.onAddSlide=function(H){H.hide()};if(!B.animIn){B.animIn={left:0,top:0}}B.cssBefore=B.cssBefore||{};B.cssBefore.top=0;B.cssBefore.left=0;B.cssAfter=B.cssAfter||{};B.cssAfter.zIndex=1;B.cssAfter.display="none"};A.fn.cycle.transitions.toss=function(C,D,B){var E=C.css("overflow","visible").width();var F=C.height();B.before.push(function(H,I,G){A(H).css("zIndex",2);G.cssBefore.display="block";if(!G.animOut.left&&!G.animOut.top){G.animOut={left:E*2,top:-F/2,opacity:0}}else{G.animOut.opacity=0}});B.onAddSlide=function(G){G.hide()};B.cssBefore={left:0,top:0,zIndex:1,opacity:1};B.animIn={left:0};B.cssAfter={zIndex:2,display:"none"}};A.fn.cycle.transitions.wipe=function(B,D,G){var K=B.css("overflow","hidden").width();var L=B.height();G.cssBefore=G.cssBefore||{};var C;if(G.clip){if(/l2r/.test(G.clip)){C="rect(0px 0px "+L+"px 0px)"}else{if(/r2l/.test(G.clip)){C="rect(0px "+K+"px "+L+"px "+K+"px)"}else{if(/t2b/.test(G.clip)){C="rect(0px "+K+"px 0px 0px)"}else{if(/b2t/.test(G.clip)){C="rect("+L+"px "+K+"px "+L+"px 0px)"}else{if(/zoom/.test(G.clip)){var I=parseInt(L/2);var J=parseInt(K/2);C="rect("+I+"px "+J+"px "+I+"px "+J+"px)"}}}}}}G.cssBefore.clip=G.cssBefore.clip||C||"rect(0px 0px 0px 0px)";var F=G.cssBefore.clip.match(/(\d+)/g);var I=parseInt(F[0]),H=parseInt(F[1]),E=parseInt(F[2]),J=parseInt(F[3]);G.before.push(function(P,M,T){if(P==M){return}var Q=A(P).css("zIndex",2);var N=A(M).css({zIndex:3,display:"block"});var R=1,S=parseInt((T.speedIn/13))-1;function O(){var U=I?I-parseInt(R*(I/S)):0;var W=J?J-parseInt(R*(J/S)):0;var X=E<L?E+parseInt(R*((L-E)/S||1)):L;var V=H<K?H+parseInt(R*((K-H)/S||1)):K;N.css({clip:"rect("+U+"px "+V+"px "+X+"px "+W+"px)"});(R++<=S)?setTimeout(O,13):Q.css("display","none")}O()});G.cssAfter={};G.animIn={left:0};G.animOut={left:0}}})(jQuery);
