(function($){function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}function pad(str,max){str=str.toString();return str.length<max?pad("0"+str,max):str}jQuery.fn.extend({changeText:function changeText(text){return this.each(function(){var $el=$(this);if($el.text()!==text){$el.animate({opacity:0},200);setTimeout(function(){$el.text(text);$el.animate({opacity:1},200)},200)}})},changeTextUI:function changeTextUI(text,animation,speed){if(typeof animation==="undefined"){var animation="fade"}if(typeof speed==="undefined"){var speed=400}return this.each(function(){var $el=$(this);var animation_map={fade:{name:"fade",show_attr:{},hide_attr:{}},counter:{name:"slide",show_attr:{direction:"down"},hide_attr:{direction:"up"}},slide_left:{name:"drop",show_attr:{direction:"left"},hide_attr:{direction:"right"}},drop_up:{name:"drop",show_attr:{direction:"up"},hide_attr:{direction:"down"}}};if($el.text()!==text){$el.hide(animation_map[animation].name,animation_map[animation].show_attr,speed/2);setTimeout(function(){$el.text(text);$el.show(animation_map[animation].name,animation_map[animation].hide_attr,speed/2)},speed/2)}})},changeCSS:function changeCSS(property,value){return this.each(function(){var $el=$(this);if($el.css(property)!==value){$el.animate({opacity:0},200);setTimeout(function(){$el.css(property,value);$el.animate({opacity:1},200)},200)}})}});function is_color_bright(color){if(color&&color.length==7&&color[0]=="#"){var c=color;var c=c.substring(1);var rgb=parseInt(c,16);var r=rgb>>16&255;var g=rgb>>8&255;var b=rgb>>0&255;var luma=0.2126*r+0.7152*g+0.0722*b;return luma>40}else{console.log("Color Brightness: Invalid Color String");return 0}}function hex2rgba(hex,alpha){if(!HEX_REGEX.test(hex)){throw Error("hex2rgba: first argument has invalid hexadecimal characters")}if(hex[0]==="#"){hex=hex.slice(1)}if(hex.length===HEX_SHORTHAND_LENGTH){hex=hex.split("");hex.splice(2,0,hex[2]);hex.splice(1,0,hex[1]);hex.splice(0,0,hex[0]);hex=hex.join("")}if(hex.length!==HEX_LENGTH){throw Error("hex2rgba: first argument has invalid hexadecimal length")}var values=[parseInt(hex.slice(0,2),BASE),parseInt(hex.slice(2,4),BASE),parseInt(hex.slice(4,6),BASE)];alpha=typeof alpha==="number"?alpha:parseFloat(alpha);if(alpha>=0&&alpha<=1){values.push(alpha)}else{values.push(1)}return"rgba("+values.join(",")+")"}function b_hex2rgba(hex,opacity){hex=hex.replace("#","");var r=parseInt(hex.substring(0,2),16);var g=parseInt(hex.substring(2,4),16);var b=parseInt(hex.substring(4,6),16);var result="rgba("+r+","+g+","+b+","+opacity/100+")";return result}$(function(){$(document).foundation();$("[data-onready]").each(function(){window[$(this).attr("data-onready")](this)});$(window).on("startViewportChecker",function(){$([".layout-sections--scroll-normal .flo-block",".flo_page > .flo-block:not(:first-of-type):not(.disable-appear)",".flo-footer",".to-appear",".to-appear--custom",".flo-post.with-appear > *",".widget"].join(",")).viewportChecker({classToAdd:"visible",repeat:true,offset:40,invertBottomOffset:false})}).trigger("startViewportChecker");$("input, textarea").on("verifyValue",function(){if($(this).val()==""){$(this).addClass("empty")}else{$(this).removeClass("empty")}});$("input, textarea").trigger("verifyValue");$("input, textarea").on("keyup change",function(){$(this).trigger("verifyValue")});(function(){var is_mobile_screen,is_tablet_screen,mobile_cookie_name="flo_small_screen",tablet_cookie_name="flo_tablet_screen",mobile_cookie=floGetCookie(mobile_cookie_name),tablet_cookie=floGetCookie(tablet_cookie_name),set_mobile=function set_mobile(value){createCookie(mobile_cookie_name,value,1)},set_tablet=function set_tablet(value){createCookie(tablet_cookie_name,value,1)},is_mobile_screen=document.documentElement.clientWidth<=760;is_tablet_screen=document.documentElement.clientWidth>=761&&document.documentElement.clientWidth<=1024;if(is_mobile_screen){if(mobile_cookie===""||mobile_cookie=="0"){set_mobile(1);set_tablet(0)}}else{if(is_tablet_screen){if(tablet_cookie===""||tablet_cookie=="0"){set_mobile(0);set_tablet(1)}}else{if(tablet_cookie=="1"||mobile_cookie=="1"){set_mobile(0);set_tablet(0)}}}if(document.cookie.indexOf("flo_device_pixel_ratio")==-1&&"devicePixelRatio" in window&&window.devicePixelRatio==2&&!is_mobile_screen){var date=new Date();date.setTime(date.getTime()+3600000);document.cookie="flo_device_pixel_ratio="+window.devicePixelRatio+"; expires="+date.toUTCString()+"; path=/"}else{if(document.cookie.indexOf("flo_device_pixel_ratio")!=-1&&floGetCookie("flo_device_pixel_ratio")!=window.devicePixelRatio){var dateO=new Date();dateO.setTime(dateO.getTime()-3600000);document.cookie="flo_device_pixel_ratio="+window.devicePixelRatio+"; expires="+dateO.toUTCString()+"; path=/"}}})()});function createCookie(name,value,days){var expires="";if(days){var date=new Date();date.setTime(date.getTime()+days*24*60*60*1000);expires="; expires="+date.toGMTString()}document.cookie=name+"="+value+expires+"; path=/"}function floGetCookie(cname){var name=cname+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" "){c=c.substring(1)}if(c.indexOf(name)===0){return c.substring(name.length,c.length)}}return""}window.widget_newsletter_signup=function(){var $form=$(".widget__flo-form--newsletter");if($form.length){$form.parsley();var embed_code=unescape($form.parent().find(".embed_code").text()),$embed_code=$("<div>").html(embed_code);if(typeof $embed_code.find("form").attr("action")!=="undefined"){var embed_form_action=$embed_code.find("form").attr("action").replace(/\\"/g,"");$form.attr("action",embed_form_action)}else{console.log("The mailchimp code is incorect");$form.find(".widget__flo-form--newsletter__form-submit").css("pointer-events","none")}}};window.image_lazyload=function(imageSelector){var cb=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var lazyloadImages;if("IntersectionObserver" in window){lazyloadImages=document.querySelectorAll(imageSelector);var callback=function callback(entries,observer){entries.forEach(function(entry){if(entry.intersectionRatio>0){var image=entry.target;image.classList.add("loaded");image.src=image.dataset.src;image.removeAttribute("data-src");if(image.dataset.srcset){image.srcset=image.dataset.srcset;image.removeAttribute("data-srcset")}imageObserver.unobserve(image);if(cb){cb(image)}}})};var imageObserver=new IntersectionObserver(callback);lazyloadImages.forEach(function(image){imageObserver.observe(image)})}else{var lazyload=function lazyload(){if(lazyloadThrottleTimeout){clearTimeout(lazyloadThrottleTimeout)}lazyloadThrottleTimeout=setTimeout(function(){var scrollTop=window.pageYOffset;lazyloadImages.forEach(function(image){if(image.offsetTop<window.innerHeight+scrollTop){image.src=image.dataset.src;image.removeAttribute("data-src");if(image.dataset.srcset){image.srcset=image.dataset.srcset;image.removeAttribute("data-srcset")}image.classList.add("loaded");if(cb){cb(image)}}});if(lazyloadImages.length==0){document.removeEventListener("scroll",lazyload);window.removeEventListener("resize",lazyload);window.removeEventListener("orientationChange",lazyload)}},20)};var lazyloadThrottleTimeout;lazyloadImages=document.querySelectorAll(imageSelector);document.addEventListener("scroll",lazyload);window.addEventListener("resize",lazyload);window.addEventListener("orientationChange",lazyload)}};window.floLazy=function(targets){var callback=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var $imgs=$(targets);$imgs.on("load",function(e){e.currentTarget.style.opacity=1;e.currentTarget.style.filter="blur(0px)";if(callback){callback()}});$imgs.viewportChecker({classToAdd:"loaded",offset:"-30%",invertBottomOffset:true,repeat:false,callbackFunction:function callbackFunction($image){if($image.length){var image=$image[0];if(image.hasAttribute("data-src")){image.src=image.dataset.src;image.removeAttribute("data-src")}if(image.hasAttribute("data-srcset")){image.srcset=image.dataset.srcset;image.removeAttribute("data-srcset")}}}})};$(function(){$([".comments-block__top-bar-hide-button",".comments-block__top-bar-show-button",".comments-block__top-bar-toggle-button"].join(", ")).click(function(){$(".comments-block").toggleClass("comments-block--expanded").toggleClass("comments-block--collapsed");$(".comments-block__posts").slideToggle()})});if($(".flo-block--merged-with-header").length){$("body header").first().remove()}$(function(){$(".page").on("submit",".flo-form__built-in",function(e){e.preventDefault();var form=$(this),container=".contact-response";jQuery(".flo-name").removeClass("invalid");jQuery(".flo-email").removeClass("invalid");jQuery(container).html("");jQuery.ajax({url:ajaxurl,data:"&action=floSendContact&"+jQuery(form).serialize(),type:"POST",dataType:"json",success:function success(json){if(json.contact_name){jQuery(".flo-name").addClass("invalid");jQuery(container).append(json.contact_name)}if(json.contact_email){jQuery(".flo-email").addClass("invalid");jQuery(container).append(json.contact_email)}if(json.error_message){jQuery(container).append(json.error_message)}if(json.message){jQuery(".flo-modal").fadeIn("slow");jQuery(form).find('input[type="text"], textarea').val("");setTimeout(function(){jQuery(".flo-modal").fadeOut("slow")},3000)}}})})});window.flo_share_rollover=function(el){var $el=$(el);var $b=".flo-share-rollover";$el.find($b+"__trigger").click(function(){$el.toggleClass("visible")})};$(function(){$(".flo-video-embed").each(function(){var video_embed=$(this);var video_embed__loaded_class="flo-video-embed--loaded";var video_screen=video_embed.find(".flo-video-embed__screen");var video_screen__embed_code=video_screen.attr("data-flo-video-embed-embed-code");var video_button=video_embed.find(".flo-video-embed__video-button");var video_start=function video_start(){video_screen.html(video_screen__embed_code);video_embed.addClass(video_embed__loaded_class)};var video_stop=function video_stop(){video_embed.removeClass(video_embed__loaded_class);video_screen.html("")};video_button.on("click",function(e){e.preventDefault();switch(video_embed.hasClass(video_embed__loaded_class)){case false:video_start();break;case true:video_stop();break}});video_embed.on("floVideoEmbedStop",function(){video_stop()})})});window.flo_mobile_category_switcher=function(el){var $el=$(el);var b="flo-block-category-switcher-1";var dotb="."+b;$el.find(dotb+"__layout--dropdown").click(function(){if($(window).width()<768){$el.find(dotb+"__layout--dropdown").toggleClass("expanded")}})};window.flo_block_contact_block_1=function(el){var $el=$(el);var b="flo-block-contact-block-1";var dotb="."+b;var $b=$el.find(dotb);var $form_wrap=$el.find(dotb+"__form-wrap");$el.find(dotb+"__scroll-down").click(function(){$("html, body").animate({scrollTop:$form_wrap.offset().top})});if(!$(dotb).hasClass(b+"--no-scroll-effect")){$(window).on("scroll",function(){if($(window).scrollTop()>$(window).height()){$(dotb+"__desktop-wrap").addClass("invisible")}else{$(dotb+"__desktop-wrap").removeClass("invisible")}})}};window.flo_faq_2=function(el){var $el=$(el);var b="flo-block-faq-block-2";var dotb="."+b;var parent=$el.parents(".flo-block");var slider=$el.find(dotb+"__faq-slider");var arrow_left=$el.find(dotb+"__arrow--left");var arrow_right=$el.find(dotb+"__arrow--right");if($(window).width()<=767){$el.find(".mobile-image-disabled").remove()}slider.on("init beforeChange",function(e,slick,currentSlide,nextSlide){var $this=$(this);var index;if(e.type=="init"){index=parseInt($this.find(".slick-current").attr("data-slick-index"))+1}else{index=parseInt($this.find(".slick-slide[data-slick-index="+nextSlide+"]").attr("data-slick-index"))+1}$el.find(dotb+"__current-item-number").changeTextUI(pad(index,2),"counter")}).on("init",function(){$el.find(dotb+"__total-item-number").text(pad($el.find(".slick-slide:not(.slick-cloned)").length,2))}).slick({arrows:false,slidesToShow:1,responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:true,dots:false,variableWidth:false}}]});arrow_left.click(function(){slider.slick("slickPrev")});arrow_right.click(function(){slider.slick("slickNext")})};window.flo_block_gallery_view_1=function(el){var $el=$(el);var b="flo-block-gallery-view-1";var dotb="."+b;var parent=$el.parents(".flo-block");var $b=$el.find(dotb);$el.find(dotb+"__images").on("beforeChange click",function(){$b.addClass(b+"--is-focused")});$(window).on("scroll",function(){$b.removeClass(b+"--is-focused")});if($(window).width()<768){$el.find(dotb+"__image").first().on("load",function(){$(window).trigger("resize");$el.find(dotb).css("opacity","1")})}$el.find(dotb+"__images").on("init",function(){var $this=$(this);var count=$this.find(".slick-slide:not(.slick-cloned)").length;$el.find(dotb+"__counter-count").html(pad(count,2))}).on("init afterChange",function(){var $this=$(this);var index=parseInt($this.find(".slick-current").attr("data-slick-index"))+1;$el.find(dotb+"__counter-index").changeTextUI(pad(index,2),"counter")});if($b.hasClass(b+"--gallery-view-layout-a")){$el.find(dotb+"__images").slick({variableWidth:false,arrows:false,centerMode:true,slidesToShow:1,lazyLoad:"progressive",responsive:[{breakpoint:"767",settings:{variableWidth:false,centerMode:false,lazyLoad:"progressive",adaptiveHeight:true}}]})}if($b.hasClass(b+"--gallery-view-layout-b")){$el.find(dotb+"__images").slick({variableWidth:true,arrows:false,centerMode:true,lazyLoad:"progressive",responsive:[{breakpoint:"767",settings:{variableWidth:false,lazyLoad:"progressive",centerMode:false,adaptiveHeight:true}}]})}$el.find(dotb+"__arrow--prev").on("click",function(){$el.find(dotb+"__images").slick("slickPrev")});$el.find(dotb+"__arrow--next").on("click",function(){$el.find(dotb+"__images").slick("slickNext")});if($b.hasClass(b+"--stuck-to-top")&&$(window).width()>767){$el.find(dotb+"__content").sticky()}};window.flo_block_gallery_view_2=function(el){var $el=$(el);var b="flo-block-gallery-view-2";var dotb="."+b;var $b=$el.find(dotb);function do_masonry(){$b.masonry({columnWidth:".grid-sizer",percentPosition:true})}$(window).on("resize",function(){return do_masonry()});window.image_lazyload(dotb+"__image-thumb");$el.find(dotb+"__image-thumb").on("load",function(e){return do_masonry()});$el.find(dotb+"__image").fancybox({loop:true})};window.flo_block_gallery_view_3=function(el){var $el=$(el);var b="flo-block-gallery-view-3";var dotb="."+b;var $b=$el.find(dotb);if(window.innerWidth>=768){$el.find(dotb+"__text-area").stick_in_parent({offset_top:$(".flo-header--sticky").length?100:0})}function isInViewport(element){var rect=element.getBoundingClientRect();var html=document.documentElement;var offset=800;return rect.top>=0&&rect.left>=0&&rect.bottom<=(window.innerHeight+offset||html.clientHeight+offset)&&rect.right<=(window.innerWidth||html.clientWidth)}$(document).imagesLoaded(function(){$el.find(dotb+"__image:not([src])").each(function(){var image=$(this);$(window).on("scroll",function(){if(isInViewport(image[0])){image.attr("src",image.attr("data-src"));image.removeAttr("data-src");image.attr("srcset",image.attr("data-srcset"));image.removeAttr("data-srcset")}})})})};window.flo_block_image_block_2=function(el){var $el=$(el);var b="flo-block-image-block-2";var dotb="."+b;if($(dotb).hasClass(b+"__mobile-text-bottom")||$(dotb).hasClass(b+"__mobile-text-top")){if($(window).width()>=768){$el.find(dotb+"__mobile-img-wrap").remove()}if($(window).width()<=767){$el.find(dotb+"__image").remove()}}};window.flo_image_links_3=function(el){var $el=$(el);var b="flo-block-image-links-3";var dotb="."+b;var parent=$el.parents(".flo-block");var slider=$el.find(dotb+"__image-links-slider");var arrow_left=$el.find(dotb+"__arrow--left");var arrow_right=$el.find(dotb+"__arrow--right");slider.slick({arrows:false,slidesToShow:1,fade:true,responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:true,dots:false,variableWidth:false}}]});arrow_left.click(function(){slider.slick("slickPrev")});arrow_right.click(function(){slider.slick("slickNext")})};window.flo_block_intro_block=function(el){var $el=$(el);var b="flo-block-intro-block";var dotb="."+b;$(window).scroll(function(){$el.find(dotb+"__text-area").addClass(b+"__text-area--visible")});$el.find(dotb+"__scroll-down").click(function(){$("html, body").animate({scrollTop:eval($(dotb+"__image-area").offset().top-200)},600)})};window.flo_block_listing_3=function(el){var b="flo-block-listing-3";var dotb="."+b;window.floLazy("".concat(dotb,"__featured-image"))};window.flo_block_listing_2=function(el){var b="flo-block-listing-2";var dotb="."+b;window.floLazy("".concat(dotb,"__featured-image-cropped"))};window.flo_block_listing_4=function(el){var $el=$(el);var b="flo-block-listing-4";var dotb="."+b;var parent=$el.parents(".flo-block");var $b=$el.find(dotb);if($(window).width()>=768){var do_sizing=function do_sizing(){var items=$el.find(dotb+"__item");items.each(function(){var width=$(this).width();$(this).css("height",width)})};setTimeout(function(){do_sizing()},10);$(window).on("resize",function(){do_sizing()})}window.floLazy("".concat(dotb,"__featured-image"))};window.flo_block_listing_5=function(el){var $el=$(el);var b="flo-block-listing-5";var dotb="."+b;var parent=$el.parents(".flo-block");var $b=$el.find(dotb);if($(window).width()>=768&&!$b.hasClass(b+"--masonry")){var do_sizing=function do_sizing(){var items=$el.find(dotb+"__featured-image");items.each(function(){var width=$(this).width();$(this).css("height",width)})};setTimeout(function(){do_sizing()},10);$(window).on("resize",function(){do_sizing()})}if($(window).width()>=768&&$b.hasClass(b+"--masonry")){var do_masonry=function do_masonry(){$b.masonry({columnWidth:".grid-sizer",percentPosition:true})};setTimeout(function(){do_masonry()},10);$el.find(dotb+"__featured-image").load(function(){do_masonry()});$(window).on("resize",function(){do_masonry()})}window.floLazy("".concat(dotb,"__featured-image"))};window.flo_block_listing_pagination_2=function(el){var $el=$(el);var b="flo-block-listing-pagination-2";var dotb="."+b;var $button=$el.find(dotb+"__button");var listing_selector,$listing,grid_sizer,$grid_sizer;if((typeof ajax_listing_selector==="undefined"?"undefined":_typeof(ajax_listing_selector))&&ajax_listing_selector.length){listing_selector="."+ajax_listing_selector;$listing=$(listing_selector);if(ajax_listing_selector=="flo-block-listing-5"){$grid_sizer=$listing}else{$grid_sizer=$listing.find(listing_selector+"__grid-sizer")}}$button.on("click",function(){$button.text($button.data("loading-text"));var scrollTop=$(window).scrollTop();var nextPageUrl=$(this).attr("data-next-href");fetch(nextPageUrl).then(function(response){response.text().then(function(data){var $new_page=$(data);var $new_listing=$new_page.find(listing_selector);var $new_data_next_href=$new_page.find(dotb+"__button").attr("data-next-href");var next_page_items;next_page_items=$($new_listing.find(listing_selector+"__item"));next_page_items.css("opacity",0);function reinit_masonry(){if($grid_sizer.length&&$(window).width()>767){var tempHeight=$listing.height();$listing.css("min-height",tempHeight);$listing.masonry("destroy");$listing.masonry();$listing.css("min-height","")}$listing.find(next_page_items).animate({opacity:1},350)}$listing.append(next_page_items);window.floLazy(listing_selector+" img");$listing.imagesLoaded(function(){$(window).trigger("resize");reinit_masonry()});if($new_data_next_href){$button.attr("data-next-href",$new_data_next_href);setTimeout(function(){$button.text($button.data("default-text"))},50)}else{$button.parents(".flo-block").fadeOut()}})})})};window.flo_block_mosaic_image_links_1=function(el){var $el=$(el);var b="flo-block-mosaic-image-links-1";var dotb="."+b;window.floLazy("".concat(dotb," img"))};window.newsletter_block_1=function(){var $form=$(".flo-form--newsletter");if($form.length){$form.parsley();var embed_code=unescape($form.parent().find(".embed_code").text()),$embed_code=$("<div>").html(embed_code);if(typeof $embed_code.find("form").attr("action")!=="undefined"){var embed_form_action=$embed_code.find("form").attr("action").replace(/\\"/g,"");$form.attr("action",embed_form_action)}else{console.log("The mailchimp code is incorect")}}};window.flo_numeric_details=function(el){var $el=$(el);var b="flo-block-numeric-details";var dotb="."+b;var willAnimate=$el.find(dotb).attr("data-animnum");if(willAnimate){var animTargets=$el.find("".concat(dotb,"__numeric-detail-number"));if(animTargets&&animTargets.length){var delayVal=0;var animDuration=$el.find(dotb).attr("data-anim-ms");$(window).on("startViewportChecker",function(){animTargets.viewportChecker({classToAdd:"counted",repeat:false,offset:100,invertBottomOffset:false,callbackFunction:function callbackFunction(number,action){setTimeout(function(){number.delay(delayVal).animateNumber({number:parseInt(number.attr("data-num"))},parseInt(animDuration),"linear",function(){if(number.hasClass("".concat(b,"__plus-will-show"))){number.addClass("".concat(b,"__plus-shown"))}},delayVal+=150)})}})}).trigger("startViewportChecker")}}};window.newsletter_block_2=function(){var $form=$(".flo-form--newsletter");if($form.length){$form.parsley();var embed_code=unescape($form.parent().find(".embed_code").text()),$embed_code=$("<div>").html(embed_code);if(typeof $embed_code.find("form").attr("action")!=="undefined"){var embed_form_action=$embed_code.find("form").attr("action").replace(/\\"/g,"");$form.attr("action",embed_form_action)}else{console.log("The mailchimp code is incorect")}}};window.flo_block_numeric_details=function(el){var $el=$(el);var b="flo-block-press";var dotb="."+b;var elements=$(dotb+"__slides").attr("data-elements");elements=parseInt(elements);$el.find(dotb+"__slides").slick({dots:false,infinite:true,slidesToShow:elements,slidesToScroll:1,adaptiveHeight:false,lazyLoad:"ondemand",centerMode:true,variableWidth:false,nextArrow:$el.find(dotb+"__arrow--next"),prevArrow:$el.find(dotb+"__arrow--prev"),responsive:[{breakpoint:768,settings:{slidesToShow:1,slidesToScroll:1,infinite:true}}]})};window.flo_block_slideshow_1=function(el){var $el=$(el);var b="flo-block-slideshow-1";var dotb="."+b;$el.find(dotb+"__slides").on("init",function(){if($el.find(dotb+"__slides .slick-slide:not(.slick-cloned)").length<=1){$el.find(dotb+"__arrow").remove()}else{$el.find(dotb+"__arrow--prev").click(function(){$el.find(dotb+"__slides").slick("slickPrev")});$el.find(dotb+"__arrow--next").click(function(){$el.find(dotb+"__slides").slick("slickNext")})}}).on("elementsColorLight",function(){$el.find(".flo-header__logo").addClass("flo-header__logo--is-light");if($(window).width()<768){setTimeout(function(){$el.find(".flo-header-mobile__logo").addClass("flo-header-mobile__logo--light")})}}).on("elementsColorDark",function(){$el.find(".flo-header__logo").removeClass("flo-header__logo--is-light");if($(window).width()<768){$el.find(".flo-header-mobile__logo").removeClass("flo-header-mobile__logo--light")}}).on("init",function(){var $this=$(this);var count=$this.find(".slick-slide:not(.slick-cloned)").length;$el.find(dotb+"__counter-count").html(pad(count,2))}).on("init afterChange",function(){var $this=$(this);var index=parseInt($this.find(".slick-current").attr("data-slick-index"))+1;window.floLazy("".concat(dotb,'__slide[data-slick-index="0"] .flo-generic-slides__slide-img--bgi'));window.floLazy("".concat(dotb,'__slide[data-slick-index="1"] .flo-generic-slides__slide-img--bgi'));$el.find(dotb+"__counter-index").changeTextUI(pad(index,2),"counter")}).on("init beforeChange",function(e,slick,currentSlide,nextSlide,prevSlide){var $slick=$(this);var current_slide;if(e.type=="beforeChange"){current_slide=$slick.find(".slick-slide[data-slick-index='"+nextSlide+"']")}else{if(e.type=="init"){current_slide=$slick.find(".slick-current")}}var new_title=current_slide.attr("data-title");var new_text=current_slide.attr("data-text");var new_button=current_slide.attr("data-url");var new_bottom_label=current_slide.attr("data-bottom-label");var title_area__title=$el.find(dotb+"__title");var title_area__text=$el.find(dotb+"__text");var title_area__button=$el.find(dotb+"__button");var title_area__bottom_label=$el.find(dotb+"__bottom-label");var overlay_color=current_slide.attr("data-overlay-color");var overlay_opacity=current_slide.attr("data-overlay-opacity");window.floLazy("".concat(dotb,'__slide[data-slick-index="').concat(nextSlide,'"] .flo-generic-slides__slide-img--bgi'));window.floLazy("".concat(dotb,'__slide[data-slick-index="').concat(nextSlide+1,'"] .flo-generic-slides__slide-img--bgi'));window.floLazy("".concat(dotb,'__slide[data-slick-index="').concat(prevSlide,'"] .flo-generic-slides__slide-img--bgi'));window.floLazy("".concat(dotb,"__slide.slick-cloned .flo-generic-slides__slide-img--bgi"));if(new_title.trim()!==""){title_area__title.fadeIn().changeText(new_title)}else{title_area__title.fadeOut()}if(new_text.trim()!==""){title_area__text.fadeIn().changeText(new_text)}else{title_area__text.fadeOut()}if(title_area__button.length){if(new_button.trim()!==""){title_area__button.fadeIn().attr("href",new_button)}else{title_area__button.fadeOut()}}if(new_bottom_label.trim()!==""){title_area__bottom_label.fadeIn().html(new_bottom_label)}else{title_area__bottom_label.fadeOut()}if((new_title.trim()!==""||new_text.trim()!==""||new_bottom_label.trim()!=="")&&overlay_color.trim()!==""&&overlay_opacity.trim()!==""){$el.find(dotb+"__content-wrap").css("background-color","rgba("+b_hex2rgba(overlay_color,overlay_opacity)+")")}else{$el.find(dotb+"__content-wrap").css("background-color","")}}).trigger("floInit")};window.flo_block_slideshow_2=function(el){var $el=$(el);var b="flo-block-slideshow-2";var dotb="."+b;var $variableWidth=true;var $adaptiveHeight=false;var $centerMode=true;if($el.find(dotb).hasClass(b+"__height-auto")){$variableWidth=false;$adaptiveHeight=true;$centerMode=false}$el.find(dotb+"__slides").on("init",function(){if($el.find(dotb+"__slides .slick-slide:not(.slick-cloned)").length<=1){$el.find(dotb+"__arrows").remove()}else{$el.find(dotb+"__arrow--prev").on("click",function(){$el.find(dotb+"__slides").slick("slickPrev")});$el.find(dotb+"__arrow--next").on("click",function(){$el.find(dotb+"__slides").slick("slickNext")})}}).on("init",function(){setTimeout(function(){$el.find(dotb+"__dots button").each(function(){$(this).text(pad($(this).text(),2))})},10)}).trigger("floInit",{dots:true,appendDots:$el.find(dotb+"__dots"),centerMode:true,variableWidth:true,responsive:[{breakpoint:"767",settings:{variableWidth:$variableWidth,centerMode:$centerMode,adaptiveHeight:$adaptiveHeight}}]})};window.flo_testimonials_1=function(el){var $el=$(el);var b="flo-block-testimonials-1";var dotb="."+b;var parent=$el.parents(".flo-block");var slider=$el.find(dotb+"__testimonials-slider");var arrow_left=$el.find(dotb+"__arrow--left");var arrow_right=$el.find(dotb+"__arrow--right");window.floLazy("".concat(dotb,"__testimonial-image"));slider.slick({arrows:false,slidesToShow:1,fade:true,responsive:[{breakpoint:767,settings:{slidesToShow:1,slidesToScroll:1,infinite:true,dots:false,variableWidth:false}}]});arrow_left.click(function(){slider.slick("slickPrev")});arrow_right.click(function(){slider.slick("slickNext")})};window.flo_comments=function(el){var $el=$(el);var b="flo-comments";var dotb="."+b;var parent=$el.parents(".flo-block");if(window.innerWidth>=767){$el.find(dotb+"__form-wrap").stick_in_parent({offset_top:150})}};window.flo_footer_area_1_type_d=function(el){var $el=$(el);var b="flo-footer-area-1-type-d";var dotb="."+b;var footer_images=$("".concat(dotb,"__images"));var footer_link=$("".concat(dotb,"__link"));if($(window).width()>=768){footer_images.append(footer_link)}};window.flo_footer_copyrights_area=function(el){var $el=$(el);var b="flo-footer-copyrights-area";var dotb="."+b;$el.find(dotb+"__back-to-top").click(function(){$("html, body").animate({scrollTop:"0"})})};window.footer_miniblock_signup=function(){var $form=$(".flo-form--newsletter");if($form.length){$form.parsley();var embed_code=unescape($form.parent().find(".embed_code").text()),$embed_code=$("<div>").html(embed_code);if(typeof $embed_code.find("form").attr("action")!=="undefined"){var embed_form_action=$embed_code.find("form").attr("action").replace(/\\"/g,"");$form.attr("action",embed_form_action)}else{console.log("The mailchimp code is incorect")}}};$(function(){$(".flo-generic-fancybox-video").fancybox({iframe:{preload:false}})});$(document).on("floInit",".flo-generic-slides",function(e,slickAdditionalOptions){var $el=$(this);var b="flo-generic-slides";var dotb="."+b;var parent=$el.parents(".flo-block");var slickOptions={dots:"false",arrows:"false",cssEase:"ease-in-out"};for(var attrname in slickAdditionalOptions){slickOptions[attrname]=slickAdditionalOptions[attrname]}$el.on("init reInit afterChange",function(){$el.find(dotb+"__slide--video_slide:not(.slick-current)").find("video").each(function(){this.pause()});var active_slide__$=$el.find(".slick-current");if(active_slide__$.hasClass(b+"__slide--video_slide")){var video_container=active_slide__$.find(dotb+"__slide-background-video");var video=video_container.find("video")[0];video.play()}}).on("init",function(){var $slides=$(this);$el.find("."+b+"__slide--image_and_video_embed").each(function(){var active_slide__$=$(this);var video_embed_host=parent;var video_button=active_slide__$.find(".flo-hero-video-embed__button");var video_container=active_slide__$.find(".flo-hero-video-embed__container");var embed_code=active_slide__$.attr("data-embed-code");video_button.on("click",function(){if(!video_embed_host.hasClass("video-is-playing")){video_container.html(unescape(embed_code));video_embed_host.addClass("video-is-playing");if($(window).width()>768){$slides.slick("slickSetOption","autoplay",false,true)}}else{if(video_embed_host.hasClass("video-is-playing")){video_container.html("");video_embed_host.removeClass("video-is-playing");var autoplay=$slides.attr("data-autoplay")=="true"?true:false;$slides.slick("slickSetOption","autoplay",autoplay,true)}}})})}).on("beforeChange",function(){var active_slide__$=$(this).find(".slick-current");var video_embed_host=parent;if(video_embed_host.hasClass("video-is-playing")){active_slide__$.find(".flo-hero-video-embed__button").click()}}).on("init afterChange",function(){var $this=$(this);var $currentSlide=$this.find(".slick-current");var elements_color=$currentSlide.attr("data-elements-color");var color_brightness=is_color_bright(elements_color);if(color_brightness){parent.find(dotb+"__logo").addClass(b+"__logo--light");parent.find(".flo-header__logo").addClass("flo-header__logo--light");setTimeout(function(){parent.find(".is-main .flo-header-mobile__logo").addClass("flo-header-mobile__logo--light")})}else{parent.find(dotb+"__logo").removeClass(b+"__logo--light");parent.find(".flo-header__logo").removeClass("flo-header__logo--light");setTimeout(function(){parent.find(".is-main .flo-header-mobile__logo").removeClass("flo-header-mobile__logo--light")})}}).on("init afterChange",function(){var $this=$(this);var $currentSlide=$this.find(".slick-current");var elements_color=$currentSlide.attr("data-elements-color");var color_brightness=is_color_bright(elements_color);if(color_brightness){$this.trigger("elementsColorLight",elements_color)}else{$this.trigger("elementsColorDark",elements_color)}}).slick(slickOptions)});$(function(){var header_mobile=$(".flo-header-mobile");$(".flo-header-mobile").appendTo(".flo-block:first header");$(".flo-header-mobile").css("visibility","visible");$(".flo-header-mobile").first().addClass("not-sticky");$(".flo-header-mobile.sticky").first().on("sticky-end",function(){$(this).addClass("not-sticky");setTimeout(function(){$(this).sticky("update")},400)}).on("sticky-start",function(){$(this).removeClass("not-sticky")}).sticky({zIndex:1000,className:"is-sticky",wrapperClassName:"flo-header-mobile-sticky-wrapper"})});window.flo_mobile_menu=function(el){var $el=$(el);var b="flo-mobile-menu";var dotb="."+b;var opened_class="body--flo-mobile-menu-popup-opened";var closed_class="body--flo-mobile-menu-popup-closed";var type_b_layout="body--flo-mobile-menu-popup-type-b";$(".flo-header-mobile__menu-trigger").on("click",function(){$("body").addClass(opened_class).removeClass(closed_class);if($el.hasClass(b+"__popup-type-b")){$("body").addClass(type_b_layout);$(".flo_page_wrap").css("height","100vh");setTimeout(function(){$(".flo_page_wrap").css({position:"fixed",width:"100vw"})},500)}});$el.find(dotb+"__close").on("click",function(){$("body").removeClass(opened_class).addClass(closed_class);if($el.hasClass(b+"__popup-type-b")){$("body").removeClass(type_b_layout);$(".flo_page_wrap").css("height","100vh");setTimeout(function(){$(".flo_page_wrap").css({position:"",width:""});$(".flo_page_wrap").css("max-height","")},500);$(".flo_page_wrap").css("position","")}});$el.find(dotb+"__menu > li.menu-item-has-children > a").append("<span class='flo-mobile-menu__menu-dropdown-toggle'><i class='flo-icon-right-dir'></i></span>");$el.on("click",dotb+"__menu-dropdown-toggle",function(e){e.preventDefault();$(this).parents("li").toggleClass("children-visible");$(this).parent().siblings(".sub-menu").slideToggle("slow")})};window.flo_block_topbar=function(el){var $el=$(el);var b=el.children[0].querySelector("div").classList[0];var dotb="."+b;var closeTrigger=$el.find(dotb+"__close");var leCookie=floGetCookie("topbar_dismissed");if(!leCookie&&$el.find(dotb).css("display")=="none"){$el.find(dotb).slideDown("fast");closeTrigger.on("click",function(event){createCookie("topbar_dismissed",true,5);$el.find(dotb).slideUp("500",function(){return $el.remove()})})}else{$el.remove()}};window.flo_header_type_j=function(el){var $el=$(el);var b="flo-header";var dotb="."+b;var parent=$el.parents(".flo-block");var $b=$el.find(dotb);$el.find(dotb+"__popup-menu-trigger").click(function(){$el.find(dotb+"__popup-menu-wrap").toggleClass(b+"__popup-menu-wrap--open")})};window.flo_header_block=function(el){var header=$(el);var flo_header__class="flo-header";var $flo_header=$("."+flo_header__class);var $header=$(header).find($flo_header);var is_not_sticky_class="is-not-sticky";var header_sticky_class="is-sticky";$($header).addClass(is_not_sticky_class);if($(header).hasClass("flo-header--sticky")&&window.innerWidth>768){$($header).first().on("sticky-start",function(){$(this).removeClass(is_not_sticky_class);header.addClass(header_sticky_class)}).on("sticky-end",function(){$(this).addClass(is_not_sticky_class);header.removeClass(header_sticky_class);setTimeout(function(){$(this).sticky("update")},600)}).sticky({zIndex:9999,className:"is-sticky"})}if(window.outerWidth>=768){var dropdown_elements=new Foundation.DropdownMenu($(".menu-item-has-children ul"))}if($(".flo-header__menu-donor").length){if($(".menu-item").hasClass("wpml-ls-item")&&$(".flo-header").hasClass("flo-header--type-c")&&$(window).width()>=768){var wpml_menu_items=$(".flo-header__menu-items .wpml-ls-item");var wpml_container=document.createElement("ul");wpml_container.className="flo-header--wpml-elements";$.each(wpml_menu_items,function(index,el){wpml_menu_items=this;$(wpml_menu_items).appendTo(wpml_container)});$(wpml_container).appendTo(".flo-header--type-c")}var $menu_donor=$(header).find(".flo-header__menu-donor"),$menu_donor_ul=$menu_donor.find("> div > ul"),$menu_donor_first_level=$menu_donor_ul.children("li"),$menu_left=$(header).find(".flo-header__menu--left > div > ul"),$menu_right=$(header).find(".flo-header__menu--right > div > ul"),$search_form=$menu_donor.find("div[class*='__search-wrap']");$menu_donor_first_level.each(function(index){var $item=$(this),length=$menu_donor_first_level.length;if(index<length/2){$menu_left.append($item)}if(index>=length/2){$menu_right.append($item)}if($search_form.length){$menu_right.append($search_form)}if(index==length-1){$menu_donor.remove()}})}$(".flo-header__search-trigger").click(function(){$(this).parents(".flo-header__search-wrap").toggleClass("flo-header__search-wrap--open")});$(".flo-block > .flo-block__container > header").parents(".flo-block").css("z-index","101")};$(".flo-reveal").each(function(){var reveal=this;var $reveal=$(reveal);var id=$reveal.attr("id");var validation=reveal.hasAttribute("id")&&reveal.hasAttribute("data-flo-reveal");if(validation){var overlay__styles=[reveal.hasAttribute("data-overlay-color")?"background-color: "+$reveal.attr("data-overlay-color")+";":"",reveal.hasAttribute("data-overlay-opacity")?"opacity: "+$reveal.attr("data-overlay-opacity")+";":""].join("");overlay__styles=overlay__styles!=""?" style='"+overlay__styles+"' ":"";$reveal.before("<div class='flo-reveal-overlay'"+overlay__styles+" id='"+id+"'></div>");var overlay__return=function overlay__return(){return $("#"+id+".flo-reveal-overlay")};$reveal.on("flo-reveal__close",function(){var $overlay=overlay__return();$reveal.removeClass("flo-reveal--visible");$overlay.removeClass("flo-reveal-overlay--visible");$("body").css("overflow","")});$("[data-open='"+id+"']").on("click",function(){var $overlay=overlay__return();var trigger=$(this);var trigger__position_on_screen=trigger.offset().left<=window.innerWidth/2?"left":"right";$reveal.removeClass("flo-reveal--ready");$reveal.attr("data-initial-position",trigger__position_on_screen);$("body").css("overflow","hidden");setTimeout(function(){$reveal.addClass("flo-reveal--ready")});setTimeout(function(){$reveal.addClass("flo-reveal--visible");$overlay.addClass("flo-reveal-overlay--visible")})});$reveal.find("[data-close]").on("click",function(){$reveal.trigger("flo-reveal__close")});$(document).on("keyup",function(e){if(e.keyCode==27){$reveal.trigger("flo-reveal__close")}});overlay__return().on("click",function(e){$reveal.trigger("flo-reveal__close")})}});var splash__show=function splash__show(){var splashScreen=$(".flo-splash");Foundation.Motion.animateIn(splashScreen,"fade-in")};var splash__hide=function splash__hide(){var splashScreen=$(".flo-splash");Foundation.Motion.animateOut(splashScreen,"fade-out")};window.onload=function(){var splashScreen=$(".flo-splash");splashScreen.css("opacity","0");setTimeout(function(){splash__hide;splashScreen.hide()},400)};window.flo_slideshow=function(el){var $el=$(el);var b="flo-slideshow";var dotb="."+b;var parent=$el.parents(".flo-block");if($el.find(dotb+"__slides "+dotb+"__slide:not(.slick-cloned)").length==1){$(dotb).addClass(b+"--one-slide")}if(window.innerWidth>1024){$(dotb+"__title-area").add(".flo-hero-video-embed__button").add(".flo-slideshow__featured-link").mouseenter(function(){$(el).find(dotb+"__slide.slick-current").addClass("gradient-visible")}).mouseleave(function(){$(el).find(dotb+"__slide.slick-current").removeClass("gradient-visible")})}};window.flo_slideshow__layout__type_a=function(el){var $el=$(el);var b="flo-slideshow";var dotb="."+b;var parent=$el.parents(".flo-block");$el.find([".flo-hero-video-embed__button",dotb+"__title-area"].join(",")).mouseenter(function(){$el.find(dotb+"__arrow-next").addClass("vertical")}).mouseleave(function(){$el.find(dotb+"__arrow-next").removeClass("vertical")});$el.find(dotb+"__slides").on("mousemove",function(e){if(window.innerWidth>=768){var x=e.pageX-$(this).offset().left;var y=e.pageY-$(this).offset().top;var arrow=$el.find(dotb+"__arrow-next");arrow.css({left:x,top:y});var width=$(this).width();if(x<=width/2){arrow.addClass("inverted")}else{arrow.removeClass("inverted")}}}).on("click",function(e){if(window.innerWidth>=768&&!$(e.target).is("[class*=flo-hero-video-embed__button]")&&!$(e.target).is("[class*=flo-slideshow__title-area]")){var x=e.pageX-$(this).offset().left;var y=e.pageY-$(this).offset().top;var width=$(this).width();if(x<=width/2){$(this).slick("slickPrev")}else{$(this).slick("slickNext")}}})};window.flo_slideshow__layout__type_b=function(el){var $el=$(el);var b="flo-slideshow";var dotb="."+b;var parent=$el.parents(".flo-block");function setHeights(){var headerHeight=parent.find(".flo-block__header").height();if(!headerHeight){headerHeight=0}$el.find(dotb+"__spacer").css("height",headerHeight+"px");$el.find(dotb+"__slides").add(dotb+"__background").add(dotb+"__slide-main-wrap").add(dotb+"__slide-image").css("height","calc(100vh - "+headerHeight+"px)");$el.find(dotb+"__background").css("top",headerHeight+"px")}setHeights();$(window).on("resize",function(){setHeights()});var slides=$el.find(dotb+"__slides");slides.on("init reInit afterChange",function(){$el.find("."+b+"__slide--video_slide:not(.slick-current)").find("video").each(function(){this.pause()});var active_slide__$=$el.find(".slick-current");if(active_slide__$.hasClass(b+"__slide--video_slide")){var video_container=active_slide__$.find("."+b+"__slide-background-video");var video=video_container.find("video")[0];video.play()}}).on("init afterChange",function(){$el.find(dotb+"__background").css("background-color",$el.find(".slick-current").attr("data-slide-bg"))}).on("init",function(){var $this=$(this);var count=$this.find(".slick-slide:not(.slick-cloned)").length;count=pad(count,2);$el.find(dotb+"__counter-count").html(count)}).on("init afterChange",function(){var $this=$(this);var index=parseInt($this.find(".slick-current").attr("data-slick-index"))+1;index=pad(index,2);$el.find(dotb+"__counter-index").changeTextUI(index,"counter")}).on("init",function(){var $slides=$(this);$el.find("."+b+"__slide--image_and_video_embed").each(function(){var active_slide__$=$(this);var video_embed_host=active_slide__$;var video_button=active_slide__$.find(".flo-hero-video-embed__button");var video_container=active_slide__$.find(".flo-hero-video-embed__container");var embed_code=active_slide__$.attr("data-embed-code");video_button.on("click",function(){if(!video_embed_host.hasClass("video-is-playing")){video_container.html(unescape(embed_code));video_embed_host.addClass("video-is-playing");$slides.slick("slickSetOption","autoplay",false,true)}else{if(video_embed_host.hasClass("video-is-playing")){video_container.html("");video_embed_host.removeClass("video-is-playing");var autoplay=$slides.attr("data-autoplay")=="true"?true:false;$slides.slick("slickSetOption","autoplay",autoplay,true)}}})})}).on("beforeChange",function(){var active_slide__$=$(this).find(".slick-current");var video_embed_host=active_slide__$;if(video_embed_host.hasClass("video-is-playing")){active_slide__$.find(".flo-hero-video-embed__button").click()}}).slick({dots:false,cssEase:"ease-in-out",speed:"400",variableWidth:true,nextArrow:$el.find(dotb+"__arrow--next"),prevArrow:$el.find(dotb+"__arrow--prev")})};window.flo_slideshow__layout__type_c=function(el){var $el=$(el);var b="flo-slideshow";var dotb="."+b;var parent=$el.parents(".flo-block");if(window.innerWidth<768){var setHeights=function setHeights(){var headerHeight=parent.find(".flo-block__header").height()/16+"rem";if(!headerHeight){headerHeight=0}var slideSelectorHeight=80/16;var slideSelectorBottomMargin=20/16;parent.find(dotb).css({"padding-top":headerHeight,"padding-bottom":slideSelectorHeight+slideSelectorBottomMargin+"rem"})};setHeights();$(window).on("resize",function(){setHeights()})}$el.find(dotb+"__slide-selectors").on("init",function(){var $this=$(this);setTimeout(function(){parent.find(dotb+"__slides").slick("slickSetOption","asNavFor",$this)},10)}).slick({variableWidth:true,arrows:false,dots:false,focusOnSelect:true,slidesToShow:1,slidesToScroll:3,asNavFor:parent.find(dotb+"__slides")});$("body").addClass("body--flo-header__popup--for-slideshow-type-c");$el.find(dotb+"__right-bar-search-trigger").click(function(){$(".flo-header-popup__search-input").focus()})};window.flo_slideshow__slides=function(el){var $el=$(el);var b="flo-slideshow";var dotb="."+b;var block=$el.parents(dotb);var block_id=block.attr("data-block-id");var block_class_with_id="flo-slideshow--"+block_id;var block_selector_with_id="."+block_class_with_id;var dotblock_parent=block.parents(".flo-block");var block_parent_with_id=".flo-block--"+dotblock_parent.attr("data-id");$el.on("init reInit afterChange",function(){$el.find("."+b+"__slide--video_slide:not(.slick-current)").find("video").each(function(){this.pause()});var active_slide__$=$el.find(".slick-current");if(active_slide__$.hasClass(b+"__slide--video_slide")){var video_container=active_slide__$.find("."+b+"__slide-background-video");var video=video_container.find("video")[0];video.play()}}).on("init afterChange",function(){var $this=$(this);var $currentSlide=$this.find(".slick-current");var elements_color=$currentSlide.attr("data-elements-color");var color_brightness=is_color_bright(elements_color);if(color_brightness){dotblock_parent.find(dotb+"__logo").addClass(b+"__logo--light");dotblock_parent.find(".flo-header__logo").addClass("flo-header__logo--light");setTimeout(function(){dotblock_parent.find(".is-main .flo-header-mobile__logo").addClass("flo-header-mobile__logo--light")})}else{dotblock_parent.find(dotb+"__logo").removeClass(b+"__logo--light");dotblock_parent.find(".flo-header__logo").removeClass("flo-header__logo--light");setTimeout(function(){dotblock_parent.find(".is-main .flo-header-mobile__logo").removeClass("flo-header-mobile__logo--light")})}}).on("init afterChange",function(){var elements_color=$(this).find(".slick-current").attr("data-elements-color");var css=[];css.push([block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__menu > div > ul > .menu-item, ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__menu > div > ul > .menu-item a:after, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__logo, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__menu > div > ul > .menu-item > a, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__menu-trigger, ",block_parent_with_id+".flo-slideshow-block--type-a .is-main.not-sticky.flo-header-mobile .flo-header__search-trigger, ",block_parent_with_id+".flo-slideshow-block--type-a .is-main.not-sticky.flo-header-mobile .flo-header-mobile__logo, ",block_parent_with_id+".flo-slideshow-block--type-a .is-main.not-sticky.flo-header-mobile .flo-header-mobile__menu-trigger, ",block_parent_with_id+".flo-slideshow-block--type-a .is-main.not-sticky.flo-header-mobile .flo-header-mobile__search-trigger ","{","color: "+elements_color+"!important;","border-color: "+elements_color+";","}",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__menu-item-search:before, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__menu-trigger-item ","{ ","background: "+elements_color+"; ","} ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__featured-link ","{","color: "+elements_color+"!important;","}",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__column-top-wrap ","{","border-color: "+elements_color+"!important;","}",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__search-trigger, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__search-form-input, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__search-form-submit ","{","color: "+elements_color+"!important;","}",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__search-form:before, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__search-form:after ","{","background-color: "+elements_color+"!important;","}",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__social-links a:before, ",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__social-links-trigger,",block_parent_with_id+".flo-slideshow-block--type-a header .is-not-sticky .flo-header__lang-switch","{","color: "+elements_color+"!important;","}",block_selector_with_id+" .flo-hero-video-embed__button","{","color: "+elements_color+";","border-color: "+elements_color+";","}",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__counter-count, ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__counter-index","{ ","color: "+elements_color+"!important; ","} ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__counter-separator","{ ","background-color: "+elements_color+"; ","} ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__title-area-pretitle, ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__title-area-title","{ ","color: "+elements_color+"!important; ","} ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__title-area-pretitle:before ","{ ","background-color: "+elements_color+"; ","} ",block_parent_with_id+".flo-slideshow-block--type-a "+dotb+"__arrow-next ","{ ","color: "+elements_color+"!important; ","} ",block_parent_with_id+" "+dotb+"__featured-link-pretitle, ",block_parent_with_id+" "+dotb+"__featured-link-title","{ ","color: "+elements_color+"!important; ","} ",block_parent_with_id+" "+dotb+"__featured-link-divider","{ ","background-color: "+elements_color+"; ","} ",block_parent_with_id+".flo-slideshow-block--type-c "+dotb+"__top-area-logo .flo-header__logo, ",block_parent_with_id+".flo-slideshow-block--type-c "+dotb+"__top-area-social-links a:before","{ ","color: "+elements_color+"!important;","} ",block_parent_with_id+".flo-slideshow-block--type-c "+dotb+"__slide-selector-pretitle:before","{ ","background-color: "+elements_color+"; ","} ",block_parent_with_id+".flo-slideshow-block--type-c "+dotb+"__slide-selector-pretitle","{ ","color: "+elements_color+"; ","} "].join("\n"));css=css.join("\n");if($("style.flo-slideshow__slides--"+block_id).length){$("style.flo-slideshow__slides--"+block_id).html(css)}else{$("head").append($(" <style class='flo-slideshow__slides--"+block_id+" '> ").html(css))}}).on("init",function(){var $slides=$(this);$el.find("."+b+"__slide--image_and_video_embed").each(function(){var active_slide__$=$(this);var video_embed_host=dotblock_parent;var video_button=active_slide__$.find(".flo-hero-video-embed__button");var video_container=active_slide__$.find(".flo-hero-video-embed__container");var embed_code=active_slide__$.attr("data-embed-code");video_button.on("click",function(){if(!video_embed_host.hasClass("video-is-playing")){video_container.html(unescape(embed_code));video_embed_host.addClass("video-is-playing");$slides.slick("slickSetOption","autoplay",false,true)}else{if(video_embed_host.hasClass("video-is-playing")){video_container.html("");video_embed_host.removeClass("video-is-playing");var autoplay=$slides.attr("data-autoplay")=="true"?true:false;$slides.slick("slickSetOption","autoplay",autoplay,true)}}})})}).on("beforeChange",function(){var active_slide__$=$(this).find(".slick-current");var video_embed_host=dotblock_parent;if(video_embed_host.hasClass("video-is-playing")){active_slide__$.find(".flo-hero-video-embed__button").click()}}).on("init",function(){var $this=$(this);var count=$this.find(".slick-slide:not(.slick-cloned)").length;count=pad(count,2);dotblock_parent.find(dotb+"__counter-count").html(count)}).on("init afterChange",function(){var $this=$(this);var index=parseInt($this.find(".slick-current").attr("data-slick-index"))+1;index=pad(index,2);dotblock_parent.find(dotb+"__counter-index").changeTextUI(index,"counter")}).slick();block.find(dotb+"__arrow-next").click(function(){$el.slick("slickNext")})};window.flo_wp_content_block=function(el){var b="flo-wp-content";var dotb="."+b;if($("".concat(dotb)).hasClass("".concat(b,"--lazy-enabled"))){window.floLazy("".concat(dotb," img"));setTimeout(function(){window.floLazy(".nar-root-loaded img")},3000)}};$(window).load(function(){if(window.innerWidth>767&&$(".flo_sidebar").length){var approx=function approx(num){return +(Math.round(num+"e+2")+"e-2")};var getNodesThatContain=function getNodesThatContain($this,text){var textNodes=$this.find(":not(iframe, script, style)").contents().filter(function(){return this.nodeType==3&&this.textContent.indexOf(text)>-1&&$(this).children().length==0});return textNodes.parent()};var adaptive_sidebar=$("body").hasClass("body_has_sidebar");var sidebar_works_css=[];var page_wrap=$(".flo_page_wrap");var sidebar=$(".flo_sidebar");var sidebar_height=0;var blocks=$(".flo-block:not(.flo-no-resize)");var any_footer="div[class^='flo-footer'],div[class*=' flo-footer']";var skip_list=".flo-block-slideshow-1, .flo-block-category-switcher-1";if(blocks.first().find(".flo-header").length&&blocks.first().next().find(skip_list).length){blocks.first().addClass("skipped");blocks.first().next().addClass("skipped")}else{if(blocks.first().find(".flo-header").length&&blocks.first().find(skip_list).length||blocks.first().find(skip_list).length||blocks.first().find(".flo-header").length){blocks.first().addClass("skipped")}}var skipped_block_height=0;blocks.not(".skipped").first().addClass("contains_sidebar");var block_contains_sidebar=$(".contains_sidebar");block_contains_sidebar.append(sidebar);var blocks_on_the_side_height=0;var sidebarWidthInPercent=sidebar.width()*100/block_contains_sidebar.width();sidebar.children().each(function(){sidebar_height+=$(this).outerHeight(true)});sidebar_height+=parseInt(block_contains_sidebar.css("padding-top"),10)*2;var sidebarMarginInPercent=0;if(!sidebar.hasClass("flo_sidebar--on-left")){sidebarMarginInPercent=parseInt(sidebar.css("margin-left"))*100/block_contains_sidebar.width();var righti=parseInt(block_contains_sidebar.css("padding-right"))}else{sidebarMarginInPercent=parseInt(sidebar.css("margin-right"))*100/block_contains_sidebar.width();var lefti=parseInt(block_contains_sidebar.css("padding-left"))}var toppi=parseInt(block_contains_sidebar.css("padding-top"));sidebar_works_css.push([".flo_sidebar {","top: "+toppi+"px!important;",sidebar.hasClass("flo_sidebar--on-left")?"left: "+lefti+"px;":"right: "+righti+"px;","}"].join("\n"));var howMuchTransform=(100-sidebarWidthInPercent-sidebarMarginInPercent)/100;var zoomFactor=block_contains_sidebar.find(".flo-block__container").width()/(block_contains_sidebar.find(".flo-block__container").width()*howMuchTransform);blocks.each(function(){var block=$(this);if(!block.hasClass("skipped")){var shrink=true;if(adaptive_sidebar&&blocks_on_the_side_height>sidebar_height){shrink=false}if(shrink){block.addClass("shrinked");if(!$("body").hasClass("single-post")){var vertical_correction=block.find(".flo-block__container").outerHeight()-block.find(".flo-block__container").outerHeight()*howMuchTransform;var $this=$(this).find(".flo-block__container");var id=$this.parent(".flo-block").attr("data-id");var x=document.getElementsByClassName("flo-block--"+id);x=x[0].firstElementChild.innerText;var array=x.split("\n");$.each(array,function(){var match=getNodesThatContain($this,this);$.each(match,function(){if($(this).children().length==0&&$(this).text()!=""||$(this).children().length==1&&$(this).text()!=""&&$(this).find(".flo-icon-arrow-left, .flo-icon-arrow-right").length==1){$(this).not(".font-resized").css("font-size",parseInt($(this).css("font-size"))*zoomFactor/parseInt($("html").css("font-size"))+"rem").addClass("font-resized")}})});sidebar_works_css.push([".flo-block--"+block.data("id")+" .flo-block__container {","transition: none!important;","transform: scale("+approx(howMuchTransform)+")!important;","margin-bottom: -"+approx(vertical_correction)+"px!important;",sidebar.hasClass("flo_sidebar--on-left")?"transform-origin: top right !important;":"transform-origin: top left !important;",sidebar.hasClass("flo_sidebar--on-left")?"margin-left: auto;":"","}"].join("\n"));var block_height_to_add_up=approx(block.find(".flo-block__container").outerHeight()*howMuchTransform+parseFloat(block.css("padding-top"))+parseFloat(block.css("padding-bottom")));blocks_on_the_side_height+=block_height_to_add_up}else{sidebar_works_css.push([".flo-block--"+block.data("id")+" .flo-block__container {","transition: none!important;","width: "+approx(100-sidebarWidthInPercent-sidebarMarginInPercent)+"%;",sidebar.hasClass("flo_sidebar--on-left")?"margin-right: 0;":"margin-left: 0;","}"].join("\n"));blocks_on_the_side_height+=approx(block.outerHeight())}}}else{skipped_block_height+=block.outerHeight()}});var footer_height=0;if($(any_footer).first().length){footer_height=$(any_footer).first().outerHeight()}if(sidebar_height>blocks_on_the_side_height){var page_wrap_height=skipped_block_height+sidebar_height+footer_height;page_wrap.css({height:page_wrap_height});$(any_footer).first().css({position:"absolute",bottom:0,left:0,width:"100%"})}$("head").append(["<style class='sidebar-works-css'>","@media (min-width: 768px){",sidebar_works_css.join("\n"),"}","</style>"].join("\n"));setTimeout(function(){sidebar.css("opacity",1)});$(window).trigger("resize");$(".body_has_sidebar").addClass("sidebar-ready")}});$(function(){$(".flo-core-style").each(function(){var template=$(this);var style=template.html();style=style.replace(/&lt;/g,"<").replace(/&gt;/g,">");$("head").append(style);template.remove()});var fadeInStyleTag=document.createElement("style");fadeInStyleTag.classList="flo-core-fade-in";fadeInStyleTag.innerHTML="\n    body * {outline: solid transparent} \n    body {opacity: 1!important}\n  ";$(fadeInStyleTag).appendTo("head")})})(jQuery);