$(function () { "use strict"; function siteInitialize(){ //handle footer height accomodation var footerHeight = $('footer').outerHeight(true); $('main').css('padding-bottom',footerHeight); } siteInitialize(); $(window).resize(function() { siteInitialize(); }); $(".exitlink").css("cursor", "pointer"); $(".exitlink").click(function () { var destination = $(this).attr('rel'); var r = confirm("By selecting okay, you will be leaving the garrett Mortgage website and entering a website hosted by another party. Although garrett Mortgage has approved this as a reliable partner site, please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of the garrett Mortgage website. We encourage you to read and evaluate the privacy and security policies on the site you are entering, which may be different from those of your garrett Mortgage's.\n \nThe websites identified and linked on this page are provided solely for your convenience, and the contents of this page do not constitute any endorsement, referral or recommendation of any type whatsoever by garrett Mortgage. Nor shall the contents of this page be construed to create a partnership, joint venture or any other relationship between garrett Mortgage and any other person, natural or legal. garrett Mortgage does not represent either the third party or the member if the two enter into a transaction.\n \n GARRETT MORTGAGE DOES NOT WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE, VALIDITY, ACCURACY OR RELIABILITY OF, OR THE RESULTS OF THE USE OF, OR OTHERWISE RESPECTING, THE INFORMATION ON THIS PAGE OR ANY SITES LINKED TO THIS PAGE INCLUDING, BUT NOT LIMITED TO, INFORMATION CONCERNING OR PROVIDED BY THIRD PARTIES WHICH IS REACHABLE FROM THE SITE.\n \n"); if (r == true) { window.location.assign(destination) } }); $(function () { $(".trackEvent").click(function () { var category = "Undefined"; var title = $(this).data("title"); var category = $(this).data("category"); ga("send", "event", { eventCategory: category, eventAction: "click", eventLabel: title, transport: "beacon" }); }); }); });