');$('#site_header').removeClass('searching');if ($('#site_header').hasClass('scroll')) {$('#site_branding').attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-small.png');}else {$('#site_branding').attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac.png');}}else {$(this).addClass('active').html('X');$('.search_dropdown').slideDown(150);$('#site_header').addClass('searching');if ($('#site_header').hasClass('scroll')) {$('#site_branding').attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-small-white.png');}else {$('#site_branding').attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-white.png');}}});$('#mob_menu').click(function(){if ($('#mobile_dropdown').is(':hidden')) {$('#mobile_dropdown').fadeIn(100);$(this).html('x');}else {$('#mobile_dropdown').fadeOut(100);$(this).html('');}});$('.mob_nav_item').click(function(e){e.preventDefault();var href = $(this).attr('href'),target = $(href+'_mob');if (target.is(':hidden')) {$('.mob_subnav').slideUp(150);$('.mob_nav_item').removeClass('active');target.slideDown(150);$(this).addClass('active');}else {target.slideUp(150);$(this).removeClass('active');}});});function changeHeader() {var top = $(window).scrollTop(),header = $('#site_header'),branding = $('#site_branding');if (top > 125) {header.addClass('scroll');$('.refine_selection').css('top', 80);if (header.hasClass('searching')) {branding.attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-small-white.png');}else {branding.attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-small.png');}}else {header.removeClass('scroll');$('.refine_selection').css('top', 125);if (header.hasClass('searching')) {branding.attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac-white.png');}else {branding.attr('src', 'https://www.doorpac.co.uk/_assets/core_images/logos/doorpac.png');}}}var cookie_gdpr = getCookie("cookieconsent_status"); if(cookie_gdpr == 'allow') { enableTracking();}window.addEventListener("load", function(){window.cookieconsent.initialise({"palette": {"popup": {"background": "#163416",},"button": {"background": "#6eaf45"}},"position": "bottom-right",layout: 'my-cool-layout',layouts: {'my-cool-layout': '