(function(g){var a="2.26";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){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;return;default:i={fx:i}}}else{if(i.constructor==Number){var n=i;i=g(this).data("cycle.opts");if(!i){d("options not found, can not advance slide");return}if(n<0||n>=i.elements.length){d("invalid slide index: "+n);return}i.nextSlide=n;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}e(i.elements,i,1,n>=i.currSlide);return}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var q=g(this);var o=i.slideExpr?g(i.slideExpr,this):q.children();var k=o.get();if(k.length<2){d("terminating; too few slides: "+k.length);return}var j=g.extend({},g.fn.cycle.defaults,i||{},g.metadata?q.metadata():g.meta?q.data():{});if(j.autostop){j.countdown=j.autostopCount||k.length}q.data("cycle.opts",j);j.container=this;j.elements=k;j.before=j.before?[j.before]:[];j.after=j.after?[j.after]:[];j.after.unshift(function(){j.busy=0});if(j.continuous){j.after.push(function(){e(k,j,0,!j.rev)})}if(b&&j.cleartype&&!j.cleartypeNoBg){c(o)}var s=this.className;j.width=parseInt((s.match(/w:(\d+)/)||[])[1])||j.width;j.height=parseInt((s.match(/h:(\d+)/)||[])[1])||j.height;j.timeout=parseInt((s.match(/t:(\d+)/)||[])[1])||j.timeout;if(q.css("position")=="static"){q.css("position","relative")}if(j.width){q.width(j.width)}if(j.height&&j.height!="auto"){q.height(j.height)}if(j.random){j.randomMap=[];for(var l=0;l<k.length;l++){j.randomMap.push(l)}j.randomMap.sort(function(u,t){return Math.random()-0.5});j.randomIndex=0;j.startingSlide=j.randomMap[0]}else{if(j.startingSlide>=k.length){j.startingSlide=0}}var m=j.startingSlide||0;o.css({position:"absolute",top:0,left:0}).hide().each(function(t){var u=m?t>=m?k.length-(t-m):m-t:k.length-t;g(this).css("z-index",u)});g(k[m]).css("opacity",1).show();if(g.browser.msie){k[m].style.removeAttribute("filter")}if(j.fit&&j.width){o.width(j.width)}if(j.fit&&j.height&&j.height!="auto"){o.height(j.height)}if(j.pause){q.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var r=g.fn.cycle.transitions[j.fx];if(g.isFunction(r)){r(q,o,j)}else{if(j.fx!="custom"){d("unknown transition: "+j.fx)}}o.each(function(){var t=g(this);this.cycleH=(j.fit&&j.height)?j.height:t.height();this.cycleW=(j.fit&&j.width)?j.width:t.width()});j.cssBefore=j.cssBefore||{};j.animIn=j.animIn||{};j.animOut=j.animOut||{};o.not(":eq("+m+")").css(j.cssBefore);if(j.cssFirst){g(o[m]).css(j.cssFirst)}if(j.timeout){if(j.speed.constructor==String){j.speed={slow:600,fast:200}[j.speed]||400}if(!j.sync){j.speed=j.speed/2}while((j.timeout-j.speed)<250){j.timeout+=j.speed}}if(j.easing){j.easeIn=j.easeOut=j.easing}if(!j.speedIn){j.speedIn=j.speed}if(!j.speedOut){j.speedOut=j.speed}j.slideCount=k.length;j.currSlide=m;if(j.random){j.nextSlide=j.currSlide;if(++j.randomIndex==k.length){j.randomIndex=0}j.nextSlide=j.randomMap[j.randomIndex]}else{j.nextSlide=j.startingSlide>=(k.length-1)?0:j.startingSlide+1}var p=o[m];if(j.before.length){j.before[0].apply(p,[p,p,j,true])}if(j.after.length>1){j.after[1].apply(p,[p,p,j,true])}if(j.click&&!j.next){j.next=j.click}if(j.next){g(j.next).bind("click",function(){return f(k,j,j.rev?-1:1)})}if(j.prev){g(j.prev).bind("click",function(){return f(k,j,j.rev?1:-1)})}if(j.pager){h(k,j)}j.addSlide=function(u){var t=g(u),v=t[0];if(!j.autostopCount){j.countdown++}k.push(v);if(j.els){j.els.push(v)}j.slideCount=k.length;t.css("position","absolute").appendTo(q);if(b&&j.cleartype&&!j.cleartypeNoBg){c(t)}if(j.fit&&j.width){t.width(j.width)}if(j.fit&&j.height&&j.height!="auto"){o.height(j.height)}v.cycleH=(j.fit&&j.height)?j.height:t.height();v.cycleW=(j.fit&&j.width)?j.width:t.width();t.css(j.cssBefore);if(j.pager){g.fn.cycle.createPagerAnchor(k.length-1,v,g(j.pager),k,j)}if(typeof j.onAddSlide=="function"){j.onAddSlide(t)}};if(j.timeout||j.continuous){this.cycleTimeout=setTimeout(function(){e(k,j,0,!j.rev)},j.continuous?10:j.timeout+(j.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})};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"}}};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,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);