/**
 * fis.initialize.js - Run required Javascript on each page load
 * 
 * This depends on and must be loaded after jQuery.
 */

$(document).ready(function() {

    /// --- EXTERNAL LINKS ---
    /// automatically open all external links in a new window
    $('a:not([href=""])').each(function() {
        if (this.hostname !== location.hostname) {
            $(this).addClass('externalLink').attr('target', "_blank");
        }
    });
    /// --- END EXTERNAL LINKS
    
    
    
    /// --- APPLY STICKYOOFTER ---
    /// pin the FIS footer to the bottom of the window
    $(".footer").pinFooter();
    $(window).resize(function() { // re-pin on resize
        $(".footer").pinFooter();
    });
    /// --- END STICKYFOOTER ---
    
});

