' + '{{else if partNumber}}' + '{{#if inventoryCondition}}{{inventoryCondition}} {{/if}}{{partNumber}}
' + '{{/if}}' + '{{#if modelName}}' + '{{manufacturerName}} {{modelName}}
' + '{{/if}}' + '{{#if inventoryTerm}}' + '{{inventoryTerm}}' + '{{/if}}' + '{{#if partCategory}}' + '{{partCategory}}' + '{{/if}}' + '{{#if modelCategory}}' + '{{modelCategory}}' + '{{/if}}' + '' ) } } ) .unbind("blur") .on("blur", function () { $('#search-keyword').typeahead("close"); }) .on('typeahead:selected typeahead:autocompleted', function (e, sitesearch) { window.location = window.location.protocol + "//" + window.location.host + "/" + sitesearch.canonicalURL; });}$(function(){ $('.lazy').lazy(); $('#f-submitBtn').on('click' , function(event){ event.preventDefault(); $('#footer-enquiry-form').submit(); }); positionFooter(); window.dataLayer = window.dataLayer || [];window.dataLayer.push([]);});function submitSubscription(token) { document.getElementById("newsletter-subscription").submit();}function submitEnquiry(token) { document.getElementById("footer-enquiry-form").submit();}function positionFooter(){ let footerHeight = $("#sourcing-services").height(); let footerTop = ($(window).scrollTop()+$(window).height()-footerHeight)+"px"; if(($(document.body).height()+footerHeight) > $(window).height()){ $("#sourcing-services").css({position: "absolute"}).stop().animate({top: footerTop},0); }else{ $("#sourcing-services").css({position: "static"}); }}$('.cta-event').on('click', function(){ window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'ctaType': $(this).data('ctatype'), 'ctaText': $(this).data('ctatext'), 'ctaDestinationURL': ($(this).data('ctalink') !== undefined ? $(this).data('ctalink') : $(this).attr('href')), 'event': 'ctaClick' });});function GTMpush(attrName, attrVal, eventVal){ window.dataLayer = window.dataLayer || []; dataLayer.push({ [attrName]: attrVal, 'event': eventVal });}