/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.9995 (09-AUG-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function(i){var m="2.9995";if(i.support==undefined){i.support={opacity:!(i.browser.msie)}}function b(t){i.fn.cycle.debug&&h(t)}function h(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}i.expr[":"].paused=function(s){return s.cyclePause};i.fn.cycle=function(t,s){var u={s:this.selector,c:this.context};if(this.length===0&&t!="stop"){if(!i.isReady&&u.s){h("DOM not ready, queuing slideshow");i(function(){i(u.s,u.c).cycle(t,s)});return this}h("terminating; zero elements found by selector"+(i.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var y=a(this,t,s);if(y===false){return}y.updateActivePagerLink=y.updateActivePagerLink||i.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var z=i(this);var A=y.slideExpr?i(y.slideExpr,this):z.children();var x=A.get();var v=k(z,A,x,y,u);if(v===false){return}if(x.length<2){h("terminating; too few slides: "+x.length);return}var w=v.continuous?10:f(x[v.currSlide],x[v.nextSlide],v,!v.backwards);if(w){w+=(v.delay||0);if(w<10){w=10}b("first timeout: "+w);this.cycleTimeout=setTimeout(function(){g(x,v,0,!y.backwards)},w)}})};function n(s,v,u){var w=i(s).data("cycle.opts");var t=!!s.cyclePause;if(t&&w.paused){w.paused(s,w,v,u)}else{if(!t&&w.resumed){w.resumed(s,w,v,u)}}}function a(s,w,t){if(s.cycleStop==undefined){s.cycleStop=0}if(w===undefined||w===null){w={}}if(w.constructor==String){switch(w){case"destroy":case"stop":var x=i(s).data("cycle.opts");if(!x){return false}s.cycleStop++;if(s.cycleTimeout){clearTimeout(s.cycleTimeout)}s.cycleTimeout=0;x.elements&&i(x.elements).stop();i(s).removeData("cycle.opts");if(w=="destroy"){q(x)}return false;case"toggle":s.cyclePause=(s.cyclePause===1)?0:1;v(s.cyclePause,t,s);n(s);return false;case"pause":s.cyclePause=1;n(s);return false;case"resume":s.cyclePause=0;v(false,t,s);n(s);return false;case"prev":case"next":var x=i(s).data("cycle.opts");if(!x){h('options not found, "prev/next" ignored');return false}i.fn.cycle[w](x);return false;default:w={fx:w}}return w}else{if(w.constructor==Number){var u=w;w=i(s).data("cycle.opts");if(!w){h("options not found, can not advance slide");return false}if(u<0||u>=w.elements.length){h("invalid slide index: "+u);return false}w.nextSlide=u;if(s.cycleTimeout){clearTimeout(s.cycleTimeout);s.cycleTimeout=0}if(typeof t=="string"){w.oneTimeFx=t}g(w.elements,w,1,u>=w.currSlide);return false}}return w;function v(B,z,y){if(!B&&z===true){var A=i(y).data("cycle.opts");if(!A){h("options not found, can not resume");return false}if(y.cycleTimeout){clearTimeout(y.cycleTimeout);y.cycleTimeout=0}g(A.elements,A,1,!A.backwards)}}}function l(s,t){if(!i.support.opacity&&t.cleartype&&s.style.filter){try{s.style.removeAttribute("filter")}catch(u){}}}function q(s){if(s.next){i(s.next).unbind(s.prevNextEvent)}if(s.prev){i(s.prev).unbind(s.prevNextEvent)}if(s.pager||s.pagerAnchorBuilder){i.each(s.pagerAnchors||[],function(){this.unbind().remove()})}s.pagerAnchors=null;if(s.destroy){s.destroy(s)}}function k(A,O,x,C,I){var E=i.extend({},i.fn.cycle.defaults,C||{},i.metadata?A.metadata():i.meta?A.data():{});var G=i.isFunction(A.data)?A.data(E.metaAttr):null;if(G){E=i.extend(E,G)}if(E.autostop){E.countdown=E.autostopCount||x.length}var t=A[0];A.data("cycle.opts",E);E.$cont=A;E.stopCount=t.cycleStop;E.elements=x;E.before=E.before?[E.before]:[];E.after=E.after?[E.after]:[];if(!i.support.opacity&&E.cleartype){E.after.push(function(){l(this,E)})}if(E.continuous){E.after.push(function(){g(x,E,0,!E.backwards)})}o(E);if(!i.support.opacity&&E.cleartype&&!E.cleartypeNoBg){e(O)}if(A.css("position")=="static"){A.css("position","relative")}if(E.width){A.width(E.width)}if(E.height&&E.height!="auto"){A.height(E.height)}if(E.startingSlide){E.startingSlide=parseInt(E.startingSlide,10)}else{if(E.backwards){E.startingSlide=x.length-1}}if(E.random){E.randomMap=[];for(var L=0;L<x.length;L++){E.randomMap.push(L)}E.randomMap.sort(function(Q,w){return Math.random()-0.5});E.randomIndex=1;E.startingSlide=E.randomMap[1]}else{if(E.startingSlide>=x.length){E.startingSlide=0}}E.currSlide=E.startingSlide||0;var z=E.startingSlide;O.css({position:"absolute",top:0,left:0}).hide().each(function(w){var Q;if(E.backwards){Q=z?w<=z?x.length+(w-z):z-w:x.length-w}else{Q=z?w>=z?x.length-(w-z):z-w:x.length-w}i(this).css("z-index",Q)});i(x[z]).css("opacity",1).show();l(x[z],E);if(E.fit){if(!E.aspect){if(E.width){O.width(E.width)}if(E.height&&E.height!="auto"){O.height(E.height)}}else{O.each(function(){var Q=i(this);var w=(E.aspect===true)?Q.width()/Q.height():E.aspect;if(E.width&&Q.width()!=E.width){Q.width(E.width);Q.height(E.width/w)}if(E.height&&Q.height()<E.height){Q.height(E.height);Q.width(E.height*w)}})}}if(E.center&&((!E.fit)||E.aspect)){O.each(function(){var w=i(this);w.css({"margin-left":E.width?((E.width-w.width())/2)+"px":0,"margin-top":E.height?((E.height-w.height())/2)+"px":0})})}if(E.center&&!E.fit&&!E.slideResize){O.each(function(){var w=i(this);w.css({"margin-left":E.width?((E.width-w.width())/2)+"px":0,"margin-top":E.height?((E.height-w.height())/2)+"px":0})})}var H=E.containerResize&&!A.innerHeight();if(H){var y=0,F=0;for(var J=0;J<x.length;J++){var s=i(x[J]),P=s[0],D=s.outerWidth(),M=s.outerHeight();if(!D){D=P.offsetWidth||P.width||s.attr("width")}if(!M){M=P.offsetHeight||P.height||s.attr("height")}y=D>y?D:y;F=M>F?M:F}if(y>0&&F>0){A.css({width:y+"px",height:F+"px"})}}var v=false;if(E.pause){A.hover(function(){v=true;this.cyclePause++;n(t,true)},function(){v&&this.cyclePause--;n(t,true)})}if(c(E)===false){return false}var u=false;C.requeueAttempts=C.requeueAttempts||0;O.each(function(){var S=i(this);this.cycleH=(E.fit&&E.height)?E.height:(S.height()||this.offsetHeight||this.height||S.attr("height")||0);this.cycleW=(E.fit&&E.width)?E.width:(S.width()||this.offsetWidth||this.width||S.attr("width")||0);if(S.is("img")){var Q=(i.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var T=(i.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var R=(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(Q||T||R||w){if(I.s&&E.requeueOnImageNotLoaded&&++C.requeueAttempts<100){h(C.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){i(I.s,I.c).cycle(C)},E.requeueTimeout);u=true;return false}else{h("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}}return true});if(u){return false}E.cssBefore=E.cssBefore||{};E.cssAfter=E.cssAfter||{};E.cssFirst=E.cssFirst||{};E.animIn=E.animIn||{};E.animOut=E.animOut||{};O.not(":eq("+z+")").css(E.cssBefore);i(O[z]).css(E.cssFirst);if(E.timeout){E.timeout=parseInt(E.timeout,10);if(E.speed.constructor==String){E.speed=i.fx.speeds[E.speed]||parseInt(E.speed,10)}if(!E.sync){E.speed=E.speed/2}var N=E.fx=="none"?0:E.fx=="shuffle"?500:250;while((E.timeout-E.speed)<N){E.timeout+=E.speed}}if(E.easing){E.easeIn=E.easeOut=E.easing}if(!E.speedIn){E.speedIn=E.speed}if(!E.speedOut){E.speedOut=E.speed}E.slideCount=x.length;E.currSlide=E.lastSlide=z;if(E.random){if(++E.randomIndex==x.length){E.randomIndex=0}E.nextSlide=E.randomMap[E.randomIndex]}else{if(E.backwards){E.nextSlide=E.startingSlide==0?(x.length-1):E.startingSlide-1}else{E.nextSlide=E.startingSlide>=(x.length-1)?0:E.startingSlide+1}}if(!E.multiFx){var K=i.fn.cycle.transitions[E.fx];if(i.isFunction(K)){K(A,O,E)}else{if(E.fx!="custom"&&!E.multiFx){h("unknown transition: "+E.fx,"; slideshow terminating");return false}}}var B=O[z];if(!E.skipInitializationCallbacks){if(E.before.length){E.before[0].apply(B,[B,B,E,true])}if(E.after.length){E.after[0].apply(B,[B,B,E,true])}}if(E.next){i(E.next).bind(E.prevNextEvent,function(){return r(E,1)})}if(E.prev){i(E.prev).bind(E.prevNextEvent,function(){return r(E,0)})}if(E.pager||E.pagerAnchorBuilder){j(x,E)}d(E,x);return E}function o(s){s.original={before:[],after:[]};s.original.cssBefore=i.extend({},s.cssBefore);s.original.cssAfter=i.extend({},s.cssAfter);s.original.animIn=i.extend({},s.animIn);s.original.animOut=i.extend({},s.animOut);i.each(s.before,function(){s.original.before.push(this)});i.each(s.after,function(){s.original.after.push(this)})}function c(y){var w,u,t=i.fn.cycle.transitions;if(y.fx.indexOf(",")>0){y.multiFx=true;y.fxs=y.fx.replace(/\s*/g,"").split(",");for(w=0;w<y.fxs.length;w++){var x=y.fxs[w];u=t[x];if(!u||!t.hasOwnProperty(x)||!i.isFunction(u)){h("discarding unknown transition: ",x);y.fxs.splice(w,1);w--}}if(!y.fxs.length){h("No valid transitions named; slideshow terminating.");return false}}else{if(y.fx=="all"){y.multiFx=true;y.fxs=[];for(p in t){u=t[p];if(t.hasOwnProperty(p)&&i.isFunction(u)){y.fxs.push(p)}}}}if(y.multiFx&&y.randomizeEffects){var v=Math.floor(Math.random()*20)+30;for(w=0;w<v;w++){var s=Math.floor(Math.random()*y.fxs.length);y.fxs.push(y.fxs.splice(s,1)[0])}b("randomized fx sequence: ",y.fxs)}return true}function d(t,s){t.addSlide=function(v,x){var u=i(v),w=u[0];if(!t.autostopCount){t.countdown++}s[x?"unshift":"push"](w);if(t.els){t.els[x?"unshift":"push"](w)}t.slideCount=s.length;u.css("position","absolute");u[x?"prependTo":"appendTo"](t.$cont);if(x){t.currSlide++;t.nextSlide++}if(!i.support.opacity&&t.cleartype&&!t.cleartypeNoBg){e(u)}if(t.fit&&t.width){u.width(t.width)}if(t.fit&&t.height&&t.height!="auto"){u.height(t.height)}w.cycleH=(t.fit&&t.height)?t.height:u.height();w.cycleW=(t.fit&&t.width)?t.width:u.width();u.css(t.cssBefore);if(t.pager||t.pagerAnchorBuilder){i.fn.cycle.createPagerAnchor(s.length-1,w,i(t.pager),s,t)}if(i.isFunction(t.onAddSlide)){t.onAddSlide(u)}else{u.hide()}}}i.fn.cycle.resetState=function(t,s){s=s||t.fx;t.before=[];t.after=[];t.cssBefore=i.extend({},t.original.cssBefore);t.cssAfter=i.extend({},t.original.cssAfter);t.animIn=i.extend({},t.original.animIn);t.animOut=i.extend({},t.original.animOut);t.fxFn=null;i.each(t.original.before,function(){t.before.push(this)});i.each(t.original.after,function(){t.after.push(this)});var u=i.fn.cycle.transitions[s];if(i.isFunction(u)){u(t.$cont,i(t.elements),t)}};function g(y,s,z,A){if(z&&s.busy&&s.manualTrump){b("manualTrump in go(), stopping active transition");i(y).stop(true,true);s.busy=0}if(s.busy){b("transition active, ignoring new tx request");return}var w=s.$cont[0],D=y[s.currSlide],C=y[s.nextSlide];if(w.cycleStop!=s.stopCount||w.cycleTimeout===0&&!z){return}if(!z&&!w.cyclePause&&!s.bounce&&((s.autostop&&(--s.countdown<=0))||(s.nowrap&&!s.random&&s.nextSlide<s.currSlide))){if(s.end){s.end(s)}return}var B=false;if((z||!w.cyclePause)&&(s.nextSlide!=s.currSlide)){B=true;var x=s.fx;D.cycleH=D.cycleH||i(D).height();D.cycleW=D.cycleW||i(D).width();C.cycleH=C.cycleH||i(C).height();C.cycleW=C.cycleW||i(C).width();if(s.multiFx){if(A&&(s.lastFx==undefined||++s.lastFx>=s.fxs.length)){s.lastFx=0}else{if(!A&&(s.lastFx==undefined||--s.lastFx<0)){s.lastFx=s.fxs.length-1}}x=s.fxs[s.lastFx]}if(s.oneTimeFx){x=s.oneTimeFx;s.oneTimeFx=null}i.fn.cycle.resetState(s,x);if(s.before.length){i.each(s.before,function(E,F){if(w.cycleStop!=s.stopCount){return}F.apply(C,[D,C,s,A])})}var u=function(){s.busy=0;i.each(s.after,function(E,F){if(w.cycleStop!=s.stopCount){return}F.apply(C,[D,C,s,A])})};b("tx firing("+x+"); currSlide: "+s.currSlide+"; nextSlide: "+s.nextSlide);s.busy=1;if(s.fxFn){s.fxFn(D,C,s,u,A,z&&s.fastOnEvent)}else{if(i.isFunction(i.fn.cycle[s.fx])){i.fn.cycle[s.fx](D,C,s,u,A,z&&s.fastOnEvent)}else{i.fn.cycle.custom(D,C,s,u,A,z&&s.fastOnEvent)}}}if(B||s.nextSlide==s.currSlide){s.lastSlide=s.currSlide;if(s.random){s.currSlide=s.nextSlide;if(++s.randomIndex==y.length){s.randomIndex=0}s.nextSlide=s.randomMap[s.randomIndex];if(s.nextSlide==s.currSlide){s.nextSlide=(s.currSlide==s.slideCount-1)?0:s.currSlide+1}}else{if(s.backwards){var v=(s.nextSlide-1)<0;if(v&&s.bounce){s.backwards=!s.backwards;s.nextSlide=1;s.currSlide=0}else{s.nextSlide=v?(y.length-1):s.nextSlide-1;s.currSlide=v?0:s.nextSlide+1}}else{var v=(s.nextSlide+1)==y.length;if(v&&s.bounce){s.backwards=!s.backwards;s.nextSlide=y.length-2;s.currSlide=y.length-1}else{s.nextSlide=v?0:s.nextSlide+1;s.currSlide=v?y.length-1:s.nextSlide-1}}}}if(B&&s.pager){s.updateActivePagerLink(s.pager,s.currSlide,s.activePagerClass)}var t=0;if(s.timeout&&!s.continuous){t=f(y[s.currSlide],y[s.nextSlide],s,A)}else{if(s.continuous&&w.cyclePause){t=10}}if(t>0){w.cycleTimeout=setTimeout(function(){g(y,s,0,!s.backwards)},t)}}i.fn.cycle.updateActivePagerLink=function(s,u,t){i(s).each(function(){i(this).children().removeClass(t).eq(u).addClass(t)})};function f(x,v,w,u){if(w.timeoutFn){var s=w.timeoutFn.call(x,x,v,w,u);while(w.fx!="none"&&(s-w.speed)<250){s+=w.speed}b("calculated timeout: "+s+"; speed: "+w.speed);if(s!==false){return s}}return w.timeout}i.fn.cycle.next=function(s){r(s,1)};i.fn.cycle.prev=function(s){r(s,0)};function r(w,u){var y=u?1:-1;var v=w.elements;var x=w.$cont[0],t=x.cycleTimeout;if(t){clearTimeout(t);x.cycleTimeout=0}if(w.random&&y<0){w.randomIndex--;if(--w.randomIndex==-2){w.randomIndex=v.length-2}else{if(w.randomIndex==-1){w.randomIndex=v.length-1}}w.nextSlide=w.randomMap[w.randomIndex]}else{if(w.random){w.nextSlide=w.randomMap[w.randomIndex]}else{w.nextSlide=w.currSlide+y;if(w.nextSlide<0){if(w.nowrap){return false}w.nextSlide=v.length-1}else{if(w.nextSlide>=v.length){if(w.nowrap){return false}w.nextSlide=0}}}}var s=w.onPrevNextEvent||w.prevNextClick;if(i.isFunction(s)){s(y>0,w.nextSlide,v[w.nextSlide])}g(v,w,1,u);return false}function j(t,u){var s=i(u.pager);i.each(t,function(v,w){i.fn.cycle.createPagerAnchor(v,w,s,t,u)});u.updateActivePagerLink(u.pager,u.startingSlide,u.activePagerClass)}i.fn.cycle.createPagerAnchor=function(x,u,z,w,t){var A;if(i.isFunction(t.pagerAnchorBuilder)){A=t.pagerAnchorBuilder(x,u);b("pagerAnchorBuilder("+x+", el) returned: "+A)}else{A='<a href="#">'+(x+1)+"</a>"}if(!A){return}var v=i(A);if(v.parents("body").length===0){var y=[];if(z.length>1){z.each(function(){var D=v.clone(true);i(this).append(D);y.push(D[0])});v=i(y)}else{v.appendTo(z)}}t.pagerAnchors=t.pagerAnchors||[];t.pagerAnchors.push(v);var B=function(G){G.preventDefault();t.nextSlide=x;var F=t.$cont[0],E=F.cycleTimeout;if(E){clearTimeout(E);F.cycleTimeout=0}var D=t.onPagerEvent||t.pagerClick;if(i.isFunction(D)){D(t.nextSlide,w[t.nextSlide])}g(w,t,1,t.currSlide<x)};if(/mouseenter|mouseover/i.test(t.pagerEvent)){v.hover(B,function(){})}else{v.bind(t.pagerEvent,B)}if(!/^click/.test(t.pagerEvent)&&!t.allowPagerClickBubble){v.bind("click.cycle",function(){return false})}var C=t.$cont[0];var s=false;if(t.pauseOnPagerHover){v.hover(function(){s=true;C.cyclePause++;n(C,true,true)},function(){s&&C.cyclePause--;n(C,true,true)})}};i.fn.cycle.hopsFromLast=function(v,u){var t,s=v.lastSlide,w=v.currSlide;if(u){t=w>s?w-s:v.slideCount-s}else{t=w<s?s-w:s+v.slideCount-w}return t};function e(u){b("applying clearType background-color hack");function t(v){v=parseInt(v,10).toString(16);return v.length<2?"0"+v:v}function s(y){for(;y&&y.nodeName.toLowerCase()!="html";y=y.parentNode){var w=i.css(y,"background-color");if(w&&w.indexOf("rgb")>=0){var x=w.match(/\d+/g);return"#"+t(x[0])+t(x[1])+t(x[2])}if(w&&w!="transparent"){return w}}return"#ffffff"}u.each(function(){i(this).css("background-color",s(this))})}i.fn.cycle.commonReset=function(y,v,x,t,u,s){i(x.elements).not(y).hide();if(typeof x.cssBefore.opacity=="undefined"){x.cssBefore.opacity=1}x.cssBefore.display="block";if(x.slideResize&&t!==false&&v.cycleW>0){x.cssBefore.width=v.cycleW}if(x.slideResize&&u!==false&&v.cycleH>0){x.cssBefore.height=v.cycleH}x.cssAfter=x.cssAfter||{};x.cssAfter.display="none";i(y).css("zIndex",x.slideCount+(s===true?1:0));i(v).css("zIndex",x.slideCount+(s===true?0:1))};i.fn.cycle.custom=function(E,x,s,t,w,y){var B=i(E),z=i(x);var v=s.speedIn,C=s.speedOut,u=s.easeIn,D=s.easeOut;z.css(s.cssBefore);if(y){if(typeof y=="number"){v=C=y}else{v=C=1}u=D=null}var A=function(){z.animate(s.animIn,v,u,function(){t()})};B.animate(s.animOut,C,D,function(){B.css(s.cssAfter);if(!s.sync){A()}});if(s.sync){A()}};i.fn.cycle.transitions={fade:function(t,u,s){u.not(":eq("+s.currSlide+")").css("opacity",0);s.before.push(function(x,v,w){i.fn.cycle.commonReset(x,v,w);w.cssBefore.opacity=0});s.animIn={opacity:1};s.animOut={opacity:0};s.cssBefore={top:0,left:0}}};i.fn.cycle.ver=function(){return m};i.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,aspect:false,autostop:0,autostopCount:0,backwards:false,before:null,center:null,cleartype:!i.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:false,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null,width:null}})(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-2010 M. Alsup
 * Version:	 2.73
 * 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.fadeout=function(c,d,b){d.not(":eq("+b.currSlide+")").css({display:"block",opacity:1});b.before.push(function(k,i,j,f,g,e){a(k).css("zIndex",j.slideCount+(!e===true?1:0));a(i).css("zIndex",j.slideCount+(!e===true?0:1))});b.animIn.opacity=1;b.animOut.opacity=0;b.cssBefore.opacity=1;b.cssBefore.display="block";b.cssAfter.zIndex=0};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;c.cssBefore.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;c.cssBefore.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;c.cssBefore.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;c.cssBefore.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){if(g.rev){e=!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){if(g.rev){e=!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;b.cssBefore.top=0;b.cssBefore.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;b.cssBefore.top=0;b.cssBefore.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<f.length;c++){d.els.push(f[c])}for(c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,i){if(l.rev){i=!i}var h=i?a(m):a(j);a(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=a.fn.cycle.hopsFromLast(l,i);for(var q=0;q<o;q++){i?l.els.push(l.els.shift()):l.els.unshift(l.els.pop())}if(i){for(var r=0,n=l.els.length;r<n;r++){a(l.els[r]).css("z-index",n-r+k)}}else{var s=a(m).css("z-index");h.css("z-index",parseInt(s,10)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};a.extend(d.cssBefore,{display:"block",opacity:1,top:0,left:0})};a.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=e.cycleH;f.animIn.height=e.cycleH;f.animOut.width=e.cycleW});b.cssFirst.top=0;b.cssBefore.left=0;b.cssBefore.height=0;b.animIn.top=0;b.animOut.height=0};a.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH;f.animOut.top=g.cycleH});b.cssFirst.top=0;b.cssBefore.left=0;b.cssBefore.top=0;b.cssBefore.height=0;b.animOut.height=0};a.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=e.cycleW;f.animIn.width=e.cycleW});b.cssBefore.top=0;b.cssBefore.width=0;b.animIn.left=0;b.animOut.width=0};a.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW;f.animOut.left=g.cycleW});a.extend(b.cssBefore,{top:0,left:0,width:0});b.animIn.left=0;b.animOut.width=0};a.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false,true);f.cssBefore.top=e.cycleH/2;f.cssBefore.left=e.cycleW/2;a.extend(f.animIn,{top:0,left:0,width:e.cycleW,height:e.cycleH});a.extend(f.animOut,{width:0,height:0,top:g.cycleH/2,left:g.cycleW/2})});b.cssFirst.top=0;b.cssFirst.left=0;b.cssBefore.width=0;b.cssBefore.height=0};a.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,false);f.cssBefore.left=e.cycleW/2;f.cssBefore.top=e.cycleH/2;a.extend(f.animIn,{top:0,left:0,width:e.cycleW,height:e.cycleH})});b.cssBefore.width=0;b.cssBefore.height=0;b.animOut.opacity=0};a.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.width=f.cycleW;g.animOut.left=h.cycleW});c.cssBefore.left=b;c.cssBefore.top=0;c.animIn.left=0;c.animOut.left=b};a.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){a.fn.cycle.commonReset(h,f,g);g.animIn.height=f.cycleH;g.animOut.top=h.cycleH});c.cssBefore.top=b;c.cssBefore.left=0;c.animIn.top=0;c.animOut.top=b};a.fn.cycle.transitions.blindZ=function(e,f,d){var c=e.css("overflow","hidden").height();var b=e.width();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h);h.animIn.height=g.cycleH;h.animOut.top=i.cycleH});d.cssBefore.top=c;d.cssBefore.left=b;d.animIn.top=0;d.animIn.left=0;d.animOut.top=c;d.animOut.left=b};a.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true);f.cssBefore.left=this.cycleW/2;f.animIn.left=0;f.animIn.width=this.cycleW;f.animOut.left=0});b.cssBefore.top=0;b.cssBefore.width=0};a.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false);f.cssBefore.top=this.cycleH/2;f.animIn.top=0;f.animIn.height=this.cycleH;f.animOut.top=0});b.cssBefore.height=0;b.cssBefore.left=0};a.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,false,true,true);f.cssBefore.left=e.cycleW/2;f.animIn.left=0;f.animIn.width=this.cycleW;f.animOut.left=g.cycleW/2;f.animOut.width=0});b.cssBefore.top=0;b.cssBefore.width=0};a.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){a.fn.cycle.commonReset(g,e,f,true,false,true);f.cssBefore.top=e.cycleH/2;f.animIn.top=0;f.animIn.height=e.cycleH;f.animOut.top=g.cycleH/2;f.animOut.height=0});b.cssBefore.height=0;b.cssBefore.left=0};a.fn.cycle.transitions.cover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h);if(i=="right"){h.cssBefore.left=-b}else{if(i=="up"){h.cssBefore.top=c}else{if(i=="down"){h.cssBefore.top=-c}else{h.cssBefore.left=b}}}});e.animIn.left=0;e.animIn.top=0;e.cssBefore.top=0;e.cssBefore.left=0};a.fn.cycle.transitions.uncover=function(f,g,e){var i=e.direction||"left";var b=f.css("overflow","hidden").width();var c=f.height();e.before.push(function(j,d,h){a.fn.cycle.commonReset(j,d,h,true,true,true);if(i=="right"){h.animOut.left=b}else{if(i=="up"){h.animOut.top=-c}else{if(i=="down"){h.animOut.top=c}else{h.animOut.left=-b}}}});e.animIn.left=0;e.animIn.top=0;e.cssBefore.top=0;e.cssBefore.left=0};a.fn.cycle.transitions.toss=function(e,f,d){var b=e.css("overflow","visible").width();var c=e.height();d.before.push(function(i,g,h){a.fn.cycle.commonReset(i,g,h,true,true,true);if(!h.animOut.left&&!h.animOut.top){a.extend(h.animOut,{left:b*2,top:-c/2,opacity:0})}else{h.animOut.opacity=0}});d.cssBefore.left=0;d.cssBefore.top=0;d.animIn.left=0};a.fn.cycle.transitions.wipe=function(s,m,e){var q=s.css("overflow","hidden").width();var j=s.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+j+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+q+"px "+j+"px "+q+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+q+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+j+"px "+q+"px "+j+"px 0px)"}else{if(/zoom/.test(e.clip)){var o=parseInt(j/2,10);var g=parseInt(q/2,10);f="rect("+o+"px "+g+"px "+o+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var k=e.cssBefore.clip.match(/(\d+)/g);var u=parseInt(k[0],10),c=parseInt(k[1],10),n=parseInt(k[2],10),i=parseInt(k[3],10);e.before.push(function(w,h,t){if(w==h){return}var d=a(w),b=a(h);a.fn.cycle.commonReset(w,h,t,true,true,false);t.cssAfter.display="block";var r=1,l=parseInt((t.speedIn/13),10)-1;(function v(){var y=u?u-parseInt(r*(u/l),10):0;var z=i?i-parseInt(r*(i/l),10):0;var A=n<j?n+parseInt(r*((j-n)/l||1),10):j;var x=c<q?c+parseInt(r*((q-c)/l||1),10):q;b.css({clip:"rect("+y+"px "+x+"px "+A+"px "+z+"px)"});(r++<=l)?setTimeout(v,13):d.css("display","none")})()});a.extend(e.cssBefore,{display:"block",opacity:1,top:0,left:0});e.animIn={left:0};e.animOut={left:0}}})(jQuery);
