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