/* eslint-disable */ var __mpGpt = (function () { function getCookie(name) { let start = document.cookie.indexOf(name + "="); let len = start + name.length + 1; if (!start && name !== document.cookie.substring(0, name.length)) { return null; } if (start === -1) { return null; } let end = document.cookie.indexOf(";", len); if (end === -1) { end = document.cookie.length; } return decodeURIComponent(document.cookie.substring(len, end)); } function getConsentValue() { return getCookie('cmapi_cookie_privacy'); } function hasConsent() { var consentBuckets = getConsentValue(); return typeof consentBuckets === 'string' && consentBuckets.indexOf('3') > -1; } function noConsent() { var consentBuckets = getConsentValue(); return typeof consentBuckets === 'string' && consentBuckets.indexOf('3') === -1; } function isEuCompliant() { if (typeof window.fmpWpGlobals.current_vertical === 'string' && ['advisor_uk', 'advisor_de'].includes(window.fmpWpGlobals.current_vertical)) { return true; } if (window.location.pathname.includes('uk/advisor') || window.location.pathname.includes('advisor/de')) { return true; } return false; } return { hasConsent, noConsent, isEuCompliant } })(); window.googletag = {}; googletag.cmd = googletag.cmd || []; (function(){ window.advBidxc = window.advBidxc || {}; window.advBidxc.renderAd = function () {}; window.advBidxc.startTime = new Date().getTime(); window.advBidxc.timeout = 400; window.advBidxc.version = 6.1; if (__mpGpt.isEuCompliant()) { window.advBidxc.limitedAds = !__mpGpt.hasConsent(); } else { window.advBidxc.limitedAds = __mpGpt.noConsent(); } window.advBidxc.customerId = "8CU25AH4U"; window.advBidxc.domain = window.location.hostname; function loadScript(tagSrc) { if (tagSrc.substr(0, 4) !== 'http') { var isSSL = 'https:' == document.location.protocol; tagSrc = (isSSL ? 'https:' : '') + tagSrc; } var scriptTag = document.createElement('script'), placeTag = document.getElementsByTagName("script")[0]; scriptTag.type = 'text/javascript'; scriptTag.async = true; scriptTag.src = tagSrc; placeTag.parentNode.insertBefore(scriptTag, placeTag); } function loadGPT() { if (!window.advBidxc.isAdServerLoaded) { if (window.advBidxc.limitedAds) { loadScript('//pagead2.googlesyndication.com/taghttps://www.forbes.com/js/gpt.js'); } else { loadScript('//securepubads.g.doubleclick.net/taghttps://www.forbes.com/js/gpt.js'); } window.advBidxc.isAdServerLoaded = true; } } window.advBidxc.loadGPT = setTimeout(loadGPT, window.advBidxc.timeout); var isSSL = 'https:' == document.location.protocol; var mnSrc = (isSSL ? 'https:' : 'http:') + '//hbx.media.net/bidexchange.js?cid=' + window.advBidxc.customerId + '&dn=' + window.advBidxc.domain + '&version=' + window.advBidxc.version + (isSSL ? '&https=1' : ''); loadScript(mnSrc); })();