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