if (!this.unispring) { this.unispring = function() { var do_dt = true, c = "undefined", f = "1.7.1", v = "test", l = "tns-cs.net", d = typeof unispring_ms != c ? unispring_ms : 2048, q = typeof unispring_debug != c ? unispring_debug : null, g = encodeURIComponent, p = "site", n = "s", t = {}, w = null, k, x; function m() { if ("https" == document.location.href.slice(0, 5)) { return "https://ssl-" } return "http://" } function r(A, e) { if (!e) { if (!A) { return k } e = A; A = { r: document.referrer } } k = [A, e]; var z = e[n] ? e[n] : A[n]; if (!z) { z = e[p] ? e[p] : (A[p] ? A[p] : v) } if (!t[z]) { t[z] = [] } t[z].push([A, e]); w = 1; return k } function i(z, E) { if (!w) { r({}) } var C, B, D, A, e; for (B in t) { if (t.hasOwnProperty(B)) { D = t[B]; while (D.length > 0) { A = ",", e = []; while (D.length > 0) { A = A + s(y(D.shift(), e), e); if (A.length > d) { break } if (D.length > 0) { A += "+" } } C = b(z, A + ";", B, E) } } } t = {}; return C } function b(A, E, B, F, D, C, z) { C = m() + (B ? B : v) + "." + l; D = C + "/j0=" + E, u = D + "?lt=" + (new Date()).getTime().toString(36) + "&x=" + screen.width + "x" + screen.height + "x" + screen.colorDepth + h(); var tpp = document.getElementById('unispring-tp'); var ctp = function(src) { var tp = document.createElement('img'); tp.id = 'unispring-tp'; tp.src = src; tp.width = 1; tp.height = 1; // WCAG fix tp.alt = ''; return tp }; if (!F || F == 1) { if (tpp) { tpp.parentNode.replaceChild(ctp(u), tpp) } else { document.body.appendChild(ctp(u)) } } else { if (F == 2) { (new Image()).src = u } } if (q) { alert(u) } return D } function h() { var a_id = 'i00'; var st = document.cookie.indexOf(a_id + "="); if (st != -1) { st = st + (a_id.length + 1); var end = document.cookie.indexOf(';', st); if (end == -1) { end = document.cookie.length } return "&c=" + document.cookie.substring(st, end) } else { var A = "0000"; var val = A + Math.ceil((new Date()).getTime() / 1000).toString(16) + (32768 | Math.random() * 65535).toString(16) + A; var date = new Date(); date.setTime(date.getTime() + (63072000000 * 5)); var expires = "; expires=" + date.toGMTString(); var di = new String(document.domain).split("."); di.reverse(); var d = '.' + di[1] + '.' + di[0]; document.cookie = a_id + "=" + val + expires + "; path=/; domain=" + d } return '' } function s(e, A) { for (var z = 0; z < A.length; z += 1) { if (A[z] == e) { return "~" + z } } A.push(e); return e } function y(B, D) { var z, C, A, e, E; if (!D) { D = [] } switch (typeof B) { case "string": return g(B); case "number": return isFinite(B) ? String(B) : "null"; case "boolean": case "null": return String(B); case "object": if (!B) { return "null" } z = []; if (typeof B.length === "number" && !(B.propertyIsEnumerable("length"))) { e = B.length; for (C = 0; C < e; C += 1) { z.push(s(y(B[C], D), D) || "null") } return "," + z.join("+") + ";" } for (A in B) { if (typeof A === "string") { if (A != p && A != n) { E = y(B[A], D); if (E) { z.push(s(y(A, D) + "=" + E, D)) } } } } return "," + z.join("+") + ";" } return "" } function j(z, e, A) { if (z.hasOwnProperty('cp') && do_dt) { z = U(z) } else if (e.hasOwnProperty('cp') && do_dt) { e = U(e) } r(z, e); return i(!this.ns, A) } function U(C) { var mob = 0; var ua = navigator.userAgent; if (C.hasOwnProperty('dt')) { C.dt = (C.dt).toLowerCase(); if (!(C.dt == 'desktop')) { C.cp = C.dt + '/' + C.cp } } else { if (/Android|Windows|iPad/i.test(ua)) { if ((/Android/i.test(ua) && /mobile|Opera\sMobi/i.test(ua)) || (/Windows/i.test(ua) && /[Pp]hone|[Mm]obile/.test(ua))) { mob = 1 } else if (/Android|iPad/i.test(ua)) { mob = 2 } } else if (!/Macintosh|Solaris|BSD|Linux|PLAYSTATION|Nintendo\sWii|Xbox/i.test(ua)) { mob = 1 } C.cp = mob === 1 ? 'mobile/' + C.cp : C.cp } return C } function dt(C) { do_dt = C } function o() { while (unispringq.length > 0) { var e = unispringq.shift(); if (e[1]) { r(e[0], e[1]) } else { if (e.hasOwnProperty('cp') && do_dt) { e = U(e) } r(e, false) } } i(!this.ns, 2); setTimeout("unispring.p()", 50) } return { a: r, add: r, c: j, commit: j, p: o } }(); if (this.unispringq) { unispring.p() } };