<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">//Adds auto focus to search when opened
$('#siteSearch').on("shown.bs.modal", function() {
     $("body").addClass("modal-open-search");
    $('#siteSearch .form-text').focus();
  });
 $('#siteSearch').on("hide.bs.modal", function() {
    $("body").removeClass("modal-open-search");
  }); 

$('#off-screen-main-nav').on("shown.bs.modal", function() {
     $("body").addClass("modal-open-menu");
  });
 $('#off-screen-main-nav').on("hide.bs.modal", function() {
    $("body").removeClass("modal-open-menu");
  }); 

$('#site-navigation').on("shown.bs.modal", function() {
     $("body").addClass("modal-open-menu-mobile");
  });
 $('#site-navigation').on("hide.bs.modal", function() {
    $("body").removeClass("modal-open-menu-mobile");
  });


$('.menuClose').click(
    function(){ $('.modal').modal('hide') }
);
$('.close').click(
    function(){ $('.modal').modal('hide') }
);

jQuery(document).ready(function($) {
  var alterClass = function() {
    var ww = document.body.clientWidth;
    if (ww &gt;= 1200) {
      $('.modal').modal('hide');
    } 
  };
  $(window).resize(function(){
    alterClass();
  });
  //Fire it when the page first loads:
  alterClass();
});

$('.emergency-alert').on('closed.bs.alert', function () {
  $("body").removeClass("alert-visible");
})
if ($('.emergency-alert').length &gt; 0) {
   $("body").addClass("alert-visible");
}

// Sticky Header
$(window).on("scroll load", function() {
	if ($(this).scrollTop() &gt; 150){  
		$('.sticky-wrapper').addClass("sticky-header-show");
	}
	else{
		$('.sticky-wrapper').removeClass("sticky-header-show");
	}
});


//Scroll to top button
jQuery(document).ready(function($){
	// browser window scroll (in pixels) after which the "back to top" link is shown
	var offset = 300,
		//browser window scroll (in pixels) after which the "back to top" link opacity is reduced
		offset_opacity = 1200,
		//duration of the top scrolling animation (in ms)
		scroll_top_duration = 700,
		//grab the "back to top" link
		$back_to_top = $('.cd-top');

	//hide or show the "back to top" link
	$(window).scroll(function(){
		( $(this).scrollTop() &gt; offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
		if( $(this).scrollTop() &gt; offset_opacity ) { 
			$back_to_top.addClass('cd-fade-out');
		}
	});

	//smooth scroll to top
	$back_to_top.on('click', function(event){
		event.preventDefault();
		$('body,html').animate({
			scrollTop: 0 ,
}, scroll_top_duration
		);
	});

});

$(document).ready(function() {	
// Select all links with hashes
$('a[href*="#"]')
  // Remove links that don't actually link to anything
  .not('[href="#"]')
  .not('[href="#0"]')
  .not('[data-toggle]')
  .click(function(event) {
    // On-page links
    if (
      location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') 
      &amp;&amp; 
      location.hostname === this.hostname
    ) {
      // Figure out element to scroll to
      var target = $(this.hash);
      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
      // Does a scroll target exist?
      if (target.length) {
        // Only prevent default if animation is actually gonna happen
        event.preventDefault();
        $('html, body').animate({
          scrollTop: target.offset().top
        }, 1000, function() {
          // Callback after animation
          // Must change focus!
          var $target = $(target);
          $target.focus();
          if ($target.is(":focus")) { // Checking if the target was focused
            return false;
          } else {
            $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
            $target.focus(); // Set focus again
          }
        });
      }
    }
  });

  });

/*
 * Bootstrap Cookie Alert 
 */
(function () {
    "use strict";

    var cookieAlert = document.querySelector(".cookiealert");
    var acceptCookies = document.querySelector(".acceptcookies");

    if (!cookieAlert) {
       return;
    }

    cookieAlert.offsetHeight; // Force browser to trigger reflow (https://stackoverflow.com/a/39451131)

    // Show the alert if we cant find the "acceptCookies" cookie
    if (!getCookie("acceptCookies")) {
        cookieAlert.classList.add("show");
    }

    // When clicking on the agree button, create a 1 year
    // cookie to remember user's choice and close the banner
    acceptCookies.addEventListener("click", function () {
        setCookie("acceptCookies", true, 365);
        cookieAlert.classList.remove("show");
    });

    // Cookie functions from w3schools
    function setCookie(cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
        var expires = "expires=" + d.toUTCString();
        document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
    }

    function getCookie(cname) {
        var name = cname + "=";
        var decodedCookie = decodeURIComponent(document.cookie);
        var ca = decodedCookie.split(';');
        for (var i = 0; i &lt; 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 "";
    }
})();





//Home Hero Slider
if (document.querySelector('.hero-slider') !== null) {
$(document).ready(function(){	
$(".hero-slider").slick({
        dots: true,
        fade: true,
        infinite: false,
        slidesToShow: 1,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: true,
        appendArrows: '.slide-controllers',
        appendDots: '.slide-dots',
		focusOnSelect: true,
		pauseOnHover: false,
		speed:900,
		autoplaySpeed: 7000
      });
    
    var xpaused = false;

$(".pause-play").on("click", function() {
	if( xpaused ) {
$(".hero-slider").slick("play");
  } else {
$(".hero-slider").slick("pause");
  }
  xpaused = !xpaused;
  $(this).toggleClass( "paused" );
});
});
}

//Interior Hero Slider
if (document.querySelector('.interior-hero-slider') !== null) {
$(document).ready(function(){	
$(".interior-hero-slider").slick({
        dots: true,
        fade: true,
        infinite: false,
        slidesToShow: 1,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: true,
        appendArrows: '.slide-controllers-2',
        appendDots: '.slide-dots-2',
		focusOnSelect: true,
		pauseOnHover: false,
		speed:900,
		autoplaySpeed: 7000
      });
    
    var xpaused = false;

$(".pause-play-2").on("click", function() {
	if( xpaused ) {
$(".interior-hero-slider").slick("play");
  } else {
$(".interior-hero-slider").slick("pause");
  }
  xpaused = !xpaused;
  $(this).toggleClass( "paused" );
});
});
}

$(document).ready(function () {
	var playing = true;
	$('.play-pause').click(function () {
	if (playing == false) {
	document.getElementById('myVideo').play();
	playing = true;
	$(this).html("&lt;span class='fa fa-pause'&gt;&lt;/span&gt;");
} else {
	document.getElementById('myVideo').pause();
	playing = false;
	$(this).html("&lt;span class='fa fa-play'&gt;&lt;/span&gt;");
	}
	});
});

//Slider
if (document.querySelector('.gallery-slider') !== null) {
$(document).ready(function(){	
$(".gallery-slider").slick({
        dots: true,
        infinite: true,
        slidesToShow: 1,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false
      });
});
}
if (document.querySelector('.gallery-slider') !== null) {
$(document).ready(function(){
      $('.gallery-slider').slickLightbox({
        itemSelector: '.slide &gt; a',
          caption: 'caption'
      });
    });
}

//Slider
if (document.querySelector('.testimonial-carousel') !== null) {
$(document).ready(function(){	
$(".testimonial-carousel").slick({
        dots: false,
        infinite: true,
        fade: true,
        slidesToShow: 1,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false
      });
});
}


//Slider
if (document.querySelector('.bordered-box-carousel') !== null) {
$(document).ready(function(){	
$(".bordered-box-carousel").slick({
        dots: false,
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false,
        appendArrows: '.bordered-box-carousel-button-container',
     responsive: [
        {
      breakpoint: 1200,
      settings: {
		slidesToShow: 3
      }
    },
        {
      breakpoint: 1024,
      settings: {
		slidesToShow: 2
      }
    },
    {
      breakpoint: 767,
      settings: {
		slidesToShow: 1
      }
    }
  ]
      });
});
}

//Slider
if (document.querySelector('.card-carousel') !== null) {
$(document).ready(function(){	
$(".card-carousel").slick({
        dots: false,
        infinite: true,
        slidesToShow: 3,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false,
     responsive: [
        {
      breakpoint: 1200,
      settings: {
		slidesToShow: 3
      }
    },
        {
      breakpoint: 1024,
      settings: {
		slidesToShow: 2
      }
    },
    {
      breakpoint: 767,
      settings: {
		slidesToShow: 1
      }
    }
  ]
      });
});
}

//Slider
if (document.querySelector('.card-carousel-two-column') !== null) {
$(document).ready(function(){	
$(".card-carousel-two-column").slick({
        dots: false,
        infinite: true,
        slidesToShow: 2,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false,
     responsive: [
        {
      breakpoint: 1200,
      settings: {
		slidesToShow: 2
      }
    },
        {
      breakpoint: 1024,
      settings: {
		slidesToShow: 2
      }
    },
    {
      breakpoint: 767,
      settings: {
		slidesToShow: 1
      }
    }
  ]
      });
});
}

//Slider
if (document.querySelector('.two-column-carousel') !== null) {
$(document).ready(function(){	
$(".two-column-carousel").slick({
        dots: false,
        infinite: true,
        slidesToShow: 1,
        slidesToScroll: 1,
		accessibility: true,
		autoplay: false,
		focusOnSelect: true,
		pauseOnHover: false,
     responsive: [
        {
      breakpoint: 1200,
      settings: {
		slidesToShow: 1
      }
    },
        {
      breakpoint: 1024,
      settings: {
		slidesToShow: 1
      }
    },
    {
      breakpoint: 767,
      settings: {
		slidesToShow: 1
      }
    }
  ]
      });
});
}


// video playback script
$(document).ready(function () {
    // Gets the video src from the data-src on each button
    var $videoSrc;
    $('.load-video').click(function () {
        $videoSrc = $(this).data("src");
    });
    console.log($videoSrc);
    // when the modal is opened autoplay it  
    $('#video-modal').on('shown.bs.modal', function (e) {
        // set the video src to autoplay and not to show related video. Youtube related video is like a box of chocolates... you never know what you're gonna get
        $("#video").attr('src', $videoSrc + "?autoplay=0&amp;amp;modestbranding=1&amp;amp;showinfo=0");
    })
    // stop playing the youtube video when I close the modal
    $('#video-modal').on('hide.bs.modal', function (e) {
        // a poor man's stop video
        $("#video").attr('src', $videoSrc);
    })
    // document ready  
});


$('.video-caption-button').popover({
  trigger: 'focus'
})

// Video Gallery
if (document.querySelector('.video-slider') !== null) {
$(document).ready(function(){	
$(".video-slider").each( function() {
        var $this = $(this);
        if ($this.children().length &gt; 1) {
        $this.slick({
      slidesToShow: 1,
      slidesToScroll: 1,
      accessibility: true,
      fade: true,
      rows: 0,
      autoplay: false,
      asNavFor: '.video-slider-thumbs'
    });
    $('.video-slider-thumbs').slick({
      slidesToShow: 4,
      slidesToScroll: 4,
      accessibility: true,
      asNavFor: '.video-slider',
      arrows: false,
      dots: false,
      infinite: true,
      autoplay: false,
      centerMode: true,
      focusOnSelect: true,
      rows: 0,
      pauseOnHover: false,
        responsive: [
    {
      breakpoint: 1024,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 3,
        infinite: true,
        dots: false
      }
    },
    {
      breakpoint: 992,
      settings: {
        slidesToShow: 3,
        slidesToScroll: 3
      }
    },
    {
      breakpoint: 768,
      settings: {
        slidesToShow: 2,
        slidesToScroll: 2
      }
    }
  ]
    });
    }
});
});
}

$('.video-slider').on('beforeChange', function (event, slick, currentSlide, nextSlide) {
       $('.slick-current iframe').attr('src', $('.slick-current iframe').attr('src'));
});</pre></body></html>