(function(c){var a="2.30";var h=c.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function f(){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){f("options not found, can not resume");return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(j.elements,j,1,1)}return;default:j={fx:j}}}else{if(j.constructor==Number){var p=j;j=c(this).data("cycle.opts");if(!j){f("options not found, can not advance slide");return}if(p<0||p>=j.elements.length){f("invalid slide index: "+p);return}j.nextSlide=p;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(j.elements,j,1,p>=j.currSlide);return}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var m=c(this);var o=j.slideExpr?c(j.slideExpr,this):m.children();var s=o.get();if(s.length<2){f("terminating; too few slides: "+s.length);return}var t=c.extend({},c.fn.cycle.defaults,j||{},c.metadata?m.metadata():c.meta?m.data():{});if(t.autostop){t.countdown=t.autostopCount||s.length}m.data("cycle.opts",t);t.container=this;t.elements=s;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(){e(s,t,0,!t.rev)})}if(h&&t.cleartype&&!t.cleartypeNoBg){g(o)}var k=this.className;t.width=parseInt((k.match(/w:(\d+)/)||[])[1])||t.width;t.height=parseInt((k.match(/h:(\d+)/)||[])[1])||t.height;t.timeout=parseInt((k.match(/t:(\d+)/)||[])[1])||t.timeout;if(m.css("position")=="static"){m.css("position","relative")}if(t.width){m.width(t.width)}if(t.height&&t.height!="auto"){m.height(t.height)}if(t.startingSlide){t.startingSlide=parseInt(t.startingSlide)}if(t.random){t.randomMap=[];for(var r=0;r<s.length;r++){t.randomMap.push(r)}t.randomMap.sort(function(u,v){return Math.random()-0.5});t.randomIndex=0;t.startingSlide=t.randomMap[0]}else{if(t.startingSlide>=s.length){t.startingSlide=0}}var q=t.startingSlide||0;o.css({position:"absolute",top:0,left:0}).hide().each(function(v){var u=q?v>=q?s.length-(v-q):q-v:s.length-v;c(this).css("z-index",u)});c(s[q]).css("opacity",1).show();if(c.browser.msie){s[q].style.removeAttribute("filter")}if(t.fit&&t.width){o.width(t.width)}if(t.fit&&t.height&&t.height!="auto"){o.height(t.height)}if(t.pause){m.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var l=c.fn.cycle.transitions[t.fx];if(c.isFunction(l)){l(m,o,t)}else{if(t.fx!="custom"){f("unknown transition: "+t.fx)}}o.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||{};o.not(":eq("+q+")").css(t.cssBefore);if(t.cssFirst){c(o[q]).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=s.length;t.currSlide=q;if(t.random){t.nextSlide=t.currSlide;if(++t.randomIndex==s.length){t.randomIndex=0}t.nextSlide=t.randomMap[t.randomIndex]}else{t.nextSlide=t.startingSlide>=(s.length-1)?0:t.startingSlide+1}var n=o[q];if(t.before.length){t.before[0].apply(n,[n,n,t,true])}if(t.after.length>1){t.after[1].apply(n,[n,n,t,true])}if(t.click&&!t.next){t.next=t.click}if(t.next){c(t.next).bind("click",function(){return d(s,t,t.rev?-1:1)})}if(t.prev){c(t.prev).bind("click",function(){return d(s,t,t.rev?1:-1)})}if(t.pager){b(s,t)}t.addSlide=function(v,u){var w=c(v),x=w[0];if(!t.autostopCount){t.countdown++}s[u?"unshift":"push"](x);if(t.els){t.els[u?"unshift":"push"](x)}t.slideCount=s.length;w.css("position","absolute");w[u?"prependTo":"appendTo"](m);if(u){t.currSlide++;t.nextSlide++}if(h&&t.cleartype&&!t.cleartypeNoBg){g(w)}if(t.fit&&t.width){w.width(t.width)}if(t.fit&&t.height&&t.height!="auto"){o.height(t.height)}x.cycleH=(t.fit&&t.height)?t.height:w.height();x.cycleW=(t.fit&&t.width)?t.width:w.width();w.css(t.cssBefore);if(t.pager){c.fn.cycle.createPagerAnchor(s.length-1,x,c(t.pager),s,t)}if(typeof t.onAddSlide=="function"){t.onAddSlide(w)}};if(t.timeout||t.continuous){this.cycleTimeout=setTimeout(function(){e(s,t,0,!t.rev)},t.continuous?10:t.timeout+(t.delay||0))}})};function e(l,q,m,k){if(q.busy){return}var n=q.container,i=l[q.currSlide],j=l[q.nextSlide];if(n.cycleTimeout===0&&!m){return}if(!m&&!n.cyclePause&&((q.autostop&&(--q.countdown<=0))||(q.nowrap&&!q.random&&q.nextSlide<q.currSlide))){if(q.end){q.end(q)}return}if(m||!n.cyclePause){if(q.before.length){c.each(q.before,function(s,r){r.apply(j,[i,j,q,k])})}var p=function(){if(c.browser.msie&&q.cleartype){this.style.removeAttribute("filter")}c.each(q.after,function(s,r){r.apply(j,[i,j,q,k])})};if(q.nextSlide!=q.currSlide){q.busy=1;if(q.fxFn){q.fxFn(i,j,q,p,k)}else{if(c.isFunction(c.fn.cycle[q.fx])){c.fn.cycle[q.fx](i,j,q,p)}else{c.fn.cycle.custom(i,j,q,p,m&&q.fastOnEvent)}}}if(q.random){q.currSlide=q.nextSlide;if(++q.randomIndex==l.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{var o=(q.nextSlide+1)==l.length;q.nextSlide=o?0:q.nextSlide+1;q.currSlide=o?l.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(){e(l,q,0,!q.rev)},q.timeout)}else{if(q.continuous&&n.cyclePause){n.cycleTimeout=setTimeout(function(){e(l,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 d(l,k,m){var i=k.container,j=i.cycleTimeout;if(j){clearTimeout(j);i.cycleTimeout=0}if(k.random&&m<0){k.randomIndex--;if(--k.randomIndex==-2){k.randomIndex=l.length-2}else{if(k.randomIndex==-1){k.randomIndex=l.length-1}}k.nextSlide=k.randomMap[k.randomIndex]}else{if(k.random){if(++k.randomIndex==l.length){k.randomIndex=0}k.nextSlide=k.randomMap[k.randomIndex]}else{k.nextSlide=k.currSlide+m;if(k.nextSlide<0){if(k.nowrap){return false}k.nextSlide=l.length-1}else{if(k.nextSlide>=l.length){if(k.nowrap){return false}k.nextSlide=0}}}}if(k.prevNextClick&&typeof k.prevNextClick=="function"){k.prevNextClick(m>0,k.nextSlide,l[k.nextSlide])}e(l,k,1,m>=0);return false}function b(j,i){var k=c(i.pager);c.each(j,function(l,m){c.fn.cycle.createPagerAnchor(l,m,k,j,i)});c.fn.cycle.updateActivePagerLink(i.pager,i.startingSlide)}c.fn.cycle.createPagerAnchor=function(j,i,l,k,n){var m=(typeof n.pagerAnchorBuilder=="function")?c(n.pagerAnchorBuilder(j,i)):c('<a href="#">'+(j+1)+"</a>");if(m.parents("body").length==0){m.appendTo(l)}m.bind(n.pagerEvent,function(){n.nextSlide=j;var o=n.container,p=o.cycleTimeout;if(p){clearTimeout(p);o.cycleTimeout=0}if(typeof n.pagerClick=="function"){n.pagerClick(n.nextSlide,k[n.nextSlide])}e(k,n,1,n.currSlide<j);return false});if(n.pauseOnPagerHover){m.hover(function(){n.container.cyclePause=1},function(){n.container.cyclePause=0})}};function g(i){function j(l){var l=parseInt(l).toString(16);return l.length<2?"0"+l:l}function k(m){for(;m&&m.nodeName.toLowerCase()!="html";m=m.parentNode){var l=c.css(m,"background-color");if(l.indexOf("rgb")>=0){var n=l.match(/\d+/g);return"#"+j(n[0])+j(n[1])+j(n[2])}if(l&&l!="transparent"){return l}}return"#ffffff"}i.each(function(){c(this).css("background-color",k(this))})}c.fn.cycle.custom=function(i,o,t,r,s){var j=c(i),n=c(o);n.css(t.cssBefore);var q=s?1:t.speedIn;var k=s?1:t.speedOut;var p=s?null:t.easeIn;var l=s?null:t.easeOut;var m=function(){n.animate(t.animIn,q,p,r)};j.animate(t.animOut,k,l,function(){if(t.cssAfter){j.css(t.cssAfter)}if(!t.sync){m()}});if(t.sync){m()}};c.fn.cycle.transitions={fade:function(j,i,k){i.not(":eq("+k.startingSlide+")").css("opacity",0);k.before.push(function(){c(this).show()});k.animIn={opacity:1};k.animOut={opacity:0};k.cssBefore={opacity:0};k.cssAfter={display:"none"};k.onAddSlide=function(l){l.hide()}}};c.fn.cycle.ver=function(){return a};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,b,d){c.css("overflow","hidden");d.before.push(function(e,g,f){a(this).show();f.cssBefore.top=g.offsetHeight;f.animOut.top=0-e.offsetHeight});d.cssFirst={top:0};d.animIn={top:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollDown=function(c,b,d){c.css("overflow","hidden");d.before.push(function(e,g,f){a(this).show();f.cssBefore.top=0-g.offsetHeight;f.animOut.top=e.offsetHeight});d.cssFirst={top:0};d.animIn={top:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollLeft=function(c,b,d){c.css("overflow","hidden");d.before.push(function(e,g,f){a(this).show();f.cssBefore.left=g.offsetWidth;f.animOut.left=0-e.offsetWidth});d.cssFirst={left:0};d.animIn={left:0}};a.fn.cycle.transitions.scrollRight=function(c,b,d){c.css("overflow","hidden");d.before.push(function(e,g,f){a(this).show();f.cssBefore.left=0-g.offsetWidth;f.animOut.left=e.offsetWidth});d.cssFirst={left:0};d.animIn={left:0}};a.fn.cycle.transitions.scrollHorz=function(c,b,d){c.css("overflow","hidden").width();d.before.push(function(f,h,g,i){a(this).show();var j=f.offsetWidth,e=h.offsetWidth;g.cssBefore=i?{left:e}:{left:-e};g.animIn.left=0;g.animOut.left=i?-j:j;b.not(f).css(g.cssBefore)});d.cssFirst={left:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.scrollVert=function(c,b,d){c.css("overflow","hidden");d.before.push(function(e,h,g,i){a(this).show();var f=e.offsetHeight,j=h.offsetHeight;g.cssBefore=i?{top:-j}:{top:j};g.animIn.top=0;g.animOut.top=i?f:-f;b.not(e).css(g.cssBefore)});d.cssFirst={top:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.slideX=function(c,b,d){d.before.push(function(e,g,f){a(e).css("zIndex",1)});d.onAddSlide=function(e){e.hide()};d.cssBefore={zIndex:2};d.animIn={width:"show"};d.animOut={width:"hide"}};a.fn.cycle.transitions.slideY=function(c,b,d){d.before.push(function(e,g,f){a(e).css("zIndex",1)});d.onAddSlide=function(e){e.hide()};d.cssBefore={zIndex:2};d.animIn={height:"show"};d.animOut={height:"hide"}};a.fn.cycle.transitions.shuffle=function(c,b,d){var f=c.css("overflow","visible").width();b.css({left:0,top:0});d.before.push(function(){a(this).show()});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-f,top:15};d.els=[];for(var e=0;e<b.length;e++){d.els.push(b[e])}for(var e=0;e<d.startingSlide;e++){d.els.push(d.els.shift())}d.fxFn=function(g,i,h,l,j){var k=j?a(g):a(i);k.animate(h.shuffle,h.speedIn,h.easeIn,function(){j?h.els.push(h.els.shift()):h.els.unshift(h.els.pop());if(j){for(var n=0,o=h.els.length;n<o;n++){a(h.els[n]).css("z-index",o-n)}}else{var m=a(g).css("z-index");k.css("z-index",parseInt(m)+1)}k.animate({left:0,top:0},h.speedOut,h.easeOut,function(){a(j?this:g).hide();if(l){l()}})})};d.onAddSlide=function(g){g.hide()}};a.fn.cycle.transitions.turnUp=function(c,b,d){d.before.push(function(e,g,f){a(this).show();f.cssBefore.top=g.cycleH;f.animIn.height=g.cycleH});d.onAddSlide=function(e){e.hide()};d.cssFirst={top:0};d.cssBefore={height:0};d.animIn={top:0};d.animOut={height:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.turnDown=function(c,b,d){d.before.push(function(e,g,f){a(this).show();f.animIn.height=g.cycleH;f.animOut.top=e.cycleH});d.onAddSlide=function(e){e.hide()};d.cssFirst={top:0};d.cssBefore={top:0,height:0};d.animOut={height:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.turnLeft=function(c,b,d){d.before.push(function(e,g,f){a(this).show();f.cssBefore.left=g.cycleW;f.animIn.width=g.cycleW});d.onAddSlide=function(e){e.hide()};d.cssBefore={width:0};d.animIn={left:0};d.animOut={width:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.turnRight=function(c,b,d){d.before.push(function(e,g,f){a(this).show();f.animIn.width=g.cycleW;f.animOut.left=e.cycleW});d.onAddSlide=function(e){e.hide()};d.cssBefore={left:0,width:0};d.animIn={left:0};d.animOut={width:0};d.cssAfter={display:"none"}};a.fn.cycle.transitions.zoom=function(c,b,d){d.cssFirst={top:0,left:0};d.cssAfter={display:"none"};d.before.push(function(e,g,f){a(this).show();f.cssBefore={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2};f.cssAfter={display:"none"};f.animIn={top:0,left:0,width:g.cycleW,height:g.cycleH};f.animOut={width:0,height:0,top:e.cycleH/2,left:e.cycleW/2};a(e).css("zIndex",2);a(g).css("zIndex",1)});d.onAddSlide=function(e){e.hide()}};a.fn.cycle.transitions.fadeZoom=function(c,b,d){d.before.push(function(e,g,f){f.cssBefore={width:0,height:0,opacity:1,left:g.cycleW/2,top:g.cycleH/2,zIndex:1};f.animIn={top:0,left:0,width:g.cycleW,height:g.cycleH}});d.animOut={opacity:0};d.cssAfter={zIndex:0}};a.fn.cycle.transitions.blindX=function(c,b,d){var e=c.css("overflow","hidden").width();b.show();d.before.push(function(f,h,g){a(f).css("zIndex",1)});d.cssBefore={left:e,zIndex:2};d.cssAfter={zIndex:1};d.animIn={left:0};d.animOut={left:e}};a.fn.cycle.transitions.blindY=function(c,b,d){var e=c.css("overflow","hidden").height();b.show();d.before.push(function(f,h,g){a(f).css("zIndex",1)});d.cssBefore={top:e,zIndex:2};d.cssAfter={zIndex:1};d.animIn={top:0};d.animOut={top:e}};a.fn.cycle.transitions.blindZ=function(c,b,d){var e=c.css("overflow","hidden").height();var f=c.width();b.show();d.before.push(function(g,i,h){a(g).css("zIndex",1)});d.cssBefore={top:e,left:f,zIndex:2};d.cssAfter={zIndex:1};d.animIn={top:0,left:0};d.animOut={top:e,left:f}};a.fn.cycle.transitions.growX=function(c,b,d){d.before.push(function(e,g,f){f.cssBefore={left:this.cycleW/2,width:0,zIndex:2};f.animIn={left:0,width:this.cycleW};f.animOut={left:0};a(e).css("zIndex",1)});d.onAddSlide=function(e){e.hide().css("zIndex",1)}};a.fn.cycle.transitions.growY=function(c,b,d){d.before.push(function(e,g,f){f.cssBefore={top:this.cycleH/2,height:0,zIndex:2};f.animIn={top:0,height:this.cycleH};f.animOut={top:0};a(e).css("zIndex",1)});d.onAddSlide=function(e){e.hide().css("zIndex",1)}};a.fn.cycle.transitions.curtainX=function(c,b,d){d.before.push(function(e,g,f){f.cssBefore={left:g.cycleW/2,width:0,zIndex:1,display:"block"};f.animIn={left:0,width:this.cycleW};f.animOut={left:e.cycleW/2,width:0};a(e).css("zIndex",2)});d.onAddSlide=function(e){e.hide()};d.cssAfter={zIndex:1,display:"none"}};a.fn.cycle.transitions.curtainY=function(c,b,d){d.before.push(function(e,g,f){f.cssBefore={top:g.cycleH/2,height:0,zIndex:1,display:"block"};f.animIn={top:0,height:this.cycleH};f.animOut={top:e.cycleH/2,height:0};a(e).css("zIndex",2)});d.onAddSlide=function(e){e.hide()};d.cssAfter={zIndex:1,display:"none"}};a.fn.cycle.transitions.cover=function(d,c,e){var b=e.direction||"left";var g=d.css("overflow","hidden").width();var f=d.height();e.before.push(function(h,j,i){i.cssBefore=i.cssBefore||{};i.cssBefore.zIndex=2;i.cssBefore.display="block";if(b=="right"){i.cssBefore.left=-g}else{if(b=="up"){i.cssBefore.top=f}else{if(b=="down"){i.cssBefore.top=-f}else{i.cssBefore.left=g}}}a(h).css("zIndex",1)});if(!e.animIn){e.animIn={left:0,top:0}}if(!e.animOut){e.animOut={left:0,top:0}}e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=2;e.cssAfter.display="none"};a.fn.cycle.transitions.uncover=function(d,c,e){var b=e.direction||"left";var g=d.css("overflow","hidden").width();var f=d.height();e.before.push(function(h,j,i){i.cssBefore.display="block";if(b=="right"){i.animOut.left=g}else{if(b=="up"){i.animOut.top=-f}else{if(b=="down"){i.animOut.top=f}else{i.animOut.left=-g}}}a(h).css("zIndex",2);a(j).css("zIndex",1)});e.onAddSlide=function(h){h.hide()};if(!e.animIn){e.animIn={left:0,top:0}}e.cssBefore=e.cssBefore||{};e.cssBefore.top=0;e.cssBefore.left=0;e.cssAfter=e.cssAfter||{};e.cssAfter.zIndex=1;e.cssAfter.display="none"};a.fn.cycle.transitions.toss=function(c,b,d){var f=c.css("overflow","visible").width();var e=c.height();d.before.push(function(g,i,h){a(g).css("zIndex",2);h.cssBefore.display="block";if(!h.animOut.left&&!h.animOut.top){h.animOut={left:f*2,top:-e/2,opacity:0}}else{h.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(f,i,c){var g=f.css("overflow","hidden").width();var k=f.height();c.cssBefore=c.cssBefore||{};var b;if(c.clip){if(/l2r/.test(c.clip)){b="rect(0px 0px "+k+"px 0px)"}else{if(/r2l/.test(c.clip)){b="rect(0px "+g+"px "+k+"px "+g+"px)"}else{if(/t2b/.test(c.clip)){b="rect(0px "+g+"px 0px 0px)"}else{if(/b2t/.test(c.clip)){b="rect("+k+"px "+g+"px "+k+"px 0px)"}else{if(/zoom/.test(c.clip)){var e=parseInt(k/2);var l=parseInt(g/2);b="rect("+e+"px "+l+"px "+e+"px "+l+"px)"}}}}}}c.cssBefore.clip=c.cssBefore.clip||b||"rect(0px 0px 0px 0px)";var j=c.cssBefore.clip.match(/(\d+)/g);var e=parseInt(j[0]),d=parseInt(j[1]),h=parseInt(j[2]),l=parseInt(j[3]);c.before.push(function(m,r,o){if(m==r){return}var s=a(m).css("zIndex",2);var t=a(r).css({zIndex:3,display:"block"});var p=1,q=parseInt((o.speedIn/13))-1;function n(){var v=e?e-parseInt(p*(e/q)):0;var u=l?l-parseInt(p*(l/q)):0;var x=h<k?h+parseInt(p*((k-h)/q||1)):k;var w=d<g?d+parseInt(p*((g-d)/q||1)):g;t.css({clip:"rect("+v+"px "+w+"px "+x+"px "+u+"px)"});(p++<=q)?setTimeout(n,13):s.css("display","none")}n()});c.cssAfter={};c.animIn={left:0};c.animOut={left:0}}})(jQuery);
