function ox_getTopWindowReferrer() { try { return window.top.document.referrer; } catch (e) { return document.referrer; } } function ox_getTopWindowUrl() { var href = void 0; try { href = ox_getTopWindowLocation(); } catch (e) { href = ''; } return href; } function ox_getTopWindowLocation() { if (ox_inIframe()) { var loc = void 0; try { loc = ox_getAncestorOrigins() || ox_getTopFrameReferrer(); } catch (e) {} if (loc) return decodeURIComponent(loc); } return window.location.href; } function ox_inIframe() { try { return window.self !== window.top; } catch (e) { return true; } } function ox_getAncestorOrigins() { if (window.document.location && window.document.location.ancestorOrigins && window.document.location.ancestorOrigins.length >= 1) { return window.document.location.ancestorOrigins[window.document.location.ancestorOrigins.length - 1]; } } function ox_getTopFrameReferrer() { try { window.top.location.toString(); var referrerLoc = ''; var currentWindow = void 0; do { currentWindow = currentWindow ? currentWindow.parent : window; if (currentWindow.document && currentWindow.document.referrer) { referrerLoc = currentWindow.document.referrer; } } while (currentWindow !== window.top); return referrerLoc; } catch (e) { return window.document.referrer; } } function ox_getFlashVersion(){ var plugins, plugin, result; if (navigator.plugins && navigator.plugins.length > 0) { plugins = navigator.plugins; for (var i = 0; i < plugins.length && !result; i++) { plugin = plugins[i]; if (plugin.name.indexOf("Shockwave Flash") > -1) { result = plugin.description.split("Shockwave Flash ")[1]; } } } return result ? result : ""; } function ox_sendRequest(url, callback) { try { let x; let useXDomainRequest = false; if (!window.XMLHttpRequest) { useXDomainRequest = true; } else { x = new window.XMLHttpRequest(); if (x.responseType === undefined) { useXDomainRequest = true; } } if (useXDomainRequest) { x = new window.XDomainRequest(); x.onload = function () { callback(x.responseText, x); }; } else { x.onreadystatechange = function () { if (x.readyState === 4) { var status = x.status; if (status >= 200 && status < 300 || status === 304) { callback(x.responseText, x); } } }; } x.open('GET', url); //x.timeout = 3000; if (!useXDomainRequest) { x.setRequestHeader('Content-Type', 'text/plain'); } x.send(); } catch (error) {} } if (!window.__cmp) { var f = window; var cmpFrame; while (!cmpFrame) { try { if (f.frames["__cmpLocator"]) cmpFrame = f; } catch (e) {} if (f === window.top) break; f = f.parent; } var cmpCallbacks = {}; window.__cmp = function (cmd, arg, callback) { if (!cmpFrame) { callback({ msg: "CMP not found" }, false); return; } var callId = Math.random() + ""; var msg = { __cmpCall: { command: cmd, parameter: arg, callId: callId } }; cmpCallbacks[callId] = callback; cmpFrame.postMessage(msg, '*'); } window.addEventListener("message", function (event) { var msgIsString = typeof event.data === "string"; var json = event.data; if (msgIsString) { try { json = JSON.parse(event.data); } catch (e) {} } if (json.__cmpReturn) { var i = json.__cmpReturn; cmpCallbacks[i.callId](i.returnValue, i.success); delete cmpCallbacks[i.callId]; } }, false); } var ox_gdprApplies, ox_consentData, ox_consentGiven; window.__cmp('getConsentData', null, function (result) { window.ox_gdprApplies = result.gdprApplies; window.ox_consentData = result.consentData; }); window.__cmp('getVendorConsents', [408], function(result) { if (result.vendorConsents && typeof result.vendorConsents[408] !== 'undefined') { window.ox_consentGiven = result.vendorConsents[408]; } }); setTimeout(ox_doRun_5e61dc5564, 1000); function ox_doRun_5e61dc5564() { var ox_gdprApplies = window.ox_gdprApplies; var ox_consentData = window.ox_consentData; var ox_consentGiven = window.ox_consentGiven; var url; url = 'http://x.fidelity-media.com/pixel.php?dsp=sys'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidsw'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidsw'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidsw'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=smtyn'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=adfrs'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=replr'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=smtyn'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=pltf'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=smtyn'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidsweun'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidswusn'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=bidswasn'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=ontg'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=fmxsspadk_1'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=fmxsspadk_2'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=fmxsspadk_3'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; url = 'http://x.fidelity-media.com/pixel.php?dsp=fmxsspadk_4'; if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); (new Image()).src = url; var m3_r = Math.floor(Math.random()*99999999999); url = (location.protocol=='https:' ? 'https://x.fidelity-media.com/delivery/ajs.php' : 'http://x.fidelity-media.com/delivery/ajs.php'); url += "?zoneid=28015"; url += "&from=sjs"; url += "&cb=" + m3_r; url += "&ab=1554446504" + m3_r; url += "&flashver=" + encodeURIComponent(ox_getFlashVersion()); if (ox_gdprApplies) url += "&gdpr=" + (ox_gdprApplies ? 1 : 0); if (ox_consentData) url += "&consent_str=" + encodeURIComponent(ox_consentData); if (ox_consentGiven) url += "&consent_given=" + (ox_consentGiven ? 1 : 0); url += (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); url += "&subid=" + encodeURIComponent('at'); url += "&defloc=" + encodeURIComponent(ox_getTopWindowUrl()); var referrer = ox_getTopWindowReferrer(); if (referrer) url += "&referer=" + encodeURIComponent(referrer); ox_sendRequest(url, function (data) { data = JSON.parse(data); if (data && data.adm) { var scripts = document.getElementsByTagName('script'); for (var i=0;i"); } } var elements = document.getElementsByName('fmx-zoneid-28015'); for (var i = 0; i < elements.length; i++) { if (elements[i].childElementCount == 0) { elements[i].insertAdjacentHTML("beforeend", ""); break; } } var elements = document.getElementsByName('ifr_5e61dc5564'); for (var i = 0; i < elements.length; i++) { var iframe = elements[i]; if (iframe != null && iframe.width == 0 && iframe.height == 0) { var iframeDoc = iframe.contentDocument || iframe.contentWindow.document; iframe.width = data.width; iframe.height = data.height; iframeDoc.open(); iframeDoc.write(""); iframeDoc.write(""); iframeDoc.write(''); iframeDoc.write(''); iframeDoc.write(data.adm); iframeDoc.write(""); iframeDoc.write(""); iframeDoc.close(); } } } });}