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