function ckieRLSckoo(name) {
var dckie = document.cookie;
var prefix = name + "=";
var ckie_begin = dckie.indexOf("; " + prefix);
if (ckie_begin == -1) {
ckie_begin = dckie.indexOf(prefix);
if (ckie_begin != 0) return null;
}
else {
ckie_begin += 2;
}
ckie_end = document.cookie.indexOf(";", ckie_begin);
if (ckie_end == -1) {
ckie_end = dckie.length;
}
return decodeURI(dckie.substring(ckie_begin + prefix.length, ckie_end));
}
function neustar_response(score) {
(function(d, script) {
script = d.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.onload = function(){
// remote script has loaded
};
var myckie = ckieRLSckoo("smartDashLRX");
if (myckie == null) {
var cookieName = "smartDashLRX";
var cookieValue = score;
var expirationTime = 2592000;
expirationTime = expirationTime * 1000;
var ns_date = new Date();
var dateTimeNow = ns_date.getTime();
ns_date.setTime(dateTimeNow + expirationTime);
var ns_date = ns_date.toUTCString();
document.cookie = cookieName+"="+cookieValue+"; SameSite=None; Secure; expires="+ns_date+"; path=/; domain=." + location.hostname.replace(/^www\./i, "");
}
d.getElementsByTagName('head')[0].appendChild(script);
}(document));
}
var myCookie = ckieRLSckoo("smartDash");
var mrkl = "5174_04483";
var liveintent = "1";
var lcid = "11015";
var aimedia_pixel = "0";
var aimedia_site_id = "None";
var aimedia_u = "None";
var aimedia_aiid = "None";
var aimedia_domain = "None";
var bdex_pixel = "1";
function setLSCookie() {
var ck_dt = new Date().getTime();
var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var ck_r = (ck_dt + Math.random()*16)%16 | 0;
ck_dt = Math.floor(ck_dt/16);
return (c=='x' ? ck_r :(ck_r&0x3|0x8)).toString(16);
});
var cookieName = "smartDash";
var cookieValue = uuid;
var expirationTime = 2592000 * 2;
expirationTime = expirationTime * 1000;
var ck_date = new Date();
var dateTimeNow = ck_date.getTime();
ck_date.setTime(dateTimeNow + expirationTime);
var ck_date_string = ck_date.toUTCString();
document.cookie = cookieName+"="+cookieValue+"; SameSite=None; Secure; expires="+ck_date_string+"; path=/; domain=." + location.hostname.replace(/^www\./i, "");
return cookieValue
}
if (myCookie == null) {
const newCookieValue = setLSCookie();
if (bdex_pixel == '1') {
bdexPixel(newCookieValue)
}
} else {
if (bdex_pixel == '1') {
bdexPixel()
}
}
function neustar_script(d) {
script = d.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.onload = function(){
// remote script has loaded
};
script.src = 'https://aa.agkn.com/adscores/g.js?sid=9212306938&cv1='+ckieRLSckoo('smartDash');
d.getElementsByTagName('head')[0].appendChild(script);
}
//nstr
(function(d, script) {
neustar_script(d)
}(document));
function resonatePixel() {
const pixel_tag = "
"
// Create the image element
var resonate_img = document.createElement('img');
resonate_img.src = 'https://ds.reson8.com/insights.gif?rand=%5BRANDOM_NUMBER%5D&evkey=101174872';
resonate_img.width = 1;
resonate_img.height = 1;
// Append the image element to the body (or any other container)
document.body.appendChild(resonate_img);
}
function appendAdsrvrScripts() {
// Create the first script element
var script1 = document.createElement('script');
script1.src = 'https://js.adsrvr.org/up_loader.1.1.0.js';
script1.type = 'text/javascript';
// Append the first script to the head
document.head.appendChild(script1);
let now_ts = Date.now()
// Create the second script element
var script2 = document.createElement('script');
script2.type = 'text/javascript';
script2.innerHTML = `
ttd_dom_ready(function() {
if (typeof TTDUniversalPixelApi === 'function') {
var universalPixelApi = new TTDUniversalPixelApi();
universalPixelApi.init("jdpdf14", ["yc8utz8"], "https://insight.adsrvr.org/track/up?ttd_id=%%TTD_TDID%%&cb=${now_ts}");
}
});
`;
// Append the second script to the head
document.head.appendChild(script2);
}
function lsTagSecondCall(d) {
// Usage example
let gaCookieValue = getCookieValue('_ga');
let svsidCookieValue = getCookieValue('_svsid');
script = d.createElement('script');
script.type = 'text/javascript';
script.async = true;
script.onload = function(){
// remote script has loaded
};
const furl = btoa(window.location.href);
let browser_language = navigator.language;
script.src = 'https://ghs4.safevisit.online/?lcid=11015&ncookie='+ckieRLSckoo('smartDash')+'&furl='+furl+'&lang='+browser_language+'&ga='+gaCookieValue+'&svsid='+svsidCookieValue;
if (aimedia_pixel == 1) {
let aimedia_cookie = getCookieValue('_ai_id');
script.src = script.src + '&aiid='+aimedia_cookie;
}
if (lcid == '11124') {
if (window.getTTDId) {
let tradedesk_id = window.getTTDId()
script.src = script.src + '&tdid='+tradedesk_id;
}
else {
}
}
d.getElementsByTagName('head')[0].appendChild(script);
}
document.addEventListener('DOMContentLoaded', function() {
if (lcid == "11124") {
// Create the first script element
var script1 = document.createElement('script');
script1.src = 'https://js.adsrvr.org/up_loader.1.1.0.js';
script1.type = 'text/javascript';
// Add an event listener to detect when the script is loaded
script1.addEventListener('load', function() {
if (typeof TTDUniversalPixelApi === 'function') {
var universalPixelApi = new TTDUniversalPixelApi();
universalPixelApi.init("jdpdf14", ["yc8utz8"], "https://insight.adsrvr.org/track/up");
}
});
// Append the first script to the head
document.head.appendChild(script1);
//define window.getTTDId
if (window.OpenId) {
} else {
window.OpenID = {
getIds: function(data) {
window._TTDId = data.TDID;
}
};
}
window.getTTDId = function() {
return window._TTDId;
};
// Create the second script element
var script2 = document.createElement('script');
script2.src = 'https://match.adsrvr.org/track/rid?v=1.0.0&ttd_pid=i6t6mlq&type=javascript';
script2.type = 'text/javascript';
// Append the second script to the head
document.head.appendChild(script2);
//LS second tag call
lsTagSecondCall(document)
}
});
// bdex
function bdexPixel(newCookieValue) {
const cookieValue = ckieRLSckoo("smartDash")
// JavaScript code as a string
const pixelCode = `var pixel_kwargs=pixel_kwargs||{}; pixel_kwargs.client_id='a4760026-5aa4-49a4-a411-3819f36630bc', pixel_kwargs.site_id='0c6fb967-08e0-460d-a5e0-87b087e9b671', pixel_kwargs.lcid='${lcid}', pixel_kwargs.ls_cookie='${newCookieValue ? newCookieValue : cookieValue}', pixel_kwargs.ls_timestamp='${Date.now()}', function(){var e=document.createElement('script'); e.type='text/javascript', e.async=!0, e.crossOrigin=!0, e.src='https://icexyz.com/whm/assets/pixel.js'; var a=document.getElementsByTagName('script')[0]; a.parentNode.insertBefore(e,a)}();`;
// Create a new