/*
 * jQuery Cycle Plugin (core)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.80 (05-MAR-2010)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 * Requires: jQuery v1.2.6 or later
 */

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