(function(){var a=typeof $webkitsafe!=='undefined'?$webkitsafe:window.jQuery;(function(a){"use strict";var b='20130323';a.fn.cycle2=function(b){var c;if(this.length===0&&!a.isReady){c={s:this.selector,c:this.context};a.fn.cycle2.log('requeuing slideshow (dom not ready)');a(function(){a(c.s,c.c).cycle2(b);});return this;}return this.each(function(){var c,e,f,g;var h=a(this);var i=a.fn.cycle2.log;if(h.data('cycle2.opts'))return;if(h.data('cycle2-log')===false||(b&&b.log===false)||(e&&e.log===false))i=a.noop;i('--c2 init--');c=h.data();for(var j in c)if(c.hasOwnProperty(j)&&/^cycle2[A-Z]+/.test(j)){g=c[j];f=j.match(/^cycle2(.*)/)[1].replace(/^[A-Z]/,d);i(f+':',g,'('+typeof g+')');c[f]=g;}e=a.extend({},a.fn.cycle2.defaults,c,b||{});e.timeoutId=0;e.paused=e.paused||false;e.container=h;e._maxZ=e.maxZ;e.API=a.extend({_container:h},a.fn.cycle2.API);e.API.log=i;e.API.trigger=function(a,b){e.container.trigger(a,b);return e.API;};h.data('cycle2.opts',e);h.data('cycle2.API',e.API);e.API.trigger('cycle2-bootstrap',[e,e.API]);e.API.addInitialSlides();e.API.preInitSlideshow();if(e.slides.length)e.API.initSlideshow();});};a.fn.cycle2.API={opts:function(){return this._container.data('cycle2.opts');},addInitialSlides:function(){var b=this.opts();var c=b.slides;b.slideCount=0;b.slides=a();c=c.jquery?c:b.container.find(c);if(b.random)c.sort(function(){return Math.random()-0.5;});b.API.add(c);},preInitSlideshow:function(){var b=this.opts();b.API.trigger('cycle2-pre-initialize',[b]);var c=a.fn.cycle2.transitions[b.fx];if(c&&a.isFunction(c.preInit))c.preInit(b);b._preInitialized=true;},postInitSlideshow:function(){var b=this.opts();b.API.trigger('cycle2-post-initialize',[b]);var c=a.fn.cycle2.transitions[b.fx];if(c&&a.isFunction(c.postInit))c.postInit(b);},initSlideshow:function(){var b=this.opts();var c=b.container;var d;b.API.calcFirstSlide();if(b.container.css('position')=='static')b.container.css('position','relative');a(b.slides[b.currSlide]).css('opacity',1).show();b.API.stackSlides(b.slides[b.currSlide],b.slides[b.nextSlide],!b.reverse);if(b.pauseOnHover){if(b.pauseOnHover!==true)c=a(b.pauseOnHover);c.hover(function(){b.API.pause(true);},function(){b.API.resume(true);});}if(b.timeout){d=b.API.getSlideOpts(b.nextSlide);b.API.queueTransition(d,b.timeout+b.delay);}b._initialized=true;b.API.updateView(true);b.API.trigger('cycle2-initialized',[b]);b.API.postInitSlideshow();},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;if(b)c.hoverPaused=true;else c.paused=true;if(!e){c.container.addClass('cycle2-paused');c.API.trigger('cycle2-paused',[c]).log('cycle2-paused');if(d.timeout){clearTimeout(c.timeoutId);c.timeoutId=0;c._remainingTimeout-=(a.now()-c._lastQueue);if(c._remainingTimeout<0||isNaN(c._remainingTimeout))c._remainingTimeout=undefined;}}},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused,d;if(a)b.hoverPaused=false;else b.paused=false;if(!c){b.container.removeClass('cycle2-paused');b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout);b.API.trigger('cycle2-resumed',[b,b._remainingTimeout]).log('cycle2-resumed');}},add:function(b,c){var d=this.opts();var e=d.slideCount;var f=false;var g;if(a.type(b)=='string')b=a.trim(b);a(b).each(function(b){var e;var f=a(this);if(c)d.container.prepend(f);else d.container.append(f);d.slideCount++;e=d.API.buildSlideOpts(f);if(c)d.slides=a(f).add(d.slides);else d.slides=d.slides.add(f);d.API.initSlide(e,f,--d._maxZ);f.data('cycle2.opts',e);d.API.trigger('cycle2-slide-added',[d,e,f]);});d.API.updateView(true);f=d._preInitialized&&(e<2&&d.slideCount>=1);if(f)if(!d._initialized)d.API.initSlideshow();else if(d.timeout){g=d.slides.length;d.nextSlide=d.reverse?g-1:1;if(!d.timeoutId)d.API.queueTransition(d);}},calcFirstSlide:function(){var a=this.opts();var b;b=parseInt(a.startingSlide||0,10);if(b>=a.slides.length||b<0)b=0;a.currSlide=b;if(a.reverse){a.nextSlide=b-1;if(a.nextSlide<0)a.nextSlide=a.slides.length-1;}else{a.nextSlide=b+1;if(a.nextSlide==a.slides.length)a.nextSlide=0;}},calcNextSlide:function(){var a=this.opts();var b;if(a.reverse){b=(a.nextSlide-1)<0;a.nextSlide=b?a.slideCount-1:a.nextSlide-1;a.currSlide=b?0:a.nextSlide+1;}else{b=(a.nextSlide+1)==a.slides.length;a.nextSlide=b?0:a.nextSlide+1;a.currSlide=b?a.slides.length-1:a.nextSlide-1;}},calcTx:function(b,c){var d=b;var e;if(c&&d.manualFx)e=a.fn.cycle2.transitions[d.manualFx];if(!e)e=a.fn.cycle2.transitions[d.fx];if(!e){e=a.fn.cycle2.transitions.fade;d.API.log('Transition "'+d.fx+'" not found. Using fade.');}return e;},prepareTx:function(a,b){var c=this.opts();var d,e,f,g,h;if(c.slideCount<2){c.timeoutId=0;return;}if(a&&(!c.busy||c.manualTrump)){c.API.stopTransition();c.busy=false;clearTimeout(c.timeoutId);c.timeoutId=0;}if(c.busy)return;if(c.timeoutId===0&&!a)return;e=c.slides[c.currSlide];f=c.slides[c.nextSlide];g=c.API.getSlideOpts(c.nextSlide);h=c.API.calcTx(g,a);c._tx=h;if(a&&g.manualSpeed!==undefined)g.speed=g.manualSpeed;if(c.nextSlide!=c.currSlide&&(a||(!c.paused&&!c.hoverPaused&&c.timeout))){c.API.trigger('cycle2-before',[g,e,f,b]);if(h.before)h.before(g,e,f,b);d=function(){c.busy=false;if(!c.container.data('cycle2.opts'))return;if(h.after)h.after(g,e,f,b);c.API.trigger('cycle2-after',[g,e,f,b]);c.API.queueTransition(g);c.API.updateView(true);};c.busy=true;if(h.transition)h.transition(g,e,f,b,d);else c.API.doTransition(g,e,f,b,d);c.API.calcNextSlide();c.API.updateView();}else c.API.queueTransition(g);},doTransition:function(b,c,d,e,f){var g=b;var h=a(c),i=a(d);var j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f);};i.css(g.cssBefore||{});h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{});if(!g.sync)j();});if(g.sync)j();},queueTransition:function(b,c){var d=this.opts();var e=c!==undefined?c:b.timeout;if(d.nextSlide===0&&--d.loop===0){d.API.log('terminating; loop=0');d.timeout=0;if(e)setTimeout(function(){d.API.trigger('cycle2-finished',[d]);},e);else d.API.trigger('cycle2-finished',[d]);d.nextSlide=d.currSlide;return;}if(e){d._lastQueue=a.now();if(c===undefined)d._remainingTimeout=b.timeout;if(!d.paused&&!d.hoverPaused)d.timeoutId=setTimeout(function(){d.API.prepareTx(false,!d.reverse);},e);}},stopTransition:function(){var a=this.opts();if(a.slides.filter(':animated').length){a.slides.stop(false,true);a.API.trigger('cycle2-transition-stopped',[a]);}if(a._tx&&a._tx.stopTransition)a._tx.stopTransition(a);},advanceSlide:function(a){var b=this.opts();clearTimeout(b.timeoutId);b.timeoutId=0;b.nextSlide=b.currSlide+a;if(b.nextSlide<0)b.nextSlide=b.slides.length-1;else if(b.nextSlide>=b.slides.length)b.nextSlide=0;b.API.prepareTx(true,a>=0);return false;},buildSlideOpts:function(b){var c=this.opts();var e,f;var g=b.data()||{};for(var h in g)if(g.hasOwnProperty(h)&&/^cycle2[A-Z]+/.test(h)){e=g[h];f=h.match(/^cycle2(.*)/)[1].replace(/^[A-Z]/,d);c.API.log('['+(c.slideCount-1)+']',f+':',e,'('+typeof e+')');g[f]=e;}g=a.extend({},a.fn.cycle2.defaults,c,g);g.slideNum=c.slideCount;try{delete g.API;delete g.slideCount;delete g.currSlide;delete g.nextSlide;delete g.slides;}catch(i){}return g;},getSlideOpts:function(b){var c=this.opts();if(b===undefined)b=c.currSlide;var d=c.slides[b];var e=a(d).data('cycle2.opts');return a.extend({},c,e);},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{});if(d>0)c.css('zIndex',d);if(isNaN(b.speed))b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default;if(!b.sync)b.speed=b.speed/2;c.addClass(e.slideClass);},updateView:function(a){var b=this.opts();if(!b._initialized)return;var c=b.API.getSlideOpts();var d=b.slides[b.currSlide];if(!a){b.API.trigger('cycle2-update-view-before',[b,c,d]);if(b.updateView<0)return;}if(b.slideActiveClass)b.slides.removeClass(b.slideActiveClass).eq(b.currSlide).addClass(b.slideActiveClass);if(a&&b.hideNonActive)b.slides.filter(':not(.'+b.slideActiveClass+')').hide();b.API.trigger('cycle2-update-view',[b,c,d,a]);b.API.trigger('cycle2-update-view-after',[b,c,d]);},getComponent:function(b){var c=this.opts();var d=c[b];if(typeof d==='string')return(/^\s*[\>|\+|~]/).test(d)?c.container.find(d):a(d);if(d.jquery)return d;return a(d);},stackSlides:function(b,c,d){var e=this.opts();if(!b){b=e.slides[e.currSlide];c=e.slides[e.nextSlide];d=!e.reverse;}a(b).css('zIndex',e.maxZ);var f;var g=e.maxZ-2;var h=e.slideCount;if(d){for(f=e.currSlide+1;f=0;f--)a(e.slides[f]).css('zIndex',g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css('zIndex',g--);}a(c).css('zIndex',e.maxZ-1);},getSlideIndex:function(a){return this.opts().slides.index(a);}};a.fn.cycle2.log=function c(){};a.fn.cycle2.version=function(){return 'cycle22: '+b;};function d(a){return(a||'').toLowerCase();}a.fn.cycle2.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d);a.cssBefore={opacity:1,display:'block'};}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e);b.cssBefore=a.extend(f,{opacity:0,display:'block'});b.animIn={opacity:1};b.animOut={opacity:0};}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e);b.cssBefore=a.extend(f,{opacity:1,display:'block'});b.animOut={opacity:0};}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css('overflow','hidden').width();a.cssBefore={left:d?e:-e,top:0,opacity:1,display:'block'};a.cssAfter={zIndex:a._maxZ-2,left:0};a.animIn={left:0};a.animOut={left:d?-e:e};}}};a.fn.cycle2.defaults={allowWrap:true,autoSelector:'.cycle2-slideshow[data-cycle2-auto-init!=false]',delay:0,easing:null,fx:'fade',hideNonActive:true,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:true,maxZ:100,pauseOnHover:false,reverse:false,slideActiveClass:'cycle2-slide-active',slideClass:'cycle2-slide',slideCss:{position:'absolute',top:0,left:0},slides:'> img',speed:500,startingSlide:0,sync:true,timeout:4000,updateView:-1};a(document).ready(function(){a(a.fn.cycle2.defaults.autoSelector).cycle2();});})(a);(function(a){"use strict";a.extend(a.fn.cycle2.defaults,{autoHeight:0});a(document).on('cycle2-initialized',function(c,f){var g=f.autoHeight;var h=a.type(g);var i=null;var j;if(h!=='string'&&h!=='number')return;f.container.on('cycle2-slide-added cycle2-slide-removed',b);f.container.on('cycle2-destroyed',e);if(g=='container')f.container.on('cycle2-before',d);else if(h==='string'&&/\d+\:\d+/.test(g)){j=g.match(/(\d+)\:(\d+)/);j=j[1]/j[2];f._autoHeightRatio=j;}if(h!=='number'){f._autoHeightOnResize=function(){clearTimeout(i);i=setTimeout(k,50);};a(window).on('resize orientationchange',f._autoHeightOnResize);}setTimeout(k,30);function k(){b(c,f);}});function b(b,d){var e,f,g;var h=d.autoHeight;if(h=='container'){f=a(d.slides[d.currSlide]).outerHeight();d.container.height(f);}else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if(h==='calc'||(a.type(h)=='number'&&h>=0)){if(h==='calc')g=c(b,d);else if(h>=d.slides.length)g=0;else g=h;if(g==d._sentinelIndex)return;d._sentinelIndex=g;if(d._sentinel)d._sentinel.remove();e=a(d.slides[g].cloneNode(true));e.removeAttr('id name rel').find('[id],[name],[rel]').removeAttr('id name rel');e.css({position:'static',visibility:'hidden',display:'block'}).prependTo(d.container).addClass('cycle2-sentinel cycle2-slide').removeClass('cycle2-slide-active');e.find('*').css('visibility','hidden');d._sentinel=e;}}function c(b,c){var d=0,e=-1;c.slides.each(function(b){var c=a(this).height();if(c>e){e=c;d=b;}});return d;}function d(b,c,d,e,f){var g=a(e).outerHeight();var h=c.sync?c.speed/2:c.speed;c.container.animate({height:g},h);}function e(c,f){if(f._autoHeightOnResize){a(window).off('resize orientationchange',f._autoHeightOnResize);f._autoHeightOnResize=null;}f.container.off('cycle2-slide-added cycle2-slide-removed',b);f.container.off('cycle2-destroyed',e);f.container.off('cycle2-before',d);if(f._sentinel){f._sentinel.remove();f._sentinel=null;}}})(a);(function(a){"use strict";a.extend(a.fn.cycle2.defaults,{caption:'> .cycle2-caption',captionTemplate:'{{slideNum}} / {{slideCount}}',overlay:'> .cycle2-overlay',overlayTemplate:'
{{title}}
{{desc}}
',captionModule:'caption'});a(document).on('cycle2-update-view',function(b,c,d,e){if(c.captionModule!=='caption')return;var f;a.each(['caption','overlay'],function(){var a=this;var b=d[a+'Template'];var f=c.API.getComponent(a);if(f.length&&b){f.html(c.API.tmpl(b,d,c,e));f.show();}else f.hide();});});a(document).on('cycle2-destroyed',function(b,c){var d;a.each(['caption','overlay'],function(){var a=this,b=c[a+'Template'];if(c[a]&&b){d=c.API.getComponent('caption');d.empty();}});});})(a);(function(a){"use strict";var b=a.fn.cycle2;a.fn.cycle2=function(c){var d,e,f;var g=a.makeArray(arguments);if(a.type(c)=='number')return this.cycle2('goto',c);if(a.type(c)=='string')return this.each(function(){var h;d=c;f=a(this).data('cycle2.opts');if(f===undefined){b.log('slideshow must be initialized before sending commands; "'+d+'" ignored');return;}else{d=d=='goto'?'jump':d;e=f.API[d];if(a.isFunction(e)){h=a.makeArray(g);h.shift();return e.apply(f.API,h);}else b.log('unknown command: ',d);}});else return b.apply(this,arguments);};a.extend(a.fn.cycle2,b);a.extend(b.API,{next:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?-1:1;if(a.allowWrap===false&&(a.currSlide+b)>=a.slideCount)return;a.API.advanceSlide(b);a.API.trigger('cycle2-next',[a]).log('cycle2-next');},prev:function(){var a=this.opts();if(a.busy&&!a.manualTrump)return;var b=a.reverse?1:-1;if(a.allowWrap===false&&(a.currSlide+b)<0)return;a.API.advanceSlide(b);a.API.trigger('cycle2-prev',[a]).log('cycle2-prev');},destroy:function(){var a=this.opts();clearTimeout(a.timeoutId);a.timeoutId=0;a.API.stop();a.API.trigger('cycle2-destroyed',[a]).log('cycle2-destroyed');a.container.removeData('cycle2.opts');if(!a.retainStylesOnDestroy){a.container.removeAttr('style');a.slides.removeAttr('style');a.slides.removeClass('cycle2-slide-active');}},jump:function(a){var b;var c=this.opts();if(c.busy&&!c.manualTrump)return;var d=parseInt(a,10);if(isNaN(d)||d<0||d>=c.slides.length){c.API.log('goto: invalid slide index: '+d);return;}if(d==c.currSlide){c.API.log('goto: skipping, already on slide',d);return;}c.nextSlide=d;clearTimeout(c.timeoutId);c.timeoutId=0;c.API.log('goto: ',d,' (zero-index)');b=c.currSlide .cycle2-pager',pagerActiveClass:'cycle2-pager-active',pagerEvent:'click.cycle2',pagerTemplate:''});a(document).on('cycle2-bootstrap',function(a,c,d){d.buildPagerLink=b;});a(document).on('cycle2-slide-added',function(a,b,d,e){if(b.pager){b.API.buildPagerLink(b,d,e);b.API.page=c;}});a(document).on('cycle2-slide-removed',function(b,c,d,e){if(c.pager){var f=c.API.getComponent('pager');f.each(function(){var b=a(this);a(b.children()[d]).remove();});}});a(document).on('cycle2-update-view',function(b,c,d){var e;if(c.pager){e=c.API.getComponent('pager');e.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass);});}});a(document).on('cycle2-destroyed',function(a,b){var c;if(b.pager&&b.pagerTemplate){c=b.API.getComponent('pager');c.empty();}});function b(b,c,d){var e;var f=b.API.getComponent('pager');f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f);}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){a.preventDefault();b.API.page(f,a.currentTarget);});});}function c(a,b){var c=this.opts();if(c.busy&&!c.manualTrump)return;var d=a.children().index(b);var e=d;var f=c.currSlide .cycle2-next',nextEvent:'click.cycle2',disabledClass:'disabled',prev:'> .cycle2-prev',prevEvent:'click.cycle2',swipe:false});a(document).on('cycle2-initialized',function(a,b){b.API.getComponent('next').on(b.nextEvent,function(a){a.preventDefault();b.API.next();});b.API.getComponent('prev').on(b.prevEvent,function(a){a.preventDefault();b.API.prev();});if(b.swipe){var c=b.swipeVert?'swipeUp.cycle2':'swipeLeft.cycle2 swipeleft.cycle2';var d=b.swipeVert?'swipeDown.cycle2':'swipeRight.cycle2 swiperight.cycle2';b.container.on(c,function(a){b.API.next();});b.container.on(d,function(){b.API.prev();});}});a(document).on('cycle2-update-view',function(a,b,c,d){if(b.allowWrap)return;var e=b.disabledClass;var f=b.API.getComponent('next');var g=b.API.getComponent('prev');var h=b._prevBoundry||0;var i=b._nextBoundry||b.slideCount-1;if(b.currSlide==i)f.addClass(e).prop('disabled',true);else f.removeClass(e).prop('disabled',false);if(b.currSlide===h)g.addClass(e).prop('disabled',true);else g.removeClass(e).prop('disabled',false);});a(document).on('cycle2-destroyed',function(a,b){b.API.getComponent('prev').off(b.nextEvent);b.API.getComponent('next').off(b.prevEvent);b.container.off('swipeleft.cycle2 swiperight.cycle2 swipeLeft.cycle2 swipeRight.cycle2 swipeUp.cycle2 swipeDown.cycle2');});})(a);(function(a){"use strict";a.extend(a.fn.cycle2.defaults,{progressive:false});a(document).on('cycle2-pre-initialize',function(b,c){if(!c.progressive)return;var d=c.API;var e=d.next;var f=d.prev;var g=d.prepareTx;var h=a.type(c.progressive);var i,j;if(h=='array')i=c.progressive;else if(a.isFunction(c.progressive))i=c.progressive(c);else if(h=='string'){j=a(c.progressive);i=a.trim(j.html());if(!i)return;if(/^(\[)/.test(i))try{i=a.parseJSON(i);}catch(k){d.log('error parsing progressive slides',k);return;}else{i=i.split(new RegExp(j.data('cycle2-split')||'\n'));if(!i[i.length-1])i.pop();}}if(g)d.prepareTx=function(a,b){var d,e;if(a||i.length===0){g.apply(c.API,[a,b]);return;}if(b&&c.currSlide==(c.slideCount-1)){e=i[0];i=i.slice(1);c.container.one('cycle2-slide-added',function(a,b){setTimeout(function(){b.API.advanceSlide(1);},50);});c.API.add(e);}else if(!b&&c.currSlide===0){d=i.length-1;e=i[d];i=i.slice(0,d);c.container.one('cycle2-slide-added',function(a,b){setTimeout(function(){b.currSlide=1;b.API.advanceSlide(-1);},50);});c.API.add(e,true);}else g.apply(c.API,[a,b]);};if(e)d.next=function(){var a=this.opts();if(i.length&&a.currSlide==(a.slideCount-1)){var b=i[0];i=i.slice(1);a.container.one('cycle2-slide-added',function(a,b){e.apply(b.API);b.container.removeClass('cycle2-loading');});a.container.addClass('cycle2-loading');a.API.add(b);}else e.apply(a.API);};if(f)d.prev=function(){var a=this.opts();if(i.length&&a.currSlide===0){var b=i.length-1;var c=i[b];i=i.slice(0,b);a.container.one('cycle2-slide-added',function(a,b){b.currSlide=1;b.API.advanceSlide(-1);b.container.removeClass('cycle2-loading');});a.container.addClass('cycle2-loading');a.API.add(c,true);}else f.apply(a.API);};});})(a);(function(a){"use strict";a.extend(a.fn.cycle2.defaults,{tmplRegex:'{{((.)?.*?)}}'});a.extend(a.fn.cycle2.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle2.defaults.tmplRegex,'g');var e=a.makeArray(arguments);e.shift();return b.replace(d,function(b,c){var d,f,g,h,i=c.split('.');for(d=0;d1){h=g;for(f=0;f