/*! * jQuery Cycle Plugin (with Transition Definitions) * Examples and documentation at: http://jquery.malsup.com/cycle/ * Copyright (c) 2007-2013 M. Alsup * Version: 3.0.3 (11-JUL-2013) * Dual licensed under the MIT and GPL licenses. * http://jquery.malsup.com/license.html * Requires: jQuery v1.7.1 or later */ !function($,undefined){"use strict";var ver="3.0.3";function debug(s){$.fn.cycle.debug&&log(s)}function log(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function triggerPause(cont,byHover,onPager){var opts=$(cont).data("cycle.opts");if(opts){var paused=!!cont.cyclePause;paused&&opts.paused?opts.paused(cont,opts,byHover,onPager):!paused&&opts.resumed&&opts.resumed(cont,opts,byHover,onPager)}}function handleArguments(cont,options,arg2){if(void 0===cont.cycleStop&&(cont.cycleStop=0),null==options&&(options={}),options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");return!!opts&&(cont.cycleStop++,cont.cycleTimeout&&clearTimeout(cont.cycleTimeout),cont.cycleTimeout=0,opts.elements&&$(opts.elements).stop(),$(cont).removeData("cycle.opts"),"destroy"==options&&destroy(cont,opts),!1);case"toggle":return cont.cyclePause=1===cont.cyclePause?0:1,checkInstantResume(cont.cyclePause,arg2,cont),triggerPause(cont),!1;case"pause":return cont.cyclePause=1,triggerPause(cont),!1;case"resume":return cont.cyclePause=0,checkInstantResume(!1,arg2,cont),triggerPause(cont),!1;case"prev":case"next":return(opts=$(cont).data("cycle.opts"))?("string"==typeof arg2&&(opts.oneTimeFx=arg2),$.fn.cycle[options](opts),!1):(log('options not found, "prev/next" ignored'),!1);default:options={fx:options}}return options}if(options.constructor==Number){var num=options;return(options=$(cont).data("cycle.opts"))?num<0||num>=options.elements.length?(log("invalid slide index: "+num),!1):(options.nextSlide=num,cont.cycleTimeout&&(clearTimeout(cont.cycleTimeout),cont.cycleTimeout=0),"string"==typeof arg2&&(options.oneTimeFx=arg2),go(options.elements,options,1,num>=options.currSlide),!1):(log("options not found, can not advance slide"),!1)}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&!0===arg2){var options=$(cont).data("cycle.opts");if(!options)return log("options not found, can not resume"),!1;cont.cycleTimeout&&(clearTimeout(cont.cycleTimeout),cont.cycleTimeout=0),go(options.elements,options,1,!options.backwards)}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter)try{el.style.removeAttribute("filter")}catch(smother){}}function destroy(cont,opts){opts.next&&$(opts.next).unbind(opts.prevNextEvent),opts.prev&&$(opts.prev).unbind(opts.prevNextEvent),(opts.pager||opts.pagerAnchorBuilder)&&$.each(opts.pagerAnchors||[],(function(){this.unbind().remove()})),opts.pagerAnchors=null,$(cont).unbind("mouseenter.cycle mouseleave.cycle"),opts.destroy&&opts.destroy(opts)}function buildOptions($cont,$slides,els,options,o){var startingSlideSpecified,opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{}),meta=$.isFunction($cont.data)?$cont.data(opts.metaAttr):null;meta&&(opts=$.extend(opts,meta)),opts.autostop&&(opts.countdown=opts.autostopCount||els.length);var cont=$cont[0];if($cont.data("cycle.opts",opts),opts.$cont=$cont,opts.stopCount=cont.cycleStop,opts.elements=els,opts.before=opts.before?[opts.before]:[],opts.after=opts.after?[opts.after]:[],!$.support.opacity&&opts.cleartype&&opts.after.push((function(){removeFilter(this,opts)})),opts.continuous&&opts.after.push((function(){go(els,opts,0,!opts.backwards)})),saveOriginalOpts(opts),$.support.opacity||!opts.cleartype||opts.cleartypeNoBg||clearTypeFix($slides),"static"==$cont.css("position")&&$cont.css("position","relative"),opts.width&&$cont.width(opts.width),opts.height&&"auto"!=opts.height&&$cont.height(opts.height),void 0!==opts.startingSlide?(opts.startingSlide=parseInt(opts.startingSlide,10),opts.startingSlide>=els.length||opts.startSlide<0?opts.startingSlide=0:startingSlideSpecified=!0):opts.backwards?opts.startingSlide=els.length-1:opts.startingSlide=0,opts.random){opts.randomMap=[];for(var i=0;i=els.length&&(opts.startingSlide=0);opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide,reshape;if($slides.css({position:"absolute",top:0,left:0}).hide().each((function(i){var z;z=opts.backwards?first?i<=first?els.length+(i-first):first-i:els.length-i:first?i>=first?els.length-(i-first):first-i:els.length-i,$(this).css("z-index",z)})),$(els[first]).css("opacity",1).show(),removeFilter(els[first],opts),opts.fit&&(opts.aspect?$slides.each((function(){var $slide=$(this),ratio=!0===opts.aspect?$slide.width()/$slide.height():opts.aspect;opts.width&&$slide.width()!=opts.width&&($slide.width(opts.width),$slide.height(opts.width/ratio)),opts.height&&$slide.height()maxw?w:maxw,maxh=h>maxh?h:maxh}opts.containerResize&&maxw>0&&maxh>0&&$cont.css({width:maxw+"px",height:maxh+"px"}),opts.containerResizeHeight&&maxh>0&&$cont.css({height:maxh+"px"})}var pauseFlag=!1;if(opts.pause&&$cont.bind("mouseenter.cycle",(function(){pauseFlag=!0,this.cyclePause++,triggerPause(cont,!0)})).bind("mouseleave.cycle",(function(){pauseFlag&&this.cyclePause--,triggerPause(cont,!0)})),!1===supportMultiTransitions(opts))return!1;var requeue=!1;if(options.requeueAttempts=options.requeueAttempts||0,$slides.each((function(){var $el=$(this),loading;if((this.cycleH=opts.fit&&opts.height?opts.height:$el.height()||this.offsetHeight||this.height||$el.attr("height")||0,this.cycleW=opts.fit&&opts.width?opts.width:$el.width()||this.offsetWidth||this.width||$el.attr("width")||0,$el.is("img"))&&(0===this.cycleH&&0===this.cycleW&&!this.complete)){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100)return log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout((function(){$(o.s,o.c).cycle(options)}),opts.requeueTimeout),requeue=!0,!1;log("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return!0})),requeue)return!1;if(opts.cssBefore=opts.cssBefore||{},opts.cssAfter=opts.cssAfter||{},opts.cssFirst=opts.cssFirst||{},opts.animIn=opts.animIn||{},opts.animOut=opts.animOut||{},$slides.not(":eq("+first+")").css(opts.cssBefore),$($slides[first]).css(opts.cssFirst),opts.timeout){opts.timeout=parseInt(opts.timeout,10),opts.speed.constructor==String&&(opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed,10)),opts.sync||(opts.speed=opts.speed/2);for(var buffer="none"==opts.fx?0:"shuffle"==opts.fx?500:250;opts.timeout-opts.speed=els.length-1?0:opts.startingSlide+1,!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init))init($cont,$slides,opts);else if("custom"!=opts.fx&&!opts.multiFx)return log("unknown transition: "+opts.fx,"; slideshow terminating"),!1}var e0=$slides[first];return opts.skipInitializationCallbacks||(opts.before.length&&opts.before[0].apply(e0,[e0,e0,opts,!0]),opts.after.length&&opts.after[0].apply(e0,[e0,e0,opts,!0])),opts.next&&$(opts.next).bind(opts.prevNextEvent,(function(){return"function"==typeof $.getClick&&$.getClick($(opts.next),!0),advance(opts,1)})),opts.prev&&$(opts.prev).bind(opts.prevNextEvent,(function(){return"function"==typeof $.getClick&&$.getClick($(opts.prev),!0),advance(opts,0)})),(opts.pager||opts.pagerAnchorBuilder)&&buildPager(els,opts),exposeAddSlide(opts,els),opts}function saveOriginalOpts(opts){opts.original={before:[],after:[]},opts.original.cssBefore=$.extend({},opts.cssBefore),opts.original.cssAfter=$.extend({},opts.cssAfter),opts.original.animIn=$.extend({},opts.animIn),opts.original.animOut=$.extend({},opts.animOut),$.each(opts.before,(function(){opts.original.before.push(this)})),$.each(opts.after,(function(){opts.original.after.push(this)}))}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){for(opts.multiFx=!0,opts.fxs=opts.fx.replace(/\s*/g,"").split(","),i=0;i=opts.fxs.length)?opts.lastFx=0:!fwd&&(void 0===opts.lastFx||--opts.lastFx<0)&&(opts.lastFx=opts.fxs.length-1),fx=opts.fxs[opts.lastFx]),opts.oneTimeFx&&(fx=opts.oneTimeFx,opts.oneTimeFx=null),$.fn.cycle.resetState(opts,fx),opts.before.length&&$.each(opts.before,(function(i,o){p.cycleStop==opts.stopCount&&o.apply(next,[curr,next,opts,fwd])}));var after=function(){opts.busy=0,$.each(opts.after,(function(i,o){p.cycleStop==opts.stopCount&&o.apply(next,[curr,next,opts,fwd])})),p.cycleStop||queueNext()};debug("tx firing("+fx+"); currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide),opts.busy=1,opts.fxFn?opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent):$.isFunction($.fn.cycle[opts.fx])?$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent):$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent)}if(changed||opts.nextSlide==opts.currSlide)opts.lastSlide=opts.currSlide,opts.random?(opts.currSlide=opts.nextSlide,++opts.randomIndex==els.length&&(opts.randomIndex=0,opts.randomMap.sort((function(a,b){return Math.random()-.5}))),opts.nextSlide=opts.randomMap[opts.randomIndex],opts.nextSlide==opts.currSlide&&(opts.nextSlide=opts.currSlide==opts.slideCount-1?0:opts.currSlide+1)):opts.backwards?(roll=opts.nextSlide-1<0)&&opts.bounce?(opts.backwards=!opts.backwards,opts.nextSlide=1,opts.currSlide=0):(opts.nextSlide=roll?els.length-1:opts.nextSlide-1,opts.currSlide=roll?0:opts.nextSlide+1):(roll=opts.nextSlide+1==els.length)&&opts.bounce?(opts.backwards=!opts.backwards,opts.nextSlide=els.length-2,opts.currSlide=els.length-1):(opts.nextSlide=roll?0:opts.nextSlide+1,opts.currSlide=roll?els.length-1:opts.nextSlide-1);changed&&opts.pager&&opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass)}else opts.end&&opts.end(opts);function queueNext(){var ms=0,timeout=opts.timeout;opts.timeout&&!opts.continuous?(ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd),"shuffle"==opts.fx&&(ms-=opts.speedOut)):opts.continuous&&p.cyclePause&&(ms=10),ms>0&&(p.cycleTimeout=setTimeout((function(){go(els,opts,0,!opts.backwards)}),ms))}}function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){for(var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);"none"!=opts.fx&&t-opts.speed<250;)t+=opts.speed;if(debug("calculated timeout: "+t+"; speed: "+opts.speed),!1!==t)return t}return opts.timeout}function advance(opts,moveForward){var val=moveForward?1:-1,els=opts.elements,p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout&&(clearTimeout(timeout),p.cycleTimeout=0),opts.random&&val<0)opts.randomIndex--,-2==--opts.randomIndex?opts.randomIndex=els.length-2:-1==opts.randomIndex&&(opts.randomIndex=els.length-1),opts.nextSlide=opts.randomMap[opts.randomIndex];else if(opts.random)opts.nextSlide=opts.randomMap[opts.randomIndex];else if(opts.nextSlide=opts.currSlide+val,opts.nextSlide<0){if(opts.nowrap)return!1;opts.nextSlide=els.length-1}else if(opts.nextSlide>=els.length){if(opts.nowrap)return!1;opts.nextSlide=0}var cb=opts.onPrevNextEvent||opts.prevNextClick;return $.isFunction(cb)&&cb(val>0,opts.nextSlide,els[opts.nextSlide]),go(els,opts,1,moveForward),!1}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,(function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts)})),opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass)}function clearTypeFix($slides){function hex(s){return(s=parseInt(s,10).toString(16)).length<2?"0"+s:s}function getBg(e){for(;e&&"html"!=e.nodeName.toLowerCase();e=e.parentNode){var v=$.css(e,"background-color");if(v&&v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2])}if(v&&"transparent"!=v)return v}return"#ffffff"}debug("applying clearType background-color hack")}$.expr[":"].paused=function(el){return el.cyclePause},$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};return 0===this.length&&"stop"!=options?!$.isReady&&o.s?(log("DOM not ready, queuing slideshow"),$((function(){$(o.s,o.c).cycle(options,arg2)})),this):(log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)")),this):this.each((function(){var opts=handleArguments(this,options,arg2);if(!1!==opts){opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink,this.cycleTimeout&&clearTimeout(this.cycleTimeout),this.cycleTimeout=this.cyclePause=0,this.cycleStop=0;var $cont=$(this),$slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children(),els=$slides.get();if(els.length<2)log("terminating; too few slides: "+els.length);else{var opts2=buildOptions($cont,$slides,els,opts,o);if(!1!==opts2){var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);startTime&&((startTime+=opts2.delay||0)<10&&(startTime=10),debug("first timeout: "+startTime),this.cycleTimeout=setTimeout((function(){go(els,opts2,0,!opts.backwards)}),startTime))}}}}))},$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx,opts.before=[],opts.after=[],opts.cssBefore=$.extend({},opts.original.cssBefore),opts.cssAfter=$.extend({},opts.original.cssAfter),opts.animIn=$.extend({},opts.original.animIn),opts.animOut=$.extend({},opts.original.animOut),opts.fxFn=null,$.each(opts.original.before,(function(){opts.before.push(this)})),$.each(opts.original.after,(function(){opts.after.push(this)}));var init=$.fn.cycle.transitions[fx];$.isFunction(init)&&init(opts.$cont,$(opts.elements),opts)},$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each((function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName)}))},$.fn.cycle.next=function(opts){advance(opts,1)},$.fn.cycle.prev=function(opts){advance(opts,0)},$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)?(a=opts.pagerAnchorBuilder(i,el),debug("pagerAnchorBuilder("+i+", el) returned: "+a)):a=''+(i+1)+"",a){var $a=$(a);if(0===$a.parents("body").length){var arr=[];$p.length>1?($p.each((function(){var $clone=$a.clone(!0);$(this).append($clone),arr.push($clone[0])})),$a=$(arr)):$a.appendTo($p)}opts.pagerAnchors=opts.pagerAnchors||[],opts.pagerAnchors.push($a);var pagerFn=function(e){e.preventDefault(),opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;timeout&&(clearTimeout(timeout),p.cycleTimeout=0);var cb=opts.onPagerEvent||opts.pagerClick;$.isFunction(cb)&&cb(opts.nextSlide,els[opts.nextSlide]),go(els,opts,1,opts.currSlidel?c-l:opts.slideCount-l:c0&&(opts.cssBefore.width=next.cycleW),opts.slideResize&&!1!==h&&next.cycleH>0&&(opts.cssBefore.height=next.cycleH),opts.cssAfter=opts.cssAfter||{},opts.cssAfter.display="none",$(curr).css("zIndex",1+(!0===rev?1:0)),$(next).css("zIndex",1+(!0===rev?0:1))},$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next),speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut,animInDelay=opts.animInDelay,animOutDelay=opts.animOutDelay;$n.css(opts.cssBefore),speedOverride&&(speedIn=speedOut="number"==typeof speedOverride?speedOverride:1,easeIn=easeOut=null);var fn=function(){$n.delay(animInDelay).animate(opts.animIn,speedIn,easeIn,(function(){cb()}))};$l.delay(animOutDelay).animate(opts.animOut,speedOut,easeOut,(function(){$l.css(opts.cssAfter),opts.sync||fn()})),opts.sync&&fn()},$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0),opts.before.push((function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts),opts.cssBefore.opacity=0})),opts.animIn={opacity:1},opts.animOut={opacity:0},opts.cssBefore={top:0,left:0}}},$.fn.cycle.ver=function(){return ver},$.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:!1,animIn:null,animInDelay:0,animOut:null,animOutDelay:0,aspect:!1,autostop:0,autostopCount:0,backwards:!1,before:null,center:null,cleartype:!$.support.opacity,cleartypeNoBg:!1,containerResize:1,containerResizeHeight:0,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:!0,metaAttr:"cycle",next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:!0,requeueTimeout:250,rev:0,shuffle:null,skipInitializationCallbacks:!1,slideExpr:null,slideResize:1,speed:1e3,speedIn:null,speedOut:null,startingSlide:void 0,sync:1,timeout:4e3,timeoutFn:null,updateActivePagerLink:null,width:null}}(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($){"use strict";$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show(),$(curr).hide(),after()}},$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css({display:"block",opacity:1}),opts.before.push((function(curr,next,opts,w,h,rev){$(curr).css("zIndex",1+(!0!==rev?1:0)),$(next).css("zIndex",1+(!0!==rev?0:1))})),opts.animIn.opacity=1,opts.animOut.opacity=0,opts.cssBefore.opacity=1,opts.cssBefore.display="block",opts.cssAfter.zIndex=0},$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden"),opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h,opts.cssBefore.left=0,opts.cssFirst.top=0,opts.animIn.top=0,opts.animOut.top=-h},$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden"),opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0,opts.cssBefore.top=-h,opts.cssBefore.left=0,opts.animIn.top=0,opts.animOut.top=h},$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden"),opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0,opts.cssBefore.left=w,opts.cssBefore.top=0,opts.animIn.left=0,opts.animOut.left=0-w},$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden"),opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0,opts.cssBefore.left=-w,opts.cssBefore.top=0,opts.animIn.left=0,opts.animOut.left=w},$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width(),opts.before.push((function(curr,next,opts,fwd){opts.rev&&(fwd=!fwd),$.fn.cycle.commonReset(curr,next,opts),opts.cssBefore.left=fwd?next.cycleW-1:1-next.cycleW,opts.animOut.left=fwd?-curr.cycleW:curr.cycleW})),opts.cssFirst.left=0,opts.cssBefore.top=0,opts.animIn.left=0,opts.animOut.top=0},$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden"),opts.before.push((function(curr,next,opts,fwd){opts.rev&&(fwd=!fwd),$.fn.cycle.commonReset(curr,next,opts),opts.cssBefore.top=fwd?1-next.cycleH:next.cycleH-1,opts.animOut.top=fwd?curr.cycleH:-curr.cycleH})),opts.cssFirst.top=0,opts.cssBefore.left=0,opts.animIn.top=0,opts.animOut.left=0},$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push((function(curr,next,opts){$(opts.elements).not(curr).hide(),$.fn.cycle.commonReset(curr,next,opts,!1,!0),opts.animIn.width=next.cycleW})),opts.cssBefore.left=0,opts.cssBefore.top=0,opts.cssBefore.width=0,opts.animIn.width="show",opts.animOut.width=0},$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push((function(curr,next,opts){$(opts.elements).not(curr).hide(),$.fn.cycle.commonReset(curr,next,opts,!0,!1),opts.animIn.height=next.cycleH})),opts.cssBefore.left=0,opts.cssBefore.top=0,opts.cssBefore.height=0,opts.animIn.height="show",opts.animOut.height=0},$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();for($slides.css({left:0,top:0}),opts.before.push((function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,!0,!0,!0)})),opts.speedAdjusted||(opts.speed=opts.speed/2,opts.speedAdjusted=!0),opts.random=0,opts.shuffle=opts.shuffle||{left:-w,top:15},opts.els=[],i=0;i<$slides.length;i++)opts.els.push($slides[i]);for(i=0;i