Skip to content

Instantly share code, notes, and snippets.

@endemic
Created September 7, 2016 01:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endemic/31db448e4a63060d150b23abd7b60177 to your computer and use it in GitHub Desktop.
Save endemic/31db448e4a63060d150b23abd7b60177 to your computer and use it in GitHub Desktop.
/*
* tagContainer Generator v5
* Copyright Tag Commander
* http://www.tagcommander.com/
* Generated: 2016-08-25 16:55:37 Europe/Paris
* ---
* Version : 66.02
* IDTC : 1
* IDS : 1376
*/
/*!compressed by YUI*/
if (typeof tC == "undefined") {
if (typeof document.domain == "undefined" || typeof document.referrer == "undefined") {
document = window.document;
}
(function(m, k) {
var j, r, y = m.document, a = m.location, e = m.navigator, x = m.tC, v = m.$, H = Array.prototype.push, b = Array.prototype.slice, u = Array.prototype.indexOf, g = Object.prototype.toString, i = Object.prototype.hasOwnProperty, o = String.prototype.trim, c = function(J, K) {
return new c.fn.init(J, K, j);
}, B = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, q = /\S/, t = /\s+/, d = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, w = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, l = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, D = /^[\],:{}\s]*$/, z = /(?:^|:|,)(?:\s*\[)+/g, G = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, E = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, I = /^-ms-/, p = /-([\da-z])/gi, F = function(J, K) {
return (K + "").toUpperCase();
}, f = {};
c.fn = c.prototype = {
constructor: c,
init: function(J, M, P) {
var L, N, K, O;
if (!J) {
return this;
}
if (J.nodeType) {
this.context = this[0] = J;
this.length = 1;
return this;
}
if (typeof J === "string") {
if (J.charAt(0) === "<" && J.charAt(J.length - 1) === ">" && J.length >= 3) {
L = [ null, J, null ];
} else {
L = w.exec(J);
}
if (L && (L[1] || !M)) {
if (L[1]) {
M = M instanceof c ? M[0] : M;
O = M && M.nodeType ? M.ownerDocument || M : y;
J = c.parseHTML(L[1], O, true);
if (l.test(L[1]) && c.isPlainObject(M)) {
this.attr.call(J, M, true);
}
return c.merge(this, J);
} else {
N = y.getElementById(L[2]);
if (N && N.parentNode) {
if (N.id !== L[2]) {
return P.find(J);
}
this.length = 1;
this[0] = N;
}
this.context = y;
this.selector = J;
return this;
}
} else {
if (!M || M.tC) {
return (M || P).find(J);
} else {
return this.constructor(M).find(J);
}
}
} else {
if (c.isFunction(J)) {
return P.ready(J);
}
}
if (J.selector !== k) {
this.selector = J.selector;
this.context = J.context;
}
return c.makeArray(J, this);
},
each: function(K, J) {
return c.each(this, K, J);
},
ready: function(J) {
c.ready.promise(J);
return this;
}
};
c.fn.init.prototype = c.fn;
c.extend = c.fn.extend = function() {
var S, L, J, K, P, Q, O = arguments[0] || {}, N = 1, M = arguments.length, R = false;
if (typeof O === "boolean") {
R = O;
O = arguments[1] || {};
N = 2;
}
if (typeof O !== "object" && !c.isFunction(O)) {
O = {};
}
if (M === N) {
O = this;
--N;
}
for (;N < M; N++) {
if ((S = arguments[N]) != null) {
for (L in S) {
J = O[L];
K = S[L];
if (O === K) {
continue;
}
if (R && K && (c.isPlainObject(K) || (P = c.isArray(K)))) {
if (P) {
P = false;
Q = J && c.isArray(J) ? J : [];
} else {
Q = J && c.isPlainObject(J) ? J : {};
}
O[L] = c.extend(R, Q, K);
} else {
if (K !== k) {
O[L] = K;
}
}
}
}
}
return O;
};
c.extend({
ssl: "https:" == y.location.protocol ? "https://manager." : "http://redirect1376.",
randOrd: function() {
return Math.round(Math.random()) - .5;
},
nodeNames: "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
rnocache: /<(?:script|object|embed|option|style)/i,
rnoshimcache: new RegExp("<(?:" + c.nodeNames + ")[\\s/>]", "i"),
rchecked: /checked\s*(?:[^=]|=\s*.checked.)/i,
containersLaunched: {}
});
c.extend({
inArray: function(N, K, M) {
var J, L = Array.prototype.indexOf;
if (K) {
if (L) {
return L.call(K, N, M);
}
J = K.length;
M = M ? M < 0 ? Math.max(0, J + M) : M : 0;
for (;M < J; M++) {
if (M in K && K[M] === N) {
return M;
}
}
}
return -1;
},
isFunction: function(J) {
return c.type(J) === "function";
},
isArray: Array.isArray || function(J) {
return c.type(J) === "array";
},
isWindow: function(J) {
return J != null && J == J.window;
},
isNumeric: function(J) {
return !isNaN(parseFloat(J)) && isFinite(J);
},
type: function(J) {
return J == null ? String(J) : f[g.call(J)] || "object";
},
each: function(O, P, L) {
var K, M = 0, N = O.length, J = N === k || c.isFunction(O);
if (L) {
if (J) {
for (K in O) {
if (P.apply(O[K], L) === false) {
break;
}
}
} else {
for (;M < N; ) {
if (P.apply(O[M++], L) === false) {
break;
}
}
}
} else {
if (J) {
for (K in O) {
if (P.call(O[K], K, O[K]) === false) {
break;
}
}
} else {
for (;M < N; ) {
if (P.call(O[M], M, O[M++]) === false) {
break;
}
}
}
}
return O;
},
log: function(J, K) {
try {
if (c.getCookie("tCdebugLib") && console) {
console[K ? K : "log"](J);
}
} catch (L) {}
}
});
c.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(K, J) {
f["[object " + J + "]"] = J.toLowerCase();
});
j = c(y);
var h = {};
function C(K) {
var J = h[K] = {};
c.each(K.split(t), function(M, L) {
J[L] = true;
});
return J;
}
c.buildFragment = function(M, N, K) {
var L, J, O, P = M[0];
N = N || y;
N = !N.nodeType && N[0] || N;
N = N.ownerDocument || N;
if (M.length === 1 && typeof P === "string" && P.length < 512 && N === y && P.charAt(0) === "<" && !c.rnocache.test(P) && (c.support.checkClone || !c.rchecked.test(P)) && (c.support.html5Clone || !c.rnoshimcache.test(P))) {
J = true;
L = jQuery.fragments[P];
O = L !== k;
}
if (!L) {
L = N.createDocumentFragment();
c.clean(M, N, L, K);
if (J) {
c.fragments[P] = O && L;
}
}
return {
fragment: L,
cacheable: J
};
};
var s = a.hostname, n = s.split("."), A = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$";
if (n.length < 2 || s.match(A)) {
c.maindomain = s;
} else {
c.maindomain = n[n.length - 2] + "." + n[n.length - 1];
}
m.tC = c;
})(window);
}
tC.extend({
internalvars: typeof tC.internalvars != "undefined" ? tC.internalvars : {},
internalFunctions: typeof tC.internalFunctions != "undefined" ? tC.internalFunctions : {},
privacyVersion: "",
containerVersion: "66.02",
id_container: "1",
id_site: "1376",
generatorVersion: "1.0.0",
dedup_done: typeof tC.dedup_done != "undefined" ? tC.dedup_done : false
});
tC.extend({
launchTag: function(e, c, d, a, b) {
tC.array_launched_tags.push(c);
tC.array_launched_tags_keys.push(e);
tC.containersLaunched[a][b].t.push({
id: e,
label: c,
idTpl: d
});
window.postMessage('TC.EX:{"id":"' + e + '","idc":"' + b + '","idt":"' + d + '","ids":"' + a + '","lb":"' + c.replace(/"/g, '\\"') + '"}', "*");
}
});
if (tC.containersLaunched === undefined) {
tC.containersLaunched = {};
}
if (tC.containersLaunched[1376] === undefined) {
tC.containersLaunched[1376] = {};
}
tC.containersLaunched[1376][1] = {
v: "66.02",
t: []
};
tC.extend({
domReady: false,
isDOMReady: function() {
if (document.readyState == "complete" || document.readyState == "loaded") {
return true;
}
if (document.readyState != "interactive") {
return false;
}
if (!document.documentElement.doScroll) {
return true;
}
try {
document.documentElement.doScroll("left");
return true;
} catch (a) {
return false;
}
},
waitingOnDomReadyCallBacks: tC.waitingOnDomReadyCallBacks || [],
excuteOnDomReadyCallBacks: function() {
for (var a = 0; a < tC.waitingOnDomReadyCallBacks.length; a++) {
tC.waitingOnDomReadyCallBacks[a]();
}
tC.waitingOnDomReadyCallBacks = [];
},
onDomReady: function(b) {
if (this.domReady) {
b();
return;
}
tC.waitingOnDomReadyCallBacks.push(b);
var a = false;
if (document.addEventListener) {
a = true;
document.addEventListener("DOMContentLoaded", function() {
document.removeEventListener("DOMContentLoaded", arguments.callee, false);
tC.excuteOnDomReadyCallBacks();
}, false);
} else {
if (document.attachEvent) {
a = true;
document.attachEvent("onreadystatechange", function() {
if (document.readyState === "complete") {
document.detachEvent("onreadystatechange", arguments.callee);
tC.excuteOnDomReadyCallBacks();
}
});
if (document.documentElement.doScroll && window == window.top) {
(function() {
if (tC.domReady) {
return;
}
try {
document.documentElement.doScroll("left");
} catch (c) {
setTimeout(arguments.callee, 0);
return;
}
tC.excuteOnDomReadyCallBacks();
})();
}
}
}
if (!a) {
window.onload = tC.excuteOnDomReadyCallBacks;
}
}
});
if (tC.isDOMReady()) {
tC.domReady = true;
} else {
tC.onDomReady(function() {
tC.domReady = true;
});
}
tC.extend({
isCurrentVersion: function() {
var a = tC.getCookie("tc_mode_test"), b = "testModeIncludeReplaceThisByTrue";
return a != "1" || a == "1" && b == "true";
}
});
tC.extend({
pixelTrack: {
add: function(a, b) {
a = a || 0;
b = b || "img";
tC.onDomReady(function() {
if (b == "iframe") {
var c = document.createElement(b);
c.src = a;
c.width = 1;
c.height = 1;
c.style.display = "none";
document.body.appendChild(c);
} else {
var c = new Image();
c.src = a;
}
});
}
}
});
tC.extend({
tc_hdoc: false,
domain: function() {
this.tc_hdoc = document;
try {
try {
this.tc_hdoc = top.document;
} catch (d) {
this.tc_hdoc = document;
}
var a = typeof this.tc_hdoc.domain != "undefined" ? this.tc_hdoc.domain.toLowerCase().split(".") : false, g = "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$";
if (a.length < 2 || this.tc_hdoc.domain.match(g)) {
return "";
} else {
var f = a[a.length - 3], c = a[a.length - 2], b = a[a.length - 1];
if (c == "co" || c == "com") {
return "." + f + "." + c + "." + b;
} else {
return "." + c + "." + b;
}
}
} catch (d) {
tC.log([ "tC.domain error : ", d ], "warn");
}
}
});
tC.domain();
tC.extend({
removeCookie: function(a) {
this.setCookie(a, "", -1);
},
setCookie: function(c, e, a, h, d, g) {
if (!d) {
d = tC.domain();
}
var b = new Date();
b.setTime(b.getTime());
if (a) {
a = a * 1e3 * 60 * 60 * 24;
}
var f = new Date(b.getTime() + a);
document.cookie = c + "=" + escape(e) + (a ? ";expires=" + f.toGMTString() : "") + (h ? ";path=" + h : ";path=/") + (d ? ";domain=" + d : "") + (g ? ";secure" : "");
},
getCookie: function(a) {
return (result = new RegExp("(?:^|; )" + encodeURIComponent(a) + "=([^;]*)").exec(document.cookie)) ? unescape(result[1]) : "";
}
});
tC.extend({
storage: {
has: function() {
try {
if ("localStorage" in window && window.localStorage !== null) {
window.localStorage.setItem("TC_CHECK", "1");
window.localStorage.removeItem("TC_CHECK");
return true;
}
return false;
} catch (a) {
return false;
}
},
get: function(a) {
return this.has() ? window.localStorage.getItem(a) : false;
},
set: function(b, a) {
return this.has() ? window.localStorage.setItem(b, a) || true : false;
},
remove: function(a) {
return this.has() ? window.localStorage.removeItem(a) || true : false;
}
}
});
tC.extend({
_R: {
cR: function(a) {
tC.storage.set("tC_Sync", a);
tC.pixelTrack.add("//engage.commander1.com/reach?tc_s=1376");
},
rR: function() {
if (tC.storage.has()) {
var a = new Date().getTime();
var b = tC.storage.get("tC_Sync") || 0;
b = parseInt(b);
if (b == 0 || a - b > 6048e5) {
this.cR(a);
}
}
}
}
});
tC.onDomReady(function() {
tC._R.rR();
});
tC.extend({
hitCounter: function() {
if (Math.floor(Math.random() * parseInt(1e3)) == 0) {
tC.pixelTrack.add("//manager.tagcommander.com/utils/hit.php?id=1&site=1376&version=66.02&frequency=1000&position=" + tC.container_position + "&rand=" + Math.random());
}
}
});
tC.container_position = typeof tc_container_position !== "undefined" ? tc_container_position : typeof tC.container_position !== "undefined" ? tC.container_position : 0;
tC.container_position++;
if (typeof tc_container_position !== "undefined") {
tc_container_position++;
}
tC.hitCounter();
tC.extend({
script: {
add: function(d, f, c) {
var a = document.getElementsByTagName("body")[0] || document.getElementsByTagName("script")[0].parentNode, b = document.createElement("script");
b.type = "text/javascript";
b.async = true;
b.src = d;
b.charset = "utf-8";
if (a) {
if (f) {
if (b.addEventListener) {
b.addEventListener("load", function() {
f();
}, false);
} else {
b.onreadystatechange = function() {
if (b.readyState in {
loaded: 1,
complete: 1
}) {
b.onreadystatechange = null;
f();
}
};
}
}
if (c && typeof c == "number") {
setTimeout(function() {
if (a && b.parentNode) {
a.removeChild(b);
}
}, c);
}
a.insertBefore(b, a.firstChild);
} else {
tC.log("tC.script error : the element <script> or <body> is not found ! the file " + d + " is not implemented !", "warn");
}
}
}
});
tC1376_1 = tC;
/* RETRO COMPATIBILITY FUNCTIONS */
if (typeof tc_vars == "undefined") var tc_vars = [];
(function() {
var l = "nb_notifs|notifs_reex|preferences_livraison|nouvelle_livraison|notifs_procuration|modif_livraison_mode|env_template|env_work|env_channel|env_dnt|connecte|user_id|user_gender|user_category_id|user_category|user_smb|user_logged|user_age|user_postalcode|newsletter_profil|nom_site|thematique|page_cat1|page_cat2|page_cat3|page_error|xiti_xtn2|xiti_page_name|xiti_xtsite|xiti_xtpagetype|page_name|search_keywords|search_page_number|search_results_number|search_filters|nom_produit|nom_categorie_produit|type_RPS|gamme_produit|choix_livraison|choix_jour|code_postal|timbres_theme|timbres_sous_theme|timbres_artiste|timbres_date|timbres_identifiant|timbres_mode_impression|resultats_recherche|expression_recherchee|destination|recherche_detaille|langue|type_suivi|modif_livraison_type|vsmp_formule|vsmp_activation|migration_compte_lpfr|localisation_bureau_poste|localisation_services_proposes|localisation_ou|nom_bureau_poste|type_bureau|ouverture_bureau_poste|saisie_cp_ville|resultats|provenance|tarif_depart|tarif_destination|tarif_nature_envois|tarif_recommandation|tarif_poids|newsletter_statut|newsletter_genre|newsletter_annee_naissance|localisation_type_point|recherche_cp_ville|region|departement|detail_bureau_de_poste".split("|");
for (var k in l) {
if (!tc_vars.hasOwnProperty(l[k])) {
tc_vars[l[k]] = "";
}
}
})();
/*DYNAMIC JS BLOCK 1*/
/*END DYNAMIC JS BLOCK 1*/
/*CUSTOM_JS_BLOCK1*/
tC.log("check adblock");
if (tC.internalvars.adblock !== "") {
tc_vars.adblock = "1";
tC.log("adblock activé");
}
/*END_CUSTOM_JS_BLOCK1*/
tC.array_launched_tags = [];
tC.array_launched_tags_keys = [];
tC.id_site = "1376";
if (tC.getCookie("tc_mode_test") == 1) {
(function() {
var tc_testmodescriptload = document.createElement("script");
tc_testmodescriptload.type = "text/javascript";
tc_testmodescriptload.src = "//manager.tagcommander.com/utils/test_mode_include.php?id=1&site=1376&type=load&rand=" + Math.random() + "&version=";
(document.getElementsByTagName("body")[0] || document.getElementsByTagName("head")[0] || document.getElementsByTagName("script")[0].parentNode).appendChild(tc_testmodescriptload);
})();
} else {
/*VARIABLES_BLOCK*/
tC.internalvars.tc_timestamp = Math.round(new Date().getTime() / 1e3);
tC.internalvars.tc_random_tmp = new String(Math.random());
tC.internalvars.tc_random = tC.internalvars.tc_random_tmp.substring(2, 11);
tC.internalvars.tc_url_1 = function() {
tC.internalvars.tc_url_1_tmp = document.location.href.split("?");
tC.internalvars.tc_url_1_tmp2 = tC.internalvars.tc_url_1_tmp[0].split("/");
return tC.internalvars.tc_url_1_tmp2[3];
}();
tC.internalvars.user_id_Sha256 = "";
if (typeof SHA256 !== "undefined" && tc_vars["user_id"] != "") {
tC.internalvars.user_id_Sha256 = SHA256(tc_vars["user_id"]);
}
(function(window) {
var FuckAdBlock = function(options) {
this._options = {
checkOnLoad: false,
resetOnEnd: false,
loopCheckTime: 50,
loopMaxNumber: 5,
baitClass: "pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links",
baitStyle: "width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;",
debug: false
};
this._var = {
version: "3.2.0",
bait: null,
checking: false,
loop: null,
loopNumber: 0,
event: {
detected: [],
notDetected: []
}
};
if (options !== undefined) {
this.setOption(options);
}
var self = this;
var eventCallback = function() {
setTimeout(function() {
if (self._options.checkOnLoad === true) {
if (self._options.debug === true) {
self._log("onload->eventCallback", "A check loading is launched");
}
if (self._var.bait === null) {
self._creatBait();
}
setTimeout(function() {
self.check();
}, 1);
}
}, 1);
};
if (window.addEventListener !== undefined) {
window.addEventListener("load", eventCallback, false);
} else {
window.attachEvent("onload", eventCallback);
}
};
FuckAdBlock.prototype._options = null;
FuckAdBlock.prototype._var = null;
FuckAdBlock.prototype._bait = null;
FuckAdBlock.prototype._log = function(method, message) {
tC.log("[FuckAdBlock][" + method + "] " + message);
};
FuckAdBlock.prototype.setOption = function(options, value) {
if (value !== undefined) {
var key = options;
options = {};
options[key] = value;
}
for (var option in options) {
this._options[option] = options[option];
if (this._options.debug === true) {
this._log("setOption", 'The option "' + option + '" he was assigned to "' + options[option] + '"');
}
}
return this;
};
FuckAdBlock.prototype._creatBait = function() {
var bait = document.createElement("div");
bait.setAttribute("class", this._options.baitClass);
bait.setAttribute("style", this._options.baitStyle);
this._var.bait = window.document.body.appendChild(bait);
this._var.bait.offsetParent;
this._var.bait.offsetHeight;
this._var.bait.offsetLeft;
this._var.bait.offsetTop;
this._var.bait.offsetWidth;
this._var.bait.clientHeight;
this._var.bait.clientWidth;
if (this._options.debug === true) {
this._log("_creatBait", "Bait has been created");
}
};
FuckAdBlock.prototype._destroyBait = function() {
window.document.body.removeChild(this._var.bait);
this._var.bait = null;
if (this._options.debug === true) {
this._log("_destroyBait", "Bait has been removed");
}
};
FuckAdBlock.prototype.check = function(loop) {
if (loop === undefined) {
loop = true;
}
if (this._options.debug === true) {
this._log("check", "An audit was requested " + (loop === true ? "with a" : "without") + " loop");
}
if (this._var.checking === true) {
if (this._options.debug === true) {
this._log("check", "A check was canceled because there is already an ongoing");
}
return false;
}
this._var.checking = true;
if (this._var.bait === null) {
this._creatBait();
}
var self = this;
this._var.loopNumber = 0;
if (loop === true) {
this._var.loop = setInterval(function() {
self._checkBait(loop);
}, this._options.loopCheckTime);
}
setTimeout(function() {
self._checkBait(loop);
}, 1);
if (this._options.debug === true) {
this._log("check", "A check is in progress ...");
}
return true;
};
FuckAdBlock.prototype._checkBait = function(loop) {
var detected = false;
if (this._var.bait === null) {
this._creatBait();
}
if (window.document.body.getAttribute("abp") !== null || this._var.bait.offsetParent === null || this._var.bait.offsetHeight == 0 || this._var.bait.offsetLeft == 0 || this._var.bait.offsetTop == 0 || this._var.bait.offsetWidth == 0 || this._var.bait.clientHeight == 0 || this._var.bait.clientWidth == 0) {
detected = true;
}
if (window.getComputedStyle !== undefined) {
var baitTemp = window.getComputedStyle(this._var.bait, null);
if (baitTemp.getPropertyValue("display") == "none" || baitTemp.getPropertyValue("visibility") == "hidden") {
detected = true;
}
}
if (this._options.debug === true) {
this._log("_checkBait", "A check (" + (this._var.loopNumber + 1) + "/" + this._options.loopMaxNumber + " ~" + (1 + this._var.loopNumber * this._options.loopCheckTime) + "ms) was conducted and detection is " + (detected === true ? "positive" : "negative"));
}
if (loop === true) {
this._var.loopNumber++;
if (this._var.loopNumber >= this._options.loopMaxNumber) {
this._stopLoop();
}
}
if (detected === true) {
this._stopLoop();
this._destroyBait();
this.emitEvent(true);
if (loop === true) {
this._var.checking = false;
}
} else if (this._var.loop === null || loop === false) {
this._destroyBait();
this.emitEvent(false);
if (loop === true) {
this._var.checking = false;
}
}
};
FuckAdBlock.prototype._stopLoop = function(detected) {
clearInterval(this._var.loop);
this._var.loop = null;
this._var.loopNumber = 0;
if (this._options.debug === true) {
this._log("_stopLoop", "A loop has been stopped");
}
};
FuckAdBlock.prototype.emitEvent = function(detected) {
if (this._options.debug === true) {
this._log("emitEvent", "An event with a " + (detected === true ? "positive" : "negative") + " detection was called");
}
var fns = this._var.event[detected === true ? "detected" : "notDetected"];
for (var i in fns) {
if (this._options.debug === true) {
this._log("emitEvent", "Call function " + (parseInt(i) + 1) + "/" + fns.length);
}
if (fns.hasOwnProperty(i)) {
fns[i]();
}
}
if (this._options.resetOnEnd === true) {
this.clearEvent();
}
return this;
};
FuckAdBlock.prototype.clearEvent = function() {
this._var.event.detected = [];
this._var.event.notDetected = [];
if (this._options.debug === true) {
this._log("clearEvent", "The event list has been cleared");
}
};
FuckAdBlock.prototype.on = function(detected, fn) {
this._var.event[detected === true ? "detected" : "notDetected"].push(fn);
if (this._options.debug === true) {
this._log("on", 'A type of event "' + (detected === true ? "detected" : "notDetected") + '" was added');
}
return this;
};
FuckAdBlock.prototype.onDetected = function(fn) {
return this.on(true, fn);
};
FuckAdBlock.prototype.onNotDetected = function(fn) {
return this.on(false, fn);
};
window.FuckAdBlock = FuckAdBlock;
if (window.fuckAdBlock === undefined) {
window.fuckAdBlock = new FuckAdBlock({
checkOnLoad: true,
resetOnEnd: true
});
}
})(window);
function adBlockNotDetected() {
tC.internalvars.adblock = "0";
}
function adBlockDetected() {
tC.internalvars.adblock = "1";
}
if (typeof fuckAdBlock === "undefined") {
adBlockDetected();
} else {
fuckAdBlock.onDetected(adBlockDetected);
fuckAdBlock.onNotDetected(adBlockNotDetected);
fuckAdBlock.on(true, adBlockDetected);
fuckAdBlock.on(false, adBlockNotDetected);
fuckAdBlock.on(true, adBlockDetected).onNotDetected(adBlockNotDetected);
}
fuckAdBlock.setOption("checkOnLoad", true);
tC.internalvars.tc_timestamp = Math.round(new Date().getTime() / 1e3);
tc_mapped_iadvize_id = "";
switch (tc_vars["xiti_xtsite"]) {
case "547787":
tc_mapped_iadvize_id = "767";
break;
case "547785":
tc_mapped_iadvize_id = "787";
break;
default:
tc_mapped_iadvize_id = "";
break;
}
tC.internalvars.Id_quantcast = "";
switch (tc_vars["xiti_page_name"]) {
case "courrier_et_colis::presentation_produits_solo::achetez_et_imprimez_vos_timbres_a_domicile":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Timbre";
break;
case "courrier_et_colis::commander_des_timbres_courants_et_beaux_timbres":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Timbre";
break;
case "courrier_et_colis::presentation_produits_solo::envoyez_une_lettre_recommandee_en_ligne_en_toute_simplicite":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Lettre Recommandee En Ligne";
break;
case "vie_numerique::services_numeriques_personnels::presentation_produits::des_cartes_postales_a_votre_image":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Carte Postale";
break;
case "courrier_et_colis::presentation_produits_solo::marquer_l_evenement_avec_un_souvenir_philatelique":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Timbre";
break;
case "courrier_et_colis::presentation_produits_solo::beaux_timbres_et_timbres_speciaux_des_oeuvres_d_art_accessibles_a_tous":
tC.internalvars.Id_quantcast = "B2C LaPosteFr Produit Timbre";
break;
case "gestion_et_envois_au_quotidien::produits::creer_et_commander_des_timbres_personnalises_au_bureau":
tC.internalvars.Id_quantcast = "B2B LaPosteFr Produit Timbre";
break;
default:
tC.internalvars.Id_quantcast = "";
break;
}
tC.internalvars.mapped_id_rocketfuel = "";
switch (tc_vars["env_work"]) {
case "courrier_et_colis::presentation_produits_solo::achetez_et_imprimez_vos_timbres_a_domicile":
tC.internalvars.mapped_id_rocketfuel = "20658495";
break;
case "courrier_et_colis::commander_des_timbres_courants_et_beaux_timbres":
tC.internalvars.mapped_id_rocketfuel = "20658497";
break;
case " courrier_et_colis::presentation_produits_solo::envoyez_une_lettre_recommandee_en_ligne_en_toute_simplicite":
tC.internalvars.mapped_id_rocketfuel = "20658499";
break;
case "vie_numerique::services_numeriques_personnels::presentation_produits::des_cartes_postales_a_votre_image":
tC.internalvars.mapped_id_rocketfuel = "20658501";
break;
case "courrier_et_colis::presentation_produits_solo::marquer_l_evenement_avec_un_souvenir_philatelique":
tC.internalvars.mapped_id_rocketfuel = "20658503";
break;
case "courrier_et_colis::presentation_produits_solo::beaux_timbres_et_timbres_speciaux_des_oeuvres_d_art_accessibles_a_tous":
tC.internalvars.mapped_id_rocketfuel = "20658505";
break;
case "gestion_et_envois_au_quotidien::produits::creer_et_commander_des_timbres_personnalises_au_bureau":
tC.internalvars.mapped_id_rocketfuel = "20658507";
break;
default:
tC.internalvars.mapped_id_rocketfuel = "";
break;
}
tc_mapped_Id_wcm = "";
switch (tc_vars["xiti_page_name"]) {
case "accueil_particuliers":
tc_mapped_Id_wcm = "342";
break;
case "courrier_et_colis::produits_et_services::a_la_une":
tc_mapped_Id_wcm = "343";
break;
case "gestion_et_envois_au_quotidien::produits_et_services::affranchir_envoyer":
tc_mapped_Id_wcm = "344";
break;
case "webmail":
tc_mapped_Id_wcm = "345";
break;
case "accueil_professionnels":
tc_mapped_Id_wcm = "358";
break;
case "accueil_entreprise":
tc_mapped_Id_wcm = "361";
break;
case "organisation_interne::service_de_collecte_et_de_recyclage_des_papiers":
tc_mapped_Id_wcm = "394";
break;
case "vie_numerique::services_numeriques_personnels::presentation_produits::application_mobile_laposte":
tc_mapped_Id_wcm = "399";
break;
case "courrier_et_colis::presentation_produits_solo::creez_et_commandez_des_timbres_personnalises":
tc_mapped_Id_wcm = "400";
break;
case "courrier_et_colis::produits_et_services::suivre_un_envoi":
tc_mapped_Id_wcm = "401";
break;
case "courrier_et_colis::produits_et_services::affranchir_envoyer":
tc_mapped_Id_wcm = "402";
break;
case "accueil_e_commercants":
tc_mapped_Id_wcm = "403";
break;
case "evenements_et_parutions::evenements::evenement_facteurs_services_plus":
tc_mapped_Id_wcm = "412";
break;
case "courrier_et_colis::produits_et_services::recevoir":
tc_mapped_Id_wcm = "438";
break;
case "courrier_et_colis::offres_speciales_evenements::offres_speciales_evenements":
tc_mapped_Id_wcm = "440";
break;
case "livraison_et_logistique::gerer_ses_envois_de_produits_et_marchandises_en_colissimo::expedier_a_l_international":
tc_mapped_Id_wcm = "509";
break;
case "gestion_et_envois_au_quotidien::produits_et_services::a_la_une":
tc_mapped_Id_wcm = "540";
break;
case "hp_connexion_inscription":
tc_mapped_Id_wcm = "541";
break;
case "gestion_et_envois_au_quotidien::conseils_pratiques::l_art_de_la_relance_client":
tc_mapped_Id_wcm = "542";
break;
case "gestion_et_envois_au_quotidien::conseils_pratiques::professionnels_quels_documents_devez_vous_garder":
tc_mapped_Id_wcm = "543";
break;
case "gestion_et_envois_au_quotidien::conseils_pratiques::gestion_et_envois_au_quotidien::conseils_pratiques::bien_preparer_son_envoi":
tc_mapped_Id_wcm = "544";
break;
case "courrier_et_colis::conseils_pratiques::envois_speciaux_peut_on_vraiment_tout_poster":
tc_mapped_Id_wcm = "545";
break;
case "courrier_et_colis::conseils_pratiques::rediger_une_lettre_formelle_quelles_formules_de_politesse":
tc_mapped_Id_wcm = "546";
break;
case "courrier_et_colis::conseils_pratiques::envoyer_un_courrier_important_comment_s_y_prendre":
tc_mapped_Id_wcm = "547";
break;
case "courrier_et_colis::conseils_pratiques::vos_objets_de_valeur_expedies_en_totale_serenite":
tc_mapped_Id_wcm = "548";
break;
case "courrier_et_colis::conseils_pratiques::les_francais_ont_la_bougeotte_la_poste":
tc_mapped_Id_wcm = "549";
break;
case "vie_numerique::conseils_pratiques::quelques_astuces_pour_reussir_vos_envois_d_objets_speciaux":
tc_mapped_Id_wcm = "550";
break;
case "courrier_et_colis::conseils_pratiques::courrier_et_colis::conseils_pratiques::reussir_l_emballage_d_un_envoi":
tc_mapped_Id_wcm = "551";
break;
case "campagne_bal::expedition_colissimo::le_service_expedition_retour_en_boite_aux_lettres_comment_ca_marche":
tc_mapped_Id_wcm = "553";
break;
case "campagne_bal::retour_colissimo":
tc_mapped_Id_wcm = "554";
break;
case "campagne_star_wars::campagne_star_wars_2015":
tc_mapped_Id_wcm = "568";
break;
case "courrier_et_colis::et_si_un_timbre_suffisait_a_immortaliser_vos_plus_beaux_souvenirs":
tc_mapped_Id_wcm = "614";
break;
case "courrier_et_colis::presentation_produits_solo::achetez_et_imprimez_vos_timbres_a_domicile":
tc_mapped_Id_wcm = "615";
break;
default:
tc_mapped_Id_wcm = "";
break;
}
var tc_mapped_Id_AOD = "";
switch (tc_vars["xiti_page_name"].toString().toLowerCase()) {
case "accueil_particuliers":
tc_mapped_Id_AOD = "CCbL9Bvc";
break;
case "accueil_professionnels":
tc_mapped_Id_AOD = "7sajV66x";
break;
case "gestion_et_envois_au_quotidien::produits_et_services::affranchir_envoyer":
tc_mapped_Id_AOD = "iEnrAFFZ";
break;
default:
tc_mapped_Id_AOD = "";
}
/*END_VARIABLES_BLOCK*/
/*DYNAMIC JS BLOCK 2*/
/*END DYNAMIC JS BLOCK 2*/
/*CUSTOM_JS_BLOCK2*/
/*END_CUSTOM_JS_BLOCK2*/
tC.inclusion_blockadblock_1 = "/*\n" + " * BlockAdBlock 3.2.1\n" + " * Copyright (c) 2015 Valentin Allaire <valentin.allaire@sitexw.fr>\n" + " * Released under the MIT license\n" + " * https://github.com/sitexw/BlockAdBlock\n" + " */\n" + "\n" + "(function(window) {\n" + " var BlockAdBlock = function(options) {\n" + " this._options = {\n" + " checkOnLoad: false,\n" + " resetOnEnd: false,\n" + " loopCheckTime: 50,\n" + " loopMaxNumber: 5,\n" + " baitClass: 'pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links',\n" + " baitStyle: 'width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;',\n" + " debug: false\n" + " };\n" + " this._var = {\n" + " version: '3.2.1',\n" + " bait: null,\n" + " checking: false,\n" + " loop: null,\n" + " loopNumber: 0,\n" + " event: { detected: [], notDetected: [] }\n" + " };\n" + " if(options !== undefined) {\n" + " this.setOption(options);\n" + " }\n" + " var self = this;\n" + " var eventCallback = function() {\n" + " setTimeout(function() {\n" + " if(self._options.checkOnLoad === true) {\n" + " if(self._options.debug === true) {\n" + " self._log('onload->eventCallback', 'A check loading is launched');\n" + " }\n" + " if(self._var.bait === null) {\n" + " self._creatBait();\n" + " }\n" + " setTimeout(function() {\n" + " self.check();\n" + " }, 1);\n" + " }\n" + " }, 1);\n" + " };\n" + " if(window.addEventListener !== undefined) {\n" + " window.addEventListener('load', eventCallback, false);\n" + " } else {\n" + " window.attachEvent('onload', eventCallback);\n" + " }\n" + " };\n" + " BlockAdBlock.prototype._options = null;\n" + " BlockAdBlock.prototype._var = null;\n" + " BlockAdBlock.prototype._bait = null;\n" + " \n" + " BlockAdBlock.prototype._log = function(method, message) {\n" + " console.log('[BlockAdBlock]['+method+'] '+message);\n" + " };\n" + " \n" + " BlockAdBlock.prototype.setOption = function(options, value) {\n" + " if(value !== undefined) {\n" + " var key = options;\n" + " options = {};\n" + " options[key] = value;\n" + " }\n" + " for(var option in options) {\n" + " this._options[option] = options[option];\n" + " if(this._options.debug === true) {\n" + " this._log('setOption', 'The option \"'+option+'\" he was assigned to \"'+options[option]+'\"');\n" + " }\n" + " }\n" + " return this;\n" + " };\n" + " \n" + " BlockAdBlock.prototype._creatBait = function() {\n" + " var bait = document.createElement('div');\n" + " bait.setAttribute('class', this._options.baitClass);\n" + " bait.setAttribute('style', this._options.baitStyle);\n" + " this._var.bait = window.document.body.appendChild(bait);\n" + " \n" + " this._var.bait.offsetParent;\n" + " this._var.bait.offsetHeight;\n" + " this._var.bait.offsetLeft;\n" + " this._var.bait.offsetTop;\n" + " this._var.bait.offsetWidth;\n" + " this._var.bait.clientHeight;\n" + " this._var.bait.clientWidth;\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('_creatBait', 'Bait has been created');\n" + " }\n" + " };\n" + " BlockAdBlock.prototype._destroyBait = function() {\n" + " window.document.body.removeChild(this._var.bait);\n" + " this._var.bait = null;\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('_destroyBait', 'Bait has been removed');\n" + " }\n" + " };\n" + " \n" + " BlockAdBlock.prototype.check = function(loop) {\n" + " if(loop === undefined) {\n" + " loop = true;\n" + " }\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('check', 'An audit was requested '+(loop===true?'with a':'without')+' loop');\n" + " }\n" + " \n" + " if(this._var.checking === true) {\n" + " if(this._options.debug === true) {\n" + " this._log('check', 'A check was canceled because there is already an ongoing');\n" + " }\n" + " return false;\n" + " }\n" + " this._var.checking = true;\n" + " \n" + " if(this._var.bait === null) {\n" + " this._creatBait();\n" + " }\n" + " \n" + " var self = this;\n" + " this._var.loopNumber = 0;\n" + " if(loop === true) {\n" + " this._var.loop = setInterval(function() {\n" + " self._checkBait(loop);\n" + " }, this._options.loopCheckTime);\n" + " }\n" + " setTimeout(function() {\n" + " self._checkBait(loop);\n" + " }, 1);\n" + " if(this._options.debug === true) {\n" + " this._log('check', 'A check is in progress ...');\n" + " }\n" + " \n" + " return true;\n" + " };\n" + " BlockAdBlock.prototype._checkBait = function(loop) {\n" + " var detected = false;\n" + " \n" + " if(this._var.bait === null) {\n" + " this._creatBait();\n" + " }\n" + " \n" + " if(window.document.body.getAttribute('abp') !== null\n" + " || this._var.bait.offsetParent === null\n" + " || this._var.bait.offsetHeight == 0\n" + " || this._var.bait.offsetLeft == 0\n" + " || this._var.bait.offsetTop == 0\n" + " || this._var.bait.offsetWidth == 0\n" + " || this._var.bait.clientHeight == 0\n" + " || this._var.bait.clientWidth == 0) {\n" + " detected = true;\n" + " }\n" + " if(window.getComputedStyle !== undefined) {\n" + " var baitTemp = window.getComputedStyle(this._var.bait, null);\n" + " if(baitTemp && (baitTemp.getPropertyValue('display') == 'none' || baitTemp.getPropertyValue('visibility') == 'hidden')) {\n" + " detected = true;\n" + " }\n" + " }\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('_checkBait', 'A check ('+(this._var.loopNumber+1)+'/'+this._options.loopMaxNumber+' ~'+(1+this._var.loopNumber*this._options.loopCheckTime)+'ms) was conducted and detection is '+(detected===true?'positive':'negative'));\n" + " }\n" + " \n" + " if(loop === true) {\n" + " this._var.loopNumber++;\n" + " if(this._var.loopNumber >= this._options.loopMaxNumber) {\n" + " this._stopLoop();\n" + " }\n" + " }\n" + " \n" + " if(detected === true) {\n" + " this._stopLoop();\n" + " this._destroyBait();\n" + " this.emitEvent(true);\n" + " if(loop === true) {\n" + " this._var.checking = false;\n" + " }\n" + " } else if(this._var.loop === null || loop === false) {\n" + " this._destroyBait();\n" + " this.emitEvent(false);\n" + " if(loop === true) {\n" + " this._var.checking = false;\n" + " }\n" + " }\n" + " };\n" + " BlockAdBlock.prototype._stopLoop = function(detected) {\n" + " clearInterval(this._var.loop);\n" + " this._var.loop = null;\n" + " this._var.loopNumber = 0;\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('_stopLoop', 'A loop has been stopped');\n" + " }\n" + " };\n" + " \n" + " BlockAdBlock.prototype.emitEvent = function(detected) {\n" + " if(this._options.debug === true) {\n" + " this._log('emitEvent', 'An event with a '+(detected===true?'positive':'negative')+' detection was called');\n" + " }\n" + " \n" + " var fns = this._var.event[(detected===true?'detected':'notDetected')];\n" + " for(var i in fns) {\n" + " if(this._options.debug === true) {\n" + " this._log('emitEvent', 'Call function '+(parseInt(i)+1)+'/'+fns.length);\n" + " }\n" + " if(fns.hasOwnProperty(i)) {\n" + " fns[i]();\n" + " }\n" + " }\n" + " if(this._options.resetOnEnd === true) {\n" + " this.clearEvent();\n" + " }\n" + " return this;\n" + " };\n" + " BlockAdBlock.prototype.clearEvent = function() {\n" + " this._var.event.detected = [];\n" + " this._var.event.notDetected = [];\n" + " \n" + " if(this._options.debug === true) {\n" + " this._log('clearEvent', 'The event list has been cleared');\n" + " }\n" + " };\n" + " \n" + " BlockAdBlock.prototype.on = function(detected, fn) {\n" + " this._var.event[(detected===true?'detected':'notDetected')].push(fn);\n" + " if(this._options.debug === true) {\n" + " this._log('on', 'A type of event \"'+(detected===true?'detected':'notDetected')+'\" was added');\n" + " }\n" + " \n" + " return this;\n" + " };\n" + " BlockAdBlock.prototype.onDetected = function(fn) {\n" + " return this.on(true, fn);\n" + " };\n" + " BlockAdBlock.prototype.onNotDetected = function(fn) {\n" + " return this.on(false, fn);\n" + " };\n" + " \n" + " window.BlockAdBlock = BlockAdBlock;\n" + " \n" + " if(window.blockAdBlock === undefined) {\n" + " window.blockAdBlock = new BlockAdBlock({\n" + " checkOnLoad: true,\n" + " resetOnEnd: true\n" + " });\n" + " }\n" + "})(window);";
tC.inclusion_at_tvtracking_1 = "/*\n" + " Copyright2015ATInternet,AllRightsReserved.PluginTvtracking1.2.3b\n" + "*/\n" + "window.xtcustom=window.xtcustom||{};\n" + 'window.ATTvTracking=function(t,B,u,v,C){var h,b,m,s,w,x,y,e,z,q=function(a){return a=(a=RegExp("(?:^| )"+a+"=([^;]+)").exec(document.cookie)||null)&&1<a.length?a[1]:null},r=function(a,f,b){var d=new Date;d.setTime(d.getTime()+1E3*b);b="expires="+d.toUTCString();document.cookie=a+"="+f+";"+b+";path="+(v?v:"/")+";domain="+(u?u:w)},k=function(a,b){if(""!==b){var e=b.split("|"),d;h[a]={};for(var c=0;c<e.length;c++)d=e[c].split(":"),""!==d[0]&&(h[a][d[0]]=decodeURIComponent(d[1]))}},A=function(){b&&r("xttvtr",\n' + 'b,86400*y)};return{init:function(a){var f={info:{version:"1.2.3b",message:"",error:[]}};if(a.xtnocookies)f.info.message="xtnocookies";else{var n=a.xt1;a=window.tvtrackingcustom;h={};m=b="";s=!1;w=n||"";e=q("xttvtr");z=q("xttvt");if("undefined"!==typeof a&&"undefined"!==typeof a.channel&&"undefined"!==a.channel){var n=a.time,d;if(n&&"string"===typeof n){d=Date;var c;var l=/^(\\d{4}\\-\\d\\d\\-\\d\\d([tT][\\d:\\.]*)?)([zZ]|([+\\-])(\\d\\d):(\\d\\d))?$/.exec(n)||[];if(l[1]){c=l[1].split(/\\D/);for(var g=0;g<c.length;g++)c[g]=\n' + 'parseInt(c[g],10)||0;c[1]-=1;c=new Date(Date.UTC.apply(Date,c));c.getDate()?l[5]&&(g=60*parseInt(l[5],10),l[6]&&(g+=parseInt(l[6],10)),"+"===l[4]&&(g*=-1),g&&c.setUTCMinutes(c.getUTCMinutes()+g)):c=NaN}else c=NaN;d=new d(c);c=new Date;d=c>=d&&c-d<=6E4*C}else d=!1;d?s=!0:f.info.error.push("timeError");f.info.message=n}else"undefined"===typeof a?f.info.error.push("noData"):"undefined"===typeof a.channel?f.info.error.push("noChannel"):"undefined"===a.channel&&(f.info.message="channelUndefined");null!==\n' + 'e&&0>e.indexOf(":")&&(r("xttvtr","",-1),e=null);x="undefined"!==typeof a&&0===parseInt(a.priority)?parseInt(a.priority):B;y="undefined"!==typeof a&&parseInt(a.lifetime)?parseInt(a.lifetime):30;if(null===z){if(s)for(var p in a)a.hasOwnProperty(p)&&(b+=p+":"+encodeURIComponent(a[p])+"|");0===x?null!==e?(k("direct",b),k("remanent",e),m=e):(k("direct",b),A()):(null!==e&&(k("remanent",e),m=e),k("direct",b),A())}else p=q("xttvt").split("||"),b=p[0],m=p[1],k("direct",b),k("remanent",m),b+="|";r("xttvt",\n' + '(b?b:"|")+"|"+m,60*t);q("xttvt")?("undefined"!==typeof h.direct&&(f.direct=h.direct),"undefined"!==typeof h.remanent&&(f.remanent=h.remanent)):f.info.error.push("cookieError")}window.xtcustom.TvTracking=f},update:function(){var a=q("xttvt");a&&r("xttvt",a,60*t)}}}(30,1,null,null,5);';
tC.inclusion_xtcore_1 = "/***@licence*Copyright2014ATInternet,AllRightsReserved.*ATInternetTag4.6.4*/window.Xtconf={xt1:'.laposte.fr',xtLogDom:'.xiti.com/hit.xiti',xtfirst:false,xt2:'0',xt3:365,xt4sec:'20',xt4rss:'20',xt4epr:'20',xt4erec:'20',xt4adi:'20',xt4adc:'20',xt4al:'20',xtsds:'https://logs1406',xtsd:'http://logc406',xtsts:0,xtsite:function(x){return x+ xt8},xtscript:'',xtpreview:false,xtnocookies:false,xtcode:'',xt46:'1',xt50:'1',xt48:'crmmetrix',xt54:false,xt58:false,xtdocl:false,xttredir:500,xtkwv:'xtmc',xtkwp:'xtnp',idcExp:397,idcType:'fixed',weboAccountId:0};\n" + "window.ATInternet=window.ATInternet||{};\n" + 'window.ATInternet.Utils=new function(){var d=this;d.getCookie=function(d){return d=(d=RegExp("(?:^| )"+d+"=([^;]+)").exec(document.cookie)||null)&&1<d.length?d[1]:null};d.setCookie=function(d,r,j,g,p){var n=new Date;n.setTime(n.getTime()+1E3*j);j="expires="+n.toGMTString();document.cookie=d+"="+r+";"+j+";path="+(p?p:"/")+";domain="+(g?g:"")};d.serialJSON=function(l,r){var j=typeof l;if("object"!==j||null===l)return"string"===j&&(l=r?encodeURIComponent(\'"\'+l+\'"\'):\'"\'+l+\'"\'),String(l);var g,p,n=[],\n' + 'D=l&&l.constructor===Array;for(g in l)l.hasOwnProperty(g)&&(p=l[g],j=typeof p,"function"!==j&&("string"===j?p=r?encodeURIComponent(\'"\'+p.replace(/[^\\\\]"/g,\'\\\\"\')+\'"\'):\'"\'+p.replace(/[^\\\\]"/g,\'\\\\"\')+\'"\':"object"===j&&null!==p&&(p=d.serialJSON(p,r)),n.push((D?"":r?encodeURIComponent(\'"\'+g+\'":\'):\'"\'+g+\'":\')+String(p))));return(D?"[":"{")+String(n)+(D?"]":"}")};d.parseJSON=function(d){return null===d?d:"string"===typeof d?(new Function("return "+d))():!1}};\n' + 'window.Xtcore=function(){function d(b){return"undefined"!==typeof b}function l(b){return ATInternet.Utils.serialJSON(b,!0)}function r(b){return b.replace(/%3C/g,"<").replace(/%3E/g,">").replace(/[<>]/g,"")}function j(b,a,h,c,e){a=0===e?a:encodeURIComponent(a);na||(m.cookie=b+"="+a+";expires="+h.toGMTString()+";path=/"+c)}function g(b,f,h){var c;try{c=R.location.href}catch(e){c=a.location.href}f=null===f||!d(f)?r(c.toLowerCase().replace(/%3d/g,"=")):f;if(0<f.indexOf(b+"=")){f=f.substr(1);b=f.substr(f.indexOf(b+\n' + '"="));if(2!=h){if(1!=h)try{b=decodeURIComponent(b)}catch(j){b=unescape(b)}if(f=b.match(/(\\[[^\\]]*\\])/g)){c="";for(var g=0,K=f.length;g<K;g++)c=f[g].substring(1,f[g].length-1),b=b.replace(c,encodeURIComponent(c))}}f=b.indexOf("#");c=b.search(/&.[^&]+=/gi);c=-1==c?-1==f?b.length:f:0<f&&f<c?f:c;return 1==h?decodeURIComponent(b.substring(b.indexOf("=")+1,c)):2==h?b.substring(b.indexOf("=")+1,c):b.substring(b.indexOf("=")+1,c).replace("&","%26")}return null}function p(b,a,h,c){if((0===oa||3==oa||"C"!=\n' + 'b)&&"P"!=b)Wa&&"0"==Y&&"F"==b?(v=v.replace("&p="+g("p",v,2),""),v=v.replace("&s2="+g("s2",v),""),AT_hit.isPreviewOrPrerendering()||AT_hit.sendTag(b,null,null,a),Wa=!1):AT_hit.sendTag(b,a);null!==h&&(d(h)&&"M"!=b)&&(""===c||null===c?m.location=h:window.open(h,"xfen","").focus())}function n(b){b-=100*Math.floor(b/100);return 10>b?"0"+b:b}function D(b){return Math.floor(Math.random()*Math.pow(10,b))}var pa=this;pa.sentHits=[];var k=Xtconf.xt1,Xa=Xtconf.xtscript,Ya=window.xtLogDom=Xtconf.xtLogDom,ub=\n' + "Xtconf.xtpreview,Za=Xtconf.xtfirst,na=Xtconf.xtnocookies,$a=Xtconf.xtcode,Y=Xtconf.xt46,qa=Xtconf.xt50,ab=Xtconf.xt48,vb=Xtconf.xt54,wb=Xtconf.xt58,xb=Xtconf.xtdocl,yb=Xtconf.xt2,zb=Xtconf.xt3;window.xttredir=Xtconf.xttredir;var bb=Xtconf.xtkwv,cb=Xtconf.xtkwp,ra=[],A=[];A.sec=Xtconf.xt4sec;A.rss=Xtconf.xt4rss;A.epr=Xtconf.xt4epr;A.erec=Xtconf.xt4erec;A.adi=Xtconf.xt4adi;A.adc=Xtconf.xt4adc;A.al=Xtconf.xt4al;A.es=Xtconf.xt4epr;A.ad=Xtconf.xt4adi;var sa=[],Wa=!0,L=!1,ta=null,a=window.xw=window,m=window.xd=\n" + 'document,t=navigator,Ab=window.xtv=a.xtczv?"4.6.4-"+a.xtczv:"4.6.4",k=window.xt1=a.xtdmc?";domain="+a.xtdmc:""!==k?";domain="+k:"",R=a.xtnv?a.xtnv:m,Bb=window.xt7=a.xtsdi?a.xtsdi:a.xtsd?a.xtsd+Ya:("https:"===m.location.protocol?Xtconf.xtsds:Xtconf.xtsd)+Ya,Z=a.xtsts?a.xtsts:Xtconf.xtsts,$="";if(vb){var ua="";try{ua=R.location.href}catch(Zb){ua=a.location.href}var Cb=/#.*/,va=null;try{va=ua.match(Cb)[0]}catch($b){va=null}$=($=va)?"&sta="+encodeURIComponent(r($)):""}"undefined"!==typeof window.ATTvTracking&&\n' + 'window.ATTvTracking.init(a.Xtconf);var db=a.xtcustom?l(a.xtcustom):"",E=window.xt8=a.xtsite?a.xtsite:0,Db=window.xt9=a.xtn2?"&s2="+a.xtn2:"",Eb=window.xt8b=(0===E?"":"s="+E)+(0===Z?"":0===E?"sts="+Z:"&sts="+Z),aa=window.xtp=a.xtpage?a.xtpage:"",eb=a.xto_force?a.xto_force.toLowerCase():null,F="redirect"===E,Fb=a.xtdi?"&di="+a.xtdi:"",Gb=a.xtidp?"&idpays="+a.xtidp:"",Hb=a.xtidprov?"&idprov="+a.xtidprov:"",s=a.xtparam?a.xtparam:"",Y=a.xtnopage&&"1"===a.xtnopage?"0":Y,qa=a.xtergo&&"0"===a.xtergo?"0":\n' + 'qa,oa=a.scriptOnClickZone&&"1"===qa?a.scriptOnClickZone:0,Ib=""!==$a?"&code="+$a:"",wa=[],ba=[],S=[],ca=[],xa=[],I=[];window.xt44=a.xtprod_load?"&pdtl="+a.xtprod_load:"";a.addEventListener?a.addEventListener("unload",function(){},!1):a.attachEvent&&a.attachEvent("onunload",function(){});m.addEventListener?(m.addEventListener("keydown",function(){L=!0},!1),m.addEventListener("keyup",function(){L=!1},!1)):m.attachEvent&&(m.attachEvent("onkeydown",function(){L=!0}),m.attachEvent("onkeyup",function(){L=\n' + '!1}));var Jb=a.roimt&&0>s.indexOf("&roimt",0)?"&roimt="+a.roimt:"",Kb=0>s.indexOf("&mc=",0)?a.xtmc?"&mc="+a.xtmc:g(bb)?"&mc="+g(bb):g("xtmc")?"&mc="+g("xtmc"):"":"",Lb=g("xtcr")?"&mcrg="+g("xtcr"):"",Mb=a.xtac&&0>s.indexOf("&ac=",0)?"&ac="+a.xtac:"",Nb=a.xtat&&0>s.indexOf("&at=",0)?"&at="+a.xtat:"",fb=a.xtan&&0>s.indexOf("&an=",0)?"&an="+a.xtan:"",Ob=0>s.indexOf("&np=",0)?a.xtnp?"&np="+a.xtnp:g(cb)?"&np="+g(cb):g("xtnp")?"&np="+g("xtnp"):"":"",Pb=a.xtprm&&0>s.indexOf("&x",0)?a.xtprm:"",s=s+(Jb+Kb+\n' + 'Lb+Mb+(""!==fb?fb:Nb)+Ob+Pb+$),ya="";try{ya=top.document.referrer}catch(ac){try{ya=R.referrer}catch(bc){}}var da=screen,G=window.xt21=new Date,gb=G.getTime()/36E5,q=window.xtf1=function(b,a){if(na)return null;a=null!==a&&d(a)?a:"0";var h=RegExp("(?:^| )"+b+"=([^;]+)").exec(m.cookie)||null;if(h&&(h=r(h[1]),"1"!=a))try{h=decodeURIComponent(h)}catch(c){h=unescape(h)}return h};window.xt_addchain=function(b,a){var h=a?a:"abmv",c=!ra[h]?0:ra[h];c++;s+="&"+h+""+c+"="+b;ra[h]=c};"function"===typeof xt_adch&&\n' + 'xt_adch();window.wck=j;window.xtf3=g;window.xt_mvt=function(b,a,h,c,e){if(c)for(var d=1;d<c.length+1;d++)h+="&"+(e?e:"abmv")+d+"="+c[d-1];p("","&p="+b+"&s2="+a+"&abmvc="+h+"&type=mvt")};window.xt_med=function(b,a,h,c,e,j,g,K){c="F"==b&&(null===c||!d(c))?g?"&stc="+l(g):"":"M"==b?"&a="+c+"&m1="+e+"&m2="+j+"&m3="+g+"&m4="+K:"&clic="+c+(g?"&stc="+l(g):"");p(b,"&s2="+a+"&p="+h+c,e,j)};if(Za=window.xtfirst=-1!=t.userAgent.indexOf("Safari")&&0>t.userAgent.indexOf("Chrome")||-1!=t.userAgent.indexOf("iPhone")||\n' + '-1!=t.userAgent.indexOf("iPod")||-1!=t.userAgent.indexOf("iPad")||Za||a.xtidc||na){var ea=a.xtidc,za=q("xtidc"),M="",M=ea?ea:za?za:(new Date).getTime()+""+D(7);if("relative"==Xtconf.idcType||ea||!za&&!ea){var Aa=new Date;Aa.setTime(Aa.getTime()+864E5*Xtconf.idcExp);j("xtidc",M,Aa,k,1)}var hb=q("xtidc"),M=M+(!a.xtidc&&(null===hb||hb!=M)?"-NO":"")}window.xt_ad=function(b,f,h,c){p("AT","&atc="+b+"&type=AT&patc="+a.xtpage+"&s2atc="+a.xtn2+(c?"&stc="+l(c):""),f,h)};window.xt_adi=function(b,a,h){p("AT",\n' + '"&ati="+b+"&type=AT",a,h)};window.xt_adc=function(b,f,h,c,e){p("AT","&atc="+f+"&type=AT&patc="+a.xtpage+"&s2atc="+a.xtn2+(e?"&stc="+l(e):""));return AT_click.do_navig(b,h,c?"_blank":null,!0)};window.xt_click=function(b,a,h,c,e,j,g,K){e=("F"==a&&(null===e||!d(e))?"":"&clic="+e)+(K?"&stc="+l(K):"");p(a,"&s2="+h+"&p="+c+e);return AT_click.do_navig(b,j,g?"_blank":null,!0)};window.xt_form=function(b,a,h,c,e,j,g){e=("F"==a&&(null===e||!d(e))?"":"&clic="+e)+(g?"&stc="+l(g):"");p(a,"&s2="+h+"&p="+c+e);return AT_click.do_submit(b,\n' + '!0,j)};window.xt_rm=function(b,f,h,c,e,d,g,j,w,n,l,k,m,q){p(b,"&p="+h+"&s2="+f+"&type="+b+"&a="+c+"&m5="+l+"&m6="+k+(null!==e&&"0"!=e?"&"+e:"")+(null!==g&&"pause"!=c&&"stop"!=c?"&m1="+g+"&"+j+"&m3="+w+"&m4="+n+"&m7="+m+"&m8="+q+"&prich="+a.xtpage+"&s2rich="+a.xtn2:"")+(null!==d&&"0"!=d&&null!==g?"&rfsh="+d:""));e=new Date;if(null!==d&&"0"!=d&&("play"==c||"play&buf=1"==c||"refresh"==c)){I[b]&&18E5<e.getTime()-I[b]&&(S[b]=0);if(("play"==c||"play&buf=1"==c)&&!S[b])S[b]=e.getTime()/1E3,ca[b]=parseInt(g),\n' + 'c=Math.floor(d),c=1500<c?1500:5>c?5:c,wa[b]=c,ba[b]=c,I[b]=!1;else if("refresh"==c&&("live"==k||!ca[b]||300<ca[b]&&2>100*wa[b]/ca[b]))c=I[b]?xa[b]:e.getTime()/1E3-S[b],5>100*ba[b]/(c+30)&&(ba[b]=5*((c+30)/100)),I[b]&&(I[b]=!1,S[b]=e.getTime()/1E3-xa[b]),xa[b]=c;sa[b]=a.setTimeout("xt_rm(\'"+b+"\',\'"+f+"\',\'"+h+"\',\'refresh\',\'0\',\'"+d+"\',null,\'"+j+"\',\'"+w+"\',\'"+n+"\',\'"+l+"\',\'"+k+"\')",1E3*ba[b])}else if(("pause"==c||"stop"==c)&&null!==sa)a.clearTimeout(sa[b]),"stop"==c?wa[b]=0:I[b]=e.getTime()};var Ba=window.xtidpg=\n' + 'n(G.getHours())+""+n(G.getMinutes())+""+n(G.getSeconds())+""+D(7),u=0,ib=0;window.xt16="";window.xt_addProduct=function(b,f,h,c,e,d){u++;a.xt16+="&pdt"+u+"=";a.xt16+=b?b+"::":"";a.xt16+=f?f:"";a.xt16+=h?"&qte"+u+"="+h:"";a.xt16+=c?"&mt"+u+"="+c:"";a.xt16+=e?"&dsc"+u+"="+e:"";a.xt16+=d?"&pcode"+u+"="+d:""};window.xt_rd=D;window.xt_addProduct_v2=function(b,f,h,c,e,d,g,j,n){u++;a.xt16+="&pdt"+u+"=";a.xt16+=b?b+"::":"";a.xt16+=f?f:"";a.xt16+=h?"&qte"+u+"="+h:"";a.xt16+=c?"&mt"+u+"="+c:"";a.xt16+=e?"&mtht"+\n' + 'u+"="+e:"";a.xt16+=d?"&dsc"+u+"="+d:"";a.xt16+=g?"&dscht"+u+"="+g:"";a.xt16+=n?"&roimt"+u+"="+n:"";a.xt16+=j?"&pcode"+u+"="+j:""};window.xt_addProduct_load=function(b,f,h){f&&(ib++,a.xt44+=1==ib?"&pdtl=":"|",a.xt44+=b?b+"::":"",a.xt44+=f,a.xt44+=h?";"+h:"")};"function"==typeof xt_cart?xt_cart():a.xt16="";window.xt_ParseUrl=function(b,a,h){AT_hit.sendTag(h?"F":"old",a)};window.xt_ParseUrl3=function(b,a,h,c,e){AT_hit.sendTag("&ati="==e?"AT":"PDT",a,null,"&type="+("&ati="==e?"AT":"PDT"))};window.AT_click=\n' + '{id:0,objs:[],elem:function(b,a,h,c,e,g,j,n){var w={};w.urlDest=e;w.type=b;w.n2=a;w.label=h;w.typeClick=c;w.target=g;w.submit=!1!==e;w.redir=!d(j)?!0:j;w.xtcust=d(n)?"&stc="+l(n):"";return w},addListener:function(b,a,h){window.addEventListener?b.addEventListener(a,h,!1):window.attachEvent&&b.attachEvent("on"+a,h)},tag:function(a,f,h,c,e,d,g,j,n){if(a&&"function"==typeof a.setAttribute)this.addElem(a,f,h,c,e,d,g,j,n);else if("object"==typeof a)for(var l in a)a.hasOwnProperty(l)&&"function"==typeof a[l].setAttribute&&\n' + 'this.addElem(a[l],f,h,c,e,d,g,j,n)},addElem:function(a,f,h,c,e,d,g,j,n){this.id++;a.setAttribute("data-xtclickid",this.id);this.objs[this.id]=this.elem(f,h,c,e,d,g,j,n);"FORM"!=a.nodeName?this.addListener(a,"click",this.on_click_submit):this.addListener(a,"submit",this.on_click_submit)},on_click_submit:function(a){try{var f=a.target||a.srcElement,h=f.getAttribute("data-xtclickid"),c={},e="",d=a.defaultPrevented,g=window.AT_click;if(!h)for(var j=f.parentNode;j;){if(j.getAttribute("data-xtclickid")){h=\n' + 'j.getAttribute("data-xtclickid");break}j=j.parentNode}h&&(c=g.objs[h],"AT"!=c.type?e+="&p="+c.label+("C"==c.type?"&clic="+c.typeClick:""):"AT"==c.type&&(e+="&type=AT&atc="+c.label),e+=c.xtcust,p(c.type,"&s2="+c.n2+e),!d&&c.redir&&(a.preventDefault(),"FORM"!=f.nodeName?g.do_navig(f,c.urlDest,c.target):g.do_submit(f,null,c.submit)))}catch(n){}},do_navig:function(b,f,h,c){var e=null;if("A"!=b.nodeName)for(var d=b.parentNode;d;){if("A"==d.nodeName){e=d;break}d=d.parentNode}else e=b;if(e){if(e.target=\n' + "h||b.target||\"_self\",e.href=f||b.href||e.href,!c||c&&!L)if(b=e.href.split('\"').join('\\\\\"'),0>e.href.indexOf(\"mailto:\"))if(\"_self\"==e.target.toLowerCase()){if(setTimeout('self.location.href=\"'+b+'\"',a.xttredir),c)return!1}else if(\"_top\"==e.target.toLowerCase()){if(setTimeout('top.location.href=\"'+b+'\"',a.xttredir),c)return!1}else if(\"_parent\"==e.target.toLowerCase()){if(setTimeout('parent.location.href=\"'+b+'\"',a.xttredir),c)return!1}else return!0;else if(setTimeout('AT_click.mail_to(\"'+b+'\");',a.xttredir),\n" + "c)return!1}else if(f||b.href)if(f=f?f:b.href,0>f.indexOf(\"mailto:\"))if(\"_blank\"==h)setTimeout('(xw.open(\"'+f.split('\"').join('\\\\\"')+'\",\"_blank\")).focus();',1);else{if(setTimeout('self.location.href=\"'+f.split('\"').join('\\\\\"')+'\"',a.xttredir),c)return!1}else if(setTimeout('AT_click.mail_to(\"'+f.split('\"').join('\\\\\"')+'\");',a.xttredir),c)return!1;if(c)return L=!1,!0},do_submit:function(a,f,h){if(h&&(setTimeout(function(){a.submit()},500),f&&h))return!1},mail_to:function(a){window.location=a}};window.AT_hit=\n" + '{first:!0,referrer:("acc_dir"==g("xtref")?"":null!==g("xtref")?g("xtref"):"acc_dir"==q("xtref")?"":q("xtref")||ya.replace(/[<>]/g,"")||"").replace(/[<>]/g,"").substring(0,1600),parse:function(a,f,h,c){var e=[""];if(1600>=f.length)e[0]=f;else{a=AT_hit.first&&"F"==a?Ba:Ba.substring(0,6)+D(8);var d="",j="",n,l={};n=[];var k=0;0<=f.indexOf("&ref=")&&(d=f.substring(f.indexOf("&ref=")),f=f.replace(d,""));if(c)for(var p in c)if(c.hasOwnProperty(p)&&0<=f.indexOf("&"+p+"=")&&1600<(j=g(p,f,2)).length)f=f.replace("&"+\n' + 'p+"="+j,""),n=RegExp("["+c[p]+"]","gi"),l[p]=j.replace(/&/g,"%26").split(n);n=RegExp("["+h+"]","gi");n=f.split(n);for(var m in n)n.hasOwnProperty(m)&&(1600>=e[k].length+n[m].length+1?e[k]+=""!==n[m]?"&"+n[m]:"":(e.push(""),k++,e[k]=1600>n[m].length?e[k]+(""!==n[m]?"&"+n[m]:""):e[k]+("&mherr=1&"+n[m].substring(0,1600))));for(var q in l)if(l.hasOwnProperty(q)){f="&"+q+"=";h=!1;p=l[q].length;for(m=0;m<p;m++)1600>=e[k].length+l[q][m].length+1?(h||(e[k]+=f,h=!0),e[k]+=""!==l[q][m]?l[q][m]+("stc"===q&&\n' + 'p-1===m?"":c[q]):""):(e.push(f),h=!0,k++,e[k]=1600>l[q][m].length?e[k]+(""!==l[q][m]?l[q][m]+("stc"===q&&p-1===m?"":c[q]):""):e[k]+("mherr=1"+c[q]))}d&&(1600>=e[k].length+d.length||(e.push(""),k++),e[k]+=d);for(c=0;c<e.length;c++)e[c]="&mh="+(c+1)+"-"+e.length+"-"+a+e[c]}return e},sendTag:function(b,f,d,c){"undefined"!=typeof window.ATTvTracking&&window.ATTvTracking.update();"undefined"!=typeof window.ATTagWebo&&ATTagWebo.update();var e=[];d=d||Qb+Eb;d+=a.xtfirst?"&idclient="+M:"";b=b||"F";f=f||v;\n' + 'f+=(c?c:"")+"&vtag="+Ab+AT_hit.localHour()+AT_hit.resolution()+"&rn="+(new Date).getTime();AT_hit.first&&"F"==b&&(f+=db&&0>f.indexOf("&stc=")?"&stc="+db:"",f+="&ref="+AT_hit.referrer.replace(/&/g,"$"));"C"===b&&(f+="&pclick="+a.xtpage+"&s2click="+(a.xtn2?a.xtn2:""));e=AT_hit.parse(b,f,"&",{ati:",",atc:",",pdtl:"|",stc:",",dz:"|"});for(f=0;f<e.length;f++)AT_hit.loadImage(d+e[f]);AT_hit.first&&("F"==b&&""!==Xa)&&AT_hit.loadFile("script",Xa,!0,"text/javascript");"F"==b&&(AT_hit.first=!1)},loadImage:function(a){var f=\n' + 'new Image;f.src=a;pa.sentHits instanceof Array&&pa.sentHits.push(a);f.onload=function(){f.onload=null}},loadFile:function(a,f,d,c,e){a=document.createElement(a);a.type=c;a.async=d;a.src=f;(e||document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]||document.getElementsByTagName("script")[0].parentNode).insertBefore(a,null)},localHour:function(a){a=a?a:new Date;return"&hl="+a.getHours()+"x"+a.getMinutes()+"x"+a.getSeconds()},resolution:function(){if(4<=parseFloat(t.appVersion))try{var a;\n' + 'a="undefined"!==typeof window.devicePixelRatio?window.devicePixelRatio:1;return"&r="+da.width*a+"x"+da.height*a+"x"+da.pixelDepth+"x"+da.colorDepth}catch(d){}return""},prerenderDisplaying:function(){AT_hit.first&&(AT_hit.sendTag("F"),""!==xt44&&AT_hit.sendTag("PDT",xt44,null,"&type=PDT&p="+aa+(a.xt_pageID?"&pid="+a.xt_pageID+"&pchap="+(a.xt_chap||"")+"&pidt="+(a.xt_pageDate||""):"")))},isPreviewOrPrerendering:function(){return window.navigator&&"preview"===window.navigator.loadPurpose&&-1!=t.userAgent.indexOf("Safari")&&\n' + '0>t.userAgent.indexOf("Chrome")?(ub&&(AT_hit.sendTag("F",null,null,"&pvw=1"),""!==xt44&&AT_hit.sendTag("PDT",xt44,null,"&type=PDT&p="+aa+(a.xt_pageID?"&pid="+a.xt_pageID+"&pchap="+(a.xt_chap||"")+"&pidt="+(a.xt_pageDate||""):""))),!0):"prerender"==m.webkitVisibilityState?(m.addEventListener("webkitvisibilitychange",AT_hit.prerenderDisplaying,!1),!0):!1}};if(0!==E||0!==Z||F){var T="";if(""!==ab){T=q("xtvid");T||(ta=T=G.getTime()+""+D(6));var Ca=new Date;Ca.setMinutes(Ca.getMinutes()+30);j("xtvid",\n' + 'T,Ca,"",1)}window.xtvid=T;var jb=Xtconf.xtsite("xtor"),Da=Xtconf.xtsite("xtdate"),kb=Xtconf.xtsite("xtocl"),Ea=Xtconf.xtsite("xtan"),Fa=Xtconf.xtsite("xtat"),U=Xtconf.xtsite("xtant"),J=g("xtor"),Ga=g("xtdt"),x=g("xtan"),y=g("xtat"),Ha=g("an",s),Ia=g("at",s),lb=g("ac",s),mb=q(kb),Ja=q("xtgo"),Ka=q("xtord"),nb=q("xtvrn"),V=null!==mb?mb:"$",Rb="0"===Ja?Ka:null,La=null!==Ja?Ja:"0",fa=null!==nb?nb:"$",ob=G.getTime()/6E4,W=null!==Ga&&(g("xts")==E||F)?30>ob-Ga&&0<=ob-Ga?"2":"1":La,Sb="1"==La?"&pgt="+Ka:\n' + '"1"==W&&null!==J?"&pgt="+J:"",N=null!==eb?eb:null!==J&&"0"==W?J:!F?Rb:null,N=0>V.indexOf("$"+N+"$")||"$"==V?N:null,C="0"==W?N:"2"==La?Ka:"2"==W?J:null,O,Ma;null!==C?(Ma=C.substring(0,C.indexOf("-")),O=A[Ma]):O="1";if(null===O||!d(O))O=A.ad;null===x&&!F&&(x=q("xtanrd"));null===y&&!F&&(y=q("xtatrd"));var pb=q(Ea),qb=q(Fa),ga=q(U),B=new Date,z=window.xt29=new Date,Na=new Date;F?B.setTime(B.getTime()+3E4):B.setTime(B.getTime()+864E5*O);Na.setTime(Na.getTime()+18E5);z.setTime(z.getTime()+864E5*zb);var Oa=\n' + 'null!==x?x.indexOf("-"):0,Pa=null!==y?y.indexOf("-"):0,rb=null!==Ha?"":null!==x&&0<Oa?"&ac="+x.substring(0,Oa)+"&ant=0&an="+x.substring(Oa+1,x.length):null!==pb?"&anc="+pb+"&anct="+ga:"",Tb=null!==Ia?"":null!==y&&0<Pa?"&ac="+y.substring(0,Pa)+"&ant=0&at="+y.substring(Pa+1,y.length):null!==qb?"&attc="+qb+"&anct="+ga:"",H=0>fa.indexOf("$"+E+"$")?"&vrn=1":"",Ub=null!==g("xtatc")&&null===g("atc",s)?"&atc="+g("xtatc"):"";""!==H&&j("xtvrn",141>fa.length?fa+E+"$":fa.substring(0,141),z,k,0);H+=null===N?"":\n' + '"&xto="+N;H+=(""!==rb?rb:Tb)+Sb+Ub;null!==Ha?(j(Ea,lb+"-"+Ha,z,k,1),j(U,"1",z,k,1)):null!==x&&"1"!=ga&&(j(Ea,x,z,k,1),j(U,"0",z,k,1));null!==Ia?(j(Fa,lb+"-"+Ia,z,k,1),j(U,"1",z,k,1)):null!==y&&"1"!=ga&&(j(Fa,y,z,k,1),j(U,"0",z,k,1));var Qa=q(jb),X=q(Da),X=(/[a-zA-Z]/.test(X)?(new Date(X)).getTime()/36E5:parseFloat(q(Da)))||(new Date).getTime()/36E5,Vb=0<=Math.floor(gb-X)?Math.floor(gb-X):0,H=H+(null===Qa?"":"&xtor="+Qa+"&roinbh="+Vb);if(F)j("xtgo",W,B,k,1),null!==J&&j("xtord",J,B,k,1),null!==x&&j("xtanrd",\n' + 'x,B,k,1),null!==y&&j("xtatrd",y,B,k,1),j("xtref",AT_hit.referrer?AT_hit.referrer.replace(/&/g,"$"):"acc_dir",B,k,0),a.xtloc&&(R.location=a.xtloc);else{null!==C&&(0>V.indexOf("$"+encodeURIComponent(C)+"$")||"$"==V)&&j(kb,V+C+"$",Na,k,1);var ha=t.appName+" "+t.appVersion,P=ha.indexOf("MSIE"),Q;0<=P?(Q=parseInt(ha.substr(P+5)),P=!0):(Q=parseFloat(t.appVersion),P=!1);var Wb=0<=ha.indexOf("Netscape"),Xb=0<=ha.indexOf("Mac"),Ra=0<=t.userAgent.indexOf("Opera"),ia="",sb="",Sa="",Ta="";if(P&&5<=Q&&!Xb&&!Ra&&\n' + '!F)try{m.body.addBehavior("#default#clientCaps"),ia="&cn="+m.body.connectionType,ia+="&ul="+m.body.UserLanguage,m.body.addBehavior("#default#homePage"),sb=m.body.isHomePage(location.href)?"&hm=1":"&hm=0",Ta="&re="+m.body.offsetWidth+"x"+m.body.offsetHeight}catch(cc){}else 5<=Q&&(Ta="&re="+a.innerWidth+"x"+a.innerHeight);Wb&&4<=Q||Ra?Sa="&lng="+t.language:P&&(4<=Q&&!Ra)&&(Sa="&lng="+t.userLanguage);j("xtord","",G,k,1);if(null!==C&&(null===Qa||"1"==yb))j(jb,C,B,k,1),j(Da,G.getTime()/36E5,B,k,1);var Yb=\n' + 'xb?"&docl="+encodeURIComponent(R.location.href.replace(/&/g,"#ec#")):"",v=Db+"&p="+aa+Fb+Gb+Hb+H+Yb+Ib+s+ia+sb+Sa+"&idp="+Ba,Ua=q("xtvalCZ",1);if(null!==Ua){var v=v+decodeURIComponent(Ua.replace(/%at1%/g,"-").replace(/%at2%/g,"_").replace(/%at3%/g,".").replace(/%at4%/g,"!").replace(/%at5%/g,"~").replace(/%at6%/g,"*").replace(/%at7%/g,"\'").replace(/%at8%/g,"(").replace(/%at9%/g,")")).replace("&c=","&current=").replace("&b=","&before=").replace("&a=","&after="),Va=new Date;Va.setTime(Va.getTime()-36E5);\n' + 'j("xtvalCZ",Ua,Va,k,1)}var Qb=window.Xt_id=Bb+"?",ja=q("xtide");if(null!==C)switch(Ma.toLowerCase()){case "erec":case "epr":case "es":var ka=null;try{var la=C.match(/(\\[[^\\]]*\\])|([^\\-]+)|(-)/g),tb=0,ma;for(ma in la)"-"==la[ma]&&tb++,5==tb&&"-"!=la[ma]&&(ka=la[ma])}catch(dc){ka=null}null!==ka&&(ja=ka,j("xtide",ja,z,"",1))}v+="&jv="+(t.javaEnabled()?"1":"0")+Ta+xt16+(null!==ja?"&ide="+ja:"");ta&&(v+="&lnk="+ab+"&vid="+ta);"0"!=Y&&!AT_hit.isPreviewOrPrerendering()&&(AT_hit.sendTag("F"),""!==xt44&&AT_hit.sendTag("PDT",\n' + 'xt44,null,"&type=PDT&p="+aa+(a.xt_pageID?"&pid="+a.xt_pageID+"&pchap="+(a.xt_chap||"")+"&pidt="+(a.xt_pageDate||""):"")))}}0<oa&&"function"==typeof xtNodesload&&(wb?a.addEventListener?a.addEventListener("load",xtNodesload,!1):a.attachEvent&&a.attachEvent("onload",xtNodesload):xtNodesload())};window.Xtconf.weboAccountId||(window.attag=new Xtcore);\n' + 'window.ATWebo=function(){var d=this,l=("https:"==document.location.protocol?"https://":"http://")+"aimfr.solution.weborama.fr/fcgi-bin/dispatch.fcgi?g.wr=1&a.A=la",r={},j={},g=!1,p=!1;d.init=function(g){r=g;l+="&a.si="+r.weboAccountId+"&a.cb=ATTagWebo.callback&_="+Math.random();g=null;r.xtnocookies?(d.initInfoWebo(),j.info.message="xtnocookies",d.setXtcore()):(g=ATInternet.Utils.getCookie("atwebo"))?(j=ATInternet.Utils.parseJSON(g),d.setXtcore()):(d.initInfoWebo(),d.run())};d.update=function(){var d=\n' + 'ATInternet.Utils.getCookie("atwebo");d&&ATInternet.Utils.setCookie("atwebo",d,1800,r.xt1)};d.run=function(){var g=document.createElement("script");g.type="text/javascript";g.async=!0;g.src=l;g.onerror=d.setScriptError;(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]||document.getElementsByTagName("script")[0].parentNode).insertBefore(g,null);setTimeout(d.setTimeoutError,500)};d.initInfoWebo=function(){j.info={version:"1.0.0",accountid:r.weboAccountId,message:"",\n' + 'error:[]}};d.setDataWebo=function(d){j.data={accountid:r.weboAccountId,code:d}};d.setCookieWebo=function(){var d=ATInternet.Utils.serialJSON(j);ATInternet.Utils.setCookie("atwebo",d,1800,r.xt1);ATInternet.Utils.getCookie("atwebo")||(j.info.error.push("cookieError"),j={info:j.info})};d.setXtcore=function(){g||(window.xtcustom=window.xtcustom||{},window.xtcustom.wbo=j,window.attag=new Xtcore,g=!0)};d.setScriptError=function(){j.info.error.push("noScript");d.setCookieWebo();d.setXtcore()};d.setTimeoutError=\n' + 'function(){p=!0;g||(j.info.error.push("timeout"),d.setCookieWebo(),d.setXtcore())};d.callback=function(g){p||("string"===typeof g?0!==g.length?d.setDataWebo(g):j.info.message="noAction":j.info.error.push("codeError"),d.setCookieWebo(),d.setXtcore())}};window.Xtconf.weboAccountId&&(window.ATTagWebo=new ATWebo,ATTagWebo.init(window.Xtconf));';
}
//----------------------------------------------------
//----
if (tC.getCookie("tc_mode_test") == 1) {
(function() {
var tc_testmodescriptexec = document.createElement("script");
tc_testmodescriptexec.type = "text/javascript";
tc_testmodescriptexec.src = "//manager.tagcommander.com/utils/test_mode_include.php?id=1&site=1376&type=exec&rand=" + Math.random() + "&version=66.02";
(document.getElementsByTagName("body")[0] || document.getElementsByTagName("head")[0] || document.getElementsByTagName("script")[0].parentNode).appendChild(tc_testmodescriptexec);
})();
(function() {
setTimeout(function() {
if (typeof top.tc_count !== "undefined") {
top.tc_count++;
} else {
top.tc_count = 1;
}
var tc_newscript = document.createElement("script");
tc_newscript.type = "text/javascript";
tc_newscript.src = "//manager.tagcommander.com/utils/livetest/bookmarklet.php?r=" + Math.random() + "&nb=" + top.tc_count + "&container=1376!1&version=66.02";
(document.getElementsByTagName("body")[0] || document.getElementsByTagName("head")[0] || document.getElementsByTagName("script")[0].parentNode).appendChild(tc_newscript);
}, 1e3);
})();
} else {
if (tc_vars["xiti_page_name"] == "accueil_particuliers" || tc_vars["xiti_page_name"] == "accueil_professionnels" || tc_vars["xiti_page_name"] == "accueil_entreprise" || tc_vars["xiti_page_name"] == "accueil_toutsurletimbre" || tc_vars["xiti_page_name"] == "accueil_e_commercants") {
tC.launchTag("133", "MetrixLab2", "26", "1376", "1");
(function() {
var dvt = document.createElement("script");
dvt.type = "text/javascript";
dvt.async = true;
dvt.src = ("https:" == document.location.protocol ? "https://" : "http://") + "invitation.opinionbar.com/popups/p21408/overlay.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(dvt, s);
})();
}
tC.launchTag("29", "Universal analytics standard ", "659", "1376", "1");
(function(i, s, o, g, r, a, m) {
i["GoogleAnalyticsObject"] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments);
}, i[r].l = 1 * new Date();
a = s.createElement(o), m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m);
})(window, document, "script", "//www.google-analytics.com/analytics.js", "ga");
ga("create", "UA-50898709-1", "laposte.fr");
ga("send", "pageview");
tC.launchTag("3", "Analyzer NX - Arborescence personnalisee", "26", "1376", "1");
var xt_pagetype = tc_vars["xiti_xtpagetype"];
if (window.xtparam !== undefined) {
window.xtparam += "&ptype=" + xt_pagetype;
} else {
xtparam = "&ptype=" + xt_pagetype;
}
if (tc_vars["env_template"] == "produit") {
tC.launchTag("5", "Analyzer NX - indicateurs globaux fiches produits", "7", "1376", "1");
xt_multc = "&x1=" + tc_vars["nom_produit"] + "&x2=" + tc_vars["nom_categorie_produit"] + "&x3=" + tc_vars["type_RPS"] + "&x4=" + tc_vars["xiti_xtn2"] + "&x5=" + tc_vars["gamme_produit"];
if (window.xtparam != null) {
window.xtparam += xt_multc;
} else {
window.xtparam = xt_multc;
}
}
if (tc_vars["env_template"] == "trouver_un_bureau") {
tC.launchTag("9", "Analyzer NX - Indicateur page bureau de poste", "8", "1376", "1");
window.xtparam = "";
xt_pagetype = tc_vars["xiti_xtpagetype"];
if (window.xtparam != null) {
window.xtparam += "&ptype=" + xt_pagetype;
} else {
xtparam = "&ptype=" + xt_pagetype;
}
xt_form = "&f1=" + tc_vars["nom_bureau_poste"] + "&f2=" + tc_vars["type_bureau"] + "&f3=" + tc_vars["ouverture_bureau_poste"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "localiser") {
tC.launchTag("7", "Analyzer NX - Indicateur page resultats localisation ", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["localisation_ou"] + "&f2=" + tc_vars["localisation_type_point"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "trouver_cp") {
tC.launchTag("11", "Analyzer NX - Indicateur page resultats CP", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["recherche_cp_ville"] + "&f2=" + tc_vars["saisie_cp_ville"] + "&f3=" + tc_vars["resultats"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "suivi") {
tC.launchTag("13", "Analyzer NX - Indicateur page resultats suivi", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["provenance"] + "&f2=" + tc_vars["type_suivi"] + "&f3=" + tc_vars["langue"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "calculateurs_tarifs") {
tC.launchTag("15", "Analyzer NX - Indicateur page resultats tarif", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["tarif_depart"] + "&f2=" + tc_vars["tarif_destination"] + "&f3=" + tc_vars["tarif_nature_envois"] + "&f4=" + tc_vars["tarif_recommandation"] + "&f5=" + tc_vars["tarif_poids"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "newsletter::confirmation_inscription") {
tC.launchTag("17", "Analyzer NX - Indicateur page validation newsletter", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["newsletter_profil"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "bureaux_departement") {
tC.launchTag("47", "Analyzer NX - indicateur page bureau departement ", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["region"] + "&f2=" + tc_vars["departement"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "recherche") {
tC.launchTag("43", "Analyzer NX - Indicateur de page recherche", "26", "1376", "1");
xt_form = "&f1=" + tc_vars["search_keywords"];
if (window.xtparam != null) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "mon_compte::choisir_vos_preferences_de_livraison::recapitulatif" || tc_vars["xiti_page_name"] == "mon_compte::choisir_vos_preferences_de_livraison::confirmation") {
tC.launchTag("143", "Analyzer NX - Indicateur de page preferences de livraison", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["choix_livraison"] + "&f2=" + tc_vars["choix_jour"] + "&f3=" + tc_vars["code_postal"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["env_template"] == "recherche") {
tC.launchTag("21", "Analyzer NX - Internet Search Engine (2010)", "14", "1376", "1");
xt_mtcl = tc_vars["search_keywords"];
xt_npg = tc_vars["search_page_number"];
if (window.xtparam != null) {
window.xtparam += "&mc=" + xt_mtcl + "&np=" + xt_npg;
} else {
window.xtparam = "&mc=" + xt_mtcl + "&np=" + xt_npg;
}
}
if (tc_vars["xiti_page_name"] == "mon_compte::accueil::mon_compte_connecte") {
tC.launchTag("147", "Analyzer NX - indicateurs page home connecte", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["nb_notifs"] + "&f2=" + tc_vars["notifs_reex"] + "&f3=" + tc_vars["preferences_livraison"] + "&f4=" + tc_vars["nouvelle_livraison"] + "&f5=" + tc_vars["notifs_procuration"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "mon_compte::facteur_plus::confirmation_rdv") {
tC.launchTag("165", "Analyzer NX - Indicateurs de page Facteur Plus conf rdv", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["code_postal"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "connaissance_du_timbre::dicotimbre::explorer_par_criteres::resultats_recherche") {
tC.launchTag("167", "Analyzer NX - Indicateurs Page Dicotimbre explorer critères", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["timbres_theme"] + "&f2=" + tc_vars["timbres_sous_theme"] + "&f3=" + tc_vars["timbres_artiste"] + "&f4=" + tc_vars["timbres_date"] + "&f5=" + tc_vars["timbres_identifiant"] + "&f6=" + tc_vars["timbres_mode_impression"] + "&f7=" + tc_vars["resultats_recherche"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "connaissance_du_timbre::dicotimbre::recherche_textuelle::resultats_recherche") {
tC.launchTag("169", "Analyzer NX - Indicateurs Page Dicotimbre recherche textuelle", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["expression_recherchee"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "outils::calculateur_delais::resultat") {
tC.launchTag("171", "Analyzer NX - Indicateur Page Calculateur delais", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["destination"] + "&f2=" + tc_vars["recherche_detaille"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::confirmation") {
tC.launchTag("173", "Analyzer NX - Indicateur page Nouvelle Livraison", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["modif_livraison_type"] + "&f2=" + tc_vars["modif_livraison_mode"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"].toString().toLowerCase().indexOf("mon_compte::vsmp".toLowerCase()) != -1) {
tC.launchTag("192", "Analyzer NX - Indicateur Page VSMP", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["vsmp_formule"] + "&f2=" + tc_vars["vsmp_activation"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
if (tc_vars["xiti_page_name"] == "migration_colis::confirmation_creation_compte") {
tC.launchTag("193", "Analyzer NX - Indicateur Page Migration Compte Colissimo", "8", "1376", "1");
xt_form = "&f1=" + tc_vars["migration_compte_lpfr"];
if (window.xtparam != undefined) {
window.xtparam += xt_form;
} else {
window.xtparam = xt_form;
}
}
tC.launchTag("1", "Analyzer NX (http+https included)", "13", "1376", "1");
tC.template = [];
tC.template.callback = function() {
eval(tC.inclusion_at_tvtracking_1);
xtnv = document;
xtsd = "http://logc406";
if ("https:" == document.location.protocol) {
xtsd = "https://logs1406";
}
xtsite = tc_vars["xiti_xtsite"];
xtn2 = tc_vars["xiti_xtn2"];
xtpage = tc_vars["xiti_page_name"];
xtdi = "";
xt_an = tc_vars["user_id"];
xt_ac = tc_vars["user_category_id"];
xt_multc = "&x6=" + tc_vars["connecte"] + "&x9=" + tC.internalvars.adblock;
xtidmod = tc_vars["xiti_xtn2"];
if (window.xtparam !== undefined) {
window.xtparam += "&ac=" + xt_ac + "&an=" + xt_an + xt_multc;
} else {
window.xtparam = "&ac=" + xt_ac + "&an=" + xt_an + xt_multc;
}
tC.template = {};
(function() {
eval(tC.inclusion_xtcore_1);
eval(tC.inclusion_blockadblock_1);
var AtInternet_Adblock_hit = function(value) {
return xt_click(this, "C", "0", "adblock::" + value, "A");
};
var adBlockDetected = function() {
AtInternet_Adblock_hit("detected");
};
var adBlockNotDetected = function() {
AtInternet_Adblock_hit("not_detected");
};
if (typeof blockAdBlock === "undefined") {
adBlockDetected();
} else {
blockAdBlock.onDetected(adBlockDetected).onNotDetected(adBlockNotDetected);
}
})();
};
tC.script.add("https://hello.distribeo.com/atconnect/edbbf544b507bf08274cc95a66282102289bc2be?duration=300&lifetime=30&priority=1&rn=" + tC.internalvars.tc_random, tC.template.callback, false);
if (tc_vars["xiti_page_name"] == "accueil_particuliers" || tc_vars["env_template"] == "calculateurs_tarifs" || tc_vars["env_template"] == "recherche" || tc_vars["page_name"] == "courrier_et_colis::details_produits::lettre_verte" || tc_vars["xiti_page_name"] == "courrier_et_colis::details_produits::lettre_prioritaire" || tc_vars["page_name"] == "courrier_et_colis::details_produits::lettre_suivie" || tc_vars["xiti_page_name"] == "courrier_et_colis::revue_produits_services::envoyer_une_lettre_ou_un_petit_objet_vers_la_france_métropolitaine_et_l_outre-mer::au_depart_de_france_metropolitaine" || tc_vars["xiti_page_name"] == "courrier_et_colis::revue_produits_services::envoyer_une_lettre_ou_un_petit_objet_vers_l_international::au_depart_de_france_metropolitaine" || tc_vars["xiti_page_name"] == "courrier_et_colis::presentation_produits_solo::achetez_et_imprimez_vos_timbres_a_domicile" || tc_vars["page_name"] == "courrier_et_colis::details_produits::montimbrenligne" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::numero_et_code_postal" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::choix_de_livraison" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::informations_personnelles" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::choix_de_livraison::choix_bp_liste" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::recapitulatif" || tc_vars["xiti_page_name"] == "mon_compte::nouvelle_livraison::confirmation" || tc_vars["xiti_page_name"] == "courrier_et_colis::revue_produits_services::service_reception") {
if (document.location.toString().toLowerCase().indexOf("http://www.laposte.net/accueil".toLowerCase()) == -1 && document.location.toString().toLowerCase().indexOf("http://www.laposte.net/conditions-generales-d-utilisation".toLowerCase()) == -1 && document.location.toString().toLowerCase().indexOf("http://www.laposte.net/charte-informatique-et-libertes".toLowerCase()) == -1 && document.location.toString().toLowerCase().indexOf("http://www.laposte.net/mentions-legales".toLowerCase()) == -1 && document.location.toString().toLowerCase().indexOf("http://www.laposte.net/accueildisconnected.jsp".toLowerCase()) == -1) {
if (tc_vars["env_template"] != "HomepageWebMailLayout") {
tC.launchTag("61", "Devatics", "663", "1376", "1");
(function() {
var dvt = document.createElement("script");
dvt.type = "text/javascript";
dvt.async = true;
dvt.src = ("https:" == document.location.protocol ? "https://" : "http://") + "d" + "541" + ".devatics.com/observer.js";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(dvt, s);
})();
}
}
}
if (tc_vars["xiti_xtn2"] != "4") {
tC.launchTag("39", "iAdvize Chat window", "122", "1376", "1");
(function() {
var idz = document.createElement("script");
idz.type = "text/javascript";
idz.async = true;
idz.src = document.location.protocol + "/" + "/" + "halc.iadvize.com/iadvize.js?sid=" + "597";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(idz, s);
})();
}
if (tc_vars["xiti_xtn2"] == "4") {
tC.launchTag("181", "iAdvise Chat Tag principal", "26", "1376", "1");
(function() {
var idz = document.createElement("script");
idz.type = "text/javascript";
idz.async = true;
idz.src = document.location.protocol + "/" + "/" + "halc.iadvize.com/iadvize.js?sid=2777&lang=fr";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(idz, s);
})();
}
if (tc_vars["xiti_xtn2"] == "4") {
tC.launchTag("175", "iAdvise customData", "26", "1376", "1");
var device = "desktop";
var regex = new RegExp("(android|iphone|ipad|blackberry|symbian|symbianos|" + "symbos|netfront|model-orange|javaplatform|iemobile|windows phone|samsung|htc|" + "opera mobile|opera mobi|opera mini|presto|huawei|blazer|bolt|doris|fennec|" + "gobrowser|iris|maemo browser|mib|cldc|minimo|semc-browser|skyfire|teashark|" + "teleca|uzard|uzardweb|meego|nokia|bb10|playbook)", "gi");
if (navigator.userAgent.match(regex)) {
if (screen.width >= 480 && screen.height >= 800 || screen.width >= 800 && screen.height >= 480 || navigator.userAgent.match(/ipad/gi)) {
device = "tablet";
} else {
device = "mobile";
}
} else {
device = "desktop";
}
var idzCustomData = {
device: device,
page_name: tc_vars["xiti_page_name"],
theme: tc_vars["thematique"],
page_type: tc_vars["xiti_page_name"],
univers: ""
};
}
if (document.location.toString().toLowerCase().indexOf("http://www.laposte.fr/particulier/produits/presentation/pack-demenagement".toLowerCase()) != -1) {
tC.launchTag("149", "Media Data Live", "1633", "1376", "1");
(function() {
var spage = encodeURIComponent(document.location.href.replace(/^https?:\/\/(.+?)(\?.*|#.*|$)/, "$1").replace(/\//g, "_").replace(/(^_*|_*$)/g, ""));
window.dmbgclzvi7of = {
data: "_cid=" + "lpco" + "&spage=" + spage + "&kpage=&kpage=&md5_opp=&support=&uinfo=&md5=&cp=&civilite=&nom=&prenom="
};
var elem = document.createElement("script");
elem.src = (document.location.protocol == "https:" ? "https://" : "http://") + "mt.mediapostcommunication.net/60?";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName("script")[0];
scpt.parentNode.insertBefore(elem, scpt);
})();
}
if (tc_vars["xiti_page_name"] == "webmail::accueil_webmail") {
tC.launchTag("187", "Google remarketing: Optimisation RLSA", "26", "1376", "1");
var google_conversion_id = 997506006;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
tC.scriptElt1 = document.createElement("script");
tC.scriptElt1.id = "tc_script_187_1";
tC.scriptElt1.type = "text/javascript";
tC.scriptElt1.src = "//www.googleadservices.com/pagead/conversion.js";
tC.scriptElt1.async = true;
tC.scriptElt1.defer = "defer";
(document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0] || document.getElementsByTagName("script")[0].parentNode).insertBefore(tC.scriptElt1, null);
}
}
function tc_events_1(tc_elt, tc_id_event, tc_array_events) {
tc_array_events["id"] = tc_id_event;
(function() {
var l = "localisation_nature|tarif_formulaire_ou_raccourci|tarif_nb_resultats|tarif_cross_selling1|tarif_cross_selling2|tarif_destination|tarif_type_envoi|tarif_poids|tarif_mode_envoi|tarif_options|tarif_nature|cible_boutique|id|label|xtclick_event|xtclick_s2|xtclick_type|xtap_x|xtap_y|xtpub_b|xtpub_c|xtpub_d|xtpub_e|xtpub_f|xtpub_g|xtpub_h|xtpub_j|event|xiti_xtn2|page_name|xiti_xtpagetype|xiti_page_name|nom_produit|nom_categorie_produit|type_RSP|gamme_produit|video_duration|localisation_ou|localisation_type_point".split("|");
for (var k in l) {
if (!tc_array_events.hasOwnProperty(l[k])) {
tc_array_events[l[k]] = "";
}
}
})();
if (tc_array_events["id"] == "ACORE") {
tC.launchTag("eACORE", "Fiches Acores", "-1", "1376", "1");
return xt_click(this, "F", tc_vars["xiti_xtn2"], tc_array_events["label"] + "&f1=" + tc_array_events["localisation_ou"] + "&f2=" + tc_array_events["localisation_type_point"]);
}
if (tc_array_events["id"] == "PAGE") {
tC.launchTag("ePAGE", "xt_page_click", "-1", "1376", "1");
xt_med("F", tc_array_events["xiti_xtn2"], tc_array_events["xiti_page_name"] + "&ptype=" + tc_array_events["xiti_xtpagetype"] + "&x1=" + tc_array_events["nom_produit"] + "&x2=" + tc_array_events["nom_categorie_produit"] + "&x3=" + tc_array_events["type_RSP"] + "&x4=" + tc_array_events["xiti_xtn2"] + "&x5=" + tc_array_events["gamme_produit"]);
if (typeof tc_array_events != "undefined") {
tC.log("events variables: " + tc_array_events);
}
}
if (tc_array_events["id"] == "PLAY") {
tC.launchTag("ePLAY", "Video PLAY", "-1", "1376", "1");
xt_rm("video", tc_vars["xiti_xtn2"], tc_array_events["label"], "play", "", "5", tc_array_events["video_duration"], "", "", "", "", "", "", "");
}
if (tc_array_events["id"] == "PAUSE") {
tC.launchTag("ePAUSE", "Video PAUSE", "-1", "1376", "1");
xt_rm("video", tc_vars["xiti_xtn2"], tc_array_events["label"], "pause", "", "5", tc_array_events["video_duration"], "", "", "", "", "", "", "");
}
if (tc_array_events["id"] == "DISPLAY") {
tC.launchTag("eDISPLAY", "xt_publisher", "-1", "1376", "1");
if (typeof xt_adi != "undefined") {
if (tc_array_events["event"] == "AUTOPROMO") {
xt_adi("INT-" + tc_array_events["xtap_x"] + "-" + tc_array_events["xtap_y"]);
if (tc_array_events["cible_boutique"] === "true") {
tC.log("cible boutique=true");
var div;
if (document.getElementById("tc_div__1") === null) {
$("#tc_div__1").remove();
}
var cachebuster = Math.floor(Math.random() * 1e5 + 1);
div = document.createElement("div");
div.id = "tc_div__1";
document.body.appendChild(div);
var imageElt = document.createElement("img");
imageElt.id = "tc_img_27_1";
imageElt.src = "http://laboutique.commander1.com/v3/?firsttime=1&tcs=1491&rand=" + cachebuster + "&chn=autopromo&src=LPFR&cmp=" + tc_array_events["xtap_y"] + "&med=carrousel&pub=laposte&crtive=" + tc_array_events["xtap_y"] + "&vson=" + tC.internalvars.tc_url_1 + "&fmt=banniere";
imageElt.width = "1";
imageElt.height = "1";
imageElt.border = "0";
imageElt.alt = "";
document.body.appendChild(imageElt);
$("#tc_div__1").html(imageElt);
} else {
if (document.getElementById("tc_div__1") !== null) {
$("#tc_div__1").remove();
}
}
}
if (tc_array_events["event"] == "PUBLISHER") {
xt_adi("PUB-" + tc_array_events["xtpub_b"] + "-" + tc_array_events["xtpub_c"] + "-" + tc_array_events["xtpub_d"] + "-" + tc_array_events["xtpub_e"] + "-" + tc_array_events["xtpub_f"] + "-" + tc_array_events["xtpub_g"] + "-" + tc_array_events["xtpub_h"] + "-" + tc_array_events["xtpub_j"]);
}
}
if (typeof tc_array_events != "undefined") {
tC.log("events variables: " + tc_array_events);
}
}
if (tc_array_events["id"] == "CLICK") {
tC.launchTag("eCLICK", "Iadvize_event", "-1", "1376", "1");
if (typeof iAdvize != "undefined") {
if (typeof iAdvize.vuid != "undefined") {
if (tc_array_events["label"].match(/^commander[^]*$/) != null || tc_array_events["label"].match(/^bouton_commander[^]*$/) != null) {
var imageElt = document.createElement("img");
imageElt.id = "tc_img__1";
imageElt.src = "http://halc.iadvize.com/rpc/transaction.php?s=" + tc_mapped_iadvize_id + "&i=" + tC.internalvars.tc_timestamp + "&a=1&vuid=" + iAdvize.vuid;
imageElt.width = "1";
imageElt.height = "1";
imageElt.border = "0";
document.body.appendChild(imageElt);
}
}
}
}
if (tc_array_events["id"] == "COLISSIMO") {
tC.launchTag("eCOLISSIMO", "Fiches Colissimo", "-1", "1376", "1");
return xt_click(this, "F", tc_vars["xiti_xtn2"], tc_array_events["label"] + "&f1=" + tc_array_events["localisation_type_point"] + "&f2=" + tc_array_events["localisation_nature"] + "&f3=" + tc_array_events["localisation_ou"]);
}
if (tc_array_events["id"] == "CLICK") {
tC.launchTag("eCLICK", "xt_click", "-1", "1376", "1");
if (tc_array_events["event"] == "AUTOPROMO" || tc_array_events["event"] == "autopromo") {
xt_adc(this, "INT-" + tc_array_events["xtap_x"] + "-" + tc_array_events["xtap_y"]);
}
if (tc_array_events["event"] == "PUBLISHER" || tc_array_events["event"] == "publisher") {
return xt_adc(tc_elt, "PUB-" + tc_array_events["xtpub_b"] + "-" + tc_array_events["xtpub_c"] + "-" + tc_array_events["xtpub_d"] + "-" + tc_array_events["xtpub_e"] + "-" + tc_array_events["xtpub_f"] + "-" + tc_array_events["xtpub_g"] + "-" + tc_array_events["xtpub_h"] + "-" + tc_array_events["xtpub_j"]);
}
if (tc_array_events["xtclick_event"] == "C" || tc_array_events["xtclick_event"] == "c") {
return xt_click(this, "C", tc_array_events["xtclick_s2"], tc_array_events["label"], tc_array_events["xtclick_type"]);
}
if (tc_array_events["xtclick_event"] == "F" || tc_array_events["xtclick_event"] == "f") {
return xt_click(this, "F", tc_array_events["xtclick_s2"], tc_array_events["label"]);
}
if (typeof tc_array_events != "undefined") {
tC.log("events variables: " + tc_array_events);
}
tC.log("TagCommander - EVENT =" + tc_array_events["event"] + " / XTAPX = " + tc_array_events["xtap_x"] + " / XTAPY =" + tc_array_events["xtap_y"] + "/ XTPUBB =" + tc_array_events["xtpub_b"] + " / XTPUBC = " + tc_array_events["xtpub_c"] + " /XTPUBD = " + tc_array_events["xtpub_d"] + " /XTPUBF = " + tc_array_events["xtpub_f"] + " /XTPUBG = " + tc_array_events["xtpub_g"] + " /XTPUBH = " + tc_array_events["xtpub_h"] + " /XTPUBJ = " + tc_array_events["xtpub_j"] + " / XTCLICK_S2 = " + tc_array_events["xtclick_s2"] + " / CLICK_LABEL = " + tc_array_events["label"] + " / clickname = " + tc_array_events["page_name"] + " / XTCLICK_TYPE = " + tc_array_events["xtclick_type"]);
}
if (tc_array_events["id"] == "CALCULATEUR") {
tC.launchTag("eCALCULATEUR", "Resultat calculateur de tarif", "-1", "1376", "1");
return xt_click(this, "F", tc_vars["xiti_xtn2"], tc_array_events["label"] + "&f1=" + tc_array_events["tarif_formulaire_ou_raccourci"] + "&f2=" + tc_array_events["tarif_nb_resultats"] + "&f3=" + tc_array_events["tarif_cross_selling1"] + "&f4=" + tc_array_events["tarif_cross_selling2"] + "&f5=" + tc_array_events["tarif_destination"] + "&f6=" + tc_array_events["tarif_type_envoi"] + "&f7=" + tc_array_events["tarif_poids"] + "&f8=" + tc_array_events["tarif_mode_envoi"] + "&f9=" + tc_array_events["tarif_options"] + "&f10=" + tc_array_events["tarif_nature"]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment