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