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