text: function initLightbox(a){var b=function(){$('<div id="imagelightbox-loading"><div></div></div>').appendTo("body")},c=function(){$("#imagelightbox-loading").remove()},d=function(){$('<div id="imagelightbox-overlay"></div>').appendTo("body")},e=function(){$("#imagelightbox-overlay").remove()},f=function(a){$('<button type="button" id="imagelightbox-close" title="Close"></button>').appendTo("body").on("click touchend",function(){return $(this).remove(),a.quitImageLightbox(),!1})},g=function(){$("#imagelightbox-close").remove()},h=function(){var a=$('a[href="'+$("#imagelightbox").attr("src")+'"] img').attr("alt");a.length>0&&$('<div id="imagelightbox-caption">'+a+"</div>").appendTo("body")},i=function(){$("#imagelightbox-caption").remove()},m=function(a,b){var c=$('<button type="button" class="imagelightbox-arrow imagelightbox-arrow-left"></button><button type="button" class="imagelightbox-arrow imagelightbox-arrow-right"></button>');c.appendTo("body"),c.on("click touchend",function(c){c.preventDefault();var d=$(this),e=$(b+'[href="'+$("#imagelightbox").attr("src")+'"]'),f=e.index(b);return d.hasClass("imagelightbox-arrow-left")?(f-=1,$(b).eq(f).length||(f=$(b).length)):(f+=1,$(b).eq(f).length||(f=0)),a.switchImageLightbox(f),!1})},n=function(){$(".imagelightbox-arrow").remove()},o={overlay:!0,closeButton:!0,arrow:!0,selector:""},p=$.extend({},o,a||{}),q=$(p.selector).imageLightbox({onStart:function(){p.overlay&&d(),p.closeButton&&f(q),p.arrow&&m(q,p.selector)},onEnd:function(){p.overlay&&e(),p.closeButton&&g(),p.arrow&&n(),i(),c()},onLoadStart:function(){i(),b()},onLoadEnd:function(){h(),c(),$(".imagelightbox-arrow").css("display","block")}})}!function(a){a.flexslider=function(b,c){var d=a(b);d.vars=a.extend({},a.flexslider.defaults,c);var e,f=d.vars.namespace,g=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,h=("ontouchstart"in window||g||window.DocumentTouch&&document instanceof DocumentTouch)&&d.vars.touch,i="click touchend MSPointerUp",j="",k="vertical"===d.vars.direction,l=d.vars.reverse,m=d.vars.itemWidth>0,n="fade"===d.vars.animation,o=""!==d.vars.asNavFor,p={},q=!0;a.data(b,"flexslider",d),p={init:function(){d.animating=!1,d.currentSlide=parseInt(d.vars.startAt?d.vars.startAt:0,10),isNaN(d.currentSlide)&&(d.currentSlide=0),d.animatingTo=d.currentSlide,d.atEnd=0===d.currentSlide||d.currentSlide===d.last,d.containerSelector=d.vars.selector.substr(0,d.vars.selector.search(" ")),d.slides=a(d.vars.selector,d),d.container=a(d.containerSelector,d),d.count=d.slides.length,d.syncExists=a(d.vars.sync).length>0,"slide"===d.vars.animation&&(d.vars.animation="swing"),d.prop=k?"top":"marginLeft",d.args={},d.manualPause=!1,d.stopped=!1,d.started=!1,d.startTimeout=null,d.transitions=!d.vars.video&&!n&&d.vars.useCSS&&function(){var a=document.createElement("div"),b=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var c in b)if(void 0!==a.style[b[c]])return d.pfx=b[c].replace("Perspective","").toLowerCase(),d.prop="-"+d.pfx+"-transform",!0;return!1}(),d.ensureAnimationEnd="",""!==d.vars.controlsContainer&&(d.controlsContainer=a(d.vars.controlsContainer).length>0&&a(d.vars.controlsContainer)),""!==d.vars.manualControls&&(d.manualControls=a(d.vars.manualControls).length>0&&a(d.vars.manualControls)),d.vars.randomize&&(d.slides.sort(function(){return Math.round(Math.random())-.5}),d.container.empty().append(d.slides)),d.doMath(),d.setup("init"),d.vars.controlNav&&p.controlNav.setup(),d.vars.directionNav&&p.directionNav.setup(),d.vars.keyboard&&(1===a(d.containerSelector).length||d.vars.multipleKeyboard)&&a(document).bind("keyup",function(a){var b=a.keyCode;if(!d.animating&&(39===b||37===b)){var c=39===b?d.getTarget("next"):37===b&&d.getTarget("prev");d.flexAnimate(c,d.vars.pauseOnAction)}}),d.vars.mousewheel&&d.bind("mousewheel",function(a,b){a.preventDefault();var c=0>b?d.getTarget("next"):d.getTarget("prev");d.flexAnimate(c,d.vars.pauseOnAction)}),d.vars.pausePlay&&p.pausePlay.setup(),d.vars.slideshow&&d.vars.pauseInvisible&&p.pauseInvisible.init(),d.vars.slideshow&&(d.vars.pauseOnHover&&d.hover(function(){d.manualPlay||d.manualPause||d.pause()},function(){d.manualPause||d.manualPlay||d.stopped||d.play()}),d.vars.pauseInvisible&&p.pauseInvisible.isHidden()||(d.vars.initDelay>0?d.startTimeout=setTimeout(d.play,d.vars.initDelay):d.play())),o&&p.asNav.setup(),h&&d.vars.touch&&p.touch(),(!n||n&&d.vars.smoothHeight)&&a(window).bind("resize orientationchange focus",p.resize),d.find("img").attr("draggable","false"),setTimeout(function(){d.vars.start(d)},200)},asNav:{setup:function(){d.asNav=!0,d.animatingTo=Math.floor(d.currentSlide/d.move),d.currentItem=d.currentSlide,d.slides.removeClass(f+"active-slide").eq(d.currentItem).addClass(f+"active-slide"),g?(b._slider=d,d.slides.each(function(){var b=this;b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",function(a){a.preventDefault(),a.currentTarget._gesture&&a.currentTarget._gesture.addPointer(a.pointerId)},!1),b.addEventListener("MSGestureTap",function(b){b.preventDefault();var c=a(this),e=c.index();a(d.vars.asNavFor).data("flexslider").animating||c.hasClass("active")||(d.direction=d.currentItem<e?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction,!1,!0,!0))})})):d.slides.on(i,function(b){b.preventDefault();var c=a(this),e=c.index(),g=c.offset().left-a(d).scrollLeft();0>=g&&c.hasClass(f+"active-slide")?d.flexAnimate(d.getTarget("prev"),!0):a(d.vars.asNavFor).data("flexslider").animating||c.hasClass(f+"active-slide")||(d.direction=d.currentItem<e?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){d.manualControls?p.controlNav.setupManual():p.controlNav.setupPaging()},setupPaging:function(){var b,c,e="thumbnails"===d.vars.controlNav?"control-thumbs":"control-paging",g=1;if(d.controlNavScaffold=a('<ol class="'+f+"control-nav "+f+e+'"></ol>'),d.pagingCount>1)for(var h=0;h<d.pagingCount;h++){if(c=d.slides.eq(h),b="thumbnails"===d.vars.controlNav?'<img src="'+c.attr("data-thumb")+'"/>':"<a>"+g+"</a>","thumbnails"===d.vars.controlNav&&!0===d.vars.thumbCaptions){var k=c.attr("data-thumbcaption");""!=k&&void 0!=k&&(b+='<span class="'+f+'caption">'+k+"</span>")}d.controlNavScaffold.append("<li>"+b+"</li>"),g++}d.controlsContainer?a(d.controlsContainer).append(d.controlNavScaffold):d.append(d.controlNavScaffold),p.controlNav.set(),p.controlNav.active(),d.controlNavScaffold.delegate("a, img",i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(d.direction=e>d.currentSlide?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},setupManual:function(){d.controlNav=d.manualControls,p.controlNav.active(),d.controlNav.bind(i,function(b){if(b.preventDefault(),""===j||j===b.type){var c=a(this),e=d.controlNav.index(c);c.hasClass(f+"active")||(d.direction=e>d.currentSlide?"next":"prev",d.flexAnimate(e,d.vars.pauseOnAction))}""===j&&(j=b.type),p.setToClearWatchedEvent()})},set:function(){var b="thumbnails"===d.vars.controlNav?"img":"a";d.controlNav=a("."+f+"control-nav li "+b,d.controlsContainer?d.controlsContainer:d)},active:function(){d.controlNav.removeClass(f+"active").eq(d.animatingTo).addClass(f+"active")},update:function(b,c){d.pagingCount>1&&"add"===b?d.controlNavScaffold.append(a("<li><a>"+d.count+"</a></li>")):1===d.pagingCount?d.controlNavScaffold.find("li").remove():d.controlNav.eq(c).closest("li").remove(),p.controlNav.set(),d.pagingCount>1&&d.pagingCount!==d.controlNav.length?d.update(c,b):p.controlNav.active()}},directionNav:{setup:function(){var b=a('<ul class="'+f+'direction-nav"><li><a class="'+f+'prev" href="#">'+d.vars.prevText+'</a></li><li><a class="'+f+'next" href="#">'+d.vars.nextText+"</a></li></ul>");d.controlsContainer?(a(d.controlsContainer).append(b),d.directionNav=a("."+f+"direction-nav li a",d.controlsContainer)):(d.append(b),d.directionNav=a("."+f+"direction-nav li a",d)),p.directionNav.update(),d.directionNav.bind(i,function(b){b.preventDefault();var c;(""===j||j===b.type)&&(c=a(this).hasClass(f+"next")?d.getTarget("next"):d.getTarget("prev"),d.flexAnimate(c,d.vars.pauseOnAction)),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(){var a=f+"disabled";1===d.pagingCount?d.directionNav.addClass(a).attr("tabindex","-1"):d.vars.animationLoop?d.directionNav.removeClass(a).removeAttr("tabindex"):0===d.animatingTo?d.directionNav.removeClass(a).filter("."+f+"prev").addClass(a).attr("tabindex","-1"):d.animatingTo===d.last?d.directionNav.removeClass(a).filter("."+f+"next").addClass(a).attr("tabindex","-1"):d.directionNav.removeClass(a).removeAttr("tabindex")}},pausePlay:{setup:function(){var b=a('<div class="'+f+'pauseplay"><a></a></div>');d.controlsContainer?(d.controlsContainer.append(b),d.pausePlay=a("."+f+"pauseplay a",d.controlsContainer)):(d.append(b),d.pausePlay=a("."+f+"pauseplay a",d)),p.pausePlay.update(d.vars.slideshow?f+"pause":f+"play"),d.pausePlay.bind(i,function(b){b.preventDefault(),(""===j||j===b.type)&&(a(this).hasClass(f+"pause")?(d.manualPause=!0,d.manualPlay=!1,d.pause()):(d.manualPause=!1,d.manualPlay=!0,d.play())),""===j&&(j=b.type),p.setToClearWatchedEvent()})},update:function(a){"play"===a?d.pausePlay.removeClass(f+"pause").addClass(f+"play").html(d.vars.playText):d.pausePlay.removeClass(f+"play").addClass(f+"pause").html(d.vars.pauseText)}},touch:function(){function a(a){d.animating?a.preventDefault():(window.navigator.msPointerEnabled||1===a.touches.length)&&(d.pause(),q=k?d.h:d.w,s=Number(new Date),u=a.touches[0].pageX,v=a.touches[0].pageY,p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q,j=k?v:u,o=k?u:v,b.addEventListener("touchmove",c,!1),b.addEventListener("touchend",e,!1))}function c(a){u=a.touches[0].pageX,v=a.touches[0].pageY,r=k?j-v:j-u,t=k?Math.abs(r)<Math.abs(u-o):Math.abs(r)<Math.abs(v-o);var b=500;(!t||Number(new Date)-s>b)&&(a.preventDefault(),!n&&d.transitions&&(d.vars.animationLoop||(r/=0===d.currentSlide&&0>r||d.currentSlide===d.last&&r>0?Math.abs(r)/q+2:1),d.setProps(p+r,"setTouch")))}function e(){if(b.removeEventListener("touchmove",c,!1),d.animatingTo===d.currentSlide&&!t&&null!==r){var a=l?-r:r,f=a>0?d.getTarget("next"):d.getTarget("prev");d.canAdvance(f)&&(Number(new Date)-s<550&&Math.abs(a)>50||Math.abs(a)>q/2)?d.flexAnimate(f,d.vars.pauseOnAction):n||d.flexAnimate(d.currentSlide,d.vars.pauseOnAction,!0)}b.removeEventListener("touchend",e,!1),j=null,o=null,r=null,p=null}function f(a){a.stopPropagation(),d.animating?a.preventDefault():(d.pause(),b._gesture.addPointer(a.pointerId),w=0,q=k?d.h:d.w,s=Number(new Date),p=m&&l&&d.animatingTo===d.last?0:m&&l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:m&&d.currentSlide===d.last?d.limit:m?(d.itemW+d.vars.itemMargin)*d.move*d.currentSlide:l?(d.last-d.currentSlide+d.cloneOffset)*q:(d.currentSlide+d.cloneOffset)*q)}function h(a){a.stopPropagation();var c=a.target._slider;if(c){var d=-a.translationX,e=-a.translationY;return w+=k?e:d,r=w,t=k?Math.abs(w)<Math.abs(-d):Math.abs(w)<Math.abs(-e),a.detail===a.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){b._gesture.stop()}):void((!t||Number(new Date)-s>500)&&(a.preventDefault(),!n&&c.transitions&&(c.vars.animationLoop||(r=w/(0===c.currentSlide&&0>w||c.currentSlide===c.last&&w>0?Math.abs(w)/q+2:1)),c.setProps(p+r,"setTouch"))))}}function i(a){a.stopPropagation();var b=a.target._slider;if(b){if(b.animatingTo===b.currentSlide&&!t&&null!==r){var c=l?-r:r,d=c>0?b.getTarget("next"):b.getTarget("prev");b.canAdvance(d)&&(Number(new Date)-s<550&&Math.abs(c)>50||Math.abs(c)>q/2)?b.flexAnimate(d,b.vars.pauseOnAction):n||b.flexAnimate(b.currentSlide,b.vars.pauseOnAction,!0)}j=null,o=null,r=null,p=null,w=0}}var j,o,p,q,r,s,t=!1,u=0,v=0,w=0;g?(b.style.msTouchAction="none",b._gesture=new MSGesture,b._gesture.target=b,b.addEventListener("MSPointerDown",f,!1),b._slider=d,b.addEventListener("MSGestureChange",h,!1),b.addEventListener("MSGestureEnd",i,!1)):b.addEventListener("touchstart",a,!1)},resize:function(){!d.animating&&d.is(":visible")&&(m||d.doMath(),n?p.smoothHeight():m?(d.slides.width(d.computedW),d.update(d.pagingCount),d.setProps()):k?(d.viewport.height(d.h),d.setProps(d.h,"setTotal")):(d.vars.smoothHeight&&p.smoothHeight(),d.newSlides.width(d.computedW),d.setProps(d.computedW,"setTotal")))},smoothHeight:function(a){if(!k||n){var b=n?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(d.vars.sync).data("flexslider"),e=d.animatingTo;switch(b){case"animate":c.flexAnimate(e,d.vars.pauseOnAction,!1,!0);break;case"play":c.playing||c.asNav||c.play();break;case"pause":c.pause()}},uniqueID:function(b){return b.find("[id]").each(function(){var b=a(this);b.attr("id",b.attr("id")+"_clone")}),b},pauseInvisible:{visProp:null,init:function(){var a=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var b=0;b<a.length;b++)a[b]+"Hidden"in document&&(p.pauseInvisible.visProp=a[b]+"Hidden");if(p.pauseInvisible.visProp){var c=p.pauseInvisible.visProp.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(c,function(){p.pauseInvisible.isHidden()?d.startTimeout?clearTimeout(d.startTimeout):d.pause():d.started?d.play():d.vars.initDelay>0?setTimeout(d.play,d.vars.initDelay):d.play()})}},isHidden:function(){return document[p.pauseInvisible.visProp]||!1}},setToClearWatchedEvent:function(){clearTimeout(e),e=setTimeout(function(){j=""},3e3)}},d.flexAnimate=function(b,c,e,g,i){if(d.vars.animationLoop||b===d.currentSlide||(d.direction=b>d.currentSlide?"next":"prev"),o&&1===d.pagingCount&&(d.direction=d.currentItem<b?"next":"prev"),!d.animating&&(d.canAdvance(b,i)||e)&&d.is(":visible")){if(o&&g){var j=a(d.vars.asNavFor).data("flexslider");if(d.atEnd=0===b||b===d.count-1,j.flexAnimate(b,!0,!1,!0,i),d.direction=d.currentItem<b?"next":"prev",j.direction=d.direction,Math.ceil((b+1)/d.visible)-1===d.currentSlide||0===b)return d.currentItem=b,d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),!1;d.currentItem=b,d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),b=Math.floor(b/d.visible)}if(d.animating=!0,d.animatingTo=b,c&&d.pause(),d.vars.before(d),d.syncExists&&!i&&p.sync("animate"),d.vars.controlNav&&p.controlNav.active(),m||d.slides.removeClass(f+"active-slide").eq(b).addClass(f+"active-slide"),d.atEnd=0===b||b===d.last,d.vars.directionNav&&p.directionNav.update(),b===d.last&&(d.vars.end(d),d.vars.animationLoop||d.pause()),n)h?(d.slides.eq(d.currentSlide).css({opacity:0,zIndex:1}),d.slides.eq(b).css({opacity:1,zIndex:2}),d.wrapup(t)):(d.slides.eq(d.currentSlide).css({zIndex:1}).animate({opacity:0},d.vars.animationSpeed,d.vars.easing),d.slides.eq(b).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing,d.wrapup));else{var q,r,s,t=k?d.slides.filter(":first").height():d.computedW;m?(q=d.vars.itemMargin,s=(d.itemW+q)*d.move*d.animatingTo,r=s>d.limit&&1!==d.visible?d.limit:s):r=0===d.currentSlide&&b===d.count-1&&d.vars.animationLoop&&"next"!==d.direction?l?(d.count+d.cloneOffset)*t:0:d.currentSlide===d.last&&0===b&&d.vars.animationLoop&&"prev"!==d.direction?l?0:(d.count+1)*t:l?(d.count-1-b+d.cloneOffset)*t:(b+d.cloneOffset)*t,d.setProps(r,"",d.vars.animationSpeed),d.transitions?(d.vars.animationLoop&&d.atEnd||(d.animating=!1,d.currentSlide=d.animatingTo),d.container.unbind("webkitTransitionEnd transitionend"),d.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(d.ensureAnimationEnd),d.wrapup(t)}),clearTimeout(d.ensureAnimationEnd),d.ensureAnimationEnd=setTimeout(function(){d.wrapup(t)},d.vars.animationSpeed+100)):d.container.animate(d.args,d.vars.animationSpeed,d.vars.easing,function(){d.wrapup(t)})}d.vars.smoothHeight&&p.smoothHeight(d.vars.animationSpeed)}},d.wrapup=function(a){n||m||(0===d.currentSlide&&d.animatingTo===d.last&&d.vars.animationLoop?d.setProps(a,"jumpEnd"):d.currentSlide===d.last&&0===d.animatingTo&&d.vars.animationLoop&&d.setProps(a,"jumpStart")),d.animating=!1,d.currentSlide=d.animatingTo,d.vars.after(d)},d.animateSlides=function(){!d.animating&&q&&d.flexAnimate(d.getTarget("next"))},d.pause=function(){clearInterval(d.animatedSlides),d.animatedSlides=null,d.playing=!1,d.vars.pausePlay&&p.pausePlay.update("play"),d.syncExists&&p.sync("pause")},d.play=function(){d.playing&&clearInterval(d.animatedSlides),d.animatedSlides=d.animatedSlides||setInterval(d.animateSlides,d.vars.slideshowSpeed),d.started=d.playing=!0,d.vars.pausePlay&&p.pausePlay.update("pause"),d.syncExists&&p.sync("play")},d.stop=function(){d.pause(),d.stopped=!0},d.canAdvance=function(a,b){var c=o?d.pagingCount-1:d.last;return!!b||(!(!o||d.currentItem!==d.count-1||0!==a||"prev"!==d.direction)||(!o||0!==d.currentItem||a!==d.pagingCount-1||"next"===d.direction)&&(!(a===d.currentSlide&&!o)&&(!!d.vars.animationLoop||(!d.atEnd||0!==d.currentSlide||a!==c||"next"===d.direction)&&(!d.atEnd||d.currentSlide!==c||0!==a||"next"!==d.direction))))},d.getTarget=function(a){return d.direction=a,"next"===a?d.currentSlide===d.last?0:d.currentSlide+1:0===d.currentSlide?d.last:d.currentSlide-1},d.setProps=function(a,b,c){var e=function(){var c=a?a:(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo,e=function(){if(m)return"setTouch"===b?a:l&&d.animatingTo===d.last?0:l?d.limit-(d.itemW+d.vars.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c;switch(b){case"setTotal":return l?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return l?a:a;case"jumpEnd":return l?a:d.count*a;case"jumpStart":return l?d.count*a:a;default:return a}}();return-1*e+"px"}();d.transitions&&(e=k?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",c=void 0!==c?c/1e3+"s":"0s",d.container.css("-"+d.pfx+"-transition-duration",c),d.container.css("transition-duration",c)),d.args[d.prop]=e,(d.transitions||void 0===c)&&d.container.css(d.args),d.container.css("transform",e)},d.setup=function(b){if(n)d.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===b&&(h?d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+d.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2}):d.slides.css({opacity:0,display:"block",zIndex:1}).eq(d.currentSlide).css({zIndex:2}).animate({opacity:1},d.vars.animationSpeed,d.vars.easing)),d.vars.smoothHeight&&p.smoothHeight();else{var c,e;"init"===b&&(d.viewport=a('<div class="'+f+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container),d.cloneCount=0,d.cloneOffset=0,l&&(e=a.makeArray(d.slides).reverse(),d.slides=a(e),d.container.empty().append(d.slides))),d.vars.animationLoop&&!m&&(d.cloneCount=2,d.cloneOffset=1,"init"!==b&&d.container.find(".clone").remove(),p.uniqueID(d.slides.first().clone().addClass("clone").attr("aria-hidden","true")).appendTo(d.container),p.uniqueID(d.slides.last().clone().addClass("clone").attr("aria-hidden","true")).prependTo(d.container)),d.newSlides=a(d.vars.selector,d),c=l?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset,k&&!m?(d.container.height(200*(d.count+d.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){d.newSlides.css({display:"block"}),d.doMath(),d.viewport.height(d.h),d.setProps(c*d.h,"init")},"init"===b?100:0)):(d.container.width(200*(d.count+d.cloneCount)+"%"),d.setProps(c*d.computedW,"init"),setTimeout(function(){d.doMath(),d.newSlides.css({width:d.computedW,float:"left",display:"block"}),d.vars.smoothHeight&&p.smoothHeight()},"init"===b?100:0))}m||d.slides.removeClass(f+"active-slide").eq(d.currentSlide).addClass(f+"active-slide"),d.vars.init(d)},d.doMath=function(){var a=d.slides.first(),b=d.vars.itemMargin,c=d.vars.minItems,e=d.vars.maxItems;d.w=void 0===d.viewport?d.width():d.viewport.width(),d.h=a.height(),d.boxPadding=a.outerWidth()-a.width(),m?(d.itemT=d.vars.itemWidth+b,d.minW=c?c*d.itemT:d.w,d.maxW=e?e*d.itemT-b:d.w,d.itemW=d.minW>d.w?(d.w-b*(c-1))/c:d.maxW<d.w?(d.w-b*(e-1))/e:d.vars.itemWidth>d.w?d.w:d.vars.itemWidth,d.visible=Math.floor(d.w/d.itemW),d.move=d.vars.move>0&&d.vars.move<d.visible?d.vars.move:d.visible,d.pagingCount=Math.ceil((d.count-d.visible)/d.move+1),d.last=d.pagingCount-1,d.limit=1===d.pagingCount?0:d.vars.itemWidth>d.w?d.itemW*(d.count-1)+b*(d.count-1):(d.itemW+b)*d.count-d.w-b):(d.itemW=d.w,d.pagingCount=d.count,d.last=d.count-1),d.computedW=d.itemW-d.boxPadding},d.update=function(a,b){d.doMath(),m||(a<d.currentSlide?d.currentSlide+=1:a<=d.currentSlide&&0!==a&&(d.currentSlide-=1),d.animatingTo=d.currentSlide),d.vars.controlNav&&!d.manualControls&&("add"===b&&!m||d.pagingCount>d.controlNav.length?p.controlNav.update("add"):("remove"===b&&!m||d.pagingCount<d.controlNav.length)&&(m&&d.currentSlide>d.last&&(d.currentSlide-=1,d.animatingTo-=1),p.controlNav.update("remove",d.last))),d.vars.directionNav&&p.directionNav.update()},d.addSlide=function(b,c){var e=a(b);d.count+=1,d.last=d.count-1,k&&l?void 0!==c?d.slides.eq(d.count-c).after(e):d.container.prepend(e):void 0!==c?d.slides.eq(c).before(e):d.container.append(e),d.update(c,"add"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.added(d)},d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1,d.last=d.count-1,isNaN(b)?a(b,d.slides).remove():k&&l?d.slides.eq(d.last).remove():d.slides.eq(b).remove(),d.doMath(),d.update(c,"remove"),d.slides=a(d.vars.selector+":not(.clone)",d),d.setup(),d.vars.removed(d)},p.init()},a(window).blur(function(){focused=!1}).focus(function(){focused=!0}),a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},a.fn.flexslider=function(b){if(void 0===b&&(b={}),"object"==typeof b)return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);1===e.length&&b.allowOneSlide===!0||0===e.length?(e.fadeIn(400),b.start&&b.start(c)):void 0===c.data("flexslider")&&new a.flexslider(this,b)});var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"stop":c.stop();break;case"next":c.flexAnimate(c.getTarget("next"),!0);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),!0);break;default:"number"==typeof b&&c.flexAnimate(b,!0)}}}(jQuery),!function(){function a(){}function b(a){return f.retinaImageSuffix+a}function c(a,c){if(this.path=a||"","undefined"!=typeof c&&null!==c)this.at_2x_path=c,this.perform_check=!1;else{if(void 0!==document.createElement){var d=document.createElement("a");d.href=this.path,d.pathname=d.pathname.replace(g,b),this.at_2x_path=d.href}else{var e=this.path.split("?");e[0]=e[0].replace(g,b),this.at_2x_path=e.join("?")}this.perform_check=!0}}function d(a){this.el=a,this.path=new c(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var b=this;this.path.check_2x_variant(function(a){a&&b.swap()})}var e="undefined"==typeof exports?window:exports,f={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0};e.Retina=a,a.configure=function(a){null===a&&(a={});for(var b in a)a.hasOwnProperty(b)&&(f[b]=a[b])},a.init=function(a){null===a&&(a=e);var b=a.onload||function(){};a.onload=function(){var a,c,e=document.getElementsByTagName("img"),f=[];for(a=0;a<e.length;a+=1)c=e[a],c.getAttributeNode("data-no-retina")||f.push(new d(c));b()}},a.isRetina=function(){var a="(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)";return e.devicePixelRatio>1||!(!e.matchMedia||!e.matchMedia(a).matches)};var g=/\.\w+$/;e.RetinaImagePath=c,c.confirmed_paths=[],c.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))},c.prototype.check_2x_variant=function(a){var b,d=this;return this.is_external()?a(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in c.confirmed_paths?a(!0):(b=new XMLHttpRequest,b.open("HEAD",this.at_2x_path),b.onreadystatechange=function(){if(4!==b.readyState)return a(!1);if(b.status>=200&&b.status<=399){if(f.check_mime_type){var e=b.getResponseHeader("Content-Type");if(null===e||!e.match(/^image/i))return a(!1)}return c.confirmed_paths.push(d.at_2x_path),a(!0)}return a(!1)},void b.send()):a(!0)},e.RetinaImage=d,d.prototype.swap=function(a){function b(){c.el.complete?(f.force_original_dimensions&&(c.el.setAttribute("width",c.el.offsetWidth),c.el.setAttribute("height",c.el.offsetHeight)),c.el.setAttribute("src",a)):setTimeout(b,5)}"undefined"==typeof a&&(a=this.path.at_2x_path);var c=this;b()},a.isRetina()&&a.init(e)}(),window.Modernizr=function(a,b,c){function d(a){q.cssText=a}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&q[e]!==c)return"pfx"!=b||e}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+v.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+w.join(d+" ")+d).split(" "),i(e,b,c))}var r,D,F,k="2.8.3",l={},m=!0,n=b.documentElement,o="modernizr",p=b.createElement(o),q=p.style,s={}.toString,t=" -webkit- -moz- -o- -ms- ".split(" "),u="Webkit Moz O ms",v=u.split(" "),w=u.toLowerCase().split(" "),x={svg:"http://www.w3.org/2000/svg"},y={},B=[],C=B.slice,E={}.hasOwnProperty;F=f(E,"undefined")||f(E.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return E.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=C.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(C.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(C.call(arguments)))};return d}),y.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+t.join(c+a)).slice(0,-a.length)),g(q.backgroundImage,"gradient")},y.csstransforms=function(){return!!j("transform")},y.csstransitions=function(){return j("transition")},y.svg=function(){return!!b.createElementNS&&!!b.createElementNS(x.svg,"svg").createSVGRect},y.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==x.svg},y.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(s.call(b.createElementNS(x.svg,"clipPath")))};for(var G in y)F(y,G)&&(D=G.toLowerCase(),l[D]=y[G](),B.push((l[D]?"":"no-")+D));return l.addTest=function(a,b){if("object"==typeof a)for(var d in a)F(a,d)&&l.addTest(d,a[d]);else{if(a=a.toLowerCase(),l[a]!==c)return l;b="function"==typeof b?b():b,"undefined"!=typeof m&&m&&(n.className+=" "+(b?"":"no-")+a),l[a]=b}return l},d(""),p=r=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=q[a[o]];return b||(b={},p++,a[o]=p,q[p]=b),b}function f(a,c,d){if(c||(c=b),r)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():m.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||l.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),r)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;g<i;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return s.shivCSS&&!n&&!d.hasCSS&&(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),r||h(a,d),a}var n,r,j="3.7.0",k=a.html5||{},l=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,m=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o="_html5shiv",p=0,q={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",n="hidden"in a,r=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(a){n=!0,r=!0}}();var s={elements:k.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:j,shivCSS:k.shivCSS!==!1,supportsUnknownElements:r,shivMethods:k.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),l._version=k,l._prefixes=t,l._domPrefixes=w,l._cssomPrefixes=v,l.testProp=function(a){return h([a])},l.testAllProps=j,n.className=n.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(m?" js "+B.join(" "):""),l}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var A,B,l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),
  a}};B=function(a){function b(a){var e,f,g,a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a};for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var c,b=0;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var m,n,h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var l,o,k=b.createElement("script"),e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var j,e=b.createElement("link"),c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function(){var a,b,c,d=function(a,b){return function(){return a.apply(b,arguments)}},e=[].indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(b in this&&this[b]===a)return b;return-1};b=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),c=this.WeakMap||this.MozWeakMap||(c=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),a=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(a=function(){function a(){console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}()),this.WOW=function(){function f(a){null==a&&(a={}),this.scrollCallback=d(this.scrollCallback,this),this.scrollHandler=d(this.scrollHandler,this),this.start=d(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new c}return f.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},f.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start),this.finished=[]},f.prototype.start=function(){var b,c,d,e;if(this.stopped=!1,this.boxes=function(){var a,c,d,e;for(d=this.element.getElementsByClassName(this.config.boxClass),e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.all=function(){var a,c,d,e;for(d=this.boxes,e=[],a=0,c=d.length;c>a;a++)b=d[a],e.push(b);return e}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(e=this.boxes,c=0,d=e.length;d>c;c++)b=e[c],this.applyStyle(b,!0);window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}return this.config.live?new a(function(a){return function(b){var c,d,e,f,g;for(g=[],e=0,f=b.length;f>e;e++)d=b[e],g.push(function(){var a,b,e,f;for(e=d.addedNodes||[],f=[],a=0,b=e.length;b>a;a++)c=e[a],f.push(this.doSync(c));return f}.call(a));return g}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},f.prototype.stop=function(){return this.stopped=!0,window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},f.prototype.sync=function(){return a.notSupported?this.doSync(this.element):void 0},f.prototype.doSync=function(a){var b,c,d,f,g;if(!this.stopped){if(null==a&&(a=this.element),1!==a.nodeType)return;for(a=a.parentNode||a,f=a.getElementsByClassName(this.config.boxClass),g=[],c=0,d=f.length;d>c;c++)b=f[c],e.call(this.all,b)<0?(this.applyStyle(b,!0),this.boxes.push(b),this.all.push(b),g.push(this.scrolled=!0)):g.push(void 0);return g}},f.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},f.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},f.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),f.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},f.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},f.prototype.vendors=["moz","webkit"],f.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},f.prototype.vendorCSS=function(a,b){var c,d,e,f,g,h;for(d=window.getComputedStyle(a),c=d.getPropertyCSSValue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getPropertyCSSValue("-"+e+"-"+b);return c},f.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=window.getComputedStyle(a).getPropertyValue("animation-name")}return"none"===b?"":b},f.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},f.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},f.prototype.scrollHandler=function(){return this.scrolled=!0},f.prototype.scrollCallback=function(){var a;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},f.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},f.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,innerHeight)-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},f.prototype.util=function(){return null!=this._util?this._util:this._util=new b},f.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},f}()}.call(this),"function"!=typeof Object.create&&(Object.create=function(a){function b(){}return b.prototype=a,new b}),function(a,b,c){var d={init:function(b,c){this.$elem=a(c),this.options=a.extend({},a.fn.owlCarousel.options,this.$elem.data(),b),this.userOptions=b,this.loadContent()},loadContent:function(){function b(a){var b,d="";if("function"==typeof c.options.jsonSuccess)c.options.jsonSuccess.apply(this,[a]);else{for(b in a.owl)a.owl.hasOwnProperty(b)&&(d+=a.owl[b].item);c.$elem.html(d)}c.logIn()}var d,c=this;"function"==typeof c.options.beforeInit&&c.options.beforeInit.apply(this,[c.$elem]),"string"==typeof c.options.jsonPath?(d=c.options.jsonPath,a.getJSON(d,b)):c.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style")),this.$elem.data("owl-originalClasses",this.$elem.attr("class")),this.$elem.css({opacity:0}),this.orignalItems=this.options.items,this.checkBrowser(),this.wrapperWidth=0,this.checkVisible=null,this.setVars()},setVars:function(){return 0!==this.$elem.children().length&&(this.baseClass(),this.eventTypes(),this.$userItems=this.$elem.children(),this.itemsAmount=this.$userItems.length,this.wrapItems(),this.$owlItems=this.$elem.find(".owl-item"),this.$owlWrapper=this.$elem.find(".owl-wrapper"),this.playDirection="next",this.prevItem=0,this.prevArr=[0],this.currentItem=0,this.customEvents(),void this.onStartup())},onStartup:function(){this.updateItems(),this.calculateAll(),this.buildControls(),this.updateControls(),this.response(),this.moveEvents(),this.stopOnHover(),this.owlStatus(),!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle),!0===this.options.autoPlay&&(this.options.autoPlay=5e3),this.play(),this.$elem.find(".owl-wrapper").css("display","block"),this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility(),this.onstartup=!1,this.eachMoveUpdate(),"function"==typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad(),!0===this.options.autoHeight&&this.autoHeight(),this.onVisibleItems(),"function"==typeof this.options.afterAction&&this.options.afterAction.apply(this,[this.$elem])},updateVars:function(){"function"==typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]),this.watchVisibility(),this.updateItems(),this.calculateAll(),this.updatePosition(),this.updateControls(),this.eachMoveUpdate(),"function"==typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;b.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;return!1===a.$elem.is(":visible")&&(a.$elem.css({opacity:0}),b.clearInterval(a.autoPlayInterval),b.clearInterval(a.checkVisible),void(a.checkVisible=b.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),b.clearInterval(a.checkVisible))},500)))},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>'),this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">'),this.wrapperOuter=this.$elem.find(".owl-wrapper-outer"),this.$elem.css("display","block")},baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass),b||this.$elem.addClass(this.options.theme)},updateItems:function(){var b,c;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall=!1,this.options.itemsMobile=!1;if(b=a(this.options.responsiveBaseWidth).width(),b>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems),!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),c=0;c<this.options.itemsCustom.length;c+=1)this.options.itemsCustom[c][0]<=b&&(this.options.items=this.options.itemsCustom[c][1]);else b<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]),b<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),b<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),b<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),b<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&&!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var d,e,c=this;return!0===c.options.responsive&&(e=a(b).width(),c.resizer=function(){a(b).width()!==e&&(!1!==c.options.autoPlay&&b.clearInterval(c.autoPlayInterval),b.clearTimeout(d),d=b.setTimeout(function(){e=a(b).width(),c.updateVars()},c.options.responsiveRefreshRate))},void a(b).resize(c.resizer))},updatePosition:function(){this.jumpTo(this.currentItem),!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var b=this,c=0,d=b.itemsAmount-b.options.items;b.$owlItems.each(function(e){var f=a(this);f.css({width:b.itemWidth}).data("owl-item",Number(e)),0!==e%b.options.items&&e!==d||e>d||(c+=1),f.data("owl-roundPages",c)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0}),this.appendItemsSizes()},calculateAll:function(){this.calculateWidth(),this.appendWrapperSizes(),this.loops(),this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);return this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a),a},min:function(){return 0},loops:function(){var d,e,b=0,c=0;for(this.positionsInArray=[0],this.pagesInArray=[],d=0;d<this.itemsAmount;d+=1)c+=this.itemWidth,this.positionsInArray.push(-c),!0===this.options.scrollPerPage&&(e=a(this.$owlItems[d]),e=e.data("owl-roundPages"),e!==b&&(this.pagesInArray[b]=this.positionsInArray[d],b=e))},buildControls:function(){!0!==this.options.navigation&&!0!==this.options.pagination||(this.owlControls=a('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem)),!0===this.options.pagination&&this.buildPagination(),!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var b=this,c=a('<div class="owl-buttons"/>');b.owlControls.append(c),b.buttonPrev=a("<div/>",{class:"owl-prev",html:b.options.navigationText[0]||""}),b.buttonNext=a("<div/>",{class:"owl-next",html:b.options.navigationText[1]||""}),c.append(b.buttonPrev).append(b.buttonNext),c.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()}),c.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(c){c.preventDefault(),a(this).hasClass("owl-next")?b.next():b.prev()})},buildPagination:function(){var b=this;b.paginationWrapper=a('<div class="owl-pagination"/>'),b.owlControls.append(b.paginationWrapper),b.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(c){c.preventDefault(),Number(a(this).data("owl-page"))!==b.currentItem&&b.goTo(Number(a(this).data("owl-page")),!0)})},updatePagination:function(){var b,c,d,e,f,g;if(!1===this.options.pagination)return!1;for(this.paginationWrapper.html(""),b=0,c=this.itemsAmount-this.itemsAmount%this.options.items,e=0;e<this.itemsAmount;e+=1)0===e%this.options.items&&(b+=1,c===e&&(d=this.itemsAmount-this.options.items),f=a("<div/>",{class:"owl-page"}),g=a("<span></span>",{text:!0===this.options.paginationNumbers?b:"",class:!0===this.options.paginationNumbers?"owl-numbers":""}),f.append(g),f.data("owl-page",c===e?d:e),f.data("owl-roundPages",b),this.paginationWrapper.append(f));this.checkPagination()},checkPagination:function(){var b=this;return!1!==b.options.pagination&&void b.paginationWrapper.find(".owl-page").each(function(){a(this).data("owl-roundPages")===a(b.$owlItems[b.currentItem]).data("owl-roundPages")&&(b.paginationWrapper.find(".owl-page").removeClass("active"),a(this).addClass("active"))})},checkNavigation:function(){return!1!==this.options.navigation&&void(!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled"))))},updateControls:function(){this.updatePagination(),this.checkNavigation(),this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1;if(this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1,this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0)){if(!0!==this.options.rewindNav)return this.currentItem=this.maximumItem,!1;this.currentItem=0,a="rewind"}this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;if(this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage?this.options.items:1),0>this.currentItem){if(!0!==this.options.rewindNav)return this.currentItem=0,!1;this.currentItem=this.maximumItem,a="rewind"}this.goTo(this.currentItem,a)},goTo:function(a,c,d){var e=this;return!e.isTransition&&("function"==typeof e.options.beforeMove&&e.options.beforeMove.apply(this,[e.$elem]),a>=e.maximumItem?a=e.maximumItem:0>=a&&(a=0),e.currentItem=e.owl.currentItem=a,!1!==e.options.transitionStyle&&"drag"!==d&&1===e.options.items&&!0===e.browser.support3d?(e.swapSpeed(0),!0===e.browser.support3d?e.transition3d(e.positionsInArray[a]):e.css2slide(e.positionsInArray[a],1),e.afterGo(),e.singleItemTransition(),!1):(a=e.positionsInArray[a],!0===e.browser.support3d?(e.isCss3Finish=!1,!0===c?(e.swapSpeed("paginationSpeed"),b.setTimeout(function(){e.isCss3Finish=!0},e.options.paginationSpeed)):"rewind"===c?(e.swapSpeed(e.options.rewindSpeed),b.setTimeout(function(){e.isCss3Finish=!0},e.options.rewindSpeed)):(e.swapSpeed("slideSpeed"),b.setTimeout(function(){e.isCss3Finish=!0},e.options.slideSpeed)),e.transition3d(a)):!0===c?e.css2slide(a,e.options.paginationSpeed):"rewind"===c?e.css2slide(a,e.options.rewindSpeed):e.css2slide(a,e.options.slideSpeed),void e.afterGo()))},jumpTo:function(a){"function"==typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]),a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0),this.swapSpeed(0),!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1),this.currentItem=this.owl.currentItem=a,this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem),this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2],this.prevArr.shift(0),this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp()),"function"==typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop",b.clearInterval(this.autoPlayInterval)},checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;return a.apStatus="play",!1!==a.options.autoPlay&&(b.clearInterval(a.autoPlayInterval),void(a.autoPlayInterval=b.setInterval(function(){a.next(!0)},a.options.autoPlay)))},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!=typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))},addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var c=this;c.isCssFinish=!1,c.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||c.options.slideSpeed,complete:function(){c.isCssFinish=!0}})},checkBrowser:function(){var a=c.createElement("div");a.style.cssText="  -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)",a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g),this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in b||b.navigator.msMaxTouchPoints}},moveEvents:function(){!1===this.options.mouseDrag&&!1===this.options.touchDrag||(this.gestures(),this.disabledEvents())},eventTypes:function(){var a=["s","e","x"];this.ev_types={},!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]:!1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]),this.ev_types.start=a[0],this.ev_types.move=a[1],this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()}),this.$elem.on("mousedown.disableTextSelect",function(b){return a(b.target).is("input, textarea, select, option")})},gestures:function(){function d(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function e(b){"on"===b?(a(c).on(h.ev_types.move,f),a(c).on(h.ev_types.end,g)):"off"===b&&(a(c).off(h.ev_types.move),a(c).off(h.ev_types.end))}function f(e){e=e.originalEvent||e||b.event,h.newPosX=d(e).x-i.offsetX,h.newPosY=d(e).y-i.offsetY,h.newRelativeX=h.newPosX-i.relativePos,"function"==typeof h.options.startDragging&&!0!==i.dragging&&0!==h.newRelativeX&&(i.dragging=!0,h.options.startDragging.apply(h,[h.$elem])),(8<h.newRelativeX||-8>h.newRelativeX)&&!0===h.browser.isTouch&&(void 0!==e.preventDefault?e.preventDefault():e.returnValue=!1,i.sliding=!0),(10<h.newPosY||-10>h.newPosY)&&!1===i.sliding&&a(c).off("touchmove.owl"),h.newPosX=Math.max(Math.min(h.newPosX,h.newRelativeX/5),h.maximumPixels+h.newRelativeX/5),!0===h.browser.support3d?h.transition3d(h.newPosX):h.css2move(h.newPosX)}function g(c){c=c.originalEvent||c||b.event;var d;c.target=c.target||c.srcElement,i.dragging=!1,!0!==h.browser.isTouch&&h.$owlWrapper.removeClass("grabbing"),h.dragDirection=0>h.newRelativeX?h.owl.dragDirection="left":h.owl.dragDirection="right",0!==h.newRelativeX&&(d=h.getNewPosition(),h.goTo(d,!1,"drag"),i.targetElement===c.target&&!0!==h.browser.isTouch&&(a(c.target).on("click.disable",function(b){b.stopImmediatePropagation(),b.stopPropagation(),b.preventDefault(),a(b.target).off("click.disable")}),c=a._data(c.target,"events").click,d=c.pop(),c.splice(0,0,d))),e("off")}var h=this,i={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};h.isCssFinish=!0,h.$elem.on(h.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||b.event;var f;if(3===c.which)return!1;if(!(h.itemsAmount<=h.options.items)){if(!1===h.isCssFinish&&!h.options.dragBeforeAnimFinish||!1===h.isCss3Finish&&!h.options.dragBeforeAnimFinish)return!1;!1!==h.options.autoPlay&&b.clearInterval(h.autoPlayInterval),!0===h.browser.isTouch||h.$owlWrapper.hasClass("grabbing")||h.$owlWrapper.addClass("grabbing"),h.newPosX=0,h.newRelativeX=0,a(this).css(h.removeTransition()),f=a(this).position(),i.relativePos=f.left,i.offsetX=d(c).x-f.left,i.offsetY=d(c).y-f.top,e("on"),i.sliding=!1,i.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();return a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem=a=0),a},closestItem:function(){var b=this,c=!0===b.options.scrollPerPage?b.pagesInArray:b.positionsInArray,d=b.newPosX,e=null;return a.each(c,function(f,g){d-b.itemWidth/20>c[f+1]&&d-b.itemWidth/20<g&&"left"===b.moveDirection()?(e=g,b.currentItem=!0===b.options.scrollPerPage?a.inArray(e,b.positionsInArray):f):d+b.itemWidth/20<g&&d+b.itemWidth/20>(c[f+1]||c[f]-b.itemWidth)&&"right"===b.moveDirection()&&(!0===b.options.scrollPerPage?(e=c[f+1]||c[c.length-1],b.currentItem=a.inArray(e,b.positionsInArray)):(e=c[f+1],b.currentItem=f+1))}),b.currentItem},moveDirection:function(){var a;return 0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev"),a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()}),a.$elem.on("owl.prev",function(){a.prev()}),a.$elem.on("owl.play",function(b,c){a.options.autoPlay=c,a.play(),a.hoverStatus="play"}),a.$elem.on("owl.stop",function(){a.stop(),a.hoverStatus="stop"}),a.$elem.on("owl.goTo",function(b,c){a.goTo(c)}),a.$elem.on("owl.jumpTo",function(b,c){a.jumpTo(c)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var b,c,d,e,f;if(!1===this.options.lazyLoad)return!1;for(b=0;b<this.itemsAmount;b+=1)c=a(this.$owlItems[b]),"loaded"!==c.data("owl-loaded")&&(d=c.data("owl-item"),e=c.find(".lazyOwl"),"string"!=typeof e.data("src")?c.data("owl-loaded","loaded"):(void 0===c.data("owl-loaded")&&(e.hide(),c.addClass("loading").data("owl-loaded","checked")),(f=!0!==this.options.lazyFollow||d>=this.currentItem)&&d<this.currentItem+this.options.items&&e.length&&this.lazyPreload(c,e)))},lazyPreload:function(a,c){function d(){a.data("owl-loaded","loaded").removeClass("loading"),c.removeAttr("data-src"),"fade"===f.options.lazyEffect?c.fadeIn(400):c.show(),"function"==typeof f.options.afterLazyLoad&&f.options.afterLazyLoad.apply(this,[f.$elem])}function e(){g+=1,f.completeImg(c.get(0))||!0===h?d():100>=g?b.setTimeout(e,100):d()}var h,f=this,g=0;"DIV"===c.prop("tagName")?(c.css("background-image","url("+c.data("src")+")"),h=!0):c[0].src=c.data("src"),e()},autoHeight:function(){function c(){var c=a(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",c+"px"),e.wrapperOuter.hasClass("autoHeight")||b.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function d(){g+=1,e.completeImg(f.get(0))?c():100>=g?b.setTimeout(d,100):e.wrapperOuter.css("height","")}var g,e=this,f=a(e.$owlItems[e.currentItem]).find("img");void 0!==f.get(0)?(g=0,d()):c()},completeImg:function(a){return!(!a.complete||"undefined"!=typeof a.naturalWidth&&0===a.naturalWidth)},onVisibleItems:function(){var b;for(!0===this.options.addClassActive&&this.$owlItems.removeClass("active"),this.visibleItems=[],b=this.currentItem;b<this.currentItem+this.options.items;b+=1)this.visibleItems.push(b),!0===this.options.addClassActive&&a(this.$owlItems[b]).addClass("active");this.owl.visibleItems=this.visibleItems},transitionTypes:function(a){this.outClass="owl-"+a+"-out",this.inClass="owl-"+a+"-in"},singleItemTransition:function(){var a=this,b=a.outClass,c=a.inClass,d=a.$owlItems.eq(a.currentItem),e=a.$owlItems.eq(a.prevItem),f=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem],g=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2;a.isTransition=!0,a.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":g+"px","-moz-perspective-origin":g+"px","perspective-origin":g+"px"}),e.css({position:"relative",left:f+"px"}).addClass(b).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endPrev=!0,e.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"),a.clearTransStyle(e,b)}),d.addClass(c).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endCurrent=!0,d.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend"),a.clearTransStyle(d,c)})},clearTransStyle:function(a,b){a.css({position:"",left:""}).removeClass(b),this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect"),a(c).off(".owl owl"),a(b).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove()),this.clearEvents(),this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop(),b.clearInterval(this.checkVisible),this.unWrap(),this.$elem.removeData()},reinit:function(b){b=a.extend({},this.userOptions,b),this.unWrap(),this.init(b,this.$elem)},addItem:function(a,b){var c;return!!a&&(0===this.$elem.children().length?(this.$elem.append(a),this.setVars(),!1):(this.unWrap(),c=void 0===b||-1===b?-1:b,c>=this.$userItems.length||-1===c?this.$userItems.eq(-1).after(a):this.$userItems.eq(c).before(a),void this.setVars()))},removeItem:function(a){return 0!==this.$elem.children().length&&(a=void 0===a||-1===a?-1:a,this.unWrap(),this.$userItems.eq(a).remove(),void this.setVars())}};a.fn.owlCarousel=function(b){return this.each(function(){if(!0===a(this).data("owl-init"))return!1;a(this).data("owl-init",!0);var c=Object.create(d);c.init(b,this),a.data(this,"owlCarousel",c)})},a.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1e3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1,responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:b,baseClass:"owl-carousel",
  theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}}(jQuery,window,document),!function(a,b){function c(a){return"object"==typeof a}function d(a){return"string"==typeof a}function e(a){return"number"==typeof a}function f(a){return a===b}function g(){M=google.maps,L||(L={verbose:!1,queryLimit:{attempt:5,delay:250,random:250},classes:function(){var b={};return a.each("Map Marker InfoWindow Circle Rectangle OverlayView StreetViewPanorama KmlLayer TrafficLayer BicyclingLayer GroundOverlay StyledMapType ImageMapType".split(" "),function(a,c){b[c]=M[c]}),b}(),map:{mapTypeId:M.MapTypeId.ROADMAP,center:[46.578498,2.457275],zoom:2},overlay:{pane:"floatPane",content:"",offset:{x:0,y:0}},geoloc:{getCurrentPosition:{maximumAge:6e4,timeout:5e3}}})}function h(a,b){return f(a)?"gmap3_"+(b?N+1:++N):a}function i(a){var b,c=M.version.split(".");for(a=a.split("."),b=0;b<c.length;b++)c[b]=parseInt(c[b],10);for(b=0;b<a.length;b++){if(a[b]=parseInt(a[b],10),!c.hasOwnProperty(b))return!1;if(c[b]<a[b])return!1}return!0}function j(b,c,d,e,f){function g(c,e){c&&a.each(c,function(a,c){var g=b,h=c;P(c)&&(g=c[0],h=c[1]),e(d,a,function(a){h.apply(g,[f||d,a,i])})})}var h=c.td||{},i={id:e,data:h.data,tag:h.tag};g(h.events,M.event.addListener),g(h.onces,M.event.addListenerOnce)}function k(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c}function l(a,b){var c,d=arguments;for(c=2;c<d.length;c++)if(b in d[c]&&d[c].hasOwnProperty(b))return void(a[b]=d[c][b])}function m(b,c){var d,e,f=["data","tag","id","events","onces"],g={};if(b.td)for(d in b.td)b.td.hasOwnProperty(d)&&"options"!==d&&"values"!==d&&(g[d]=b.td[d]);for(e=0;e<f.length;e++)l(g,f[e],c,b.td);return g.options=a.extend({},b.opts||{},c.options||{}),g}function n(){if(L.verbose){var a,b=[];if(window.console&&O(console.error)){for(a=0;a<arguments.length;a++)b.push(arguments[a]);console.error.apply(console,b)}else{for(b="",a=0;a<arguments.length;a++)b+=arguments[a].toString()+" ";alert(b)}}}function o(a){return(e(a)||d(a))&&""!==a&&!isNaN(a)}function p(a){var b,d=[];if(!f(a))if(c(a))if(e(a.length))d=a;else for(b in a)d.push(a[b]);else d.push(a);return d}function q(b){return b?O(b)?b:(b=p(b),function(d){var e;if(f(d))return!1;if(c(d)){for(e=0;e<d.length;e++)if(a.inArray(d[e],b)>=0)return!0;return!1}return a.inArray(d,b)>=0}):void 0}function r(a,b,c){var e=b?a:null;return!a||d(a)?e:a.latLng?r(a.latLng):a instanceof M.LatLng?a:o(a.lat)?new M.LatLng(a.lat,a.lng):!c&&P(a)&&o(a[0])&&o(a[1])?new M.LatLng(a[0],a[1]):e}function s(a){var b,c;return!a||a instanceof M.LatLngBounds?a||null:(P(a)?2===a.length?(b=r(a[0]),c=r(a[1])):4===a.length&&(b=r([a[0],a[1]]),c=r([a[2],a[3]])):"ne"in a&&"sw"in a?(b=r(a.ne),c=r(a.sw)):"n"in a&&"e"in a&&"s"in a&&"w"in a&&(b=r([a.n,a.e]),c=r([a.s,a.w])),b&&c?new M.LatLngBounds(c,b):null)}function t(a,b,c,e,f){var g=!!c&&r(e.td,!1,!0),h=g?{latLng:g}:!!e.td.address&&(d(e.td.address)?{address:e.td.address}:e.td.address),i=!!h&&R.get(h),j=this;h?(f=f||0,i?(e.latLng=i.results[0].geometry.location,e.results=i.results,e.status=i.status,b.apply(a,[e])):(h.location&&(h.location=r(h.location)),h.bounds&&(h.bounds=s(h.bounds)),x().geocode(h,function(d,g){g===M.GeocoderStatus.OK?(R.store(h,{results:d,status:g}),e.latLng=d[0].geometry.location,e.results=d,e.status=g,b.apply(a,[e])):g===M.GeocoderStatus.OVER_QUERY_LIMIT&&f<L.queryLimit.attempt?setTimeout(function(){t.apply(j,[a,b,c,e,f+1])},L.queryLimit.delay+Math.floor(Math.random()*L.queryLimit.random)):(n("geocode failed",g,h),e.latLng=e.results=!1,e.status=g,b.apply(a,[e]))}))):(e.latLng=r(e.td,!1,!0),b.apply(a,[e]))}function u(b,c,d,e){function f(){do h++;while(h<b.length&&!("address"in b[h]));return h>=b.length?void d.apply(c,[e]):void t(g,function(c){delete c.td,a.extend(b[h],c),f.apply(g,[])},!0,{td:b[h]})}var g=this,h=-1;f()}function v(a,b,c){var d=!1;navigator&&navigator.geolocation?navigator.geolocation.getCurrentPosition(function(e){d||(d=!0,c.latLng=new M.LatLng(e.coords.latitude,e.coords.longitude),b.apply(a,[c]))},function(){d||(d=!0,c.latLng=!1,b.apply(a,[c]))},c.opts.getCurrentPosition):(c.latLng=!1,b.apply(a,[c]))}function w(a){var b,d=!1;if(c(a)&&a.hasOwnProperty("get")){for(b in a)if("get"!==b)return!1;d=!a.get.hasOwnProperty("callback")}return d}function x(){return Q.geocoder||(Q.geocoder=new M.Geocoder),Q.geocoder}function y(){var a=[];this.get=function(b){if(a.length){var d,e,f,g,h,i=k(b);for(d=0;d<a.length;d++){for(g=a[d],h=i.length===g.keys.length,e=0;e<i.length&&h;e++)f=i[e],h=f in g.request,h&&(h=c(b[f])&&"equals"in b[f]&&O(b[f])?b[f].equals(g.request[f]):b[f]===g.request[f]);if(h)return g.results}}},this.store=function(b,c){a.push({request:b,keys:k(b),results:c})}}function z(){var a=[],b=this;b.empty=function(){return!a.length},b.add=function(b){a.push(b)},b.get=function(){return!!a.length&&a[0]},b.ack=function(){a.shift()}}function A(){function b(a){return{id:a.id,name:a.name,object:a.obj,tag:a.tag,data:a.data}}function c(a){O(a.setMap)&&a.setMap(null),O(a.remove)&&a.remove(),O(a.free)&&a.free(),a=null}var d={},e={},g=this;g.add=function(a,b,c,f){var i=a.td||{},j=h(i.id);return d[b]||(d[b]=[]),j in e&&g.clearById(j),e[j]={obj:c,sub:f,name:b,id:j,tag:i.tag,data:i.data},d[b].push(j),j},g.getById=function(a,c,d){var f=!1;return a in e&&(f=c?e[a].sub:d?b(e[a]):e[a].obj),f},g.get=function(a,c,f,g){var h,i,j=q(f);if(!d[a]||!d[a].length)return null;for(h=d[a].length;h;)if(h--,i=d[a][c?h:d[a].length-h-1],i&&e[i]){if(j&&!j(e[i].tag))continue;return g?b(e[i]):e[i].obj}return null},g.all=function(a,c,g){var h=[],i=q(c),j=function(a){var c,f;for(c=0;c<d[a].length;c++)if(f=d[a][c],f&&e[f]){if(i&&!i(e[f].tag))continue;h.push(g?b(e[f]):e[f].obj)}};if(a in d)j(a);else if(f(a))for(a in d)j(a);return h},g.rm=function(a,b,c){var f,h;if(!d[a])return!1;if(b)if(c)for(f=d[a].length-1;f>=0&&(h=d[a][f],!b(e[h].tag));f--);else for(f=0;f<d[a].length&&(h=d[a][f],!b(e[h].tag));f++);else f=c?d[a].length-1:0;return f in d[a]&&g.clearById(d[a][f],f)},g.clearById=function(a,b){if(a in e){var g,h=e[a].name;for(g=0;f(b)&&g<d[h].length;g++)a===d[h][g]&&(b=g);return c(e[a].obj),e[a].sub&&c(e[a].sub),delete e[a],d[h].splice(b,1),!0}return!1},g.objGetById=function(a){var b,c;if(d.clusterer)for(c in d.clusterer)if((b=e[d.clusterer[c]].obj.getById(a))!==!1)return b;return!1},g.objClearById=function(a){var b;if(d.clusterer)for(b in d.clusterer)if(e[d.clusterer[b]].obj.clearById(a))return!0;return null},g.clear=function(a,b,c,e){var f,h,i,j=q(e);if(a&&a.length)a=p(a);else{a=[];for(f in d)a.push(f)}for(h=0;h<a.length;h++)if(i=a[h],b)g.rm(i,j,!0);else if(c)g.rm(i,j,!1);else for(;g.rm(i,j,!1););},g.objClear=function(b,c,f,g){var h;if(d.clusterer&&(a.inArray("marker",b)>=0||!b.length))for(h in d.clusterer)e[d.clusterer[h]].obj.clear(c,f,g)}}function B(b,c,e){function f(a){var b={};return b[a]={},b}function g(){var a;for(a in e)if(e.hasOwnProperty(a)&&!i.hasOwnProperty(a))return a}var h,i={},j=this,k={latLng:{map:!1,marker:!1,infowindow:!1,circle:!1,overlay:!1,getlatlng:!1,getmaxzoom:!1,getelevation:!1,streetviewpanorama:!1,getaddress:!0},geoloc:{getgeoloc:!0}};d(e)&&(e=f(e)),j.run=function(){for(var d,f;d=g();){if(O(b[d]))return h=d,f=a.extend(!0,{},L[d]||{},e[d].options||{}),void(d in k.latLng?e[d].values?u(e[d].values,b,b[d],{td:e[d],opts:f,session:i}):t(b,b[d],k.latLng[d],{td:e[d],opts:f,session:i}):d in k.geoloc?v(b,b[d],{td:e[d],opts:f,session:i}):b[d].apply(b,[{td:e[d],opts:f,session:i}]));i[d]=null}c.apply(b,[e,i])},j.ack=function(a){i[h]=a,j.run.apply(j,[])}}function C(){return Q.ds||(Q.ds=new M.DirectionsService),Q.ds}function D(){return Q.dms||(Q.dms=new M.DistanceMatrixService),Q.dms}function E(){return Q.mzs||(Q.mzs=new M.MaxZoomService),Q.mzs}function F(){return Q.es||(Q.es=new M.ElevationService),Q.es}function G(a){function b(){var a=this;return a.onAdd=function(){},a.onRemove=function(){},a.draw=function(){},L.classes.OverlayView.apply(a,[])}b.prototype=L.classes.OverlayView.prototype;var c=new b;return c.setMap(a),c}function H(b,d,e){function f(a){H[a]||(delete I[a].options.map,H[a]=new L.classes.Marker(I[a].options),j(b,{td:I[a]},H[a],I[a].id))}function g(){return(s=K.getProjection())?(z=!0,C.push(M.event.addListener(d,"zoom_changed",n)),C.push(M.event.addListener(d,"bounds_changed",n)),void p()):void setTimeout(function(){g.apply(B,[])},25)}function i(a){c(D[a])?(O(D[a].obj.setMap)&&D[a].obj.setMap(null),O(D[a].obj.remove)&&D[a].obj.remove(),O(D[a].shadow.remove)&&D[a].obj.remove(),O(D[a].shadow.setMap)&&D[a].shadow.setMap(null),delete D[a].obj,delete D[a].shadow):H[a]&&H[a].setMap(null),delete D[a]}function k(){var a,b,c,d,e,f,g,h,i=Math.cos,j=Math.sin,k=arguments;return k[0]instanceof M.LatLng?(a=k[0].lat(),c=k[0].lng(),k[1]instanceof M.LatLng?(b=k[1].lat(),d=k[1].lng()):(b=k[1],d=k[2])):(a=k[0],c=k[1],k[2]instanceof M.LatLng?(b=k[2].lat(),d=k[2].lng()):(b=k[2],d=k[3])),e=Math.PI*a/180,f=Math.PI*c/180,g=Math.PI*b/180,h=Math.PI*d/180,6371e3*Math.acos(Math.min(i(e)*i(g)*i(f)*i(h)+i(e)*j(f)*i(g)*j(h)+j(e)*j(g),1))}function l(){var a=k(d.getCenter(),d.getBounds().getNorthEast()),b=new M.Circle({center:d.getCenter(),radius:1.25*a});return b.getBounds()}function m(){var a,b={};for(a in D)b[a]=!0;return b}function n(){clearTimeout(r),r=setTimeout(p,25)}function o(a){var b=s.fromLatLngToDivPixel(a),c=s.fromDivPixelToLatLng(new M.Point(b.x+e.radius,b.y-e.radius)),d=s.fromDivPixelToLatLng(new M.Point(b.x-e.radius,b.y+e.radius));return new M.LatLngBounds(d,c)}function p(){if(!w&&!y&&z){var b,c,f,g,h,j,k,n,p,q,r,s=!1,v=[],B={},C=d.getZoom(),E="maxZoom"in e&&C>e.maxZoom,F=m();for(x=!1,C>3&&(h=l(),s=h.getSouthWest().lng()<h.getNorthEast().lng()),b=0;b<I.length;b++)!I[b]||s&&!h.contains(I[b].options.position)||t&&!t(J[b])||v.push(b);for(;;){for(b=0;B[b]&&b<v.length;)b++;if(b===v.length)break;if(g=[],A&&!E){r=10;do for(n=g,g=[],r--,k=n.length?h.getCenter():I[v[b]].options.position,h=o(k),c=b;c<v.length;c++)B[c]||h.contains(I[v[c]].options.position)&&g.push(c);while(n.length<g.length&&g.length>1&&r)}else for(c=b;c<v.length;c++)if(!B[c]){g.push(c);break}for(j={indexes:[],ref:[]},p=q=0,f=0;f<g.length;f++)B[g[f]]=!0,j.indexes.push(v[g[f]]),j.ref.push(v[g[f]]),p+=I[v[g[f]]].options.position.lat(),q+=I[v[g[f]]].options.position.lng();p/=g.length,q/=g.length,j.latLng=new M.LatLng(p,q),j.ref=j.ref.join("-"),j.ref in F?delete F[j.ref]:(1===g.length&&(D[j.ref]=!0),u(j))}a.each(F,function(a){i(a)}),y=!1}}var r,s,t,u,v,w=!1,x=!1,y=!1,z=!1,A=!0,B=this,C=[],D={},E={},F={},H=[],I=[],J=[],K=G(d,e.radius);g(),B.getById=function(a){return a in E&&(f(E[a]),H[E[a]])},B.rm=function(a){var b=E[a];H[b]&&H[b].setMap(null),delete H[b],H[b]=!1,delete I[b],I[b]=!1,delete J[b],J[b]=!1,delete E[a],delete F[b],x=!0},B.clearById=function(a){return a in E?(B.rm(a),!0):void 0},B.clear=function(a,b,c){var d,e,f,g,h,i=[],j=q(c);for(a?(d=I.length-1,e=-1,f=-1):(d=0,e=I.length,f=1),g=d;g!==e&&(!I[g]||j&&!j(I[g].tag)||(i.push(F[g]),!b&&!a));g+=f);for(h=0;h<i.length;h++)B.rm(i[h])},B.add=function(a,b){a.id=h(a.id),B.clearById(a.id),E[a.id]=H.length,F[H.length]=a.id,H.push(null),I.push(a),J.push(b),x=!0},B.addMarker=function(a,c){c=c||{},c.id=h(c.id),B.clearById(c.id),c.options||(c.options={}),c.options.position=a.getPosition(),j(b,{td:c},a,c.id),E[c.id]=H.length,F[H.length]=c.id,H.push(a),I.push(c),J.push(c.data||{}),x=!0},B.td=function(a){return I[a]},B.value=function(a){return J[a]},B.marker=function(a){return a in H&&(f(a),H[a])},B.markerIsSet=function(a){return Boolean(H[a])},B.setMarker=function(a,b){H[a]=b},B.store=function(a,b,c){D[a.ref]={obj:b,shadow:c}},B.free=function(){var b;for(b=0;b<C.length;b++)M.event.removeListener(C[b]);C=[],a.each(D,function(a){i(a)}),D={},a.each(I,function(a){I[a]=null}),I=[],a.each(H,function(a){H[a]&&(H[a].setMap(null),delete H[a])}),H=[],a.each(J,function(a){delete J[a]}),J=[],E={},F={}},B.filter=function(a){t=a,p()},B.enable=function(a){A!==a&&(A=a,p())},B.display=function(a){u=a},B.error=function(a){v=a},B.beginUpdate=function(){w=!0},B.endUpdate=function(){w=!1,x&&p()},B.autofit=function(a){var b;for(b=0;b<I.length;b++)I[b]&&a.extend(I[b].options.position)}}function I(a,b){var c=this;c.id=function(){return a},c.filter=function(a){b.filter(a)},c.enable=function(){b.enable(!0)},c.disable=function(){b.enable(!1)},c.add=function(a,c,d){d||b.beginUpdate(),b.addMarker(a,c),d||b.endUpdate()},c.getById=function(a){return b.getById(a)},c.clearById=function(a,c){var d;return c||b.beginUpdate(),d=b.clearById(a),c||b.endUpdate(),d},c.clear=function(a,c,d,e){e||b.beginUpdate(),b.clear(a,c,d),e||b.endUpdate()}}function J(b,c,d,e){var f=this,g=[];L.classes.OverlayView.call(f),f.setMap(b),f.onAdd=function(){var b=f.getPanes();c.pane in b&&a(b[c.pane]).append(e),a.each("dblclick click mouseover mousemove mouseout mouseup mousedown".split(" "),function(b,c){g.push(M.event.addDomListener(e[0],c,function(b){a.Event(b).stopPropagation(),M.event.trigger(f,c,[b]),f.draw()}))}),g.push(M.event.addDomListener(e[0],"contextmenu",function(b){a.Event(b).stopPropagation(),M.event.trigger(f,"rightclick",[b]),f.draw()}))},f.getPosition=function(){return d},f.setPosition=function(a){d=a,f.draw()},f.draw=function(){var a=f.getProjection().fromLatLngToDivPixel(d);e.css("left",a.x+c.offset.x+"px").css("top",a.y+c.offset.y+"px")},f.onRemove=function(){var a;for(a=0;a<g.length;a++)M.event.removeListener(g[a]);e.remove()},f.hide=function(){e.hide()},f.show=function(){e.show()},f.toggle=function(){e&&(e.is(":visible")?f.show():f.hide())},f.toggleDOM=function(){f.setMap(f.getMap()?null:b)},f.getDOMElement=function(){return e[0]}}function K(e){function g(){!v&&(v=x.get())&&v.run()}function k(){v=null,x.ack(),g.call(w)}function l(a){var b,c=a.td.callback;c&&(b=Array.prototype.slice.call(arguments,1),O(c)?c.apply(e,b):P(c)&&O(c[1])&&c[1].apply(c[0],b))}function o(a,b,c){c&&j(e,a,b,c),l(a,b),v.ack(b)}function q(b,c){c=c||{};var d=c.td&&c.td.options?c.td.options:0;G?d&&(d.center&&(d.center=r(d.center)),G.setOptions(d)):(d=c.opts||a.extend(!0,{},L.map,d||{}),d.center=b||r(d.center),G=new L.classes.Map(e.get(0),d))}function t(c){var d,f,g=new H(e,G,c),h={},i={},k=[],l=/^[0-9]+$/;for(f in c)l.test(f)?(k.push(1*f),i[f]=c[f],i[f].width=i[f].width||0,i[f].height=i[f].height||0):h[f]=c[f];return k.sort(function(a,b){return a>b}),d=h.calculator?function(b){var c=[];return a.each(b,function(a,b){c.push(g.value(b))}),h.calculator.apply(e,[c])}:function(a){return a.length},g.error(function(){n.apply(w,arguments)}),g.display(function(f){var l,m,n,o,p,q,s=d(f.indexes);if(c.force||s>1)for(l=0;l<k.length;l++)k[l]<=s&&(m=i[k[l]]);m?(p=m.offset||[-m.width/2,-m.height/2],n=a.extend({},h),n.options=a.extend({pane:"overlayLayer",content:m.content?m.content.replace("CLUSTER_COUNT",s):"",offset:{x:("x"in p?p.x:p[0])||0,y:("y"in p?p.y:p[1])||0}},h.options||{}),o=w.overlay({td:n,opts:n.options,latLng:r(f)},!0),n.options.pane="floatShadow",n.options.content=a(document.createElement("div")).width(m.width+"px").height(m.height+"px").css({cursor:"pointer"}),q=w.overlay({td:n,opts:n.options,latLng:r(f)},!0),h.data={latLng:r(f),markers:[]},a.each(f.indexes,function(a,b){h.data.markers.push(g.value(b)),g.markerIsSet(b)&&g.marker(b).setMap(null)}),j(e,{td:h},q,b,{main:o,shadow:q}),g.store(f,o,q)):a.each(f.indexes,function(a,b){g.marker(b).setMap(G)})}),g}function u(b,c,d){var f=[],g="values"in b.td;return g||(b.td.values=[{options:b.opts}]),b.td.values.length?(q(),a.each(b.td.values,function(a,g){var h,i,k,l,n=m(b,g);if(n.options[d])if(n.options[d][0][0]&&P(n.options[d][0][0]))for(i=0;i<n.options[d].length;i++)for(k=0;k<n.options[d][i].length;k++)n.options[d][i][k]=r(n.options[d][i][k]);else for(i=0;i<n.options[d].length;i++)n.options[d][i]=r(n.options[d][i]);n.options.map=G,l=new M[c](n.options),f.push(l),h=y.add({td:n},c.toLowerCase(),l),j(e,{td:n},l,h)}),void o(b,g?f:f[0])):void o(b,!1)}var v,w=this,x=new z,y=new A,G=null;w._plan=function(a){var b;for(b=0;b<a.length;b++)x.add(new B(w,k,a[b]));g()},w.map=function(a){q(a.latLng,a),j(e,a,G),o(a,G)},w.destroy=function(a){y.clear(),e.empty(),G&&(G=null),o(a,!0)},w.overlay=function(b,c){var d=[],f="values"in b.td;return f||(b.td.values=[{latLng:b.latLng,options:b.opts}]),b.td.values.length?(J.__initialised||(J.prototype=new L.classes.OverlayView,J.__initialised=!0),a.each(b.td.values,function(f,g){var h,i,k=m(b,g),l=a(document.createElement("div")).css({border:"none",borderWidth:0,position:"absolute"});l.append(k.options.content),i=new J(G,k.options,r(k)||r(g),l),d.push(i),l=null,c||(h=y.add(b,"overlay",i),j(e,{td:k},i,h))}),c?d[0]:void o(b,f?d:d[0])):void o(b,!1)},w.marker=function(b){var c,d,f,g="values"in b.td,i=!G;return g||(b.opts.position=b.latLng||r(b.opts.position),b.td.values=[{options:b.opts}]),b.td.values.length?(i&&q(),b.td.cluster&&!G.getBounds()?void M.event.addListenerOnce(G,"bounds_changed",function(){w.marker.apply(w,[b])}):void(b.td.cluster?(b.td.cluster instanceof I?(d=b.td.cluster,f=y.getById(d.id(),!0)):(f=t(b.td.cluster),d=new I(h(b.td.id,!0),f),y.add(b,"clusterer",d,f)),f.beginUpdate(),a.each(b.td.values,function(a,c){var d=m(b,c);d.options.position=r(d.options.position?d.options.position:c),d.options.position&&(d.options.map=G,i&&(G.setCenter(d.options.position),i=!1),f.add(d,c))}),f.endUpdate(),o(b,d)):(c=[],a.each(b.td.values,function(a,d){var f,g,h=m(b,d);h.options.position=r(h.options.position?h.options.position:d),h.options.position&&(h.options.map=G,i&&(G.setCenter(h.options.position),i=!1),g=new L.classes.Marker(h.options),c.push(g),f=y.add({td:h},"marker",g),j(e,{td:h},g,f))}),o(b,g?c:c[0])))):void o(b,!1)},w.getroute=function(a){a.opts.origin=r(a.opts.origin,!0),a.opts.destination=r(a.opts.destination,!0),C().route(a.opts,function(b,c){l(a,c===M.DirectionsStatus.OK&&b,c),v.ack()})},w.getdistance=function(a){var b;for(a.opts.origins=p(a.opts.origins),b=0;b<a.opts.origins.length;b++)a.opts.origins[b]=r(a.opts.origins[b],!0);for(a.opts.destinations=p(a.opts.destinations),b=0;b<a.opts.destinations.length;b++)a.opts.destinations[b]=r(a.opts.destinations[b],!0);D().getDistanceMatrix(a.opts,function(b,c){l(a,c===M.DistanceMatrixStatus.OK&&b,c),v.ack()})},w.infowindow=function(c){var d=[],g="values"in c.td;g||(c.latLng&&(c.opts.position=c.latLng),c.td.values=[{options:c.opts}]),a.each(c.td.values,function(a,h){var i,k,l=m(c,h);l.options.position=r(l.options.position?l.options.position:h.latLng),G||q(l.options.position),k=new L.classes.InfoWindow(l.options),k&&(f(l.open)||l.open)&&(g?k.open(G,l.anchor||b):k.open(G,l.anchor||(c.latLng?b:c.session.marker?c.session.marker:b))),d.push(k),i=y.add({td:l},"infowindow",k),j(e,{td:l},k,i)}),o(c,g?d:d[0])},w.circle=function(b){var c=[],d="values"in b.td;return d||(b.opts.center=b.latLng||r(b.opts.center),b.td.values=[{options:b.opts}]),b.td.values.length?(a.each(b.td.values,function(a,d){var f,g,h=m(b,d);h.options.center=r(h.options.center?h.options.center:d),G||q(h.options.center),h.options.map=G,g=new L.classes.Circle(h.options),c.push(g),f=y.add({td:h},"circle",g),j(e,{td:h},g,f)}),void o(b,d?c:c[0])):void o(b,!1)},w.getaddress=function(a){l(a,a.results,a.status),v.ack()},w.getlatlng=function(a){l(a,a.results,a.status),v.ack()},w.getmaxzoom=function(a){E().getMaxZoomAtLatLng(a.latLng,function(b){l(a,b.status===M.MaxZoomStatus.OK&&b.zoom,status),v.ack()})},w.getelevation=function(a){var b,c=[],d=function(b,c){l(a,c===M.ElevationStatus.OK&&b,c),v.ack()};if(a.latLng)c.push(a.latLng);else for(c=p(a.td.locations||[]),b=0;b<c.length;b++)c[b]=r(c[b]);if(c.length)F().getElevationForLocations({locations:c},d);else{if(a.td.path&&a.td.path.length)for(b=0;b<a.td.path.length;b++)c.push(r(a.td.path[b]));c.length?F().getElevationAlongPath({path:c,samples:a.td.samples},d):v.ack()}},w.defaults=function(b){a.each(b.td,function(b,d){L[b]=c(L[b])?a.extend({},L[b],d):d}),v.ack(!0)},w.rectangle=function(b){var c=[],d="values"in b.td;return d||(b.td.values=[{options:b.opts}]),b.td.values.length?(a.each(b.td.values,function(a,d){var f,g,h=m(b,d);h.options.bounds=s(h.options.bounds?h.options.bounds:d),G||q(h.options.bounds.getCenter()),h.options.map=G,g=new L.classes.Rectangle(h.options),c.push(g),f=y.add({td:h},"rectangle",g),j(e,{td:h},g,f)}),void o(b,d?c:c[0])):void o(b,!1)},w.polyline=function(a){u(a,"Polyline","path")},w.polygon=function(a){u(a,"Polygon","paths")},w.trafficlayer=function(a){q();var b=y.get("trafficlayer");b||(b=new L.classes.TrafficLayer,b.setMap(G),y.add(a,"trafficlayer",b)),o(a,b)},w.bicyclinglayer=function(a){q();var b=y.get("bicyclinglayer");b||(b=new L.classes.BicyclingLayer,b.setMap(G),y.add(a,"bicyclinglayer",b)),o(a,b)},w.groundoverlay=function(a){a.opts.bounds=s(a.opts.bounds),a.opts.bounds&&q(a.opts.bounds.getCenter());var b,c=new L.classes.GroundOverlay(a.opts.url,a.opts.bounds,a.opts.opts);c.setMap(G),b=y.add(a,"groundoverlay",c),o(a,c,b)},w.streetviewpanorama=function(b){b.opts.opts||(b.opts.opts={}),b.latLng?b.opts.opts.position=b.latLng:b.opts.opts.position&&(b.opts.opts.position=r(b.opts.opts.position)),b.td.divId?b.opts.container=document.getElementById(b.td.divId):b.opts.container&&(b.opts.container=a(b.opts.container).get(0));var c,d=new L.classes.StreetViewPanorama(b.opts.container,b.opts.opts);d&&G.setStreetView(d),c=y.add(b,"streetviewpanorama",d),o(b,d,c)},w.kmllayer=function(b){var c=[],d="values"in b.td;return d||(b.td.values=[{options:b.opts}]),b.td.values.length?(a.each(b.td.values,function(a,d){var f,g,h,k=m(b,d);G||q(),h=k.options,k.options.opts&&(h=k.options.opts,k.options.url&&(h.url=k.options.url)),h.map=G,g=i("3.10")?new L.classes.KmlLayer(h):new L.classes.KmlLayer(h.url,h),c.push(g),f=y.add({td:k},"kmllayer",g),j(e,{td:k},g,f)}),void o(b,d?c:c[0])):void o(b,!1)},w.panel=function(b){q();var c,d,g=0,h=0,i=a(document.createElement("div"));i.css({position:"absolute",zIndex:1e3,visibility:"hidden"}),b.opts.content&&(d=a(b.opts.content),i.append(d),e.first().prepend(i),f(b.opts.left)?f(b.opts.right)?b.opts.center&&(g=(e.width()-d.width())/2):g=e.width()-d.width()-b.opts.right:g=b.opts.left,f(b.opts.top)?f(b.opts.bottom)?b.opts.middle&&(h=(e.height()-d.height())/2):h=e.height()-d.height()-b.opts.bottom:h=b.opts.top,i.css({top:h,left:g,visibility:"visible"})),c=y.add(b,"panel",i),o(b,i,c),i=null},w.directionsrenderer=function(b){b.opts.map=G;var c,d=new M.DirectionsRenderer(b.opts);b.td.divId?d.setPanel(document.getElementById(b.td.divId)):b.td.container&&d.setPanel(a(b.td.container).get(0)),c=y.add(b,"directionsrenderer",d),o(b,d,c)},w.getgeoloc=function(a){o(a,a.latLng)},w.styledmaptype=function(a){q();var b=new L.classes.StyledMapType(a.td.styles,a.opts);G.mapTypes.set(a.td.id,b),o(a,b)},w.imagemaptype=function(a){q();var b=new L.classes.ImageMapType(a.opts);G.mapTypes.set(a.td.id,b),o(a,b)},w.autofit=function(b){var c=new M.LatLngBounds;a.each(y.all(),function(a,b){b.getPosition?c.extend(b.getPosition()):b.getBounds?(c.extend(b.getBounds().getNorthEast()),c.extend(b.getBounds().getSouthWest())):b.getPaths?b.getPaths().forEach(function(a){a.forEach(function(a){c.extend(a)})}):b.getPath?b.getPath().forEach(function(a){c.extend(a)}):b.getCenter?c.extend(b.getCenter()):"function"==typeof I&&b instanceof I&&(b=y.getById(b.id(),!0),b&&b.autofit(c))}),c.isEmpty()||G.getBounds()&&G.getBounds().equals(c)||("maxZoom"in b.td&&M.event.addListenerOnce(G,"bounds_changed",function(){this.getZoom()>b.td.maxZoom&&this.setZoom(b.td.maxZoom)}),G.fitBounds(c)),o(b,!0)},w.clear=function(b){if(d(b.td)){if(y.clearById(b.td)||y.objClearById(b.td))return void o(b,!0);b.td={name:b.td}}b.td.id?a.each(p(b.td.id),function(a,b){y.clearById(b)||y.objClearById(b)}):(y.clear(p(b.td.name),b.td.last,b.td.first,b.td.tag),y.objClear(p(b.td.name),b.td.last,b.td.first,b.td.tag)),o(b,!0)},w.get=function(c,e,f){var g,h,i=e?c:c.td;return e||(f=i.full),d(i)?(h=y.getById(i,!1,f)||y.objGetById(i),h===!1&&(g=i,i={})):g=i.name,"map"===g&&(h=G),h||(h=[],i.id?(a.each(p(i.id),function(a,b){h.push(y.getById(b,!1,f)||y.objGetById(b))}),P(i.id)||(h=h[0])):(a.each(g?p(g):[b],function(b,c){var d;i.first?(d=y.get(c,!1,i.tag,f),d&&h.push(d)):i.all?a.each(y.all(c,i.tag,f),function(a,b){h.push(b)}):(d=y.get(c,!0,i.tag,f),d&&h.push(d))}),i.all||P(g)||(h=h[0]))),h=P(h)||!i.all?h:[h],e?h:void o(c,h)},w.exec=function(b){a.each(p(b.td.func),function(c,d){a.each(w.get(b.td,!0,!b.td.hasOwnProperty("full")||b.td.full),function(a,b){d.call(e,b)})}),o(b,!0)},w.trigger=function(b){if(d(b.td))M.event.trigger(G,b.td);else{var c=[G,b.td.eventName];b.td.var_args&&a.each(b.td.var_args,function(a,b){c.push(b)}),M.event.trigger.apply(M.event,c)}l(b),v.ack()}}var L,M,N=0,O=a.isFunction,P=a.isArray,Q={},R=new y;a.fn.gmap3=function(){var b,c=[],d=!0,e=[];for(g(),b=0;b<arguments.length;b++)arguments[b]&&c.push(arguments[b]);return c.length||c.push("map"),a.each(this,function(){var b=a(this),f=b.data("gmap3");d=!1,f||(f=new K(b),b.data("gmap3",f)),1!==c.length||"get"!==c[0]&&!w(c[0])?f._plan(c):e.push("get"===c[0]?f.get("map",!0):f.get(c[0].get,!0,c[0].get.full))}),e.length?1===e.length?e[0]:e:this}}(jQuery),function(a,b,c){"use strict";var l,d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var c,b=d.documentElement.style;if("string"==typeof b[a])return a;a=f(a);for(var e=0,h=g.length;e<h;e++)if(c=g[e]+a,"string"==typeof b[c])return c},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("<style>"+d+"{#modernizr{height:3px}}</style>").appendTo("head"),f=b('<div id="modernizr" />').appendTo("html");a=3===f.height(),f.remove(),e.remove()}return a},csstransitions:function(){return!!j}};if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var n,m=" ";for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var g,j,e=b.data(a,"isoTransform")||{},f={},h={};f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[j],r=h("transitionDuration"));var u,s=b.event,t=b.event.handle?"handle":"dispatch";s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",u&&clearTimeout(u),u=setTimeout(function(){s[t].apply(c,d)},"execAsap"===b?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var v=["width","height"],w=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=v.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;f<g;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&w.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return c=c.filter(function(a,b){return 1===b.nodeType}),this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var b,a=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");switch(a){case"css":case"none":b=!1;break;case"jquery":b=!0;break;default:b=!e.csstransitions}this.isUsingJQueryAnimation=b,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsingJQueryAnimation;a||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=a?this._translate:this._positionAbs},_filter:function(a){var b=""===this.options.filter?"*":this.options.filter;if(!b)return a;var c=this.options.hiddenClass,d="."+c,e=a.filter(d),f=e;if("*"!==b){f=e.filter(b);var g=a.not(d).not(b).addClass(c);this.styleQueue.push({$el:g,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(c),a.filter(b)},updateSortData:function(a,c){var f,g,d=this,e=this.options.getSortData;a.each(function(){f=b(this),g={};for(var a in e)c||"original-order"!==a?g[a]=e[a](f,d):g[a]=b.data(this,"isotope-sort-data")[a];b.data(this,"isotope-sort-data",g)})},_sort:function(){var a=this.options.sortBy,b=this._getSorter,c=this.options.sortAscending?1:-1,d=function(d,e){var f=b(d,a),g=b(e,a);return f===g&&"original-order"!==a&&(f=b(d,"original-order"),g=b(e,"original-order")),(f>g?1:f<g?-1:0)*c};this.$filteredAtoms.sort(d)},_getSorter:function(a,c){return b.data(a,"isotope-sort-data")[c]},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=Math.round(b+this.offset.left),c=Math.round(c+this.offset.top);var d=this.getPositionStyles(b,c);this.styleQueue.push({$el:a,style:d}),this.options.itemPositionDataEnabled&&a.data("isotope-item-position",{x:b,y:c})},layout:function(a,b){var c=this.options.layoutMode;if(this["_"+c+"Layout"](a),this.options.resizesContainer){var d=this["_"+c+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:d})}this._processStyleQueue(a,b),this.isLaidOut=!0},_processStyleQueue:function(a,c){
  var h,i,j,k,d=this.isLaidOut&&this.isUsingJQueryAnimation?"animate":"css",f=this.options.animationOptions,g=this.options.onLayout;if(i=function(a,b){b.$el[d](b.style,f)},this._isInserting&&this.isUsingJQueryAnimation)i=function(a,b){h=b.$el.hasClass("no-transition")?"css":d,b.$el[h](b.style,f)};else if(c||g||f.complete){var l=!1,m=[c,g,f.complete],n=this;if(j=!0,k=function(){if(!l){for(var b,c=0,d=m.length;c<d;c++)b=m[c],"function"==typeof b&&b.call(n.element,a,n);l=!0}},this.isUsingJQueryAnimation&&"animate"===d)f.complete=k,j=!1;else if(e.csstransitions){for(var t,o=0,p=this.styleQueue[0],s=p&&p.$el;!s||!s.length;){if(t=this.styleQueue[o++],!t)return;s=t.$el}var u=parseFloat(getComputedStyle(s[0])[r]);u>0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){this.$allAtoms=this.$allAtoms.not(a),this.$filteredAtoms=this.$filteredAtoms.not(a);var c=this,d=function(){a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),w.unbind(".isotope")},_getSegments:function(a){var h,b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;for(this.masonry.colYs=[];a--;)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);if(e=Math.min(e,d.cols),1===e)c._masonryPlaceBrick(a,d.colYs);else{var h,i,f=d.cols+1-e,g=[];for(i=0;i<f;i++)h=d.colYs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryPlaceBrick(a,g)}})},_masonryPlaceBrick:function(a,b){for(var c=Math.min.apply(Math,b),d=0,e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=this.masonry.columnWidth*d,h=c;this._pushPosition(a,g,h);var i=c+a.outerHeight(!0),j=this.masonry.cols+1-f;for(e=0;e<j;e++)this.masonry.colYs[d+e]=i},_masonryGetContainerSize:function(){var a=Math.max.apply(Math,this.masonry.colYs);return{height:a}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(a){var c=this,d=this.element.width(),e=this.fitRows;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);0!==e.x&&f+e.x>d&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];a--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);if(e=Math.min(e,d.rows),1===e)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var h,i,f=d.rows+1-e,g=[];for(i=0;i<f;i++)h=d.rowXs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryHorizontalPlaceBrick(a,g)}})},_masonryHorizontalPlaceBrick:function(a,b){for(var c=Math.min.apply(Math,b),d=0,e=0,f=b.length;e<f;e++)if(b[e]===c){d=e;break}var g=c,h=this.masonryHorizontal.rowHeight*d;this._pushPosition(a,g,h);var i=c+a.outerWidth(!0),j=this.masonryHorizontal.rows+1-f;for(e=0;e<j;e++)this.masonryHorizontal.rowXs[d+e]=i},_masonryHorizontalGetContainerSize:function(){var a=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:a}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(a){var c=this,d=this.element.height(),e=this.fitColumns;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);0!==e.y&&g+e.y>d&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function c(){a.call(e,f)}function d(a){var e=a.target;e.src!==h&&b.inArray(e,i)===-1&&(i.push(e),--g<=0&&(setTimeout(c),f.unbind(".imagesLoaded",d)))}var e=this,f=e.find("img").add(e.filter("img")),g=f.length,h="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",i=[];return g||c(),f.bind("load.imagesLoaded error.imagesLoaded",d).each(function(){var a=this.src;this.src=h,this.src=a}),e};var x=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if("string"==typeof a){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");return c?b.isFunction(c[a])&&"_"!==a.charAt(0)?void c[a].apply(c,d):void x("no such method '"+a+"' for isotope instance"):void x("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'")})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}}(window,jQuery),function(a,b,c,d){"use strict";var e=function(){var a=c.body||c.documentElement,a=a.style;return""==a.WebkitTransition?"-webkit-":""==a.MozTransition?"-moz-":""==a.OTransition?"-o-":""==a.transition&&""},f=e()!==!1,g=function(a,b,c){var d={},f=e();d[f+"transform"]="translateX("+b+")",d[f+"transition"]=f+"transform "+c+"s linear",a.css(d)},h="ontouchstart"in b,i=b.navigator.pointerEnabled||b.navigator.msPointerEnabled,j=function(a){if(h)return!0;if(!i||"undefined"==typeof a||"undefined"==typeof a.pointerType)return!1;if("undefined"!=typeof a.MSPOINTER_TYPE_MOUSE){if(a.MSPOINTER_TYPE_MOUSE!=a.pointerType)return!0}else if("mouse"!=a.pointerType)return!0;return!1};a.fn.imageLightbox=function(d){var d=a.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:!0,enableKeyboard:!0,quitOnEnd:!1,quitOnImgClick:!1,quitOnDocClick:!0,onStart:!1,onEnd:!1,onLoadStart:!1,onLoadEnd:!1},d),e=a([]),k=a(),l=a(),m=0,n=0,o=0,p=!1,q=function(b){return"a"==a(b).prop("tagName").toLowerCase()&&new RegExp(".("+d.allowedTypes+")$","i").test(a(b).attr("href"))},r=function(){if(!l.length)return!0;var c=.8*a(b).width(),d=.9*a(b).height(),e=new Image;e.src=l.attr("src"),e.onload=function(){if(m=e.width,n=e.height,m>c||n>d){var f=m/n>c/d?m/c:n/d;m/=f,n/=f}l.css({width:m+"px",height:n+"px",top:(a(b).height()-n)/2+"px",left:(a(b).width()-m)/2+"px"})}},s=function(b){if(p)return!1;if(b="undefined"!=typeof b&&("left"==b?1:-1),l.length){if(b!==!1&&(e.length<2||d.quitOnEnd===!0&&(b===-1&&0==e.index(k)||1===b&&e.index(k)==e.length-1)))return u(),!1;var c={opacity:0};f?g(l,100*b-o+"px",d.animationSpeed/1e3):c.left=parseInt(l.css("left"))+100*b+"px",l.animate(c,d.animationSpeed,function(){t()}),o=0}p=!0,d.onLoadStart!==!1&&d.onLoadStart(),setTimeout(function(){l=a("<img "+d.selector+" />").attr("src",k.attr("href")).load(function(){l.appendTo("body"),r();var c={opacity:1};if(l.css("opacity",0),f)g(l,-100*b+"px",0),setTimeout(function(){g(l,"0px",d.animationSpeed/1e3)},50);else{var h=parseInt(l.css("left"));c.left=h+"px",l.css("left",h-100*b+"px")}if(l.animate(c,d.animationSpeed,function(){p=!1,d.onLoadEnd!==!1&&d.onLoadEnd()}),d.preloadNext){var i=e.eq(e.index(k)+1);i.length||(i=e.eq(0)),a("<img />").attr("src",i.attr("href")).load()}}).error(function(){d.onLoadEnd!==!1&&d.onLoadEnd()});var c=0,h=0,n=0;l.on(i?"pointerup MSPointerUp":"click",function(a){if(a.preventDefault(),d.quitOnImgClick)return u(),!1;if(j(a.originalEvent))return!0;var b=(a.pageX||a.originalEvent.pageX)-a.target.offsetLeft;k=e.eq(e.index(k)-(m/2>b?1:-1)),k.length||(k=e.eq(m/2>b?e.length:0)),s(m/2>b?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(a){return!(j(a.originalEvent)&&!d.quitOnImgClick)||(f&&(n=parseInt(l.css("left"))),void(c=a.originalEvent.pageX||a.originalEvent.touches[0].pageX))}).on("touchmove pointermove MSPointerMove",function(a){return!(j(a.originalEvent)&&!d.quitOnImgClick)||(a.preventDefault(),h=a.originalEvent.pageX||a.originalEvent.touches[0].pageX,o=c-h,void(f?g(l,-o+"px",0):l.css("left",n-o+"px")))}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(a){return!(j(a.originalEvent)&&!d.quitOnImgClick)||void(Math.abs(o)>50?(k=e.eq(e.index(k)-(o<0?1:-1)),k.length||(k=e.eq(o<0?e.length:0)),s(o>0?"right":"left")):f?g(l,"0px",d.animationSpeed/1e3):l.animate({left:n+"px"},d.animationSpeed/2))})},d.animationSpeed+100)},t=function(){return!!l.length&&(l.remove(),void(l=a()))},u=function(){return!!l.length&&void l.animate({opacity:0},d.animationSpeed,function(){t(),p=!1,d.onEnd!==!1&&d.onEnd()})};return a(b).on("resize",r),d.quitOnDocClick&&a(c).on(h?"touchend":"click",function(b){l.length&&!a(b.target).is(l)&&u()}),d.enableKeyboard&&a(c).on("keyup",function(a){return!l.length||(a.preventDefault(),27==a.keyCode&&u(),void(37!=a.keyCode&&39!=a.keyCode||(k=e.eq(e.index(k)-(37==a.keyCode?1:-1)),k.length||(k=e.eq(37==a.keyCode?e.length:0)),s(37==a.keyCode?"left":"right"))))}),a(c).on("click",this.selector,function(b){return!q(this)||(b.preventDefault(),!p&&(p=!1,d.onStart!==!1&&d.onStart(),k=a(this),void s()))}),this.each(function(){return!q(this)||void(e=e.add(a(this)))}),this.switchImageLightbox=function(a){var b=e.eq(a);if(b.length){var c=e.index(k);k=b,s(a<c?"left":"right")}return this},this.quitImageLightbox=function(){return u(),this},this}}(jQuery,window,document);