(function(n){n.fn.onDemandLoader=function(t){t=n.extend({selector:null,spinner:null,callback:jQuery.noop},t),n(t.selector).each(function(){n(this).attr("_src",n(this).attr("src")),n(this).attr("src",t.spinner)})},n.fn.onDemandLoader.loadImage=function(t){n(t).attr("src",n(t).attr("_src"))}})(jQuery),function(n){function i(i){n.fn.cycle.debug&&t(i)}function t(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}function h(i,u,f){function s(i,u,f){if(!i&&u===!0){var o=n(f).data("cycle.opts");if(!o)return t("options not found, can not resume"),!1;f.cycleTimeout&&(clearTimeout(f.cycleTimeout),f.cycleTimeout=0),r(o.elements,o,1,!e.rev&&!e.backwards)}}var e,o;if(i.cycleStop==undefined&&(i.cycleStop=0),(u===undefined||u===null)&&(u={}),u.constructor==String){switch(u){case"destroy":case"stop":return(e=n(i).data("cycle.opts"),!e)?!1:(i.cycleStop++,i.cycleTimeout&&clearTimeout(i.cycleTimeout),i.cycleTimeout=0,n(i).removeData("cycle.opts"),u=="destroy"&&y(e),!1);case"toggle":return i.cyclePause=i.cyclePause===1?0:1,s(i.cyclePause,f,i),!1;case"pause":return i.cyclePause=1,!1;case"resume":return i.cyclePause=0,s(!1,f,i),!1;case"prev":case"next":return(e=n(i).data("cycle.opts"),!e)?(t('options not found, "prev/next" ignored'),!1):(n.fn.cycle[u](e),!1);default:u={fx:u}}return u}return u.constructor==Number?(o=u,u=n(i).data("cycle.opts"),!u)?(t("options not found, can not advance slide"),!1):o<0||o>=u.elements.length?(t("invalid slide index: "+o),!1):(u.nextSlide=o,i.cycleTimeout&&(clearTimeout(i.cycleTimeout),i.cycleTimeout=0),typeof f=="string"&&(u.oneTimeFx=f),r(u.elements,u,1,o>=u.currSlide),!1):u}function o(t,i){if(!n.support.opacity&&i.cleartype&&t.style.filter)try{t.style.removeAttribute("filter")}catch(r){}}function y(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 c(i,e,s,h,c){var y=n.extend({},n.fn.cycle.defaults,h||{},n.metadata?i.metadata():n.meta?i.data():{}),st,it,p,ot,d,k,ut,et,ht,ft,b;if(y.autostop&&(y.countdown=y.autostopCount||s.length),st=i[0],i.data("cycle.opts",y),y.$cont=i,y.stopCount=st.cycleStop,y.elements=s,y.before=y.before?[y.before]:[],y.after=y.after?[y.after]:[],y.after.unshift(function(){y.busy=0}),!n.support.opacity&&y.cleartype&&y.after.push(function(){o(this,y)}),y.continuous&&y.after.push(function(){r(s,y,0,!y.rev&&!y.backwards)}),v(y),n.support.opacity||!y.cleartype||y.cleartypeNoBg||f(e),i.css("position")=="static"&&i.css("position","relative"),y.width&&i.width(y.width),y.height&&y.height!="auto"&&i.height(y.height),y.startingSlide?y.startingSlide=parseInt(y.startingSlide):y.backwards&&(y.startingSlide=s.length-1),y.random){for(y.randomMap=[],it=0;it<s.length;it++)y.randomMap.push(it);y.randomMap.sort(function(){return Math.random()-.5}),y.randomIndex=1,y.startingSlide=y.randomMap[1]}else y.startingSlide>=s.length&&(y.startingSlide=0);if(y.currSlide=y.startingSlide||0,p=y.startingSlide,e.css({position:"absolute",top:0,left:0}).hide().each(function(t){var i;i=y.backwards?p?t<=p?s.length+(t-p):p-t:s.length-t:p?t>=p?s.length-(t-p):p-t:s.length-t,n(this).css("z-index",i)}),n(s[p]).css("opacity",1).show(),o(s[p],y),y.fit&&y.width&&e.width(y.width),y.fit&&y.height&&y.height!="auto"&&e.height(y.height),ot=y.containerResize&&!i.innerHeight(),ot){for(d=0,k=0,ut=0;ut<s.length;ut++){var g=n(s[ut]),rt=g[0],tt=g.outerWidth(),nt=g.outerHeight();tt||(tt=rt.offsetWidth||rt.width||g.attr("width")),nt||(nt=rt.offsetHeight||rt.height||g.attr("height")),d=tt>d?tt:d,k=nt>k?nt:k}d>0&&k>0&&i.css({width:d+"px",height:k+"px"})}if((y.pause&&i.hover(function(){this.cyclePause++},function(){this.cyclePause--}),a(y)===!1)||(et=!1,h.requeueAttempts=h.requeueAttempts||0,e.each(function(){var i=n(this);if(this.cycleH=y.fit&&y.height?y.height:i.height()||this.offsetHeight||this.height||i.attr("height")||0,this.cycleW=y.fit&&y.width?y.width:i.width()||this.offsetWidth||this.width||i.attr("width")||0,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(c.s&&y.requeueOnImageNotLoaded&&++h.requeueAttempts<100)return t(h.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH),setTimeout(function(){n(c.s,c.c).cycle(h)},y.requeueTimeout),et=!0,!1;t("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}}return!0}),et))return!1;if(y.cssBefore=y.cssBefore||{},y.animIn=y.animIn||{},y.animOut=y.animOut||{},e.not(":eq("+p+")").css(y.cssBefore),y.cssFirst&&n(e[p]).css(y.cssFirst),y.timeout)for(y.timeout=parseInt(y.timeout),y.speed.constructor==String&&(y.speed=n.fx.speeds[y.speed]||parseInt(y.speed)),y.sync||(y.speed=y.speed/2),ht=y.fx=="shuffle"?500:250;y.timeout-y.speed<ht;)y.timeout+=y.speed;if(y.easing&&(y.easeIn=y.easeOut=y.easing),y.speedIn||(y.speedIn=y.speed),y.speedOut||(y.speedOut=y.speed),y.slideCount=s.length,y.currSlide=y.lastSlide=p,y.random?(++y.randomIndex==s.length&&(y.randomIndex=0),y.nextSlide=y.randomMap[y.randomIndex]):y.nextSlide=y.backwards?y.startingSlide==0?s.length-1:y.startingSlide-1:y.startingSlide>=s.length-1?0:y.startingSlide+1,!y.multiFx)if(ft=n.fn.cycle.transitions[y.fx],n.isFunction(ft))ft(i,e,y);else if(y.fx!="custom"&&!y.multiFx)return t("unknown transition: "+y.fx,"; slideshow terminating"),!1;return b=e[p],y.before.length&&y.before[0].apply(b,[b,b,y,!0]),y.after.length>1&&y.after[1].apply(b,[b,b,y,!0]),y.next&&n(y.next).bind(y.prevNextEvent,function(){return u(y,y.rev?-1:1)}),y.prev&&n(y.prev).bind(y.prevNextEvent,function(){return u(y,y.rev?1:-1)}),(y.pager||y.pagerAnchorBuilder)&&l(s,y),w(y,s),y}function v(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 a(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 w(t,i){t.addSlide=function(r,u){var e=n(r),o=e[0];if(t.autostopCount||t.countdown++,i[u?"unshift":"push"](o),t.els&&t.els[u?"unshift":"push"](o),t.slideCount=i.length,e.css("position","absolute"),e[u?"prependTo":"appendTo"](t.$cont),u&&(t.currSlide++,t.nextSlide++),n.support.opacity||!t.cleartype||t.cleartypeNoBg||f(e),t.fit&&t.width&&e.width(t.width),t.fit&&t.height&&t.height!="auto"&&$slides.height(t.height),o.cycleH=t.fit&&t.height?t.height:e.height(),o.cycleW=t.fit&&t.width?t.width:e.width(),e.css(t.cssBefore),(t.pager||t.pagerAnchorBuilder)&&n.fn.cycle.createPagerAnchor(i.length-1,o,n(t.pager),i,t),n.isFunction(t.onAddSlide))t.onAddSlide(e);else e.hide()}}function r(t,u,f,o){var y,v,p,c,a;if(f&&u.busy&&u.manualTrump&&(i("manualTrump in go(), stopping active transition"),n(t).stop(!0,!0),u.busy=!1),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)){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&&((u.lastFx==undefined||++u.lastFx>=u.fxs.length)&&(u.lastFx=0),v=u.fxs[u.lastFx],u.currFx=v),u.oneTimeFx&&(v=u.oneTimeFx,u.oneTimeFx=null),n.fn.cycle.resetState(u,v),u.before.length&&n.each(u.before,function(n,t){l.cycleStop==u.stopCount&&t.apply(s,[h,s,u,o])}),p=function(){n.each(u.after,function(n,t){l.cycleStop==u.stopCount&&t.apply(s,[h,s,u,o])})},i("tx firing; currSlide: "+u.currSlide+"; nextSlide: "+u.nextSlide),u.busy=1,u.fxFn?u.fxFn(h,s,u,p,o,f&&u.fastOnEvent):n.isFunction(n.fn.cycle[u.fx])?n.fn.cycle[u.fx](h,s,u,p,o,f&&u.fastOnEvent):n.fn.cycle.custom(h,s,u,p,o,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=e(t[u.currSlide],t[u.nextSlide],u,o):u.continuous&&l.cyclePause&&(a=10),a>0&&(l.cycleTimeout=setTimeout(function(){r(t,u,0,!u.rev&&!u.backwards)},a))}}function e(n,t,r,u){if(r.timeoutFn){for(var f=r.timeoutFn.call(n,n,t,r,u);f-r.speed<250;)f+=r.speed;if(i("calculated timeout: "+f+"; speed: "+r.speed),f!==!1)return f}return r.timeout}function u(t,i){var u=t.elements,e=t.$cont[0],o=e.cycleTimeout,f;if(o&&(clearTimeout(o),e.cycleTimeout=0),t.random&&i<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 if(t.nextSlide=t.currSlide+i,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(i>0,t.nextSlide,u[t.nextSlide]),r(u,t,1,i>=0),!1}function l(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 f(t){function r(n){return n=parseInt(n).toString(16),n.length<2?"0"+n:n}function u(t){for(var i,u;t&&t.nodeName.toLowerCase()!="html";t=t.parentNode){if(i=n.css(t,"background-color"),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 s="2.88";n.support==undefined&&(n.support={opacity:!n.browser.msie}),n.fn.cycle=function(u,f){var o={s:this.selector,c:this.context};return this.length===0&&u!="stop"?!n.isReady&&o.s?(t("DOM not ready, queuing slideshow"),n(function(){n(o.s,o.c).cycle(u,f)}),this):(t("terminating; zero elements found by selector"+(n.isReady?"":" (DOM not ready)")),this):this.each(function(){var a=h(this,u,f),s,l;if(a!==!1){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();if(v.length<2){t("terminating; too few slides: "+v.length);return}(s=c(p,y,v,a,o),s!==!1)&&(l=s.continuous?10:e(v[s.currSlide],v[s.nextSlide],s,!s.rev),l&&(l+=s.delay||0,l<10&&(l=10),i("first timeout: "+l),this.cycleTimeout=setTimeout(function(){r(v,s,0,!s.rev&&!a.backwards)},l)))}})},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){u(n,n.rev?-1:1)},n.fn.cycle.prev=function(n){u(n,n.rev?1:-1)},n.fn.cycle.createPagerAnchor=function(t,u,f,e,o){var h,s,c;(n.isFunction(o.pagerAnchorBuilder)?(h=o.pagerAnchorBuilder(t,u),i("pagerAnchorBuilder("+t+", el) returned: "+h)):h='<a href="#">'+(t+1)+"</a>",h)&&(s=n(h),s.parents("body").length===0&&(c=[],f.length>1?(f.each(function(){var t=s.clone(!0);n(this).append(t),c.push(t[0])}),s=n(c)):s.appendTo(f)),o.pagerAnchors=o.pagerAnchors||[],o.pagerAnchors.push(s),s.bind(o.pagerEvent,function(i){var s,f,u;i.preventDefault(),o.nextSlide=t,s=o.$cont[0],f=s.cycleTimeout,f&&(clearTimeout(f),s.cycleTimeout=0),u=o.onPagerEvent||o.pagerClick,n.isFunction(u)&&u(o.nextSlide,e[o.nextSlide]),r(e,o,1,o.currSlide<t)}),/^click/.test(o.pagerEvent)||o.allowPagerClickBubble||s.bind("click.cycle",function(){return!1}),o.pauseOnPagerHover&&s.hover(function(){o.$cont[0].cyclePause++},function(){o.$cont[0].cyclePause--}))},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(),r.cssBefore.opacity=1,r.cssBefore.display="block",u!==!1&&i.cycleW>0&&(r.cssBefore.width=i.cycleW),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,u)},l.animate(r.animOut,s,c,function(){r.cssAfter&&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 s},n.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:!1,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!n.support.opacity,cleartypeNoBg:!1,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:!0,requeueOnImageNotLoaded:!0,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:!1}}(jQuery),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.scrollUp=function(t,i,r){t.css("overflow","hidden"),r.before.push(n.fn.cycle.commonReset);var u=t.height();r.cssBefore={top:u,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,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,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,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){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){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,top:0,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,top:0,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 o=f?n(t):n(i),e;n(i).css(r.cssBefore),e=r.slideCount,o.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+e);else c=n(t).css("z-index"),o.css("z-index",parseInt(c)+1+e);o.animate({left:0,top:0},r.speedOut,r.easeOut,function(){n(f?this:t).hide(),u&&u()})})},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.cssFirst={top:0},r.cssBefore={left:0,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,top:0,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,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}),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,r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH},r.animOut={width:0,height:0,top:t.cycleH/2,left:t.cycleW/2}}),r.cssFirst={top:0,left:0},r.cssBefore={width:0,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,r.animIn={top:0,left:0,width:i.cycleW,height:i.cycleH}}),r.cssBefore={width:0,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,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,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,left:u},r.animIn={top:0,left:0},r.animOut={top:f,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,width:this.cycleW},r.animOut={left:0}}),r.cssBefore={width:0,top: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,height:this.cycleH},r.animOut={top:0}}),r.cssBefore={height:0,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,width:this.cycleW},r.animOut={left:t.cycleW/2,width:0}}),r.cssBefore={top:0,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,height:i.cycleH},r.animOut={top:t.cycleH/2,height:0}}),r.cssBefore={left:0,height: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,top:0},r.animOut={opacity:1},r.cssBefore={top:0,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,top:0},r.animOut={opacity:1},r.cssBefore={top:0,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:r.animOut={left:f*2,top:-u/2,opacity:0}}),r.cssBefore={left:0,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),a=parseInt(f/2),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]),s=parseInt(o[1]),c=parseInt(o[2]),h=parseInt(o[3]);r.before.push(function(t,i,r){var l,a,e,o;t!=i&&(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)-1,function y(){var i=v?v-parseInt(e*(v/o)):0,r=h?h-parseInt(e*(h/o)):0,n=c<u?c+parseInt(e*((u-c)/o||1)):u,t=s<f?s+parseInt(e*((f-s)/o||1)):f;a.css({clip:"rect("+i+"px "+t+"px "+n+"px "+r+"px)"}),e++<=o?setTimeout(y,13):l.css("display","none")}())}),r.cssBefore={display:"block",opacity:1,top:0,left:0},r.animIn={left:0},r.animOut={left:0}}}(jQuery),$(document).bind("pageinit",function(){$(".slideshow").onDemandLoader({selector:".slideshow img"});$(".slideshow").cycle({fx:"fade",speed:500,timeout:5500,fit:1,width:"100%",before:function(n,t){$(".slideshow").onDemandLoader.loadImage(t)}})})