<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(function ($) {

    $(document).ready(function() {
        initHash();      
        initStickyMenu();
        initMenu();
        initAnchors();        
        initBackTotop();
        initHoverImages();
        initResponsiveIframes();
        initMessages();
        initSlideshow();
        initShowMore();
        initPopups();
        $('body').addClass('loaded');        
    });
    $(window).on('resize', function() {
      initAnchors();
    });    

    function initHash() {
        // if we have anchor on the url (calling from other page)
        if (window.location.hash){
            // smooth scroll to the anchor id
            if ($(window.location.hash).length) {
              var landing = $(window.location.hash).offset().top - $(window).height() / 10;  
              $('html, body').animate({scrollTop: landing + 'px'},500);
              $('#header').addClass('scrolled');        
            }
        }
    }    

    function initStickyMenu() {
      /* Sticky top menu. */
      var  mn = $("#header");
        mns = "scrolled";
        hdr = $('#header').height();

      $(window).scroll(function() {
        if( $(this).scrollTop() &gt; hdr/2 ) {
          mn.addClass(mns);
        } else {
          mn.removeClass(mns);
        }
      });  
      /* End sticky top menu */
    }

    function initMenu() {
      $(document).on('click', '.navbar-toggler', function() {
        $(this).closest('nav').toggleClass('open');
      });

      $(document).on('click', '.dropdown__title', function () {
        console.log('click');
        // Close all menus.
        x = $(this).attr('aria-expanded');
        console.log(x);
        x = (x == 'false' ? 'true' : 'false');        
        console.log(x);
        $('.dropdown__title').attr('aria-expanded', false).parent().removeClass('expanded');
        if (x == 'true') {        
          $(this).attr('aria-expanded', x);
          $(this).parent().addClass('expanded');
        }
      });

      $(document).on("click", function(event){
          var $target = $(event.target);
          var trigger_class = "dropdown__title";
          if (!$($target).hasClass(trigger_class)) {
            // Close all menus.
            $('.dropdown__title').attr('aria-expanded', false).parent().removeClass('expanded');
          }            
      });         
    }
    
    function initBackTotop() {
      /* Back to top */
      showBackToTop();
      function showBackToTop() {
        var button  = $('#to-top'),
        view = $(window),
        timeoutKey = -1;

        $(document).on('scroll', function() {
          if(timeoutKey) {
            window.clearTimeout(timeoutKey);
          }         
          timeoutKey = window.setTimeout(function(){

            if (view.scrollTop() &gt; 100) {
              button.fadeIn();
            }
            else {
              button.fadeOut();
            }
          }, 100);
        });
      }
      $('#to-top').on('click', function(e){
        e.preventDefault();
        $("html, body").animate({scrollTop: $("#top").offset().top}, 500);
      });
      /* End Back to Top */  
    }

    function initAnchors() {
      $('a[href*="#"]').on('click', function(e){
        var pathName = window.location.pathname;
        var linkPath = this.pathname;
        if (pathName == linkPath) {        
          var landing = $(this).attr('href');
          landing = landing.split('#')[1];
          if (landing &amp;&amp; $('#' + landing).length) {
            e.preventDefault();            
            landing = $('#' + landing).offset().top - $(window).height() / 10;      
            $("html, body").animate({scrollTop: landing + 'px'}, 500);
          }
        }
      });      
    }  

    function initHoverImages() {
      /* Hover image links */
      $('.paragraph--type--_-col-image-link-panel .hover-panel').each(function() { 
          var link = $(this).find('a');
          if (link) {
              var url = $(this).find('a').attr('href');
              $(this).on('click', function() {
                  window.location = url;
              })
          }
      });
    }
  
    function initResponsiveIframes() {
      /* Responsive iframes */
      $('iframe.responsive').wrap('&lt;div class="iframe-responsive"&gt;&lt;/div'); 
    }

  

    function initMessages() {
      // Close button on system messages.
      $(document).on('click', '.system-messages .close', function() {
        $(this).parent().addClass('dismiss');
        setTimeout(function() {
          $('.system-messages').hide();
        }, 500); 
      });       
    }

    function initSlideshow() {
      $('.paragraph--type--slideshow img').each(function() {
        var href = $(this).attr('src');
        $(this).wrap('&lt;a href="' + href + '" class="image-link"&gt;&lt;/a&gt;');
      });        
      $('.paragraph--type--slideshow').each(function() { 
          $('a.image-link').featherlightGallery({
            previousIcon: '&amp;#8249;',    
            nextIcon: '&amp;#8250;',         
            galleryFadeIn: 100,          
            galleryFadeOut: 300 
          });        
      });
    }

    function initPopups() {
      $('.popup-wrapper .visible-section a.popup').on('click', function(e) {
        var popup_content = $(this).closest('.popup-wrapper').find('.popup-section').html();
        $.featherlight(popup_content); 
      });
    }

    function initShowMore() {
      $(document).on('click', '.show-more', function() {
        var txt = $(this).text();
        if (txt == 'Show More') {
          txt = 'Close';
        }
        else {
          txt = 'Show More';
        }
        $(this).closest('.paragraph').find('.feature-col-more-text').toggleClass('active');
        $(this).text(txt);
      });
    } 
   
}(jQuery));


</pre></body></html>