(function($){var m='2.14';var n=$.browser.msie&&/MSIE 6.0/.test(navigator.userAgent);function log(){if(window.console&&window.console.log)window.console.log('[cycle] '+Array.prototype.join.call(arguments,''))};$.fn.cycle=function(l){return this.each(function(){l=l||{};if(l.constructor==String){switch(l){case'stop':if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;return;case'pause':this.cyclePause=1;return;case'resume':this.cyclePause=0;return;default:l={fx:l}}}if(this.cycleTimeout)clearTimeout(this.cycleTimeout);this.cycleTimeout=0;this.cyclePause=0;var c=$(this);var d=l.slideExpr?$(l.slideExpr,this):c.children();var e=d.get();if(e.length<2){log('terminating; too few slides: '+e.length);return}var f=$.extend({},$.fn.cycle.defaults,l||{},$.metadata?c.metadata():$.meta?c.data():{});if(f.autostop)f.countdown=f.autostopCount||e.length;f.before=f.before?[f.before]:[];f.after=f.after?[f.after]:[];f.after.unshift(function(){f.busy=0});if(f.continuous)f.after.push(function(){go(e,f,0,!f.rev)});if(n&&f.cleartype&&!f.cleartypeNoBg)clearTypeFix(d);var g=this.className;f.width=parseInt((g.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((g.match(/h:(\d+)/)||[])[1])||f.height;f.timeout=parseInt((g.match(/t:(\d+)/)||[])[1])||f.timeout;if(c.css('position')=='static')c.css('position','relative');if(f.width)c.width(f.width);if(f.height&&f.height!='auto')c.height(f.height);if(f.random){f.randomMap=[];for(var i=0;i<e.length;i++)f.randomMap.push(i);f.randomMap.sort(function(a,b){return Math.random()-0.5});f.randomIndex=0;f.startingSlide=f.randomMap[0]}else if(f.startingSlide>=e.length)f.startingSlide=0;var h=f.startingSlide||0;d.css('position','absolute').hide().each(function(i){var z=h?i>=h?e.length-(i-h):h-i:e.length-i;$(this).css('z-index',z)});$(e[h]).css('opacity',1).show();if(f.fit&&f.width)d.width(f.width);if(f.fit&&f.height&&f.height!='auto')d.height(f.height);if(f.pause)c.hover(function(){this.cyclePause=1},function(){this.cyclePause=0});var j=$.fn.cycle.transitions[f.fx];if($.isFunction(j))j(c,d,f);else log('unknown transition: '+f.fx);d.each(function(){var a=$(this);this.cycleH=(f.fit&&f.height)?f.height:a.height();this.cycleW=(f.fit&&f.width)?f.width:a.width()});f.cssBefore=f.cssBefore||{};f.animIn=f.animIn||{};f.animOut=f.animOut||{};d.not(':eq('+h+')').css(f.cssBefore);if(f.cssFirst)$(d[h]).css(f.cssFirst);if(f.timeout){if(f.speed.constructor==String)f.speed={slow:600,fast:200}[f.speed]||400;if(!f.sync)f.speed=f.speed/2;while((f.timeout-f.speed)<250)f.timeout+=f.speed}if(f.easing)f.easeIn=f.easeOut=f.easing;if(!f.speedIn)f.speedIn=f.speed;if(!f.speedOut)f.speedOut=f.speed;f.slideCount=e.length;f.currSlide=h;if(f.random){f.nextSlide=f.currSlide;if(++f.randomIndex==e.length)f.randomIndex=0;f.nextSlide=f.randomMap[f.randomIndex]}else f.nextSlide=f.startingSlide>=(e.length-1)?0:f.startingSlide+1;var k=d[h];if(f.before.length)f.before[0].apply(k,[k,k,f,true]);if(f.after.length>1)f.after[1].apply(k,[k,k,f,true]);if(f.click&&!f.next)f.next=f.click;if(f.next)$(f.next).bind('click',function(){return advance(e,f,f.rev?-1:1)});if(f.prev)$(f.prev).bind('click',function(){return advance(e,f,f.rev?1:-1)});if(f.pager)buildPager(e,f);if(f.timeout||f.continuous)this.cycleTimeout=setTimeout(function(){go(e,f,0,!f.rev)},f.continuous?10:f.timeout+(f.delay||0));f.addSlide=function(a){var b=$(a),s=b[0];if(!f.autostopCount)f.countdown++;e.push(s);if(f.els)f.els.push(s);f.slideCount=e.length;b.css('position','absolute').css(f.cssBefore).appendTo(c);if(n&&f.cleartype&&!f.cleartypeNoBg)clearTypeFix(b);if(f.fit&&f.width)b.width(f.width);if(f.fit&&f.height&&f.height!='auto')d.height(f.height);s.cycleH=(f.fit&&f.height)?f.height:b.height();s.cycleW=(f.fit&&f.width)?f.width:b.width()}})};function go(a,b,c,d){if(b.busy)return;var p=a[0].parentNode,curr=a[b.currSlide],next=a[b.nextSlide];if(p.cycleTimeout===0&&!c)return;if(!c&&!p.cyclePause&&((b.autostop&&(--b.countdown<=0))||(b.nowrap&&!b.random&&b.nextSlide<b.currSlide))){if(b.end)b.end(b);return}if(c||!p.cyclePause){if(b.before.length)$.each(b.before,function(i,o){o.apply(next,[curr,next,b,d])});var e=function(){if($.browser.msie&&b.cleartype)this.style.removeAttribute('filter');$.each(b.after,function(i,o){o.apply(next,[curr,next,b,d])})};if(b.nextSlide!=b.currSlide){b.busy=1;if(b.fxFn)b.fxFn(curr,next,b,e,d);else if($.isFunction($.fn.cycle[b.fx]))$.fn.cycle[b.fx](curr,next,b,e);else $.fn.cycle.custom(curr,next,b,e)}if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==a.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else{var f=(b.nextSlide+1)==a.length;b.nextSlide=f?0:b.nextSlide+1;b.currSlide=f?a.length-1:b.nextSlide-1}if(b.pager)$(b.pager).find('a').removeClass('activeSlide').filter('a:eq('+b.currSlide+')').addClass('activeSlide')}if(b.timeout&&!b.continuous)p.cycleTimeout=setTimeout(function(){go(a,b,0,!b.rev)},b.timeout);else if(b.continuous&&p.cyclePause)p.cycleTimeout=setTimeout(function(){go(a,b,0,!b.rev)},10)};function advance(a,b,c){var p=a[0].parentNode,timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}b.nextSlide=b.currSlide+c;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=a.length-1}else if(b.nextSlide>=a.length){if(b.nowrap)return false;b.nextSlide=0}if(b.prevNextClick&&typeof b.prevNextClick=='function')b.prevNextClick(c>0,b.nextSlide,a[b.nextSlide]);go(a,b,1,c>=0);return false};function buildPager(b,c){var d=$(c.pager);$.each(b,function(i,o){var a=(typeof c.pagerAnchorBuilder=='function')?$(c.pagerAnchorBuilder(i,o)):$('<a href="#">'+(i+1)+'</a>');if(a.parents('body').length==0)a.appendTo(d);a.bind(c.pagerEvent,function(){c.nextSlide=i;var p=b[0].parentNode,timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0}if(typeof c.pagerClick=='function')c.pagerClick(c.nextSlide,b[c.nextSlide]);go(b,c,1,!c.rev);return false})});d.find('a').filter('a:eq('+c.startingSlide+')').addClass('activeSlide')};function clearTypeFix(b){function hex(s){var s=parseInt(s).toString(16);return s.length<2?'0'+s:s};function getBg(e){for(;e&&e.nodeName.toLowerCase()!='html';e=e.parentNode){var v=$.css(e,'background-color');if(v.indexOf('rgb')>=0){var a=v.match(/\d+/g);return'#'+hex(a[0])+hex(a[1])+hex(a[2])}if(v&&v!='transparent')return v}return'#ffffff'};b.each(function(){$(this).css('background-color',getBg(this))})};$.fn.cycle.custom=function(a,b,c,d){var e=$(a),$n=$(b);$n.css(c.cssBefore);var f=function(){$n.animate(c.animIn,c.speedIn,c.easeIn,d)};e.animate(c.animOut,c.speedOut,c.easeOut,function(){if(c.cssAfter)e.css(c.cssAfter);if(!c.sync)f()});if(c.sync)f()};$.fn.cycle.transitions={fade:function(a,b,c){b.not(':eq('+c.startingSlide+')').css('opacity',0);c.before.push(function(){$(this).show()});c.animIn={opacity:1};c.animOut={opacity:0};c.cssAfter={display:'none'}}};$.fn.cycle.ver=function(){return m};$.fn.cycle.defaults={fx:'fade',timeout:4000,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:'click',pagerAnchorBuilder:null,before:null,after:null,end: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,autostopCount:0,delay:0,slideExpr:null,cleartype:0,nowrap:0}})(jQuery);jQuery.fn.cycle.transitions.scrollUp=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.top=b.offsetHeight;c.animOut.top=0-a.offsetHeight});f.cssFirst={top:0};f.animIn={top:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.scrollDown=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.top=0-b.offsetHeight;c.animOut.top=a.offsetHeight});f.cssFirst={top:0};f.animIn={top:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.scrollLeft=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.left=b.offsetWidth;c.animOut.left=0-a.offsetWidth});f.cssFirst={left:0};f.animIn={left:0}};jQuery.fn.cycle.transitions.scrollRight=function(d,e,f){d.css('overflow','hidden');f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.left=0-b.offsetWidth;c.animOut.left=a.offsetWidth});f.cssFirst={left:0};f.animIn={left:0}};jQuery.fn.cycle.transitions.scrollHorz=function(f,g,h){f.css('overflow','hidden').width();h.before.push(function(a,b,c,d){jQuery(this).show();var e=a.offsetWidth,nextW=b.offsetWidth;c.cssBefore=d?{left:nextW}:{left:-nextW};c.animIn.left=0;c.animOut.left=d?-e:e;g.not(a).css(c.cssBefore)});h.cssFirst={left:0};h.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.scrollVert=function(f,g,h){f.css('overflow','hidden');h.before.push(function(a,b,c,d){jQuery(this).show();var e=a.offsetHeight,nextH=b.offsetHeight;c.cssBefore=d?{top:-nextH}:{top:nextH};c.animIn.top=0;c.animOut.top=d?e:-e;g.not(a).css(c.cssBefore)});h.cssFirst={top:0};h.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.slideX=function(a,b,c){c.animIn={width:'show'};c.animOut={width:'hide'}};jQuery.fn.cycle.transitions.slideY=function(a,b,c){c.animIn={height:'show'};c.animOut={height:'hide'}};jQuery.fn.cycle.transitions.shuffle=function(g,h,j){var w=g.css('overflow','visible').width();h.css({left:0,top:0});j.before.push(function(){jQuery(this).show()});j.speed=j.speed/2;j.random=0;j.shuffle=j.shuffle||{left:-w,top:15};j.els=[];for(var i=0;i<h.length;i++)j.els.push(h[i]);for(var i=0;i<j.startingSlide;i++)j.els.push(j.els.shift());j.fxFn=function(a,b,c,d,e){var f=e?jQuery(a):jQuery(b);f.animate(c.shuffle,c.speedIn,c.easeIn,function(){e?c.els.push(c.els.shift()):c.els.unshift(c.els.pop());if(e)for(var i=0,len=c.els.length;i<len;i++)jQuery(c.els[i]).css('z-index',len-i);else{var z=jQuery(a).css('z-index');f.css('z-index',parseInt(z)+1)}f.animate({left:0,top:0},c.speedOut,c.easeOut,function(){jQuery(e?this:a).hide();if(d)d()})})}};jQuery.fn.cycle.transitions.turnUp=function(d,e,f){f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.top=b.cycleH;c.animIn.height=b.cycleH});f.cssFirst={top:0};f.cssBefore={height:0};f.animIn={top:0};f.animOut={height:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.turnDown=function(d,e,f){f.before.push(function(a,b,c){jQuery(this).show();c.animIn.height=b.cycleH;c.animOut.top=a.cycleH});f.cssFirst={top:0};f.cssBefore={top:0,height:0};f.animOut={height:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.turnLeft=function(d,e,f){f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore.left=b.cycleW;c.animIn.width=b.cycleW});f.cssBefore={width:0};f.animIn={left:0};f.animOut={width:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.turnRight=function(d,e,f){f.before.push(function(a,b,c){jQuery(this).show();c.animIn.width=b.cycleW;c.animOut.left=a.cycleW});f.cssBefore={left:0,width:0};f.animIn={left:0};f.animOut={width:0};f.cssAfter={display:'none'}};jQuery.fn.cycle.transitions.zoom=function(d,e,f){f.cssFirst={top:0,left:0};f.cssAfter={display:'none'};f.before.push(function(a,b,c){jQuery(this).show();c.cssBefore={width:0,height:0,top:b.cycleH/2,left:b.cycleW/2};c.animIn={top:0,left:0,width:b.cycleW,height:b.cycleH};c.animOut={width:0,height:0,top:a.cycleH/2,left:a.cycleW/2}})};jQuery.fn.cycle.transitions.fadeZoom=function(d,e,f){f.before.push(function(a,b,c){c.cssBefore={width:0,height:0,opacity:1,left:b.cycleW/2,top:b.cycleH/2,zIndex:1};c.animIn={top:0,left:0,width:b.cycleW,height:b.cycleH}});f.animOut={opacity:0};f.cssAfter={zIndex:0}};jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d)},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4}else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b}});jQuery.extend(jQuery.easing,{easeIn:function(x,t,b,c,d){return jQuery.easing.easeInQuad(x,t,b,c,d)},easeOut:function(x,t,b,c,d){return jQuery.easing.easeOutQuad(x,t,b,c,d)},easeInOut:function(x,t,b,c,d){return jQuery.easing.easeInOutQuad(x,t,b,c,d)},expoin:function(x,t,b,c,d){return jQuery.easing.easeInExpo(x,t,b,c,d)},expoout:function(x,t,b,c,d){return jQuery.easing.easeOutExpo(x,t,b,c,d)},expoinout:function(x,t,b,c,d){return jQuery.easing.easeInOutExpo(x,t,b,c,d)},bouncein:function(x,t,b,c,d){return jQuery.easing.easeInBounce(x,t,b,c,d)},bounceout:function(x,t,b,c,d){return jQuery.easing.easeOutBounce(x,t,b,c,d)},bounceinout:function(x,t,b,c,d){return jQuery.easing.easeInOutBounce(x,t,b,c,d)},elasin:function(x,t,b,c,d){return jQuery.easing.easeInElastic(x,t,b,c,d)},elasout:function(x,t,b,c,d){return jQuery.easing.easeOutElastic(x,t,b,c,d)},elasinout:function(x,t,b,c,d){return jQuery.easing.easeInOutElastic(x,t,b,c,d)},backin:function(x,t,b,c,d){return jQuery.easing.easeInBack(x,t,b,c,d)},backout:function(x,t,b,c,d){return jQuery.easing.easeOutBack(x,t,b,c,d)},backinout:function(x,t,b,c,d){return jQuery.easing.easeInOutBack(x,t,b,c,d)}});