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


