(function(d){var l="Lite-1.0";d.fn.cycle=function(e){return this.each(function(){e=e||{};this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cyclePause=this.cycleTimeout=0;var b=d(this),c=e.slideExpr?d(e.slideExpr,this):b.children(),f=c.get();if(f.length<2)window.console&&window.console.log&&window.console.log("terminating; too few slides: "+f.length);else{var a=d.extend({},d.fn.cycle.defaults,e||{},d.metadata?b.metadata():d.meta?b.data():{});a.before=a.before?[a.before]:[];a.after=a.after?[a.after]:
[];a.after.unshift(function(){a.busy=0});var g=this.className;a.width=parseInt((g.match(/w:(\d+)/)||[])[1])||a.width;a.height=parseInt((g.match(/h:(\d+)/)||[])[1])||a.height;a.timeout=parseInt((g.match(/t:(\d+)/)||[])[1])||a.timeout;b.css("position")=="static"&&b.css("position","relative");a.width&&b.width(a.width);a.height&&a.height!="auto"&&b.height(a.height);g=0;c.css({position:"absolute",top:0,left:0}).hide().each(function(h){d(this).css("z-index",f.length-h)});d(f[g]).css("opacity",1).show();
d.browser.msie&&f[g].style.removeAttribute("filter");a.fit&&a.width&&c.width(a.width);a.fit&&a.height&&a.height!="auto"&&c.height(a.height);a.pause&&b.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});d.fn.cycle.transitions.fade(b,c,a);c.each(function(){var h=d(this);this.cycleH=a.fit&&a.height?a.height:h.height();this.cycleW=a.fit&&a.width?a.width:h.width()});c.not(":eq("+g+")").css({opacity:0});a.cssFirst&&d(c[g]).css(a.cssFirst);if(a.timeout){if(a.speed.constructor==String)a.speed=
{slow:600,fast:200}[a.speed]||400;for(a.sync||(a.speed/=2);a.timeout-a.speed<250;)a.timeout+=a.speed}a.speedIn=a.speed;a.speedOut=a.speed;a.slideCount=f.length;a.currSlide=g;a.nextSlide=1;b=c[g];a.before.length&&a.before[0].apply(b,[b,b,a,true]);a.after.length>1&&a.after[1].apply(b,[b,b,a,true]);if(a.click&&!a.next)a.next=a.click;a.next&&d(a.next).bind("click",function(){return k(f,a,a.rev?-1:1)});a.prev&&d(a.prev).bind("click",function(){return k(f,a,a.rev?1:-1)});if(a.timeout)this.cycleTimeout=
setTimeout(function(){i(f,a,0,!a.rev)},a.timeout+(a.delay||0))}})};function i(e,b,c,f){if(!b.busy){var a=e[0].parentNode,g=e[b.currSlide],h=e[b.nextSlide];if(!(a.cycleTimeout===0&&!c)){if(c||!a.cyclePause){b.before.length&&d.each(b.before,function(m,j){j.apply(h,[g,h,b,f])});c=function(){d.browser.msie&&this.style.removeAttribute("filter");d.each(b.after,function(m,j){j.apply(h,[g,h,b,f])})};if(b.nextSlide!=b.currSlide){b.busy=1;d.fn.cycle.custom(g,h,b,c)}c=b.nextSlide+1==e.length;b.nextSlide=c?0:
b.nextSlide+1;b.currSlide=c?e.length-1:b.nextSlide-1}if(b.timeout)a.cycleTimeout=setTimeout(function(){i(e,b,0,!b.rev)},b.timeout)}}}function k(e,b,c){var f=e[0].parentNode,a=f.cycleTimeout;if(a){clearTimeout(a);f.cycleTimeout=0}b.nextSlide=b.currSlide+c;if(b.nextSlide<0)b.nextSlide=e.length-1;else if(b.nextSlide>=e.length)b.nextSlide=0;i(e,b,1,c>=0);return false}d.fn.cycle.custom=function(e,b,c,f){var a=d(e),g=d(b);g.css({opacity:0});function h(){g.animate({opacity:1},c.speedIn,c.easeIn,f)}a.animate({opacity:0},
c.speedOut,c.easeOut,function(){a.css({display:"none"});c.sync||h()});c.sync&&h()};d.fn.cycle.transitions={fade:function(e,b,c){b.not(":eq(0)").css("opacity",0);c.before.push(function(){d(this).show()})}};d.fn.cycle.ver=function(){return l};d.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery);