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