(function(i){var l="2.73";if(i.support==undefined){i.support={opacity:!(i.browser.msie)}}function a(q){if(i.fn.cycle.debug){f(q)}}function f(){if(window.console&&window.console.log){window.console.log("[cycle] "+array.prototype.join.call(arguments," "))}}i.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length===0&&r!="stop"){if(!i.isready&&s.s){f("dom not ready, queuing slideshow");i(function(){i(s.s,s.c).cycle(r,q)});return this}f("terminating; zero elements found by selector"+(i.isready?"":" (dom not ready)"));return this}return this.each(function(){var w=m(this,r,q);if(w===false){return}if(this.cycletimeout){cleartimeout(this.cycletimeout)}this.cycletimeout=this.cyclepause=0;var x=i(this);var y=w.slideexpr?i(w.slideexpr,this):x.children();var u=y.get();if(u.length<2){f("terminating; too few slides: "+u.length);return}var t=k(x,y,u,w,s);if(t===false){return}var v=t.continuous?10:h(t.currslide,t.nextslide,t,!t.rev);if(v){v+=(t.delay||0);if(v<10){v=10}a("first timeout: "+v);this.cycletimeout=settimeout(function(){e(u,t,0,!t.rev)},v)}})};function m(q,t,r){if(q.cyclestop==undefined){q.cyclestop=0}if(t===undefined||t===null){t={}}if(t.constructor==string){switch(t){case"stop":q.cyclestop++;if(q.cycletimeout){cleartimeout(q.cycletimeout)}q.cycletimeout=0;i(q).removedata("cycle.opts");return false;case"pause":q.cyclepause=1;return false;case"resume":q.cyclepause=0;if(r===true){t=i(q).data("cycle.opts");if(!t){f("options not found, can not resume");return false}if(q.cycletimeout){cleartimeout(q.cycletimeout);q.cycletimeout=0}e(t.elements,t,1,1)}return false;case"prev":case"next":var u=i(q).data("cycle.opts");if(!u){f('options not found, "prev/next" ignored');return false}i.fn.cycle[t](u);return false;default:t={fx:t}}return t}else{if(t.constructor==number){var s=t;t=i(q).data("cycle.opts");if(!t){f("options not found, can not advance slide");return false}if(s<0||s>=t.elements.length){f("invalid slide index: "+s);return false}t.nextslide=s;if(q.cycletimeout){cleartimeout(q.cycletimeout);q.cycletimeout=0}if(typeof r=="string"){t.onetimefx=r}e(t.elements,t,1,s>=t.currslide);return false}}return t}function b(q,r){if(!i.support.opacity&&r.cleartype&&q.style.filter){try{q.style.removeattribute("filter")}catch(s){}}}function k(y,j,u,t,e){var c=i.extend({},i.fn.cycle.defaults,t||{},i.metadata?y.metadata():i.meta?y.data():{});if(c.autostop){c.countdown=c.autostopcount||u.length}var r=y[0];y.data("cycle.opts",c);c.$cont=y;c.stopcount=r.cyclestop;c.elements=u;c.before=c.before?[c.before]:[];c.after=c.after?[c.after]:[];c.after.unshift(function(){c.busy=0});if(!i.support.opacity&&c.cleartype){c.after.push(function(){b(this,c)})}if(c.continuous){c.after.push(function(){e(u,c,0,!c.rev)})}n(c);if(!i.support.opacity&&c.cleartype&&!c.cleartypenobg){g(j)}if(y.css("position")=="static"){y.css("position","relative")}if(c.width){y.width(c.width)}if(c.height&&c.height!="auto"){y.height(c.height)}if(c.startingslide){c.startingslide=parseint(c.startingslide)}if(c.random){c.randommap=[];for(var h=0;h=u.length){c.startingslide=0}}c.currslide=c.startingslide=c.startingslide||0;var x=c.startingslide;j.css({position:"absolute",top:0,left:0}).hide().each(function(w){var l=x?w>=x?u.length-(w-x):x-w:u.length-w;i(this).css("z-index",l)});i(u[x]).css("opacity",1).show();b(u[x],c);if(c.fit&&c.width){j.width(c.width)}if(c.fit&&c.height&&c.height!="auto"){j.height(c.height)}var d=c.containerresize&&!y.innerheight();if(d){var v=0,b=0;for(var f=0;fv?a:v;b=i>b?i:b}if(v>0&&b>0){y.css({width:v+"px",height:b+"px"})}}if(c.pause){y.hover(function(){this.cyclepause++},function(){this.cyclepause--})}if(c(c)===false){return false}var s=false;t.requeueattempts=t.requeueattempts||0;j.each(function(){var n=i(this);this.cycleh=(c.fit&&c.height)?c.height:n.height();this.cyclew=(c.fit&&c.width)?c.width:n.width();if(n.is("img")){var l=(i.browser.msie&&this.cyclew==28&&this.cycleh==30&&!this.complete);var o=(i.browser.mozilla&&this.cyclew==34&&this.cycleh==19&&!this.complete);var m=(i.browser.opera&&((this.cyclew==42&&this.cycleh==19)||(this.cyclew==37&&this.cycleh==17))&&!this.complete);var w=(this.cycleh==0&&this.cyclew==0&&!this.complete);if(l||o||m||w){if(e.s&&c.requeueonimagenotloaded&&++t.requeueattempts<100){f(t.requeueattempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cyclew,this.cycleh);settimeout(function(){i(e.s,e.c).cycle(t)},c.requeuetimeout);s=true;return false}else{f("could not determine size of image: "+this.src,this.cyclew,this.cycleh)}}}return true});if(s){return false}c.cssbefore=c.cssbefore||{};c.animin=c.animin||{};c.animout=c.animout||{};j.not(":eq("+x+")").css(c.cssbefore);if(c.cssfirst){i(j[x]).css(c.cssfirst)}if(c.timeout){c.timeout=parseint(c.timeout);if(c.speed.constructor==string){c.speed=i.fx.speeds[c.speed]||parseint(c.speed)}if(!c.sync){c.speed=c.speed/2}while((c.timeout-c.speed)<250){c.timeout+=c.speed}}if(c.easing){c.easein=c.easeout=c.easing}if(!c.speedin){c.speedin=c.speed}if(!c.speedout){c.speedout=c.speed}c.slidecount=u.length;c.currslide=c.lastslide=x;if(c.random){c.nextslide=c.currslide;if(++c.randomindex==u.length){c.randomindex=0}c.nextslide=c.randommap[c.randomindex]}else{c.nextslide=c.startingslide>=(u.length-1)?0:c.startingslide+1}if(!c.multifx){var g=i.fn.cycle.transitions[c.fx];if(i.isfunction(g)){g(y,j,c)}else{if(c.fx!="custom"&&!c.multifx){f("unknown transition: "+c.fx,"; slideshow terminating");return false}}}var z=j[x];if(c.before.length){c.before[0].apply(z,[z,z,c,true])}if(c.after.length>1){c.after[1].apply(z,[z,z,c,true])}if(c.next){i(c.next).bind(c.prevnextevent,function(){return o(c,c.rev?-1:1)})}if(c.prev){i(c.prev).bind(c.prevnextevent,function(){return o(c,c.rev?1:-1)})}if(c.pager){d(u,c)}j(c,u);return c}function n(q){q.original={before:[],after:[]};q.original.cssbefore=i.extend({},q.cssbefore);q.original.cssafter=i.extend({},q.cssafter);q.original.animin=i.extend({},q.animin);q.original.animout=i.extend({},q.animout);i.each(q.before,function(){q.original.before.push(this)});i.each(q.after,function(){q.original.after.push(this)})}function c(w){var u,s,r=i.fn.cycle.transitions;if(w.fx.indexof(",")>0){w.multifx=true;w.fxs=w.fx.replace(/\s*/g,"").split(",");for(u=0;u=q.fxs.length){q.lastfx=0}v=q.fxs[q.lastfx];q.currfx=v}if(q.onetimefx){v=q.onetimefx;q.onetimefx=null}i.fn.cycle.resetstate(q,v);if(q.before.length){i.each(q.before,function(b,c){if(u.cyclestop!=q.stopcount){return}c.apply(z,[a,z,q,y])})}var s=function(){i.each(q.after,function(b,c){if(u.cyclestop!=q.stopcount){return}c.apply(z,[a,z,q,y])})};if(q.nextslide!=q.currslide){q.busy=1;if(q.fxfn){q.fxfn(a,z,q,s,y)}else{if(i.isfunction(i.fn.cycle[q.fx])){i.fn.cycle[q.fx](a,z,q,s)}else{i.fn.cycle.custom(a,z,q,s,w&&q.fastonevent)}}}q.lastslide=q.currslide;if(q.random){q.currslide=q.nextslide;if(++q.randomindex==x.length){q.randomindex=0}q.nextslide=q.randommap[q.randomindex]}else{var t=(q.nextslide+1)==x.length;q.nextslide=t?0:q.nextslide+1;q.currslide=t?x.length-1:q.nextslide-1}if(q.pager){i.fn.cycle.updateactivepagerlink(q.pager,q.currslide)}}var r=0;if(q.timeout&&!q.continuous){r=h(a,z,q,y)}else{if(q.continuous&&u.cyclepause){r=10}}if(r>0){u.cycletimeout=settimeout(function(){e(x,q,0,!q.rev)},r)}}i.fn.cycle.updateactivepagerlink=function(q,r){i(q).each(function(){i(this).find("a").removeclass("activeslide").filter("a:eq("+r+")").addclass("activeslide")})};function h(v,s,u,r){if(u.timeoutfn){var q=u.timeoutfn(v,s,u,r);while((q-u.speed)<250){q+=u.speed}a("calculated timeout: "+q+"; speed: "+u.speed);if(q!==false){return q}}return u.timeout}i.fn.cycle.next=function(q){o(q,q.rev?-1:1)};i.fn.cycle.prev=function(q){o(q,q.rev?1:-1)};function o(r,u){var q=r.elements;var t=r.$cont[0],s=t.cycletimeout;if(s){cleartimeout(s);t.cycletimeout=0}if(r.random&&u<0){r.randomindex--;if(--r.randomindex==-2){r.randomindex=q.length-2}else{if(r.randomindex==-1){r.randomindex=q.length-1}}r.nextslide=r.randommap[r.randomindex]}else{if(r.random){if(++r.randomindex==q.length){r.randomindex=0}r.nextslide=r.randommap[r.randomindex]}else{r.nextslide=r.currslide+u;if(r.nextslide<0){if(r.nowrap){return false}r.nextslide=q.length-1}else{if(r.nextslide>=q.length){if(r.nowrap){return false}r.nextslide=0}}}}if(i.isfunction(r.prevnextclick)){r.prevnextclick(u>0,r.nextslide,q[r.nextslide])}e(q,r,1,u>=0);return false}function d(r,s){var q=i(s.pager);i.each(r,function(t,u){i.fn.cycle.createpageranchor(t,u,q,r,s)});i.fn.cycle.updateactivepagerlink(s.pager,s.startingslide)}i.fn.cycle.createpageranchor=function(u,v,s,t,w){var r;if(i.isfunction(w.pageranchorbuilder)){r=w.pageranchorbuilder(u,v)}else{r=''+(u+1)+""}if(!r){return}var x=i(r);if(x.parents("body").length===0){var q=[];if(s.length>1){s.each(function(){var y=x.clone(true);i(this).append(y);q.push(y[0])});x=i(q)}else{x.appendto(s)}}x.bind(w.pagerevent,function(a){a.preventdefault();w.nextslide=u;var z=w.$cont[0],y=z.cycletimeout;if(y){cleartimeout(y);z.cycletimeout=0}if(i.isfunction(w.pagerclick)){w.pagerclick(w.nextslide,t[w.nextslide])}e(t,w,1,w.currslideq?u-q:t.slidecount-q}else{r=u=0){var u=t.match(/\d+/g);return"#"+r(u[0])+r(u[1])+r(u[2])}if(t&&t!="transparent"){return t}}return"#ffffff"}s.each(function(){i(this).css("background-color",q(this))})}i.fn.cycle.commonreset=function(v,t,u,r,s,q){i(u.elements).not(v).hide();u.cssbefore.opacity=1;u.cssbefore.display="block";if(r!==false&&t.cyclew>0){u.cssbefore.width=t.cyclew}if(s!==false&&t.cycleh>0){u.cssbefore.height=t.cycleh}u.cssafter=u.cssafter||{};u.cssafter.display="none";i(v).css("zindex",u.slidecount+(q===true?1:0));i(t).css("zindex",u.slidecount+(q===true?0:1))};i.fn.cycle.custom=function(b,v,q,s,r){var a=i(b),w=i(v);var t=q.speedin,z=q.speedout,u=q.easein,y=q.easeout;w.css(q.cssbefore);if(r){if(typeof r=="number"){t=z=r}else{t=z=1}u=y=null}var x=function(){w.animate(q.animin,t,u,s)};a.animate(q.animout,z,y,function(){if(q.cssafter){a.css(q.cssafter)}if(!q.sync){x()}});if(q.sync){x()}};i.fn.cycle.transitions={fade:function(r,s,q){s.not(":eq("+q.currslide+")").css("opacity",0);q.before.push(function(v,t,u){i.fn.cycle.commonreset(v,t,u);u.cssbefore.opacity=0});q.animin={opacity:1};q.animout={opacity:0};q.cssbefore={top:0,left:0}}};i.fn.cycle.ver=function(){return l};i.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutfn:null,continuous:0,speed:1000,speedin:null,speedout:null,next:null,prev:null,prevnextclick:null,prevnextevent:"click",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,containerresize:1,pause:0,pauseonpagerhover:0,autostop:0,autostopcount:0,delay:0,slideexpr:null,cleartype:!i.support.opacity,cleartypenobg:false,nowrap:0,fastonevent:0,randomizeeffects:1,rev:0,manualtrump:true,requeueonimagenotloaded:true,requeuetimeout:250}})(jquery); /* * jquery cycle plugin transition definitions * this script is a plugin for the jquery cycle plugin * examples and documentation at: http://malsup.com/jquery/cycle/ * copyright (c) 2007-2008 m. alsup * version: 2.72 * dual licensed under the mit and gpl licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html */ (function(a){a.fn.cycle.transitions.none=function(c,d,b){b.fxfn=function(g,e,f,h){a(e).show();a(g).hide();h()}};a.fn.cycle.transitions.scrollup=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonreset);var b=d.height();c.cssbefore={top:b,left:0};c.cssfirst={top:0};c.animin={top:0};c.animout={top:-b}};a.fn.cycle.transitions.scrolldown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonreset);var b=d.height();c.cssfirst={top:0};c.cssbefore={top:-b,left:0};c.animin={top:0};c.animout={top:b}};a.fn.cycle.transitions.scrollleft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonreset);var b=d.width();c.cssfirst={left:0};c.cssbefore={left:b,top:0};c.animin={left:0};c.animout={left:0-b}};a.fn.cycle.transitions.scrollright=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonreset);var b=d.width();c.cssfirst={left:0};c.cssbefore={left:-b,top:0};c.animin={left:0};c.animout={left:b}};a.fn.cycle.transitions.scrollhorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonreset(h,f,g);g.cssbefore.left=e?(f.cyclew-1):(1-f.cyclew);g.animout.left=e?-h.cyclew:h.cyclew});b.cssfirst={left:0};b.cssbefore={top:0};b.animin={left:0};b.animout={top:0}};a.fn.cycle.transitions.scrollvert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonreset(h,f,g);g.cssbefore.top=e?(1-f.cycleh):(f.cycleh-1);g.animout.top=e?h.cycleh:-h.cycleh});b.cssfirst={top:0};b.cssbefore={left:0};b.animin={top:0};b.animout={left:0}};a.fn.cycle.transitions.slidex=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonreset(g,e,f,false,true);f.animin.width=e.cyclew});b.cssbefore={left:0,top:0,width:0};b.animin={width:"show"};b.animout={width:0}};a.fn.cycle.transitions.slidey=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonreset(g,e,f,true,false);f.animin.height=e.cycleh});b.cssbefore={left:0,top:0,height:0};b.animin={height:"show"};b.animout={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var c,b=e.css("overflow","visible").width();f.css({left:0,top:0});d.before.push(function(i,g,h){a.fn.cycle.commonreset(i,g,h,true,true,true)});if(!d.speedadjusted){d.speed=d.speed/2;d.speedadjusted=true}d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(c=0;c