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 { var x; var 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.withCredentials = true; //x.timeout = 3000; if (!useXDomainRequest) { x.setRequestHeader('Content-Type', 'text/plain'); } x.send(); } catch (e) {} } function getCmpConsent_f81ff61824() { if (!window.__cmp) { var cmpFrame; var f = window; 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, '*'); } if (window.addEventListener) { window.addEventListener("message", function (event) { var json = (event.data && typeof event.data === 'string' && event.data.indexOf('Return') !== -1) ? JSON.parse(event.data) : event.data; if (json.__cmpReturn && json.__cmpReturn.callId) { var i = json.__cmpReturn; if (typeof cmpCallbacks[i.callId] !== 'undefined') { cmpCallbacks[i.callId](i.returnValue, i.success); delete cmpCallbacks[i.callId]; } } }, false); } } window.__cmp('getConsentData', null, function (result) { window.ox_gdprApplies = window.ox_gdprApplies || result.gdprApplies; window.ox_consentData = window.ox_consentData || result.consentData; }); window.__cmp('getVendorConsents', [408], function(result) { if (result.vendorConsents && typeof result.vendorConsents[408] !== 'undefined') { window.ox_consentGiven = window.ox_consentGiven || result.vendorConsents[408]; } }); setTimeout(function() { window.__cmp('getConsentData', null, function (result) { window.ox_gdprApplies = window.ox_gdprApplies || result.gdprApplies; window.ox_consentData = window.ox_consentData || result.consentData; }); window.__cmp('getVendorConsents', [408], function(result) { if (result.vendorConsents && typeof result.vendorConsents[408] !== 'undefined') { window.ox_consentGiven = window.ox_consentGiven || result.vendorConsents[408]; } }); }, 200); } if (window.__cmp) { getCmpConsent_f81ff61824(); } else { setTimeout(function() { getCmpConsent_f81ff61824(); }, 500); } function getCmpConsent2_f81ff61824() { if (!window.__tcfapi) { var cmpFrame; var f = window; while (!cmpFrame) { try { if (f.frames["__tcfapiLocator"]) cmpFrame = f; } catch (e) {} if (f === window.top) break; f = f.parent; } var cmpCallbacks = {}; window.__tcfapi = function (cmd, version, callback, arg) { if (!cmpFrame) { callback({ msg: "CMP not found" }, false); return; } var callId = Math.random() + ""; var msg = { __tcfapiCall: { command: cmd, parameter: arg, version: 2, callId: callId, } }; cmpCallbacks[callId] = callback; cmpFrame.postMessage(msg, '*'); } if (window.addEventListener) { window.addEventListener("message", function (event) { var json = (event.data && typeof event.data === 'string' && event.data.indexOf('Return') !== -1) ? JSON.parse(event.data) : event.data; if (json.__tcfapiReturn && json.__tcfapiReturn.callId) { var i = json.__tcfapiReturn; if (typeof cmpCallbacks[i.callId] !== 'undefined') { cmpCallbacks[i.callId](i.returnValue, i.success); delete cmpCallbacks[i.callId]; } } }, false); } } window.__tcfapi('addEventListener', 2, function (tcfData, success) { if (success) { if (tcfData.eventStatus === 'tcloaded' || tcfData.eventStatus === 'useractioncomplete') { window.ox_gdprApplies = window.ox_gdprApplies || tcfData.gdprApplies; window.ox_consentData = window.ox_consentData || tcfData.tcString; if (tcfData.vendor && tcfData.vendor.consents) window.ox_consentGiven = window.ox_consentGiven || tcfData.vendor.consents[408]; } else if (tcfData.eventStatus === 'cmpuishown' && tcfData.tcString && tcfData.purposeOneTreatment === true) { window.ox_gdprApplies = window.ox_gdprApplies || tcfData.gdprApplies; window.ox_consentData = window.ox_consentData || tcfData.tcString; if (tcfData.vendor && tcfData.vendor.consents) window.ox_consentGiven = window.ox_consentGiven || tcfData.vendor.consents[408]; } } }); setTimeout(function() { window.__tcfapi('addEventListener', 2, function (tcfData, success) { if (success) { if (tcfData.eventStatus === 'tcloaded' || tcfData.eventStatus === 'useractioncomplete') { window.ox_gdprApplies = window.ox_gdprApplies || tcfData.gdprApplies; window.ox_consentData = window.ox_consentData || tcfData.tcString; if (tcfData.vendor && tcfData.vendor.consents) window.ox_consentGiven = window.ox_consentGiven || tcfData.vendor.consents[408]; } else if (tcfData.eventStatus === 'cmpuishown' && tcfData.tcString && tcfData.purposeOneTreatment === true) { window.ox_gdprApplies = window.ox_gdprApplies || tcfData.gdprApplies; window.ox_consentData = window.ox_consentData || tcfData.tcString; if (tcfData.vendor && tcfData.vendor.consents) window.ox_consentGiven = window.ox_consentGiven || tcfData.vendor.consents[408]; } } }); }, 200); } setTimeout(function() { getCmpConsent2_f81ff61824(); }, 500); function getUspapiConsent_f81ff61824() { if (!window.__uspapi) { var uspapiFrame; var f = window; while (!uspapiFrame) { try { if (f.frames["__uspapiLocator"]) uspapiFrame = f; } catch (e) {} if (f === window.top) break; f = f.parent; } var uspapiCallbacks = {}; window.__uspapi = function (cmd, ver, callback) { if (!uspapiFrame) { callback({ msg: "USP CMP not found" }, false); return; } var callId = Math.random() + ""; var msg = { __uspapiCall: { command: cmd, version: ver, callId: callId } }; uspapiCallbacks[callId] = callback; uspapiFrame.postMessage(msg, '*'); } if (window.addEventListener) { window.addEventListener("message", function (event) { var json = (event.data && typeof event.data === 'string' && event.data.indexOf('Return') !== -1) ? JSON.parse(event.data) : event.data; if (json.__uspapiReturn && json.__uspapiReturn.callId) { var i = json.__uspapiReturn; if (typeof uspapiCallbacks[i.callId] !== 'undefined') { uspapiCallbacks[i.callId](i.returnValue, i.success); delete uspapiCallbacks[i.callId]; } } }, false); } } window.__uspapi('getUSPData', null, function(uspData, success) { if (uspData) window.ox_usPrivacy = window.ox_usPrivacy || uspData.uspString; }); setTimeout(function() { window.__uspapi('getUSPData', null, function(uspData, success) { if (uspData) window.ox_usPrivacy = window.ox_usPrivacy || uspData.uspString; }); }, 200); } if (window.__uspapi) { getUspapiConsent_f81ff61824(); } else { setTimeout(function() { getUspapiConsent_f81ff61824(); }, 500); } setTimeout(function() { ox_doRun_f81ff61824(); }, 1000); function ox_doRun_f81ff61824() { var url0 = ''; if (window.ox_gdprApplies) url0 += "&gdpr=" + (window.ox_gdprApplies ? 1 : 0); if (window.ox_consentData) url0 += "&consent_str=" + encodeURIComponent(window.ox_consentData); if (window.ox_consentGiven) url0 += "&consent_given=" + (window.ox_consentGiven ? 1 : 0); if (window.ox_usPrivacy) url0 += "&us_privacy=" + encodeURIComponent(window.ox_usPrivacy); (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=sys' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=bidsw' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=bidsw' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=smtyn' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=adfrs' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=smtyn' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=wadxprem' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=rhtmkub' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=smrtuswl' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=33acr' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=syncr' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=ixex' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=rtbplatban' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=rtbplatnat' + url0; (new Image()).src = 'https://x.fidelity-media.com/pixel.php?dsp=adapc' + url0; var m3_r = Math.floor(Math.random()*99999999999); var url = 'https://x.fidelity-media.com/delivery/ajs.php'; url += "?zoneid=63941"; url += "&from=sjs"; url += "&cb=" + m3_r; url += "&ab=1603909158" + m3_r; url += "&flashver=" + encodeURIComponent(ox_getFlashVersion()); url += (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : '')); url += url0; 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-63941'); for (var i = 0; i < elements.length; i++) { if (elements[i].childElementCount == 0) { elements[i].insertAdjacentHTML("beforeend", ""); break; } } elements = document.getElementsByName('ifr_f81ff61824'); 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 || 0; iframe.height = data.height || 0; iframeDoc.open(); iframeDoc.write(""); iframeDoc.write(""); iframeDoc.write(''); iframeDoc.write(''); iframeDoc.write(data.adm); iframeDoc.write(""); iframeDoc.write(""); iframeDoc.close(); } } } });}