/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.51 (16-FEB-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.3 or later
 *
 * Originally based on the work of:
 *	1) Matt Oakes (http://portfolio.gizone.co.uk/applications/slideshow/)
 *	2) Torsten Baldes (http://medienfreunde.com/lab/innerfade/)
 *	3) Benjamin Sterling (http://www.benjaminsterling.com/experiments/jqShuffle/)
 */
(function(f){var a="2.51";if(f.support==undefined){f.support={opacity:!(f.browser.msie&&/MSIE 6.0/.test(navigator.userAgent))}}function c(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments,""))}}f.fn.cycle=function(i){if(this.length==0){c("terminating; zero elements found by selector"+(f.isReady?"":" (DOM not ready)"));return this}var j=arguments[1];return this.each(function(){if(this.cycleStop==undefined){this.cycleStop=0}if(i===undefined||i===null){i={}}if(i.constructor==String){switch(i){case"stop":this.cycleStop++;if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;f(this).removeData("cycle.opts");return;case"pause":this.cyclePause=1;return;case"resume":this.cyclePause=0;if(j===true){i=f(this).data("cycle.opts");if(!i){c("options not found, can not resume");return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}d(i.elements,i,1,1)}return;default:i={fx:i}}}else{if(i.constructor==Number){var t=i;i=f(this).data("cycle.opts");if(!i){c("options not found, can not advance slide");return}if(t<0||t>=i.elements.length){c("invalid slide index: "+t);return}i.nextSlide=t;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);this.cycleTimeout=0}d(i.elements,i,1,t>=i.currSlide);return}}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var r=f(this);var F=i.slideExpr?f(i.slideExpr,this):r.children();var n=F.get();if(n.length<2){c("terminating; too few slides: "+n.length);return}var x=f.extend({},f.fn.cycle.defaults,i||{},f.metadata?r.metadata():f.meta?r.data():{});if(x.autostop){x.countdown=x.autostopCount||n.length}r.data("cycle.opts",x);x.container=this;x.stopCount=this.cycleStop;x.elements=n;x.before=x.before?[x.before]:[];x.after=x.after?[x.after]:[];x.after.unshift(function(){x.busy=0});if(x.continuous){x.after.push(function(){d(n,x,0,!x.rev)})}x.originalBefore=x.before;x.originalAfter=x.after;if(!f.support.opacity&&x.cleartype&&!x.cleartypeNoBg){b(F)}var k=this.className;x.width=parseInt((k.match(/w:(\d+)/)||[])[1])||x.width;x.height=parseInt((k.match(/h:(\d+)/)||[])[1])||x.height;x.timeout=parseInt((k.match(/t:(\d+)/)||[])[1])||x.timeout;if(r.css("position")=="static"){r.css("position","relative")}if(x.width){r.width(x.width)}if(x.height&&x.height!="auto"){r.height(x.height)}if(x.startingSlide){x.startingSlide=parseInt(x.startingSlide)}if(x.random){x.randomMap=[];for(var D=0;D<n.length;D++){x.randomMap.push(D)}x.randomMap.sort(function(H,w){return Math.random()-0.5});x.randomIndex=0;x.startingSlide=x.randomMap[0]}else{if(x.startingSlide>=n.length){x.startingSlide=0}}x.currSlide=x.startingSlide=x.startingSlide||0;var q=x.startingSlide;F.css({position:"absolute",top:0,left:0}).hide().each(function(w){var H=q?w>=q?n.length-(w-q):q-w:n.length-w;f(this).css("z-index",H)});f(n[q]).css("opacity",1).show();if(f.browser.msie){n[q].style.removeAttribute("filter")}if(x.fit&&x.width){F.width(x.width)}if(x.fit&&x.height&&x.height!="auto"){F.height(x.height)}var z=x.containerResize&&!r.innerHeight();if(z){var o=0,v=0;for(var D=0;D<n.length;D++){var l=f(n[D]),u=l.outerWidth(),E=l.outerHeight();o=u>o?u:o;v=E>v?E:v}r.css({width:o+"px",height:v+"px"})}if(x.pause){r.hover(function(){this.cyclePause++},function(){this.cyclePause--})}var y=f.fn.cycle.transitions;if(x.fx.indexOf(",")>0){x.multiFx=true;x.fxs=x.fx.replace(/\s*/g,"").split(",");for(var D=0;D<x.fxs.length;D++){var m=x.fxs[D];var G=y[m];if(!G||!y.hasOwnProperty(m)||!f.isFunction(G)){c("discarding unknowtn transition: ",m);x.fxs.splice(D,1);D--}}if(!x.fxs.length){c("No valid transitions named; slideshow terminating.");return}}else{if(x.fx=="all"){x.multiFx=true;x.fxs=[];for(p in y){var G=y[p];if(y.hasOwnProperty(p)&&f.isFunction(G)){x.fxs.push(p)}}}}if(x.multiFx&&x.randomizeEffects){var C=Math.floor(Math.random()*20)+20;for(var D=0;D<C;D++){var A=Math.floor(Math.random()*x.fxs.length);x.fxs.push(x.fxs.splice(A,1)[0])}c("randomized fx sequence: ",x.fxs)}if(!x.multiFx){var B=y[x.fx];if(f.isFunction(B)){B(r,F,x)}else{if(x.fx!="custom"&&!x.multiFx){c("unknown transition: "+x.fx,"; slideshow terminating");return}}}F.each(function(){var w=f(this);this.cycleH=(x.fit&&x.height)?x.height:w.height();this.cycleW=(x.fit&&x.width)?x.width:w.width()});x.cssBefore=x.cssBefore||{};x.animIn=x.animIn||{};x.animOut=x.animOut||{};F.not(":eq("+q+")").css(x.cssBefore);if(x.cssFirst){f(F[q]).css(x.cssFirst)}if(x.timeout){x.timeout=parseInt(x.timeout);if(x.speed.constructor==String){x.speed=f.fx.speeds[x.speed]||parseInt(x.speed)}if(!x.sync){x.speed=x.speed/2}while((x.timeout-x.speed)<250){x.timeout+=x.speed}}if(x.easing){x.easeIn=x.easeOut=x.easing}if(!x.speedIn){x.speedIn=x.speed}if(!x.speedOut){x.speedOut=x.speed}x.slideCount=n.length;x.currSlide=x.lastSlide=q;if(x.random){x.nextSlide=x.currSlide;if(++x.randomIndex==n.length){x.randomIndex=0}x.nextSlide=x.randomMap[x.randomIndex]}else{x.nextSlide=x.startingSlide>=(n.length-1)?0:x.startingSlide+1}var s=F[q];if(x.before.length){x.before[0].apply(s,[s,s,x,true])}if(x.after.length>1){x.after[1].apply(s,[s,s,x,true])}if(x.click&&!x.next){x.next=x.click}if(x.next){f(x.next).bind("click",function(){return e(n,x,x.rev?-1:1)})}if(x.prev){f(x.prev).bind("click",function(){return e(n,x,x.rev?1:-1)})}if(x.pager){h(n,x)}x.addSlide=function(H,I){var w=f(H),J=w[0];if(!x.autostopCount){x.countdown++}n[I?"unshift":"push"](J);if(x.els){x.els[I?"unshift":"push"](J)}x.slideCount=n.length;w.css("position","absolute");w[I?"prependTo":"appendTo"](r);if(I){x.currSlide++;x.nextSlide++}if(!f.support.opacity&&x.cleartype&&!x.cleartypeNoBg){b(w)}if(x.fit&&x.width){w.width(x.width)}if(x.fit&&x.height&&x.height!="auto"){F.height(x.height)}J.cycleH=(x.fit&&x.height)?x.height:w.height();J.cycleW=(x.fit&&x.width)?x.width:w.width();w.css(x.cssBefore);if(x.pager){f.fn.cycle.createPagerAnchor(n.length-1,J,f(x.pager),n,x)}if(typeof x.onAddSlide=="function"){x.onAddSlide(w)}else{w.hide()}};if(x.timeout||x.continuous){this.cycleTimeout=setTimeout(function(){d(n,x,0,!x.rev)},x.continuous?10:x.timeout+(x.delay||0))}})};function d(o,i,n,q){if(n&&i.busy){f(o).stop(true,true);i.busy=false}if(i.busy){return}var l=i.container,t=o[i.currSlide],r=o[i.nextSlide];if(l.cycleStop!=i.stopCount||l.cycleTimeout===0&&!n){return}if(!n&&!l.cyclePause&&((i.autostop&&(--i.countdown<=0))||(i.nowrap&&!i.random&&i.nextSlide<i.currSlide))){if(i.end){i.end(i)}return}if(n||!l.cyclePause){t.cycleH=t.cycleH||t.offsetHeight;t.cycleW=t.cycleW||t.offsetWidth;r.cycleH=r.cycleH||r.offsetHeight;r.cycleW=r.cycleW||r.offsetWidth;if(i.multiFx){if(i.lastFx==undefined||++i.lastFx>=i.fxs.length){i.lastFx=0}var m=i.fxs[i.lastFx];i.currFx=m;i.before=[];i.after=[];i.cssBefore={};i.cssAfter={};i.animIn={};i.animOut={};i.fxFn=null;f.each(i.originalBefore,function(){i.before.push(this)});f.each(i.originalAfter,function(){i.after.push(this)});var s=f.fn.cycle.transitions[m];if(f.isFunction(s)){s(f(i.container),f(i.elements),i)}}if(i.before.length){f.each(i.before,function(u,v){if(l.cycleStop!=i.stopCount){return}v.apply(r,[t,r,i,q])})}var j=function(){if(f.browser.msie&&i.cleartype){this.style.removeAttribute("filter")}f.each(i.after,function(u,v){if(l.cycleStop!=i.stopCount){return}v.apply(r,[t,r,i,q])})};if(i.nextSlide!=i.currSlide){i.busy=1;if(i.fxFn){i.fxFn(t,r,i,j,q)}else{if(f.isFunction(f.fn.cycle[i.fx])){f.fn.cycle[i.fx](t,r,i,j)}else{f.fn.cycle.custom(t,r,i,j,n&&i.fastOnEvent)}}}i.lastSlide=i.currSlide;if(i.random){i.currSlide=i.nextSlide;if(++i.randomIndex==o.length){i.randomIndex=0}i.nextSlide=i.randomMap[i.randomIndex]}else{var k=(i.nextSlide+1)==o.length;i.nextSlide=k?0:i.nextSlide+1;i.currSlide=k?o.length-1:i.nextSlide-1}if(i.pager){f.fn.cycle.updateActivePagerLink(i.pager,i.currSlide)}}if(i.timeout&&!i.continuous){l.cycleTimeout=setTimeout(function(){d(o,i,0,!i.rev)},g(t,r,i,q))}else{if(i.continuous&&l.cyclePause){l.cycleTimeout=setTimeout(function(){d(o,i,0,!i.rev)},10)}}}f.fn.cycle.updateActivePagerLink=function(i,j){f(i).find("a").removeClass("activeSlide").filter("a:eq("+j+")").addClass("activeSlide")};function g(m,k,l,j){if(l.timeoutFn){var i=l.timeoutFn(m,k,l,j);if(i!==false){return i}}return l.timeout}function e(i,j,m){var l=j.container,k=l.cycleTimeout;if(k){clearTimeout(k);l.cycleTimeout=0}if(j.random&&m<0){j.randomIndex--;if(--j.randomIndex==-2){j.randomIndex=i.length-2}else{if(j.randomIndex==-1){j.randomIndex=i.length-1}}j.nextSlide=j.randomMap[j.randomIndex]}else{if(j.random){if(++j.randomIndex==i.length){j.randomIndex=0}j.nextSlide=j.randomMap[j.randomIndex]}else{j.nextSlide=j.currSlide+m;if(j.nextSlide<0){if(j.nowrap){return false}j.nextSlide=i.length-1}else{if(j.nextSlide>=i.length){if(j.nowrap){return false}j.nextSlide=0}}}}if(j.prevNextClick&&typeof j.prevNextClick=="function"){j.prevNextClick(m>0,j.nextSlide,i[j.nextSlide])}d(i,j,1,m>=0);return false}function h(j,k){var i=f(k.pager);f.each(j,function(l,m){f.fn.cycle.createPagerAnchor(l,m,i,j,k)});f.fn.cycle.updateActivePagerLink(k.pager,k.startingSlide)}f.fn.cycle.createPagerAnchor=function(m,n,k,l,o){var j=(typeof o.pagerAnchorBuilder=="function")?o.pagerAnchorBuilder(m,n):'<a href="#">'+(m+1)+"</a>";if(!j){return}var q=f(j);if(q.parents("body").length==0){q.appendTo(k)}q.bind(o.pagerEvent,function(){o.nextSlide=m;var r=o.container,i=r.cycleTimeout;if(i){clearTimeout(i);r.cycleTimeout=0}if(typeof o.pagerClick=="function"){o.pagerClick(o.nextSlide,l[o.nextSlide])}d(l,o,1,o.currSlide<m);return false});if(o.pauseOnPagerHover){q.hover(function(){o.container.cyclePause++},function(){o.container.cyclePause--})}};f.fn.cycle.hopsFromLast=function(m,k){var j,i=m.lastSlide,n=m.currSlide;if(k){j=n>i?n-i:m.slideCount-i}else{j=n<i?i-n:i+m.slideCount-n}return j};function b(k){function j(l){var l=parseInt(l).toString(16);return l.length<2?"0"+l:l}function i(n){for(;n&&n.nodeName.toLowerCase()!="html";n=n.parentNode){var l=f.css(n,"background-color");if(l.indexOf("rgb")>=0){var m=l.match(/\d+/g);return"#"+j(m[0])+j(m[1])+j(m[2])}if(l&&l!="transparent"){return l}}return"#ffffff"}k.each(function(){f(this).css("background-color",i(this))})}f.fn.cycle.commonReset=function(n,l,m,j,k,i){f(m.elements).not(n).hide();m.cssBefore.opacity=1;m.cssBefore.display="block";if(j!==false){m.cssBefore.width=l.cycleW}if(k!==false){m.cssBefore.height=l.cycleH}m.cssAfter=m.cssAfter||{};m.cssAfter.display="none";f(n).css("zIndex",m.slideCount+(i===true?1:0));f(l).css("zIndex",m.slideCount+(i===true?0:1))};f.fn.cycle.custom=function(u,n,i,k,j){var t=f(u),o=f(n);o.css(i.cssBefore);var l=i.speedIn;var s=i.speedOut;var m=i.easeIn;var r=i.easeOut;if(j){if(typeof j=="number"){l=s=j}else{l=s=1}m=r=null}var q=function(){o.animate(i.animIn,l,m,k)};t.animate(i.animOut,s,r,function(){if(i.cssAfter){t.css(i.cssAfter)}if(!i.sync){q()}});if(i.sync){q()}};f.fn.cycle.transitions={fade:function(j,k,i){k.not(":eq("+i.currSlide+")").css("opacity",0);i.before.push(function(n,l,m){f.fn.cycle.commonReset(n,l,m);m.cssBefore.opacity=0});i.animIn={opacity:1};i.animOut={opacity:0};i.cssBefore={top:0,left:0}}};f.fn.cycle.ver=function(){return a};f.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,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:0,nowrap:0,fastOnEvent:0,randomizeEffects:1}})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2008 M. Alsup
 * Version:	 2.51
 * 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.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssBefore={top:b,left:0};c.cssFirst={top:0};c.animIn={top:0};c.animOut={top:-b}};a.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.height();c.cssFirst={top:0};c.cssBefore={top:-b,left:0};c.animIn={top:0};c.animOut={top:b}};a.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:b,top:0};c.animIn={left:0};c.animOut={left:0-b}};a.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(a.fn.cycle.commonReset);var b=d.width();c.cssFirst={left:0};c.cssBefore={left:-b,top:0};c.animIn={left:0};c.animOut={left:b}};a.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.left=e?(f.cycleW-1):(1-f.cycleW);g.animOut.left=e?-h.cycleW:h.cycleW});b.cssFirst={left:0};b.cssBefore={top:0};b.animIn={left:0};b.animOut={top:0}};a.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){a.fn.cycle.commonReset(h,f,g);g.cssBefore.top=e?(1-f.cycleH):(f.cycleH-1);g.animOut.top=e?h.cycleH:-h.cycleH});b.cssFirst={top:0};b.cssBefore={left:0};b.animIn={top:0};b.animOut={left:0}};a.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,false,true);f.animIn.width=e.cycleW});b.cssBefore={left:0,top:0,width:0};b.animIn={width:"show"};b.animOut={width:0}};a.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){a(f.elements).not(g).hide();a.fn.cycle.commonReset(g,e,f,true,false);f.animIn.height=e.cycleH});b.cssBefore={left:0,top:0,height:0};b.animIn={height:"show"};b.animOut={height:0}};a.fn.cycle.transitions.shuffle=function(e,f,d){var 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)});d.speed=d.speed/2;d.random=0;d.shuffle=d.shuffle||{left:-b,top:15};d.els=[];for(var c=0;c<f.length;c++){d.els.push(f[c])}for(var c=0;c<d.currSlide;c++){d.els.push(d.els.shift())}d.fxFn=function(m,j,l,g,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)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){a(i?this:m).hide();if(g){g()}})})};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});b.cssFirst={top:0};b.cssBefore={left:0,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,top:0,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,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});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;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH};f.animOut={width:0,height:0,top:g.cycleH/2,left:g.cycleW/2}});b.cssFirst={top:0,left:0};b.cssBefore={width:0,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;f.animIn={top:0,left:0,width:e.cycleW,height:e.cycleH}});b.cssBefore={width:0,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,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,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,left:b};d.animIn={top:0,left:0};d.animOut={top:c,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,width:this.cycleW};f.animOut={left:0}});b.cssBefore={width:0,top: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,height:this.cycleH};f.animOut={top:0}});b.cssBefore={height:0,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);f.cssBefore.left=e.cycleW/2;f.animIn={left:0,width:this.cycleW};f.animOut={left:g.cycleW/2,width:0}});b.cssBefore={top:0,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);f.cssBefore.top=e.cycleH/2;f.animIn={top:0,height:e.cycleH};f.animOut={top:g.cycleH/2,height:0}});b.cssBefore={left:0,height: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,top:0};e.animOut={opacity:1};e.cssBefore={top:0,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,top:0};e.animOut={opacity:1};e.cssBefore={top:0,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){h.animOut={left:b*2,top:-c/2,opacity:0}}else{h.animOut.opacity=0}});d.cssBefore={left:0,top:0};d.animIn={left:0}};a.fn.cycle.transitions.wipe=function(o,k,e){var n=o.css("overflow","hidden").width();var i=o.height();e.cssBefore=e.cssBefore||{};var f;if(e.clip){if(/l2r/.test(e.clip)){f="rect(0px 0px "+i+"px 0px)"}else{if(/r2l/.test(e.clip)){f="rect(0px "+n+"px "+i+"px "+n+"px)"}else{if(/t2b/.test(e.clip)){f="rect(0px "+n+"px 0px 0px)"}else{if(/b2t/.test(e.clip)){f="rect("+i+"px "+n+"px "+i+"px 0px)"}else{if(/zoom/.test(e.clip)){var q=parseInt(i/2);var g=parseInt(n/2);f="rect("+q+"px "+g+"px "+q+"px "+g+"px)"}}}}}}e.cssBefore.clip=e.cssBefore.clip||f||"rect(0px 0px 0px 0px)";var j=e.cssBefore.clip.match(/(\d+)/g);var q=parseInt(j[0]),c=parseInt(j[1]),m=parseInt(j[2]),g=parseInt(j[3]);e.before.push(function(u,h,s){if(u==h){return}var d=a(u),b=a(h);a.fn.cycle.commonReset(u,h,s);var r=1,l=parseInt((s.speedIn/13))-1;(function t(){var w=q?q-parseInt(r*(q/l)):0;var x=g?g-parseInt(r*(g/l)):0;var y=m<i?m+parseInt(r*((i-m)/l||1)):i;var v=c<n?c+parseInt(r*((n-c)/l||1)):n;b.css({clip:"rect("+w+"px "+v+"px "+y+"px "+x+"px)"});(r++<=l)?setTimeout(t,13):d.css("display","none")})()});e.cssBefore={display:"block",opacity:1,top:0,left:0};e.animIn={left:0};e.animOut={left:0}}})(jQuery);
