/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2009 M. Alsup
 * Version: 2.65 (07-APR-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(n){var j="2.65";if(n.support==undefined){n.support={opacity:!(n.browser.msie)}}function e(){}n.fn.cycle=function(r,q){var s={s:this.selector,c:this.context};if(this.length==0&&r!="stop"){if(!n.isReady&&s.s){n(function(){n(s.s,s.c).cycle(r,q)});return this}return this}return this.each(function(){r=k(this,r,q);if(r===false){return}if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=this.cyclePause=0;var u=n(this);var v=r.slideExpr?n(r.slideExpr,this):u.children();var o=v.get();if(o.length<2){return}var t=i(u,v,o,r,s);if(t===false){return}if(t.timeout||t.continuous){this.cycleTimeout=setTimeout(function(){d(o,t,0,!t.rev)},t.continuous?10:t.timeout+(t.delay||0))}})};function k(o,s,q){if(o.cycleStop==undefined){o.cycleStop=0}if(s===undefined||s===null){s={}}if(s.constructor==String){switch(s){case"stop":o.cycleStop++;if(o.cycleTimeout){clearTimeout(o.cycleTimeout)}o.cycleTimeout=0;n(o).removeData("cycle.opts");return false;case"pause":o.cyclePause=1;return false;case"resume":o.cyclePause=0;if(q===true){s=n(o).data("cycle.opts");if(!s){return false}if(o.cycleTimeout){clearTimeout(o.cycleTimeout);o.cycleTimeout=0}d(s.elements,s,1,1)}return false;default:s={fx:s}}}else{if(s.constructor==Number){var r=s;s=n(o).data("cycle.opts");if(!s){return false}if(r<0||r>=s.elements.length){return false}s.nextSlide=r;if(o.cycleTimeout){clearTimeout(o.cycleTimeout);o.cycleTimeout=0}if(typeof q=="string"){s.oneTimeFx=q}d(s.elements,s,1,r>=s.currSlide);return false}}return s}function a(o,q){if(!n.support.opacity&&q.cleartype&&o.style.filter){try{o.style.removeAttribute("filter")}catch(r){}}}function i(y,I,u,t,E){var C=n.extend({},n.fn.cycle.defaults,t||{},n.metadata?y.metadata():n.meta?y.data():{});if(C.autostop){C.countdown=C.autostopCount||u.length}var r=y[0];y.data("cycle.opts",C);C.$cont=y;C.stopCount=r.cycleStop;C.elements=u;C.before=C.before?[C.before]:[];C.after=C.after?[C.after]:[];C.after.unshift(function(){C.busy=0});if(!n.support.opacity&&C.cleartype){C.after.push(function(){a(this,C)})}if(C.continuous){C.after.push(function(){d(u,C,0,!C.rev)})}l(C);if(!n.support.opacity&&C.cleartype&&!C.cleartypeNoBg){f(I)}if(y.css("position")=="static"){y.css("position","relative")}if(C.width){y.width(C.width)}if(C.height&&C.height!="auto"){y.height(C.height)}if(C.startingSlide){C.startingSlide=parseInt(C.startingSlide)}if(C.random){C.randomMap=[];for(var G=0;G<u.length;G++){C.randomMap.push(G)}C.randomMap.sort(function(w,o){return Math.random()-0.5});C.randomIndex=0;C.startingSlide=C.randomMap[0]}else{if(C.startingSlide>=u.length){C.startingSlide=0}}C.currSlide=C.startingSlide=C.startingSlide||0;var x=C.startingSlide;I.css({position:"absolute",top:0,left:0}).hide().each(function(o){var w=x?o>=x?u.length-(o-x):x-o:u.length-o;n(this).css("z-index",w)});n(u[x]).css("opacity",1).show();a(u[x],C);if(C.fit&&C.width){I.width(C.width)}if(C.fit&&C.height&&C.height!="auto"){I.height(C.height)}var D=C.containerResize&&!y.innerHeight();if(D){var v=0,B=0;for(var G=0;G<u.length;G++){var q=n(u[G]),J=q[0],A=q.outerWidth(),H=q.outerHeight();if(!A){A=J.offsetWidth}if(!H){H=J.offsetHeight}v=A>v?A:v;B=H>B?H:B}if(v>0&&B>0){y.css({width:v+"px",height:B+"px"})}}if(C.pause){y.hover(function(){this.cyclePause++},function(){this.cyclePause--})}if(b(C)===false){return false}if(!C.multiFx){var F=n.fn.cycle.transitions[C.fx];if(n.isFunction(F)){F(y,I,C)}else{if(C.fx!="custom"&&!C.multiFx){return false}}}var s=false;t.requeueAttempts=t.requeueAttempts||0;I.each(function(){var L=n(this);this.cycleH=(C.fit&&C.height)?C.height:L.height();this.cycleW=(C.fit&&C.width)?C.width:L.width();if(L.is("img")){var w=(n.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var K=(n.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var o=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(w||K||o){if(E.s&&C.requeueOnImageNotLoaded&&++t.requeueAttempts<100){setTimeout(function(){n(E.s,E.c).cycle(t)},C.requeueTimeout);s=true;return false}else{}}}return true});if(s){return false}C.cssBefore=C.cssBefore||{};C.animIn=C.animIn||{};C.animOut=C.animOut||{};I.not(":eq("+x+")").css(C.cssBefore);if(C.cssFirst){n(I[x]).css(C.cssFirst)}if(C.timeout){C.timeout=parseInt(C.timeout);if(C.speed.constructor==String){C.speed=n.fx.speeds[C.speed]||parseInt(C.speed)}if(!C.sync){C.speed=C.speed/2}while((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=u.length;C.currSlide=C.lastSlide=x;if(C.random){C.nextSlide=C.currSlide;if(++C.randomIndex==u.length){C.randomIndex=0}C.nextSlide=C.randomMap[C.randomIndex]}else{C.nextSlide=C.startingSlide>=(u.length-1)?0:C.startingSlide+1}var z=I[x];if(C.before.length){C.before[0].apply(z,[z,z,C,true])}if(C.after.length>1){C.after[1].apply(z,[z,z,C,true])}if(C.next){n(C.next).click(function(){return m(C,C.rev?-1:1)})}if(C.prev){n(C.prev).click(function(){return m(C,C.rev?1:-1)})}if(C.pager){c(u,C)}h(C,u);return C}function l(o){o.original={before:[],after:[]};o.original.cssBefore=n.extend({},o.cssBefore);o.original.cssAfter=n.extend({},o.cssAfter);o.original.animIn=n.extend({},o.animIn);o.original.animOut=n.extend({},o.animOut);n.each(o.before,function(){o.original.before.push(this)});n.each(o.after,function(){o.original.after.push(this)})}function b(v){var r=n.fn.cycle.transitions;if(v.fx.indexOf(",")>0){v.multiFx=true;v.fxs=v.fx.replace(/\s*/g,"").split(",");for(var t=0;t<v.fxs.length;t++){var u=v.fxs[t];var q=r[u];if(!q||!r.hasOwnProperty(u)||!n.isFunction(q)){v.fxs.splice(t,1);t--}}if(!v.fxs.length){return false}}else{if(v.fx=="all"){v.multiFx=true;v.fxs=[];for(p in r){var q=r[p];if(r.hasOwnProperty(p)&&n.isFunction(q)){v.fxs.push(p)}}}}if(v.multiFx&&v.randomizeEffects){var s=Math.floor(Math.random()*20)+30;for(var t=0;t<s;t++){var o=Math.floor(Math.random()*v.fxs.length);v.fxs.push(v.fxs.splice(o,1)[0])}}return true}function h(q,o){q.addSlide=function(t,u){var r=n(t),v=r[0];if(!q.autostopCount){q.countdown++}o[u?"unshift":"push"](v);if(q.els){q.els[u?"unshift":"push"](v)}q.slideCount=o.length;r.css("position","absolute");r[u?"prependTo":"appendTo"](q.$cont);if(u){q.currSlide++;q.nextSlide++}if(!n.support.opacity&&q.cleartype&&!q.cleartypeNoBg){f(r)}if(q.fit&&q.width){r.width(q.width)}if(q.fit&&q.height&&q.height!="auto"){$slides.height(q.height)}v.cycleH=(q.fit&&q.height)?q.height:r.height();v.cycleW=(q.fit&&q.width)?q.width:r.width();r.css(q.cssBefore);if(q.pager){n.fn.cycle.createPagerAnchor(o.length-1,v,n(q.pager),o,q)}if(n.isFunction(q.onAddSlide)){q.onAddSlide(r)}else{r.hide()}}}n.fn.cycle.resetState=function(q,o){o=o||q.fx;q.before=[];q.after=[];q.cssBefore=n.extend({},q.original.cssBefore);q.cssAfter=n.extend({},q.original.cssAfter);q.animIn=n.extend({},q.original.animIn);q.animOut=n.extend({},q.original.animOut);q.fxFn=null;n.each(q.original.before,function(){q.before.push(this)});n.each(q.original.after,function(){q.after.push(this)});var r=n.fn.cycle.transitions[o];if(n.isFunction(r)){r(q.$cont,n(q.elements),q)}};function d(w,o,v,x){if(v&&o.busy&&o.manualTrump){n(w).stop(true,true);o.busy=false}if(o.busy){return}var t=o.$cont[0],z=w[o.currSlide],y=w[o.nextSlide];if(t.cycleStop!=o.stopCount||t.cycleTimeout===0&&!v){return}if(!v&&!t.cyclePause&&((o.autostop&&(--o.countdown<=0))||(o.nowrap&&!o.random&&o.nextSlide<o.currSlide))){if(o.end){o.end(o)}return}if(v||!t.cyclePause){var u=o.fx;z.cycleH=z.cycleH||n(z).height();z.cycleW=z.cycleW||n(z).width();y.cycleH=y.cycleH||n(y).height();y.cycleW=y.cycleW||n(y).width();if(o.multiFx){if(o.lastFx==undefined||++o.lastFx>=o.fxs.length){o.lastFx=0}u=o.fxs[o.lastFx];o.currFx=u}if(o.oneTimeFx){u=o.oneTimeFx;o.oneTimeFx=null}n.fn.cycle.resetState(o,u);if(o.before.length){n.each(o.before,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})}var r=function(){n.each(o.after,function(A,B){if(t.cycleStop!=o.stopCount){return}B.apply(y,[z,y,o,x])})};if(o.nextSlide!=o.currSlide){o.busy=1;if(o.fxFn){o.fxFn(z,y,o,r,x)}else{if(n.isFunction(n.fn.cycle[o.fx])){n.fn.cycle[o.fx](z,y,o,r)}else{n.fn.cycle.custom(z,y,o,r,v&&o.fastOnEvent)}}}o.lastSlide=o.currSlide;if(o.random){o.currSlide=o.nextSlide;if(++o.randomIndex==w.length){o.randomIndex=0}o.nextSlide=o.randomMap[o.randomIndex]}else{var s=(o.nextSlide+1)==w.length;o.nextSlide=s?0:o.nextSlide+1;o.currSlide=s?w.length-1:o.nextSlide-1}if(o.pager){n.fn.cycle.updateActivePagerLink(o.pager,o.currSlide)}}var q=0;if(o.timeout&&!o.continuous){q=g(z,y,o,x)}else{if(o.continuous&&t.cyclePause){q=10}}if(q>0){t.cycleTimeout=setTimeout(function(){d(w,o,0,!o.rev)},q)}}n.fn.cycle.updateActivePagerLink=function(o,q){n(o).find("a").removeClass("activeSlide").filter("a:eq("+q+")").addClass("activeSlide")};function g(u,r,s,q){if(s.timeoutFn){var o=s.timeoutFn(u,r,s,q);if(o!==false){return o}}return s.timeout}n.fn.cycle.next=function(o){m(o,o.rev?-1:1)};n.fn.cycle.prev=function(o){m(o,o.rev?1:-1)};function m(q,t){var o=q.elements;var s=q.$cont[0],r=s.cycleTimeout;if(r){clearTimeout(r);s.cycleTimeout=0}if(q.random&&t<0){q.randomIndex--;if(--q.randomIndex==-2){q.randomIndex=o.length-2}else{if(q.randomIndex==-1){q.randomIndex=o.length-1}}q.nextSlide=q.randomMap[q.randomIndex]}else{if(q.random){if(++q.randomIndex==o.length){q.randomIndex=0}q.nextSlide=q.randomMap[q.randomIndex]}else{q.nextSlide=q.currSlide+t;if(q.nextSlide<0){if(q.nowrap){return false}q.nextSlide=o.length-1}else{if(q.nextSlide>=o.length){if(q.nowrap){return false}q.nextSlide=0}}}}if(n.isFunction(q.prevNextClick)){q.prevNextClick(t>0,q.nextSlide,o[q.nextSlide])}d(o,q,1,t>=0);return false}function c(q,r){var o=n(r.pager);n.each(q,function(s,t){n.fn.cycle.createPagerAnchor(s,t,o,q,r)});n.fn.cycle.updateActivePagerLink(r.pager,r.startingSlide)}n.fn.cycle.createPagerAnchor=function(t,u,r,s,v){var q=(n.isFunction(v.pagerAnchorBuilder))?v.pagerAnchorBuilder(t,u):'<a href="#">'+(t+1)+"</a>";if(!q){return}var w=n(q);if(w.parents("body").length==0){var o=[];if(r.length>1){r.each(function(){var x=w.clone(true);n(this).append(x);o.push(x)});w=n(o)}else{w.appendTo(r)}}w.bind(v.pagerEvent,function(){v.nextSlide=t;var y=v.$cont[0],x=y.cycleTimeout;if(x){clearTimeout(x);y.cycleTimeout=0}if(n.isFunction(v.pagerClick)){v.pagerClick(v.nextSlide,s[v.nextSlide])}d(s,v,1,v.currSlide<t);return false});if(v.pauseOnPagerHover){w.hover(function(){v.$cont[0].cyclePause++},function(){v.$cont[0].cyclePause--})}};n.fn.cycle.hopsFromLast=function(s,r){var q,o=s.lastSlide,t=s.currSlide;if(r){q=t>o?t-o:s.slideCount-o}else{q=t<o?o-t:o+s.slideCount-t}return q};function f(r){function q(t){t=parseInt(t).toString(16);return t.length<2?"0"+t:t}function o(u){for(;u&&u.nodeName.toLowerCase()!="html";u=u.parentNode){var s=n.css(u,"background-color");if(s.indexOf("rgb")>=0){var t=s.match(/\d+/g);return"#"+q(t[0])+q(t[1])+q(t[2])}if(s&&s!="transparent"){return s}}return"#ffffff"}r.each(function(){n(this).css("background-color",o(this))})}n.fn.cycle.commonReset=function(u,s,t,q,r,o){n(t.elements).not(u).hide();t.cssBefore.opacity=1;t.cssBefore.display="block";if(q!==false&&s.cycleW>0){t.cssBefore.width=s.cycleW}if(r!==false&&s.cycleH>0){t.cssBefore.height=s.cycleH}t.cssAfter=t.cssAfter||{};t.cssAfter.display="none";n(u).css("zIndex",t.slideCount+(o===true?1:0));n(s).css("zIndex",t.slideCount+(o===true?0:1))};n.fn.cycle.custom=function(A,u,o,r,q){var z=n(A),v=n(u);var s=o.speedIn,y=o.speedOut,t=o.easeIn,x=o.easeOut;v.css(o.cssBefore);if(q){if(typeof q=="number"){s=y=q}else{s=y=1}t=x=null}var w=function(){v.animate(o.animIn,s,t,r)};z.animate(o.animOut,y,x,function(){if(o.cssAfter){z.css(o.cssAfter)}if(!o.sync){w()}});if(o.sync){w()}};n.fn.cycle.transitions={fade:function(q,r,o){r.not(":eq("+o.currSlide+")").css("opacity",0);o.before.push(function(u,s,t){n.fn.cycle.commonReset(u,s,t);t.cssBefore.opacity=0});o.animIn={opacity:1};o.animOut={opacity:0};o.cssBefore={top:0,left:0}}};n.fn.cycle.ver=function(){return j};n.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:!n.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(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.52
 * 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){jQuery.fn.cycle.transitions.scrollUp=function(d,e,c){d.css("overflow","hidden");c.before.push(jQuery.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}};jQuery.fn.cycle.transitions.scrollDown=function(d,e,c){d.css("overflow","hidden");c.before.push(jQuery.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}};jQuery.fn.cycle.transitions.scrollLeft=function(d,e,c){d.css("overflow","hidden");c.before.push(jQuery.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}};jQuery.fn.cycle.transitions.scrollRight=function(d,e,c){d.css("overflow","hidden");c.before.push(jQuery.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}};jQuery.fn.cycle.transitions.scrollHorz=function(c,d,b){c.css("overflow","hidden").width();b.before.push(function(h,f,g,e){jQuery.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}};jQuery.fn.cycle.transitions.scrollVert=function(c,d,b){c.css("overflow","hidden");b.before.push(function(h,f,g,e){jQuery.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}};jQuery.fn.cycle.transitions.slideX=function(c,d,b){b.before.push(function(g,e,f){jQuery(f.elements).not(g).hide();jQuery.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}};jQuery.fn.cycle.transitions.slideY=function(c,d,b){b.before.push(function(g,e,f){jQuery(f.elements).not(g).hide();jQuery.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}};jQuery.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){jQuery.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?jQuery(m):jQuery(j);jQuery(j).css(l.cssBefore);var k=l.slideCount;h.animate(l.shuffle,l.speedIn,l.easeIn,function(){var o=jQuery.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++){jQuery(l.els[r]).css("z-index",n-r+k)}}else{var s=jQuery(m).css("z-index");h.css("z-index",parseInt(s)+1+k)}h.animate({left:0,top:0},l.speedOut,l.easeOut,function(){jQuery(i?this:m).hide();if(g){g()}})})};d.cssBefore={display:"block",opacity:1,top:0,left:0}};jQuery.fn.cycle.transitions.turnUp=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.turnDown=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.turnLeft=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.turnRight=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.zoom=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.fadeZoom=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.blindX=function(d,e,c){var b=d.css("overflow","hidden").width();c.before.push(function(h,f,g){jQuery.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}};jQuery.fn.cycle.transitions.blindY=function(d,e,c){var b=d.css("overflow","hidden").height();c.before.push(function(h,f,g){jQuery.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}};jQuery.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){jQuery.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}};jQuery.fn.cycle.transitions.growX=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.growY=function(c,d,b){b.before.push(function(g,e,f){jQuery.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}};jQuery.fn.cycle.transitions.curtainX=function(c,d,b){b.before.push(function(g,e,f){jQuery.fn.cycle.commonReset(g,e,f,false,true,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}};jQuery.fn.cycle.transitions.curtainY=function(c,d,b){b.before.push(function(g,e,f){jQuery.fn.cycle.commonReset(g,e,f,true,false,true);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}};jQuery.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){jQuery.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}};jQuery.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){jQuery.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}};jQuery.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){jQuery.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}};jQuery.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=jQuery(u),b=jQuery(h);jQuery.fn.cycle.commonReset(u,h,s,true,true,false);s.cssAfter.display="block";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);
