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