(function(f){var a="2.09";var b=f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);f.fn.cycle=function(h){return this.each(function(){h=h||{};if(h.constructor==String){switch(h){case"stop":if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;return;break;default:h={fx:h}}}var r=f(this);var o=h.slideExpr?f(h.slideExpr,this):f("IMG",r);var k=o.get();if(k.length<2){return}var j=f.extend({},f.fn.cycle.defaults,h||{},f.metadata?r.metadata():f.meta?r.data():{});if(j.autostop){j.countdown=j.autostopCount||k.length}j.before=j.before?[j.before]:[];j.after=j.after?[j.after]:[];j.after.unshift(function(){j.busy=0});j.slideObject=r;if(b&&j.cleartype&&!j.cleartypeNoBg){c(o)}var t=this.className;var q=parseInt((t.match(/w:(\d+)/)||[])[1])||j.width;var n=parseInt((t.match(/h:(\d+)/)||[])[1])||j.height;j.timeout=parseInt((t.match(/t:(\d+)/)||[])[1])||j.timeout;if(r.css("position")=="static"){r.css("position","relative")}if(q){r.width(q)}if(n&&n!="auto"){r.height(n)}if(j.random){j.randomMap=[];for(var l=0;l<k.length;l++){j.randomMap.push(l)}j.randomMap.sort(function(u,i){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").hide().each(function(u){var v=m?u>=m?k.length-(u-m):m-u:k.length-u;f(this).css("z-index",v)});f(k[m]).show();if(j.fit&&q){o.width(q)}if(j.fit&&n&&n!="auto"){o.height(n)}if(j.pause){r.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var s=f.fn.cycle.transitions[j.fx];if(f.isFunction(s)){s(r,o,j)}o.each(function(){var i=f(this);this.cycleH=(j.fit&&n)?n:i.height();this.cycleW=(j.fit&&q)?q:i.width()});j.cssBefore=j.cssBefore||{};j.animIn=j.animIn||{};j.animOut=j.animOut||{};o.not(":eq("+m+")").css(j.cssBefore);if(j.cssFirst){f(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){f(j.next).bind("click",function(){return e(k,j,j.rev?-1:1)})}if(j.prev){f(j.prev).bind("click",function(){return e(k,j,j.rev?1:-1)})}if(j.pager){g(k,j)}if(j.timeout){this.cycleTimeout=setTimeout(function(){d(k,j,0,!j.rev)},j.timeout+(j.delay||0))}})};function d(m,h,l,n){if(h.busy){return}var k=m[0].parentNode,q=m[h.currSlide],o=m[h.nextSlide];if(k==undefined){k=h.slideObject}if(k.cycleTimeout===0&&!l){return}if(!l&&!k.cyclePause&&h.autostop&&(--h.countdown<=0)){return}if(l||!k.cyclePause){if(h.before.length){f.each(h.before,function(p,r){r.apply(o,[q,o,h,n])})}var i=function(){if(f.browser.msie&&h.cleartype){if(this.style!=null){this.style.removeAttribute("filter")}}f.each(h.after,function(p,r){r.apply(o,[q,o,h,n])})};if(h.nextSlide!=h.currSlide){h.busy=1;if(h.fxFn){h.fxFn(q,o,h,i,n)}else{if(f.isFunction(f.fn.cycle[h.fx])){f.fn.cycle[h.fx](q,o,h,i)}else{f.fn.cycle.custom(q,o,h,i)}}}if(h.random){h.currSlide=h.nextSlide;if(++h.randomIndex==m.length){h.randomIndex=0}h.nextSlide=h.randomMap[h.randomIndex]}else{var j=(h.nextSlide+1)==m.length;h.nextSlide=j?0:h.nextSlide+1;h.currSlide=j?m.length-1:h.nextSlide-1}if(h.pager){f(h.pager).find("a").removeClass("activeSlide").filter("a:eq("+h.currSlide+")").addClass("activeSlide")}}if(h.timeout){k.cycleTimeout=setTimeout(function(){d(m,h,0,!h.rev)},h.timeout)}}function e(h,i,l){var k=h[0].parentNode,j=k.cycleTimeout;if(j){clearTimeout(j);k.cycleTimeout=0}i.nextSlide=i.currSlide+l;if(i.nextSlide<0){i.nextSlide=h.length-1}else{if(i.nextSlide>=h.length){i.nextSlide=0}}if(i.prevNextClick&&typeof i.prevNextClick=="function"){i.prevNextClick(l>0,i.nextSlide,h[i.nextSlide])}d(h,i,1,l>=0);return false}function g(i,j){var h=f(j.pager);f.each(i,function(k,m){var l=(typeof j.pagerAnchorBuilder=="function")?f(j.pagerAnchorBuilder(k,m)):f('<a href="#">'+(k+1)+"</a>");if(l.parents("body").length==0){l.appendTo(h)}l.bind("click",function(){j.nextSlide=k;var o=i[0].parentNode,n=o.cycleTimeout;if(n){clearTimeout(n);o.cycleTimeout=0}if(typeof j.pagerClick=="function"){j.pagerClick(j.nextSlide,i[j.nextSlide])}d(i,j,1,!j.rev);return false})});h.find("a").filter("a:eq("+j.startingSlide+")").addClass("activeSlide")}function c(j){function i(k){var k=parseInt(k).toString(16);return k.length<2?"0"+k:k}function h(m){for(;m&&m.nodeName.toLowerCase()!="html";m=m.parentNode){var k=f.css(m,"background-color");if(k.indexOf("rgb")>=0){var l=k.match(/\d+/g);return"#"+i(l[0])+i(l[1])+i(l[2])}if(k&&k!="transparent"){return k}}return"#ffffff"}j.each(function(){f(this).css("background-color",h(this))})}f.fn.cycle.custom=function(n,k,l,h){var m=f(n),j=f(k);j.css(l.cssBefore);var i=function(){j.animate(l.animIn,l.speedIn,l.easeIn,h)};m.animate(l.animOut,l.speedOut,l.easeOut,function(){if(l.cssAfter){m.css(l.cssAfter)}if(!l.sync){i()}});if(l.sync){i()}};f.fn.cycle.transitions={fade:function(i,j,h){j.not(":eq("+h.startingSlide+")").css("opacity",0);h.before.push(function(){f(this).show()});h.animIn={opacity:1};h.animOut={opacity:0};h.cssAfter={display:"none"}}};f.fn.cycle.ver=function(){return a};f.fn.cycle.defaults={fx:"fade",timeout:4000,speed:1000,speedIn:null,speedOut:null,click:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerAnchorBuilder:null,before:null,after: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,delay:0,slideExpr:null,cleartype:0}})(jQuery);jQuery.fn.cycle.transitions.scrollUp=function(b,c,a){b.css("overflow","hidden");a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.top=d.offsetHeight;e.animOut.top=0-f.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollDown=function(b,c,a){b.css("overflow","hidden");a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.top=0-d.offsetHeight;e.animOut.top=f.offsetHeight});a.cssFirst={top:0};a.animIn={top:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollLeft=function(b,c,a){b.css("overflow","hidden");a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.left=d.offsetWidth;e.animOut.left=0-f.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};jQuery.fn.cycle.transitions.scrollRight=function(b,c,a){b.css("overflow","hidden");a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.left=0-d.offsetWidth;e.animOut.left=f.offsetWidth});a.cssFirst={left:0};a.animIn={left:0}};jQuery.fn.cycle.transitions.scrollHorz=function(b,c,a){b.css("overflow","hidden").width();a.before.push(function(h,f,g,e){jQuery(this).show();var d=h.offsetWidth,i=f.offsetWidth;g.cssBefore=e?{left:i}:{left:-i};g.animIn.left=0;g.animOut.left=e?-d:d;c.not(h).css(g.cssBefore)});a.cssFirst={left:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.scrollVert=function(b,c,a){b.css("overflow","hidden");a.before.push(function(i,f,g,e){jQuery(this).show();var h=i.offsetHeight,d=f.offsetHeight;g.cssBefore=e?{top:-d}:{top:d};g.animIn.top=0;g.animOut.top=e?h:-h;c.not(i).css(g.cssBefore)});a.cssFirst={top:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.slideX=function(b,c,a){a.animIn={width:"show"};a.animOut={width:"hide"}};jQuery.fn.cycle.transitions.slideY=function(b,c,a){a.animIn={height:"show"};a.animOut={height:"hide"}};jQuery.fn.cycle.transitions.shuffle=function(d,e,c){var a=d.css("overflow","visible").width();e.css({left:0,top:0});c.before.push(function(){jQuery(this).show()});c.speed=c.speed/2;c.random=0;c.shuffle=c.shuffle||{left:-a,top:15};c.els=[];for(var b=0;b<e.length;b++){c.els.push(e[b])}for(var b=0;b<c.startingSlide;b++){c.els.push(c.els.shift())}c.fxFn=function(k,i,j,f,h){var g=h?jQuery(k):jQuery(i);g.animate(j.shuffle,j.speedIn,j.easeIn,function(){h?j.els.push(j.els.shift()):j.els.unshift(j.els.pop());if(h){for(var m=0,l=j.els.length;m<l;m++){jQuery(j.els[m]).css("z-index",l-m)}}else{var n=jQuery(k).css("z-index");g.css("z-index",parseInt(n)+1)}g.animate({left:0,top:0},j.speedOut,j.easeOut,function(){jQuery(h?this:k).hide();if(f){f()}})})}};jQuery.fn.cycle.transitions.turnUp=function(b,c,a){a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.top=d.cycleH;e.animIn.height=d.cycleH});a.cssFirst={top:0};a.cssBefore={height:0};a.animIn={top:0};a.animOut={height:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnDown=function(b,c,a){a.before.push(function(f,d,e){jQuery(this).show();e.animIn.height=d.cycleH;e.animOut.top=f.cycleH});a.cssFirst={top:0};a.cssBefore={top:0,height:0};a.animOut={height:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnLeft=function(b,c,a){a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore.left=d.cycleW;e.animIn.width=d.cycleW});a.cssBefore={width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.turnRight=function(b,c,a){a.before.push(function(f,d,e){jQuery(this).show();e.animIn.width=d.cycleW;e.animOut.left=f.cycleW});a.cssBefore={left:0,width:0};a.animIn={left:0};a.animOut={width:0};a.cssAfter={display:"none"}};jQuery.fn.cycle.transitions.zoom=function(b,c,a){a.cssFirst={top:0,left:0};a.cssAfter={display:"none"};a.before.push(function(f,d,e){jQuery(this).show();e.cssBefore={width:0,height:0,top:d.cycleH/2,left:d.cycleW/2};e.animIn={top:0,left:0,width:d.cycleW,height:d.cycleH};e.animOut={width:0,height:0,top:f.cycleH/2,left:f.cycleW/2}})};jQuery.fn.cycle.transitions.fadeZoom=function(b,c,a){a.before.push(function(f,d,e){e.cssBefore={width:0,height:0,opacity:1,left:d.cycleW/2,top:d.cycleH/2,zIndex:1};e.animIn={top:0,left:0,width:d.cycleW,height:d.cycleH}});a.animOut={opacity:0};a.cssAfter={zIndex:0}};
