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