[] 0) { var offset = document.cookie.indexOf(search); if (offset !== -1) { offset += search.length; var end = document.cookie.indexOf(‘;’, offset); if (end === -1) { end = document.cookie.length; } returnValue = decodeURIComponent(document.cookie.substring(offset, end).replace(/+/g, ‘%20’)); } } return returnValue; }; current_status = function () { var name = ‘USERCONSENT’; var result = get_cookie(name); return parseInt(result); }; cookie_has_agreed = function () { var status = current_status(); if (status === 1 || status === 2) { return true; } return false; }; gtmLoadCookie = function () { if (cookie_has_agreed()) { (function(w,d,s,l,i){ w[l]=w[l]||[]; w[l].push({‘gtm.start’:new Date().getTime(),event:’gtm.js’}); var f=d.getElementsByTagName(s)[0]; var j=d.createElement(s); var dl=l!=’dataLayer’?’&l=’+l:”; j.type=’text/javascript’; j.src=’https://www.googletagmanager.com/gtm.js?id=’+i+dl+”; j.async=true; f.parentNode.insertBefore(j,f); })(window,document,’script’,’dataLayer’,’GTM-NJ4RJP’); } }; if (cookie_has_agreed()) { gtmLoadCookie(); } ]]> Skip to main content