var active_viewer_image,LucySticky,lucy_address_fields,validate={email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phone:/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/},url_params=new URL(location.href).searchParams;$(function(){$("select[name*=year]").each(function(){var e=$(this).prop("options"),t=new Date().getFullYear(),i=t+10,a=2e3>parseInt(e[1].value);if(e[0].text==t||e[1].text==t&&parseInt(e[e.length-1].value)'+s+"")}})}),$(function(){$("#overlay, #overlay-close").click(function(){return $("#overlay, #overlay-close, #overlay-content").fadeOut(250,function(){$("#overlay-content").remove()}),!1}),url_params.get("auto-scroll")&&setTimeout(()=>{setInterval(()=>{window.scrollBy(0,.5)},url_params.get("speed")?6-url_params.get("speed"):3)},url_params.get("delay")?1e3*url_params.get("delay"):0);var e=["waitfordelay","../","eval(","cast(","php.ini","boot.ini","select chr","","-1)return alert("Invalid text found: "+e[pos]),t=!0,!1}}),t||($(this).closest("form.custom").find("[data-required=1]").each(function(){if($(this).hasClass("check-group")){if(!$(this).find("input:checked").length)return alert("Missing required field: "+$(this).prev("label").text()),t=!0,!1}else if(!$(this).val())return alert("Missing required field: "+$(this).prev("label").text()),$(this).focus(),t=!0,!1}),t))return!1;$(this).closest("form").find(".g-recaptcha").length&&0==grecaptcha.getResponse().length&&(alert("Please verify your identity"),t=!0),t||($("[data-validate]").each(function(){if(!validate[$(this).data("validate")].test($(this).val()))return alert("Invalid format: "+$(this).prev("label").text()),$(this).focus(),t=!0,!1}),t||($(this).addClass("submitted").text("Please wait..."),"undefined"!=typeof ga&&ga("send","event","Forms","Submit",$(this).closest("form").data("title")),$(this).closest("form").submit()))}return!1}),$(".floating-labels").on("focus","input, select, textarea",function(){$(this).prev("label").addClass("show")}),$(".floating-labels").on("blur","input, select, textarea",function(){$(this).val()||$(this).prev("label").removeClass("show")}),$("a[data-tracking-category]").click(function(){"undefined"!=typeof ga&&ga("send","event",$(this).data("tracking-category"),$(this).data("tracking-action"),$(this).attr("title"))}),$.fn.formScrubber=function(){var e=$(this),t=e.width(),i=e.children(),a=i.length,s=t/a,o=[];if(a>1){for(var r=0;r=o[r]&&(r==a-1||t<=o[r+1]))var s=r;i.hide().eq(s).show()})}return this},$.fn.lucyDropdown=function(){$(this).each(function(){if("SELECT"==$(this)[0].tagName){var e=$(this).prop("id"),t=$(this).prop("name"),i=$(this)[0].options[$(this).prop("selectedIndex")].text,a=$(this)[0].options[$(this).prop("selectedIndex")].value,s=$('
');s.append(""+i+""),s.append('');for(var o=$("
    "),r=$(this)[0].options,n=0;n'+r[n].text+"");s.append(o),$(this).replaceWith(s)}});var e=$(".lucy-dropdown");return e.each(function(t){$(this).css({zIndex:e.length-t}),$(this).find("span").click(function(){$(this).closest(".lucy-dropdown").toggleClass("active")}),$(this).delegate("li","click",function(){$(this).siblings().removeClass("selected"),$(this).addClass("selected"),$(this).closest(".lucy-dropdown").removeClass("active").find("span").html($(this).html()).next("input").val($(this).data("value")).trigger("change")})}),$(document).click(function(t){var i=$(t.target).closest(".lucy-dropdown");e.length?e.each(function(){$(this).is(i)||$(this).removeClass("active")}):e.removeClass("active")}),e},$(".lucy-dropdown").lucyDropdown(),$.fn.lucyRadio=function(){$(this).each(function(){if("INPUT"==$(this)[0].tagName&&"radio"==$(this).prop("type")){var e=$('
    ');$(this).prop("checked")&&e.addClass("checked"),$(this).before(e).hide().removeClass("lucy-radio")}}),$(".lucy-radio").click(function(){var e=$(this).next("input[type=radio]");$("input[name="+e.prop("name")+"]").each(function(){$(this).prev(".lucy-radio").removeClass("checked")}),e.prop("checked",!0),$(this).addClass("checked")})},$(".lucy-radio").lucyRadio(),$.fn.lucyCheck=function(){$(this).each(function(){if("INPUT"==$(this)[0].tagName&&"checkbox"==$(this).prop("type")){var e=$('
    ');$(this).prop("checked")&&e.addClass("checked"),$(this).before(e).hide().removeClass("lucy-check")}}),$(".lucy-check").click(function(){var e=$(this).hasClass("checked")?0:1;$(this).next("input[type=checkbox]").prop("checked",e),$(this).toggleClass("checked")})},$(".lucy-check").lucyCheck(),$.fn.isOnScreen=function(){var e=$(window),t={top:e.scrollTop(),left:e.scrollLeft()};t.right=t.left+e.width(),t.bottom=t.top+e.height();var i=this.offset();if(i.right=i.left+this.outerWidth(),i.bottom=i.top+this.outerHeight(),!(t.righti.right||t.bottomi.bottom)){var a=this.offset().top-$(window).height(),s=a+$(window).height()+this.height();return($(window).scrollTop()-a)/(s-a)}return!1},$.fn.isAtPositionOrGreater=function(e){var e,t=$(window),i={top:t.scrollTop(),left:t.scrollLeft()};i.right=i.left+t.width(),i.bottom=i.top+t.height();var a=this.offset();return a.right=a.left+this.outerWidth(),a.bottom=a.top+this.outerHeight(),i.top+e>=a.top},$.fn.isFullyOnScreen=function(){var e=$(window),t={top:e.scrollTop(),left:e.scrollLeft()};t.right=t.left+e.width(),t.bottom=t.top+e.height();var i=this.offset();if(i.right=i.left+this.outerWidth(),i.bottom=i.top+this.outerHeight(),t.bottom>i.bottom){var a=this.offset().top-$(window).height(),s=a+$(window).height()+this.height();return($(window).scrollTop()-a)/(s-a)}return!1},$.fn.isHalfOnScreen=function(){var e=$(window),t={top:e.scrollTop(),left:e.scrollLeft()};t.right=t.left+e.width(),t.bottom=t.top+e.height();var i=this.offset();if(i.right=i.left+this.outerWidth(),i.bottom=i.top+this.outerHeight()/2,t.bottom>i.bottom){var a=this.offset().top-$(window).height(),s=a+$(window).height()+this.height();return($(window).scrollTop()-a)/(s-a)}return!1},LucySticky=function(e,t){var i,a="string"==typeof e?$("#"+e):$(e),s=a.offset().top,o=a.clone().html(""),r=t;if(o.attr("id",a.attr("id")+"-placeholder"),o.css({position:"absolute",top:-1e4}),a.after(o),"number"==typeof r)var i=r;else"function"==typeof r&&$(window).resize(function(){i=r()}).resize();$(window).scroll(function(){o.css({width:a.width(),height:a.height()}),s-$(window).scrollTop()1&&(new t(e.slice(1),i),e=e.eq(0));var a=this,s=e,o=s.find(".slide").length,r=s.find(".thumbs .image"),n=s.find(".dots .dot"),l=s.data("loop"),d=1;if(l&&((r.length||n.length)&&alert("Looping is disabled for slideshows with thumbnails or control dots"),s.find(".slider").addClass("no-transition")),s.find(".previous").click(function(){return a.previous().pause(),!1}),s.find(".next").click(function(){return a.next().pause(),!1}),r.click(function(){return d=$(this).index()+1,a.update().pause(),!1}),n.click(function(){return d=$(this).index()+1,a.update().pause(),!1}),this.previous=function(){if(!l)return d=d>1?d-1:o,a.update();var e=s.find(".slide").last();return s.find(".slider").prepend(e),s.find(".slider").css({left:"-100%"}),s.find(".slider").animate({left:0},s.data("transition-speed")||400,"swing"),a},this.next=function(){return l?(s.find(".slider").animate({left:"-100%"},s.data("transition-speed")||400,"swing",function(){var e=s.find(".slide").first();s.find(".slider").append(e),s.find(".slider").css({left:0})}),a):(d=d'),$.each(["xxsmall","xsmall","small","medium","large","xlarge","xxlarge","xxxlarge"],function(e,t){$("#breakpoints").append(''+t+"")}),$.each(["mobile","tablet","desktop","desktop-medium","desktop-large"],function(e,t){$("#breakpoints").append(''+t+"")}),$("#breakpoints").append(''),$(window).resize(function(){$("#breakpoint-width").text(", "+$(window).width()+"x"+$(window).height())}).resize()),$(".gallery img").click(function(e){if(viewer_images=$(this).closest(".gallery").find("img"),$("#viewer-image").css({backgroundImage:"url("+$(this).attr("src").replace("gallery/","")+")"}),$("#viewer").css({top:0}),active_viewer_image=$(this),$("#viewer h2").text($(this).data("label")),viewer_images.length>1){var t=viewer_images.index(active_viewer_image);$("#viewer-pos").text(t+1),$("#viewer-count").text(viewer_images.length),$("#viewer-header p, #viewer-previous, #viewer-next").show()}else $("#viewer-header p, #viewer-previous, #viewer-next").hide();e.stopPropagation()}),$("#viewer-close").click(function(){$("#viewer").css({top:"100%"}),active_viewer_image=void 0}),$(window).resize(function(){$("#viewer-image").css({height:$("#viewer").height()-60})}).resize(),$("#viewer-previous").click(function(){var e=viewer_images.index(active_viewer_image);e>0?e--:e=viewer_images.length-1,viewer_images.eq(e).click()}),$("#viewer-next").click(function(){var e=viewer_images.index(active_viewer_image);e-1&&(a.street_number=i[piece].short_name),i[piece].types.indexOf("route")>-1&&(a.address=a.street_number+" "+i[piece].short_name,delete a.street_number),i[piece].types.indexOf("locality")>-1&&(a.city=i[piece].short_name),i[piece].types.indexOf("political")>-1&&i[piece].types.indexOf("administrative_area_level_1")>-1&&(a.state=i[piece].short_name),i[piece].types.indexOf("postal_code")>-1&&(a.zip=i[piece].short_name),i[piece].types.indexOf("country")>-1&&(a.country=i[piece].long_name);var s=e.data("address-group")?"[data-address-group='"+e.data("address-group")+"']":"";for(part in a)$("[data-address-field='"+part+"']"+s).val(a[part]).prev("label").addClass("show")})})}function validate_form(e){var t={email:/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phone:/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/},i=!1;return e.find("[data-required=1]").each(function(){if(!$.trim($(this).val()))return alert("Missing required field: "+$(this).prev("label").text()),$(this).focus(),i=!0,!1}),!i&&(e.find("[data-validate]").each(function(){if(!t[$(this).data("validate")].test($(this).val()))return alert("Invalid format: "+$(this).prev("label").text()),$(this).focus(),i=!0,!1}),!i)}function play_vimeo_video(e){$("#overlay, #overlay-close").fadeIn(250),$("body").append('
    ');var t=$("#overlay-content");t.css({top:"50%",marginTop:-(t.height()/2),marginLeft:-(t.width()/2)})}if($(function(){if($("#billing-address, #shipping-address, #notification-address").each(function(){if(!$(this).data("address-field")){var e=$(this).attr("id").split("-")[0];$(this).attr("data-address-field","address").attr("data-address-group",e);var t=$(this).attr("id").replace("-address",""),i=["city","state","zip","country"];for(field in i)$("#"+t+"-"+i[field]).attr("data-address-field",i[field]).attr("data-address-group",e)}}),(lucy_address_fields=$("[data-address-field=address]")).length){lucy_address_fields.each(function(){$(this).attr("placeholder")||$(this).attr("placeholder","")});var e=document.createElement("script");e.src="//maps.googleapis.com/maps/api/js?libraries=places&key="+GOOGLE_API_KEY,e.onreadystatechange=lucy_google_address_ready,e.onload=lucy_google_address_ready,document.head.appendChild(e)}}),!window.YT)var YT={loading:0,loaded:0};if(!window.YTConfig)var YTConfig={host:"http://www.youtube.com"};function onYouTubeIframeAPIReady(e){for(var t=document.getElementsByClassName("yt-video"),i=0;i
    '),new YT.Player($("#overlay-content").find("iframe")[0],{events:{onStateChange:youtube_state_change}});var t=$("#overlay-content");t.css({top:"50%",marginTop:-(t.height()/2),marginLeft:-(t.width()/2)})}function set_cookie(e,t,i){var a=new Date;a.setDate(a.getDate()+i);var s=e+"="+escape(t)+(null==i?"":";expires="+a.toUTCString());s+=";path=/",document.cookie=s}function get_cookie(e){return document.cookie.length>0&&-1!=(start=document.cookie.indexOf(e+"="))?(start+=e.length+1,-1==(end=document.cookie.indexOf(";",start))&&(end=document.cookie.length),unescape(document.cookie.substring(start,end))):""}YT.loading||(YT.loading=1,function(){var e=[];YT.ready=function(t){YT.loaded?t():e.push(t)},window.onYTReady=function(){YT.loaded=1;for(var t=0;t