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