Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var __IntegralASDiagnosticCall = function() {};
- try {
- var __IntegralASConfig = {
- jsDoSplit: "false",
- cocaPuffsPath: "",
- debug: "false",
- killPhrases: "",
- useAdTalk: "true",
- jsDiag: 'false',
- version: '0',
- cookieDomain: 'sc.iasds01.com/dtc',
- trackMouse: "true",
- exchList: {
- 'e1': 'nqzryq',
- 'e2': 'tbbtyrnqf.t.qbhoyrpyvpx',
- 'e3': 'ehovpbacebwrpg',
- 'e4': 'chozngvp',
- 'e5': 'bcrak',
- 'e6': 'nqoevgr.pbz',
- 'e7': 'tynz.pbz',
- 'e8': 'lvryqznantre.pbz',
- 'e9': 'yvwvg',
- 'e10': 'nqakf',
- 'p11': 'ghea.pbz',
- 'p12': 'zngugnt',
- 'p13': 'vaivgrzrqvn',
- 'p14': 'qngnkh',
- 'n15': 'zrqvn6qrterrf',
- 'n16': 'dhnagfreir',
- 'n17': 'esvuho.arg',
- 'a18': 'napubeserr',
- 'a19': 'eff2frnepu',
- 'a20': 'mgfgngvp.pbz',
- 'n21': 'ovq.npr.nqiregvfvat',
- 'e22': 'wnfba',
- 'v23': 'fcbgkpqa',
- 'v24': 'ogeyy',
- 'v25': 'yvirenvy',
- 'v26': 'nqncgi',
- 'v27': 'nqnc.gi',
- 'n29': 'qbzqrk.pbz',
- 'n30': 'ernyih.arg',
- 'd31': 'cvengronl',
- 'd32': 'cebklonl',
- 'd33': 'onlcebkl',
- 'd34': 'cvengrcebkl',
- 'd35': 'cebklcvengr',
- 'd36': 'onlcvengr'
- },
- _onInViewMRC: __IntegralASConfig && __IntegralASConfig.onInViewMRC,
- _onInViewMRC5: __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
- _onInViewMRC15: __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
- _onMeasurable: __IntegralASConfig && __IntegralASConfig.onMeasurable,
- _onAPIResult: __IntegralASConfig && __IntegralASConfig.onAPIResult,
- protocol: 'http',
- jsref: "",
- asid: "6ce901fe-32fa-11e4-9052-002590302890",
- allowViewability: "true",
- jsFeatures: "mousetrack:0,cocoapuffs,viewabilityready,consecutive,cachebust:0,forcecocoa:0,rattie:0,exch,recordalternate:100,usedtdomain,nextcocoa,bapiDiag:10,cookie,postDts:0,videotwoseconds,getPl,decodePl,resolution,usetpl",
- adTalkDtCall: "true",
- adsafeDomain: "adsafeprotected.com:80",
- minimizeCalls: "false",
- adWidth: "",
- adHeight: "",
- forceAppend: "true",
- requrl: "http://pixel.adsafeprotected.com/",
- reqquery: "anId=6172&pubId=uvidi",
- mode: "jload",
- adsafeSrc: "",
- adsafeSep: "",
- useBapiCallback: "",
- useViewabilityNotification: "",
- scriptUrl: "http://pixel.adsafeprotected.com/jload?anId=6172&pubId=uvidi",
- accountForSadImps: '',
- sendCookie: 'false',
- fwMonitoring: '',
- mn: "app16sje",
- getTpl: "false",
- videoId: ''
- };
- if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) {
- var fakeErr = {
- message: __IntegralASConfig.asid
- };
- __IntegralASDiagnosticCall('asid', fakeErr);
- }
- __IntegralASConfig.birthdate = new Date().getTime();
- __IntegralASConfig.thisScriptNode = (function() {
- var tempScript,
- embedded = window != top,
- scripts = document.getElementsByTagName('script'),
- result = scripts[scripts.length - 1],
- scriptIndex = scripts.length,
- useDocWrite = 'jss,jsi,jspix'.indexOf(__IntegralASConfig.mode) !== -1,
- scriptUrl = __IntegralASConfig.scriptUrl;
- try {
- while (--scriptIndex >= 0) {
- tempScript = scripts[scriptIndex];
- if (tempScript.src && tempScript.src.indexOf(scriptUrl) === 0 && tempScript.getAttribute('data-ias-script-tag') === null) {
- result = tempScript;
- tempScript.setAttribute('data-ias-script-tag', 'found');
- break;
- }
- }
- if (scriptIndex === 0 && useDocWrite && !embedded) {
- document.write('<span id="s' + __IntegralAS.asid + '"/>');
- result = document.getElementById('s' + __IntegralAS.asid).parentNode;
- }
- } catch (e) {}
- return result;
- }());
- } catch (err) {
- __IntegralASConfig = {};
- __IntegralASDiagnosticCall('bootstrapper', err);
- }
- __IntegralASConfig.initialize = function(k) {
- var Ha = function() {
- var a = -1 !== k.mode.indexOf("jsvid"),
- c = h.isDef(window.JSON) && h.isDef(window.postMessage),
- c = "true" === k.useAdTalk && c,
- b, d, e, g, f = ba(),
- n = ca(),
- q = new da,
- m = ea(q),
- p = new fa,
- u = ga(),
- y = ha(),
- C = ia(),
- z = ja(),
- v = ka(),
- v = la(m, f, v),
- B = ma(v, m),
- E = na(m),
- t = oa(m),
- s = pa(m),
- A = qa(),
- L = ra(s, m),
- ta = sa(s),
- w = a ? ua(C) : {},
- x = a ? va(k.videoId, q, w, C) : {},
- a = wa(A, L, z, x),
- F = xa(a, v, m, f, t, p, s, C, x, w),
- w = ya(v, F, n),
- A = za(F, f, n),
- A = Aa(A, v, q),
- G = Ba(a, s, v, F, m, f, ta, q, t, L, p, w, z, u, n, C, x),
- n = Ca(v, F, m, f, t, A,
- p, s, G);
- F.setViewabilityMod(G);
- c && (b = Da(m));
- var q = "0" !== s.getFlashVersion(),
- N, u = !G.useFlash();
- if (! function() {
- var a = !1;
- try {
- if (h.isDef(k) && h.isDef(k.killPhrases) && "" !== k.killPhrases) {
- var b = k.adsafeSrc ? k.adsafeSrc : k.requrl + k.reqquery,
- d = k.killPhrases.split(",");
- h(d).each(function(c, e) {
- e = decodeURIComponent(d[c]).replace(/^\s+|\s+$/g, ""); - 1 !== b.search(e) && (a = !0)
- })
- }
- } catch (c) {
- m.add(m.ERROR_KILL_IT)
- }
- return a
- }()) {
- if (c) try {
- b.createAdProxy(k), b.findFrames(), b.listen(), b.sendMessages(), p.addItem(b.getFrameStore(),
- "fm")
- } catch (R) {
- m.add(m.ERROR_ADTALK_GENERAL)
- }
- var I;
- try {
- "true" !== k.minimizeCalls && G.init();
- f.on("mousetrack") && (g = Ea(a, p), g.init());
- I = y.detectTopURL();
- f.on("exch") && (d = Fa(m, p), d.parse(I));
- if (f.on("getPl") && navigator && navigator.plugins) {
- e = Ga(navigator.plugins);
- var H = e.hash();
- p.addItem({
- output: H.join(".")
- }, "pl", {
- type: l.DT_CODES.ADTALK
- });
- if (f.on("decodePl") && H.length) {
- var D = e.decode(H);
- p.addItem({
- output: D.join(".")
- }, "pd", {
- type: l.DT_CODES.ADTALK
- })
- }
- }
- var S = E.getProps();
- h(S).each(function(a, b) {
- p.addItem({
- output: b
- },
- a, {
- type: "UFO"
- })
- })
- } catch (O) {
- m.add(m.ERROR_IMPRESSION_LEADUP)
- }
- n.sendCookie();
- n.send(I);
- "true" === k.useViewabilityNotification && k._onMeasurable && (u || q) && v.notify(k._onMeasurable);
- "http" === k.protocol && "true" === k.getTpl && f.on("usetpl") && B.init();
- "true" === k.adTalkDtCall && "true" !== k.minimizeCalls && (N = (new Date).getTime(), r.execAtEndOfThread(function() {
- r.execAtEndOfThread(function() {
- var a = {
- output: (new Date).getTime() - N
- };
- p.addItem(a, "sinceFw", {
- type: l.DT_CODES.ADTALK
- });
- h.isDef(G.readyFired()) && p.addItem({
- output: G.readyFired()
- },
- "readyFired", {
- type: l.DT_CODES.ADTALK
- });
- F.send(null, l.DT_CODES.ADTALK)
- })
- }))
- }
- },
- h = function(a) {
- var c = function(b) {
- return a instanceof Object && (b || !(a instanceof Array))
- },
- b = function(b, d) {
- if (a.length === +a.length)
- for (var c = 0, e = a.length; c < e; ++c) b(c, a[c]);
- else
- for (c in a)(a.hasOwnProperty(c) || d) && b(c, a[c])
- },
- d = function(a, d) {
- var c = [];
- b(function(b, e) {
- var f = a(b, e);
- if (void 0 !== f || d) c[c.length] = f
- });
- return c
- },
- e = function(a, d) {
- d = d || ",";
- var c = [];
- b(function(b, d) {
- c.push(a(b, d))
- });
- return c.join(d)
- },
- g = function(a, b, d) {
- for (var c in b)
- if (d ||
- b.hasOwnProperty(c)) a[c] = b[c];
- return a
- },
- f = function(a) {
- var d = {};
- b(function(b, e) {
- var f = a(b, e);
- c(f) && g(d, f)
- });
- return d
- };
- return {
- each: b,
- isObj: c,
- invert: function() {
- return f(function(a, b) {
- var d = {};
- d[b] = a;
- return d
- })
- },
- mapToObj: f,
- map: d,
- toParams: function(a) {
- return e(function(a, b) {
- return a + ":" + b
- }, a)
- },
- stringify: e,
- mixin: function(b, d, c) {
- !0 !== b ? (c = d, d = g(a, b, c)) : (b = g({}, a, c), d = g(b, d, c));
- return d
- },
- find: function(a) {
- var d;
- b(function(b, c) {
- a(b, c) && (d = c)
- });
- return d
- },
- toArray: function() {
- return d(function(a, b) {
- return b
- })
- }
- }
- };
- h.toBase = function(a, c) {
- var b, d = 0 > a,
- e = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),
- g = [];
- a = d ? -a : a;
- do b = a % c, g.push(e[b]), a = (a - b) / c; while (0 < a);
- g = g.reverse().join("");
- return d ? "-" + g : g
- };
- h.isDef = function(a) {
- return "undefined" !== typeof a
- };
- h.isUndef = function(a) {
- return !h.isDef(a)
- };
- h.noop = function() {};
- h.isFunction = function(a) {
- return "function" === typeof a
- };
- h.useIfDef = function(a) {
- return h.isDef(a) ? a : !1
- };
- h.stringifyTriState = function(a) {
- return !0 === a ? 1 : !1 === a ? 0 : "na"
- };
- var Y = function(a,
- c, b, d, e, g) {
- var f = new a(document.body, c.width / 2, c.height / 2, d, e, g),
- n, q, m = 0;
- b = b || h.noop;
- n = setInterval(function() {
- f.isNotReadyToReport() || q ? (5 === ++m || q) && clearInterval(n) : (q = !0, b(f.createdFlash), clearInterval(n))
- }, 50);
- return {
- checkViewable: function() {
- var a = !f.isNotReadyToReport(),
- d = f.isInView(),
- c = d ? l.IN_VIEW : l.OUT_OF_VIEW,
- d = d ? 100 : 0;
- a && !q && (q = !0, b(f.createdFlash));
- return {
- str: a ? c : l.NA,
- pct: a ? d : -1
- }
- }
- }
- },
- da = function() {
- var a = {};
- return {
- on: function(c, b) {
- a[c] = a[c] || new W;
- a[c].push(b)
- },
- trigger: function() {
- var c = h(arguments).toArray(),
- b = a[c.shift()];
- b && b.run.apply({}, c)
- }
- }
- },
- Z = function(a, c, b, d, e, g) {
- var f, n, q, m = function(a, b) {
- return '<param name="' + a + '" value="' + b + '"/>'
- },
- p = function() {
- var a;
- a = new T;
- var b = k.cocaPuffsPath;
- a.sub = "static";
- a.master = a.master.split(":")[0];
- b && (a.master = b, a.sub = "");
- var b = a + (d.on("nextcocoa") ? "/detector3.pix" : "/detector2.pix"),
- c = m("allowscriptaccess", "always"),
- e = m("movie", b) + m("play", "true") + m("loop", "true");
- g.browserIs("i") ? (a = document.createElement("div"), a.innerHTML = "<object " + ('id="blag' + k.birthdate + '" ') +
- 'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + ('type="' + l.FLASH_MIME + '" ') + ('data="' + b + '" ') + ">" + e + c + "</object>", f = a.firstChild) : (f = document.createElement("object"), f.data = b, f.type = l.FLASH_MIME, f.innerHTML = c);
- f.style.position = "absolute";
- f.style.width = "1px";
- f.style.opacity = "0";
- f.style.height = "0px";
- return f
- },
- u = function(a) {
- a.style.height = q ? "1px" : "2px";
- q = !q;
- r.execAtEndOfThread(function() {
- y() && (n = a.isInView())
- })
- },
- y = function() {
- return f && h.isFunction(f.isInView)
- };
- (function(a, b, d) {
- var c = p(),
- f = c.style;
- f.left = b + "px";
- f.top = d + "px";
- a.appendChild(c);
- f.height = "1px";
- e.onHiddenChange(function(a) {
- a ? f.height = "0px" : u(c)
- })
- })(a, c, b);
- return {
- isInView: function() {
- var a;
- y() && (a = f.isInView(), g.browserIs("w") && a !== n && u(f));
- return y() && a
- },
- isNotReadyToReport: function() {
- return !y()
- },
- createdFlash: f
- }
- },
- $ = function(a) {
- return {
- doEligibleJobs: function(c) {
- var b = a[0],
- d = b && b.time;
- d && c >= d && (b.task(), a.shift())
- },
- getNextJob: function() {
- return a[0]
- }
- }
- },
- fa = function() {
- var a = 0,
- c = {},
- b = function(b, c, g) {
- if (h.isUndef(b.output)) throw Error("item with id " +
- c + ' must have "output" method');
- this.item = b;
- this.id = c || ++a;
- this.props = g || {};
- this.output = function() {
- return h.isFunction(b.output) ? b.output() : b.output
- }
- };
- return {
- addItem: function(a, e, g) {
- a = new b(a, e, g || {});
- c[a.id] = a
- },
- iterate: function(a) {
- var b, g, f = [];
- for (b in c) c.hasOwnProperty(b) && (g = a(b, c[b])) && f.push(g);
- return f
- },
- getItem: function(a) {
- return c[a]
- }
- }
- },
- W = function() {
- var a = [];
- return {
- push: function(c) {
- a[a.length] = c
- },
- run: function() {
- var c = arguments;
- h(a).each(function(a, d) {
- d.apply({}, c)
- })
- }
- }
- },
- Ia = function(a) {
- var c =
- a || 1,
- b = 0,
- d = 0,
- e = 0,
- g = 0;
- return {
- start: function() {
- 0 === b % c && (e = r.now())
- },
- stop: function() {
- 0 === b % c && (g += r.now() - e, d++);
- b++
- },
- getTime: function() {
- return g
- },
- getCount: function() {
- return d
- }
- }
- },
- aa = function(a) {
- var c = 0,
- b = s.getTagTime(),
- d = 0,
- e, g;
- return {
- getTotalTime: function() {
- return d
- },
- stop: function() {
- c = 0;
- b = s.getTagTime()
- },
- mark: function() {
- e = s.getTagTime() - b;
- c += e;
- c > a && (g = c - e < a, d += g ? c : e);
- b = s.getTagTime()
- }
- }
- },
- T = function(a) {
- a = a || k.adsafeSrc || k.requrl;
- var c = /^(http|https):\/\/(([^\/\.]*)\.([^\/]*))/.exec(a);
- return {
- fullDom: c[0],
- sub: c[3],
- master: c[4],
- toString: function() {
- var a = this.sub;
- return c[1] + "://" + (a ? a + "." : "") + this.master
- }
- }
- },
- wa = function(a, c, b, d) {
- var e = -1 !== k.mode.indexOf("jsvid"),
- g = b.isMobileApp(),
- f = null,
- n = k.thisScriptNode.parentNode,
- q = !1,
- m = !1,
- p;
- return {
- calcDims: function() {
- var b, d = -1;
- b = s.embedded ? c.calcDims() : a.calcDims(f, n);
- J.isValidDims(b) && (d = J.round(b));
- return d
- },
- find: function() {
- var a, c = function() {
- var b = w.findLargestChildNode(n);
- 1 < w.getNodeArea(b) ? (p = "a", a = b, m = !0) : (p = "s", f || (a = w.getPlaceholderSpan(), n.insertBefore(a,
- k.thisScriptNode.nextSibling)))
- };
- m || (g ? (c(), p = b.getDetectionMethod()) : e ? (p = "v", a = d.findVideo(), m = !0) : s.embedded ? (p = "i", a = window, m = !0) : c());
- (f = a || f) && f !== window && f.parentNode !== n && (n = f.parentNode, q = !0);
- return f
- },
- isObstructed: function(a) {
- var b = null;
- if (f && !s.embedded && a && h.isDef(document.elementFromPoint)) {
- var c = r.floor(a.x + a.width / 2);
- a = r.floor(a.y + a.height / 2);
- c = document.elementFromPoint(c, a);
- null !== c && (b = c !== f)
- }
- return b
- },
- getDetectionMethod: function() {
- return p
- },
- isDetected: function() {
- return m
- },
- getParent: function() {
- return n
- },
- hasParentChanged: function() {
- return q
- }
- }
- },
- Da = function(a) {
- var c = [],
- b = function(a) {
- var b;
- a = a || k;
- a.reqquery ? b = a.reqquery.split(/(?:anId=|anid=|ANID=)([^&]*)/)[1] : (b = a.adsafeSrc.split("/"), b = b[5] + "-" + b[6]);
- a = {
- adId: b,
- adSafeId: a.asid
- };
- c.push(a);
- return a
- },
- d = function() {
- var a = [],
- b = {},
- c = {
- noMe: !0
- };
- return {
- addFrame: function(d) {
- a.push(d);
- b[d.pageId] = d;
- d.isMe && (c = d)
- },
- list: a,
- lookup: b,
- me: function() {
- return c
- },
- output: function() {
- var b, d, e, f, g = [];
- for (b = 0; b < a.length; b++)
- if (e = a[b], e.isLeaf || e.isMe || h.isDef(e.selfDescription)) {
- f =
- "";
- for (d = 0; d < e.position.length; d++) f += (Number(e.position[d]) + 1).toString(36);
- f += e.isMe ? "*" : "";
- f += 0 !== e.adProxies.length ? "." + e.adProxies[0].adId : "";
- g.push(f)
- }
- return h.toBase(c.unifiedId, 62) + "+" + g.join("|")
- }
- }
- },
- d = new d,
- e = function(a, b) {
- var e = a === window,
- f = {
- position: b.slice(0),
- pageId: b.join("-"),
- domObj: function() {
- return a
- },
- isMe: e,
- isLeaf: !a.frames.length,
- adProxies: e ? c : [],
- selfDescription: void 0,
- unifiedId: k.birthdate,
- toString: function() {
- return JSON.stringify(f)
- },
- addDescription: function(a) {
- f.selfDescription =
- a;
- f.adProxies = a.adProxies
- }
- };
- d.addFrame(f);
- return f
- },
- g;
- g = new function() {
- var a = function(b, c) {
- var d = c.length,
- f = b.frames;
- if (!(new e(b, c)).isLeaf) {
- for (var g = 0; g < f.length; g++) c[d] = g, a(f[g], c);
- c.pop()
- }
- };
- return {
- start: function() {
- a(top, [0])
- }
- }
- };
- var f = function(a) {
- var b = {
- srcId: k.asid,
- srcKey: k.asid.split("-")[2],
- srcStart: k.birthdate,
- getMessageTime: void 0,
- replyTo: document.location,
- sendMessage: function(c, d) {
- d = d || "*";
- a.getMessageTime = r.now();
- delete b.updateMessage;
- delete b.sendMessage;
- c.postMessage(JSON.stringify(b),
- d)
- },
- updateMessage: function(b) {
- a = b(a)
- },
- messageContent: a || {}
- };
- return b
- },
- n;
- n = new function() {
- var b = [],
- c = function(a) {
- var b = d.me();
- (new f({
- self: b,
- expectedPageId: a.pageId,
- unifiedId: b.unifiedId
- })).sendMessage(a.domObj())
- };
- return {
- sendMessages: function() {
- var a, b;
- for (a = 0; a < d.list.length; a++) b = d.list[a], b.isMe || c(b)
- },
- listen: function() {
- x.addEvent(window, "message", function(f) {
- var g, n, l, z = d.me();
- try {
- g = JSON.parse(f.data);
- n = g.messageContent;
- if (k.asid.split("-")[2] !== g.srcKey || !g.hasOwnProperty("messageContent")) return;
- n.unifiedId < z.unifiedId && (z.unifiedId = n.unifiedId)
- } catch (v) {
- return
- }
- b.push(g);
- try {
- if (n.expectedPageId !== d.me().pageId) a.add(a.ERROR_ADTALK_DUBIOUS);
- else {
- l = d.lookup[n.self.pageId];
- if (h.isUndef(l) || h.isUndef(l.selfDescription)) l = l || new e(f.source, n.self.pageId.split("-")), c(l);
- l.addDescription(n.self)
- }
- } catch (r) {
- a.add(a.ERROR_ADTALK_DUBIOUS)
- }
- })
- }
- }
- };
- return {
- sendMessages: n.sendMessages,
- listen: n.listen,
- findFrames: g.start,
- createAdProxy: function(a) {
- return new b(a)
- },
- getFrameStore: function() {
- return d || ""
- }
- }
- },
- ma =
- function(a, c) {
- var b = function(b) {
- try {
- h(b).each(function(b, c) {
- a.send(c, !1, !0)
- })
- } catch (e) {
- c.add(c.ERROR_AT_SEND)
- }
- };
- return {
- init: function() {
- try {
- var d = (new T).fullDom;
- "/" !== d.slice(-1) && (d += "/");
- d += "tpl?asId=" + k.asid;
- a.jsonp(d, b)
- } catch (e) {
- c.add(c.ERROR_AT_INIT)
- }
- }
- }
- },
- za = function(a, c, b) {
- return {
- enabled: "true" === k.useBapiCallback,
- callback: function(d) {
- "true" === k.accountForSadImps && b.measure(d);
- k._onAPIResult && k._onAPIResult(d);
- c.on("bapiDiag") && a.send(null, l.DT_CODES.BAPI_DIAGNOSTIC)
- }
- }
- },
- pa = function(a) {
- var c =
- function() {
- var a = function(a) {
- return a.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1].split(",").join(".")
- };
- try {
- try {
- var b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
- try {
- b.AllowScriptAccess = "always"
- } catch (c) {
- return "6"
- }
- } catch (d) {}
- return a((new ActiveXObject("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version"))
- } catch (e) {
- try {
- if (navigator.mimeTypes[l.FLASH_MIME].enabledPlugin) return a((navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description)
- } catch (h) {}
- }
- return "0"
- },
- b = function(a) {
- return e() === a
- },
- d = function() {
- return document && document.documentMode ? document.documentMode : l.NA
- },
- e = function() {
- var a = "u";
- try {
- if (h.isDef(window.opera) && h.isDef(window.opera.buildNumber)) a = "o";
- else if (h.isDef(window.mozInnerScreenY)) a = "g";
- else if (h.isDef(window.chrome) && h.isDef(window.chrome.csi)) a = "c";
- else if (h.isDef(window.WebKitPoint)) a = "w";
- else if (h.isDef(window.attachEvent) || h.isDef(window.msCrypto)) a = "i"
- } catch (b) {}
- return a
- };
- return {
- browserIs: b,
- getFlashVersion: c,
- getDocumentMode: d,
- getBrowserVendor: e,
- params: function() {
- var a = e(),
- f = c(),
- n = 5;
- b("i") ? window.msCrypto ? n = 11 : window.atob ? n = 10 : document.addEventListener ? n = 9 : window.JSON && document.querySelector ? n = 8 : window.XMLHttpRequest ? n = 7 : document.compatMode && (n = 6) : n = l.NA;
- var q = d(),
- k;
- k = ["{45EA75A0-A269-11D1-B5BF-0000F8051515}", "{3AF36230-A269-11D1-B5BF-0000F8051515}", "{89820200-ECBD-11CF-8B85-00AA005B4383}"];
- var p = l.NA,
- u = document.createElement("div");
- try {
- if ("-ms-ime-align" in document.documentElement.style) p = "11";
- else {
- u.style.behavior = "url(#default#clientcaps)";
- for (var y = 0; y < k.length && !(p = u.getComponentVersion(k[y], "componentid").replace(/,/g, ".")); y++);
- }
- } catch (C) {}
- k = p;
- p = l.NA;
- h.isDef(window.navigator) && h.isDef(window.navigator.appName) && (p = window.navigator.appName.toLowerCase()[0]);
- return {
- br: a,
- fv: f,
- bv: n,
- dm: q,
- abv: k,
- an: p
- }
- }
- }
- },
- la = function(a, c, b) {
- var d = function(a, b, d) {
- var e = !d && c.on("postDts") && x.getXHR2();
- e ? (e.open("POST", a), e.onreadystatechange = function() {
- 4 === e.readyState && 200 === e.status && b && b()
- }, e.send()) : (d = new Image, b && (d.onload = b), d.src = a)
- },
- e = function(a) {
- var b =
- document.createElement("script");
- b.type = "text/javascript";
- b.src = a;
- k.thisScriptNode.parentNode.appendChild(b)
- };
- return {
- addNode: function(a, b) {
- var c, d, e = k.thisScriptNode.parentNode;
- b = b || a;
- a = 1 < arguments.length ? a : "script";
- c = {
- script: ['<script type="text/javascript" src="', '">\x3c/script>'],
- iframe: ['<iframe width="100%" height="100%" frameborder="0" vspace="0" hspace="0" scrolling="no" marginheight="0" marginwidth="0" src="', '"></iframe>'],
- img: ['<img src="', '"/>']
- }[a];
- d = c[0] + b + c[1];
- "true" === k.forceAppend ?
- "script" !== a ? (c = document.createElement("DIV"), c.innerHTML = d, e.appendChild(c.childNodes[0])) : (c = document.createElement("SCRIPT"), c.src = b, e.appendChild(c)) : document.write(d)
- },
- send: d,
- exec: e,
- notify: function(b) {
- h.isFunction(b) ? b() : "string" === typeof b ? d(b) : a.add(a.ERROR_NOTIFY_CLIENT)
- },
- jsonp: function(a, c, d) {
- e(b.wrap(a, c, d))
- }
- }
- },
- l = {
- MILLIS_PER_SEC: 1E3,
- MAX_URL_LENGTH: 2E3,
- FLASH_MIME: "application/x-shockwave-flash",
- IN_VIEW: "inView",
- OUT_OF_VIEW: "outOfView",
- PARTIAL_VIEW_PLUS: "partialViewPlus",
- PARTIAL_VIEW_MINUS: "partialViewMinus",
- NA: "na",
- DT_CODES: {
- UNLOAD: "u",
- PING: "p",
- ADTALK: "a",
- VIEWABILITY_READY: "v",
- VIDEO_EVENTS: "m",
- BAPI_DIAGNOSTIC: "b",
- POS_INVIEW: "t"
- }
- },
- s = function() {
- var a = window != top,
- c = function() {
- var a;
- try {
- a = !!top.document
- } catch (c) {
- a = !1
- }
- return a
- }();
- return {
- embedded: a,
- friendly: c,
- getTagTime: function() {
- return r.now() - k.birthdate
- },
- getPageTime: function() {
- return h.isDef(window.chrome) && h.isDef(window.chrome.csi) && h.isFunction(window.chrome.csi) ? r.round(chrome.csi().pageT) : l.NA
- },
- friendlyIframe: a && c,
- xDomainIframe: a & !c
- }
- }(),
- x = {
- addEvent: function(a,
- c, b, d) {
- h.isDef(a.addEventListener) ? "mouseenter" === c ? a.addEventListener("mouseover", x.mouseEnter(b), d) : "mouseleave" === c ? a.addEventListener("mouseout", x.mouseEnter(b), d) : a.addEventListener(c, b, d) : h.isDef(a.attachEvent) && a.attachEvent("on" + c, b)
- },
- removeEvent: function(a, c, b) {
- h.isDef(a.removeEventListener) ? ("mouseenter" === c ? (c = "mouseover", b = x.mouseEnter) : "mouseleave" === c && (c = "mouseout", b = x.mouseEnter), a.removeEventListener(c, b)) : h.isDef(a.detachEvent) && a.detachEvent("on" + c, b)
- },
- mouseEnter: function(a) {
- var c =
- this;
- return function(b) {
- var d = b.relatedTarget;
- this === d || c.isAChildOf(this, d) || a.call(this, b)
- }
- },
- isAChildOf: function(a, c) {
- if (a === c) return !1;
- for (; c && c !== a;) c = c.parentNode;
- return c === a
- },
- getStyle: function(a, c) {
- var b = "";
- document.defaultView && document.defaultView.getComputedStyle ? b = document.defaultView.getComputedStyle(a, "").getPropertyValue(c) : a.currentStyle && (c = c.replace(/\-(\w)/g, function(a, b) {
- return b.toUpperCase()
- }), b = a.currentStyle[c]);
- return b
- },
- getXHR2: function(a, c) {
- var b, d;
- h.isDef(window.XMLHttpRequest) ?
- (d = new XMLHttpRequest, "withCredentials" in d && (b = d)) : h.isDef(XDomainRequest) && (b = new XDomainRequest);
- return b
- }
- },
- xa = function(a, c, b, d, e, g, f, n, q, m) {
- var p = 0,
- u = 0,
- y = !1,
- C;
- return {
- incrementNumDtCalls: function() {
- return u += 1
- },
- send: function(z, v, B) {
- z = new T;
- var E = "",
- t = "",
- w = "",
- A, L, x, J, Q, F, G, N, R, I, H, D, S, O, U, M;
- if (e.impressionIsIdentifiable() && (v === l.DT_CODES.ADTALK || "n" !== n.getCurrentLoc()) && (F = s.getTagTime(), h.isUndef(v) && (v = l.DT_CODES.UNLOAD, L = !0), v !== l.DT_CODES.UNLOAD || !y)) try {
- d.on("usedtdomain") && (z.sub = "dt"),
- n.fastForward(), Q = "," + n.stringify(10), v === l.DT_CODES.UNLOAD ? B = -1 : v === l.DT_CODES.ADTALK ? B = -2 : v === l.DT_CODES.VIEWABILITY_READY ? B = -3 : v === l.DT_CODES.VIDEO_EVENTS && m && q ? (B = -4, t = ",ve:" + m.stringify()) : v === l.DT_CODES.BAPI_DIAGNOSTIC && (B = -5), A = B ? ",pingTime:" + B : "", v === l.DT_CODES.UNLOAD && (E = ",ndt:" + u), -1 !== k.mode.indexOf("jsvid") && q && (w = ",vv:" + q.version), G = b.hasErrors() ? ",e:" + b.toString() : "", N = ",tt:" + k.mode, R = "," + d.output(), I = ",em:" + s.embedded + ",fr:" + s.friendly, H = ",uf:" + (C.useFlash() ? 1 : 0), D = "", g.iterate(function(a,
- b) {
- b.props.type && b.props.type !== v || (D += "," + a + ":" + b.output())
- }), S = "&br=" + f.getBrowserVendor(), O = "asId=" + k.asid, U = ",pc:" + h.stringifyTriState(a.hasParentChanged()), M = "&tv={c:" + e.getCacheBustId() + A + ",time:" + F + ",type:" + v + R + I + t + Q + H + G + N + D + ",dtt:" + p + E + U + w, M += (z + "/dt?" + O + M + S + "&adsafePrivacyPolicy=http://integr.al/privacy-policy6").length > l.MAX_URL_LENGTH ? ",ov:1}" : ",ov:0}", x = z + "/dt?" + O + M + S + "&adsafePrivacyPolicy=http://integr.al/privacy-policy", J = r.now(), c.send(x, function() {
- u += 1;
- p = r.now() - J
- }, L), v === l.DT_CODES.UNLOAD &&
- (y = !0)
- } catch (K) {
- __IntegralASDiagnosticCall("dt-" + v, K), b.add(b.ERROR_PHONE_HOME)
- }
- },
- setViewabilityMod: function(a) {
- C = a
- }
- }
- },
- J = {
- calcNodeDims: function(a) {
- if (h.isDef(a.getBoundingClientRect)) return a = w.getRect(a), {
- x: a.left,
- y: a.top,
- width: a.width,
- height: a.height
- }
- },
- round: function(a) {
- return {
- x: r.round(a.x),
- y: r.round(a.y),
- width: r.round(a.width),
- height: r.round(a.height)
- }
- },
- isValidDims: function(a) {
- return !(isNaN(a.x) || isNaN(a.y) || isNaN(a.height) || isNaN(a.width))
- },
- isInvalidDims: function(a, c) {
- return -1 === a || -1 === c
- }
- },
- qa = function() {
- return {
- calcDims: function(a, c) {
- var b = J.calcNodeDims(a),
- d = w.getClippedDimensions(a, c);
- b.height = d.height < b.height ? d.height : b.height || 1;
- b.width = d.width < b.width ? d.width : b.width || 1;
- return b
- }
- }
- },
- w = {
- windowSize: function() {
- var a = {},
- c, b;
- if (s.friendly)
- if (c = top.document, b = c.documentElement, c = c.getElementsByTagName("body")[0], h.isDef(top.innerWidth)) a.width = top.innerWidth, a.height = top.innerHeight;
- else if (h.isDef(b.clientWidth)) a.width = b.clientWidth, a.height = b.clientHeight;
- else if (h.isDef(c.clientWidth)) a.width =
- c.clientWidth, a.height = c.clientHeight;
- else throw a.width = a.height = 0, "";
- else h.isDef(window.outerWidth) && (a.width = window.outerWidth, a.height = window.outerHeight);
- return a
- },
- screenSize: function() {
- try {
- var a = -1,
- c = -1;
- h.isDef(window.screen) && (a = window.screen.width, c = window.screen.height);
- return {
- width: a,
- height: c
- }
- } catch (b) {}
- },
- getNodeArea: function(a) {
- var c = -1;
- a && (a = w.getRect(a), c = a.width * a.height);
- return c
- },
- getRect: function(a) {
- var c = {};
- a = a.getBoundingClientRect();
- h.isUndef(a.width) && (c = {
- width: a.right - a.left,
- height: a.bottom - a.top
- });
- h(c).mixin(a, !0);
- return c
- },
- getIeDimObj: function() {
- return document.documentElement && h.isDef(document.documentElement.clientWidth) && document.documentElement || document.body
- },
- getPlaceholderSpan: function() {
- var a = document.createElement("span");
- h(a.style).mixin({
- width: "0px",
- height: "0px",
- display: "block",
- overflow: "hidden",
- visibiility: "hidden"
- });
- a.innerHTML = ".";
- return a
- },
- getClippedDimensions: function(a, c) {
- var b = 1E4,
- d = 1E4,
- e, g;
- do a = a.parentNode, e = "OBJECT" !== a.tagName.toUpperCase(), g = "inline" !==
- x.getStyle(a, "display"), e && g && (e = w.getRect(a), b = e.width < b ? e.width : b, d = e.height < d ? e.height : d); while (a.parentNode !== document && a !== c);
- return {
- width: r.round(b),
- height: r.round(d)
- }
- },
- findLargestChildNode: function(a) {
- var c, b = "iframe img a object embed div".split(" "),
- d, e, g, f, n = [],
- q = -1;
- d = 0;
- for (e = b.length; d < e; d++) {
- var k = a.getElementsByTagName(b[d]);
- if (k.length)
- for (g = 0, f = k.length; g < f; g++) n.push(k[g])
- }
- if (n.length)
- for (d = 0, e = n.length; d < e; d++) a = n[d], b = w.getNodeArea(a), b > q && (c = a, q = b);
- return h.isUndef(c) ? null : h.isDef(c.nodeName) &&
- "DIV" == c.nodeName ? w.findLargestChildNode(c) : c
- }
- },
- na = function(a) {
- return {
- getProps: function() {
- var c = {};
- try {
- var b = document.createElement("span");
- h(b.style).mixin({
- position: "absolute",
- top: "150"
- });
- c = {
- rpx: "" === b.style.top ? 1 : 0
- }
- } catch (d) {
- a.add(a.ERROR_ENVIRONMENT)
- }
- return c
- }
- }
- },
- ea = function(a) {
- var c = {},
- b = function(a) {
- h.isDef(c[a]) ? c[a] ++ : c[a] = 1
- };
- a.on("error", function(a) {
- b(a)
- });
- return {
- list: c,
- add: b,
- toString: function() {
- var a = "",
- b;
- for (b in c) c.hasOwnProperty(b) && (a += b);
- return a
- },
- hasErrors: function() {
- for (var a in c) return !0;
- return !1
- },
- ERROR_GET_AD_DIMENSIONS: "a",
- ERROR_ADTALK_GENERAL: "c",
- ERROR_GET_SCREEN_LOC_GET_DIMENSIONS: "d",
- ERROR_EXCHANGE_PARSING: "x",
- ERROR_PHONE_HOME: "h",
- ERROR_KILL_IT: "k",
- ERROR_LOCATION_DETAILS: "l",
- ERROR_GET_SCREEN_LOC_PIV_CALC: "p",
- ERROR_GET_WIN_DIMENSIONS: "w",
- ERROR_ADTALK_DUBIOUS: "D",
- ERROR_ENVIRONMENT: "v",
- ERROR_UID_GENERATION: "i",
- ERROR_NOTIFY_CLIENT: "n",
- ERROR_IMPRESSION_URLS: "I",
- ERROR_JSINFO: "J",
- ERROR_IMPRESSION_LEADUP: "L",
- ERROR_GET_ELEM_STYLE: "s",
- ERROR_PLUGIN_PARSING: "P",
- ERROR_AT_SEND: "as",
- ERROR_AT_INIT: "ai"
- }
- },
- Fa = function(a, c) {
- var b = function(a) {
- var b = [];
- if (a && a instanceof Array) b = h(a).map(function(a, b) {
- return b.val
- }), b.push(k.adsafeSrc, k.requrl, k.reqquery);
- else throw Error("Unexpected data type in ExchangeParser.getUrlList");
- return b
- };
- return {
- parse: function(d) {
- try {
- var e, g = b(d),
- f = g && g.length && g.join("|"),
- n = k.exchList;
- f && (e = h(n).map(function(a, b) {
- return 0 <= f.indexOf(K.rot(b)) ? a : void 0
- }), e.length && c.addItem({
- output: e.join(".")
- }, "ex", {
- type: "UFO"
- }))
- } catch (q) {
- a.add(a.ERROR_EXCHANGE_PARSING)
- }
- }
- }
- },
- ba = function() {
- var a = {},
- c = function(b, c) {
- var d = RegExp(b + "(?=$|,)|" + b + ":(?!,|$)(\\d*(?=,|$))").exec(k.jsFeatures);
- if (h.isUndef(a[b]) || c) a[b] = !!(d && !d[1] || d && d[1] > r.floor(100 * r.random()));
- return a[b]
- },
- b = {
- fc: "forcecocoa",
- rt: "rattie",
- cb: "cachebust",
- np: "nextcocoa",
- th: "tabHiddenDtCall"
- },
- d = function() {
- return h(b).mapToObj(function(b, c) {
- var d = {};
- d[b] = a[c] ? 1 : 0;
- return d
- })
- };
- h(b).each(function(a, b) {
- c(b)
- });
- return {
- on: c,
- output: function() {
- return h(d()).toParams()
- }
- }
- },
- sa = function(a) {
- var c = a.browserIs("g") || a.browserIs("i") || s.friendlyIframe ||
- !s.embedded;
- return {
- calcPercentInView: function(a, c) {
- var e;
- e = a.x;
- var g = c.x;
- e = Math.min(a.x + a.width, c.x + c.width) - Math.max(g, e);
- var g = a.y,
- f = c.y,
- g = Math.min(a.y + a.height, c.y + c.height) - Math.max(f, g),
- f = 0 >= c.width;
- e = 0 >= e || f ? 0 : r.round(e / c.width * 100);
- g = 0 >= g || f ? 0 : r.round(g / c.height * 100);
- return r.round(e * g / 100)
- },
- calcInitialViewState: function(a) {
- var d = l.NA;
- c && (d = 75 <= a ? l.IN_VIEW : 25 >= a ? l.OUT_OF_VIEW : 50 <= a ? l.PARTIAL_VIEW_PLUS : l.PARTIAL_VIEW_MINUS);
- return d
- }
- }
- },
- oa = function(a) {
- var c = !1;
- return {
- getCacheBustId: function() {
- var a =
- new Date,
- c = Date.parse("Jan 1 " + a.getFullYear()),
- a = a.getTime() - c;
- return h.toBase(a, 62)
- },
- impressionIsIdentifiable: function(a) {
- a && (c = !0);
- return c
- },
- unq: function() {
- var b = "";
- try {
- for (var c, e = window.Uint32Array && window.crypto && window.crypto.getRandomValues; 30 > b.length;) e ? (c = new Uint32Array(1), window.crypto.getRandomValues(c), b += c[0].toString(16)) : b += (16 * r.random() | 0).toString(16);
- b = b.slice(0, 30)
- } catch (g) {
- a.add(a.ERROR_UID_GENERATION)
- }
- return b
- }()
- }
- },
- ra = function(a, c) {
- var b, d = function() {
- try {
- var b, c;
- if (s.friendly) {
- var d =
- g(window);
- b = d.left;
- c = d.top
- } else a.browserIs("i") && 11 !== a.getDocumentMode() ? (d = function(a) {
- b = a.screenX - a.clientX;
- c = a.screenY - a.clientY
- }, document.documentElement.attachEvent("onmousemove", d), document.documentElement.fireEvent("onmousemove"), document.documentElement.detachEvent("onmousemove", d)) : h.isUndef(window.mozInnerScreenX) ? (b = window.screenLeft, c = window.screenTop) : (b = r.round(window.mozInnerScreenX), c = r.round(window.mozInnerScreenY));
- return {
- x: b,
- y: c
- }
- } catch (e) {}
- },
- e = function() {
- var a, c, d = b || w.getIeDimObj();
- h.isDef(window.innerWidth) ? (a = window.innerWidth, c = window.innerHeight) : d && h.isDef(d.clientWidth) ? (a = d.clientWidth, c = d.clientHeight, 0 === a && 0 < d.offsetWidth && (a = d.offsetWidth), 0 === c && 0 < d.offsetHeight && (c = d.offsetHeight)) : window.frameElement && h.isDef(window.frameElement.clientWidth) && (a = window.frameElement.clientWidth, c = window.frameElement.clientHeight);
- return {
- width: a,
- height: c
- }
- },
- g = function(a, b) {
- h.isUndef(b) && (b = {
- top: 0,
- left: 0
- });
- for (var c = a.parent.document.getElementsByTagName("iframe"), d, e = !1, k = 0, y = c.length; k <
- y; k++)
- if (d = c[k], d.contentWindow == a) {
- e = !0;
- break
- }
- e && (c = w.getRect(d), b.left += c.left, b.top += c.top, a !== top && g(a.parent, b));
- return b
- };
- return {
- calcDims: function() {
- var a = {};
- try {
- a = h(d()).mixin(e())
- } catch (b) {
- c.add(c.ERROR_GET_AD_DIMENSIONS)
- }
- return a
- },
- waitForBody: function(a) {
- var c = setInterval(function() {
- document.body && (b = w.getIeDimObj(), clearInterval(c), a())
- }, 50)
- }
- }
- },
- Ca = function(a, c, b, d, e, g, f, n, q) {
- var m = function(a, b) {
- if (b >= l.MAX_URL_LENGTH) return "";
- var c, d, e = [],
- f = function(a) {
- return -1 !== a.key.indexOf("q") || -1 !==
- a.key.indexOf("g")
- };
- c = h(a).map(function(a, b) {
- if (f(b)) return b
- });
- d = h(a).map(function(a, b) {
- if (!f(b)) return b
- });
- h(c.concat(d)).each(function(a, c) {
- var d = "adsafe_url=" + c.val + "&adsafe_type=" + c.key,
- f = e.join("&").length;
- d.length + f + b <= l.MAX_URL_LENGTH && e.push(d)
- });
- return e.join("&")
- },
- p = function(a) {
- var c = 0,
- g = K.hashCode(k.asid),
- m = "adsafe_jsinfo=",
- p = q.needsFlash() ? {
- viewState: l.NA
- } : q.checkScreenLoc(!0),
- B = "c:" + e.getCacheBustId() + ",sl:" + p.viewState + ",em:" + s.embedded + ",fr:" + s.friendly,
- E = d.on("postDts") && x.getXHR2() ?
- "p" : "i",
- t = ["pt:" + q.stringifyPingTimes() + (p.viewState != l.NA ? p.details : ""), h(n.params()).toParams(), "id:" + k.asid];
- f.iterate(function(a, b) {
- t.push(a + ":" + b.output())
- });
- b.toString() && t.push("e:" + b.toString());
- t.push(d.output());
- t.push("uf:" + (q.useFlash() ? 1 : 0));
- t.push("tt:" + k.mode);
- t.push("et:" + (r.now() - k.birthdate));
- t.push("uid:" + e.unq);
- t.push("v:7.8");
- t.push("sp:" + ("true" === k.jsDoSplit ? 1 : 0));
- t.push("ct:" + s.getPageTime());
- t.push("dtm:" + E);
- t.push("mn:" + k.mn);
- d.on("resolution") && (t.push("wr:" + h(w.windowSize()).toArray().join(".")),
- t.push("sr:" + h(w.screenSize()).toArray().join("."))); - 1 === ("" + g).indexOf(n.params().br.toUpperCase().charCodeAt(0)) && t.push("mf:" + g);
- var P = function(b) {
- return m.length + a + b.length + 5 <= l.MAX_URL_LENGTH
- },
- A = function(a) {
- if (a) return "," + a
- };
- P(B) && (m += A(B), h(t).each(function(a, b) {
- -1 !== b.indexOf("id:") && P(b) ? (m += A(b), e.impressionIsIdentifiable(!0)) : P(b) ? m += A(b) : c += 1
- }), A("sp:" + ("true" === k.jsDoSplit ? 1 : 0)));
- return m += ",ov:" + c
- };
- return {
- sendCookie: function() {
- var b;
- d.on("cookie") && "true" === k.sendCookie && k.protocol &&
- k.cookieDomain && k.asid && (b = k.protocol + "://" + k.cookieDomain + "?asid=" + k.asid, a.send(b, void 0, !0), c.incrementNumDtCalls())
- },
- send: function(a) {
- var c = g.baseUrl;
- try {
- c += m(a, c.length)
- } catch (d) {
- b.add(b.ERROR_IMPRESSION_URLS)
- }
- c += "&" === c.slice(-1) ? "" : "&";
- try {
- c += p(c.length)
- } catch (e) {
- b.add(b.ERROR_JSINFO), c += "adsafe_jsinfo=e:" + b.toString()
- }
- g.macroUrl && (c += "&" === c.slice(-1) ? "" : "&", c += g.macroUrl);
- try {
- g.sendImpression(c)
- } catch (f) {
- __IntegralASDiagnosticCall("impsend", f, k)
- }
- }
- }
- },
- ya = function(a, c, b) {
- var d = function(a, b) {
- return {
- time: a,
- task: b
- }
- };
- return {
- getJob: function(a, b) {
- return new d(a, b)
- },
- getPingJob: function(e) {
- var g = e / l.MILLIS_PER_SEC;
- return new d(e, function() {
- var d;
- d = "";
- 1 !== g && (d += g);
- d = k["_onInViewMRC" + d];
- c.send(null, l.DT_CODES.PING, g);
- "true" === k.useViewabilityNotification && !b.skipAsFraudulent() && d && a.notify(d)
- })
- },
- getPosInViewPingJob: function(a) {
- return new d(a, function() {
- c.send(null, l.DT_CODES.POS_INVIEW, a / l.MILLIS_PER_SEC)
- })
- }
- }
- },
- ka = function() {
- var a = function(a, c) {
- -1 !== a.indexOf(c + "&") && (c += "&");
- return a.replace(c, "")
- },
- c = function(a,
- c) {
- var e = a.indexOf("?") + 1;
- return a.slice(0, e) + "ias_callback=" + c + "&" + a.slice(e)
- };
- return {
- wrap: function(b, d, e) {
- var g = "__IntegralAS_" + k.asid.replace(/\-/g, "") + "_" + r.round(1E4 * Math.random()),
- f, h, l;
- /ias_callback/.test(b) && (f = /(ias_callback=)(.[^&]*)/.exec(b)[0], h = f.split("=")[1], l = K.stringToFn(h), b = a(b, f));
- window[g] = function(a) {
- d(a);
- e && l && l(a);
- window[g] = void 0
- };
- return b = c(b, g)
- }
- }
- },
- ja = function() {
- var a = function() {
- return void 0 !== window.mraid
- };
- return {
- isInView: function() {
- var c = l.NA;
- a() && void 0 !== window.mraid.isViewable &&
- (c = window.mraid.isViewable() ? l.IN_VIEW : l.OUT_OF_VIEW);
- return c
- },
- getDetectionMethod: function() {
- return a() ? "m" : l.NA
- },
- isMobileApp: function() {
- return a()
- }
- }
- },
- Aa = function(a, c, b) {
- var d = {
- jss: {
- isFW: !0,
- nodeType: "script"
- },
- jsi: {
- isFW: !0,
- nodeType: "iframe"
- },
- jload: {
- impressionMethod: function(a) {
- c.send(a, !1, !0)
- }
- },
- bapi: {
- impressionMethod: function(b) {
- c.jsonp(b, a.enabled ? a.callback : h.noop, a.enabled ? !0 : !1)
- }
- },
- jsapi: {
- isFW: !0,
- impressionMethod: function(b) {
- c.jsonp(b, a.enabled ? a.callback : h.noop, a.enabled ? !0 : !1)
- }
- },
- jsvid: {
- impressionMethod: function(a) {
- b.on("adImpression",
- function() {
- c.send(a)
- })
- }
- },
- fwjsvid: {
- isFW: !0,
- processUrl: function(a) {
- "false" === k.fwMonitoring && (a = a.split("/"), a[3] = "db2", a[4] = "video", a = a.join("/"));
- return a
- },
- impressionMethod: function(a) {
- "false" === k.fwMonitoring && c.jsonp(a, function(a) {
- b.trigger("videoBlockResult", a)
- });
- b.on("adImpression", function() {
- c.send(a)
- })
- }
- },
- jspix: {
- nodeType: "img"
- }
- };
- return new function() {
- var a = d[k.mode],
- b = !!a.isFW,
- f = b ? k.adsafeSrc : k.requrl + "?" + k.reqquery,
- h = f.indexOf("BEGIN__ADSAFE"),
- l = -1 !== h,
- m = l ? f.slice(h) : "",
- f = l ? f.slice(0, h) : f + (b ?
- k.adsafeSep : "&");
- return {
- isFW: b,
- baseUrl: f,
- macroUrl: m,
- sendImpression: function(b) {
- b = a.processUrl ? a.processUrl(b) : b;
- a.nodeType ? c.addNode(a.nodeType, b) : a.impressionMethod(b)
- }
- }
- }
- },
- Ea = function(a, c) {
- var b, d = 0,
- e = 0,
- g = [],
- f = null,
- k = null,
- q, m = function(a) {
- try {
- var b = r.now() - f;
- d += b;
- x.removeEvent("mousemove", u);
- g.push("{ht:" + d + ",mm:{" + h(q).toParams() + "}}");
- c.addItem({
- output: "{cs:10,sr:5,ec:" + g.length + ",me:[" + g.slice(-10).join(",") + "]}"
- }, "mt", {
- type: l.DT_CODES.UNLOAD
- })
- } catch (e) {}
- },
- p = function(a) {
- try {
- d = 0, q = {}, f = r.now(),
- x.addEvent(b, "mousemove", u)
- } catch (c) {}
- },
- u = function(c) {
- var d, f, g, l, m, p, u;
- try {
- null === k && (k = b && h.isDef(c.clientX) && h.isDef(c.clientY));
- if (k && 0 === e % 5 && (m = a.calcDims(), -1 !== m)) {
- u = r.ceil(m.width / 10);
- var w = c.clientX,
- x = c.clientY;
- g = s.embedded ? w : w - m.x;
- l = s.embedded ? x : x - m.y;
- d = r.floor(g / 10);
- f = r.floor(l / 10);
- p = d + f * u;
- q[p] ? q[p] ++ : q[p] = 1
- }
- e++
- } catch (J) {}
- };
- return {
- init: function() {
- try {
- var c = setInterval(function() {
- a.isDetected() && (b = a.find(), x.addEvent(b, "mouseenter", p), x.addEvent(b, "mouseleave", m), clearInterval(c))
- }, 250)
- } catch (d) {}
- }
- }
- },
- r = {
- execAtEndOfThread: function(a) {
- setTimeout(a, 0)
- },
- now: function() {
- return (new Date).getTime()
- },
- random: function() {
- return Math.random()
- },
- round: function(a) {
- return Math.round(a)
- },
- ceil: function(a) {
- return Math.ceil(a)
- },
- floor: function(a) {
- return Math.floor(a)
- }
- },
- ga = function() {
- var a = {},
- c = r.now(),
- b = !0,
- d = new W,
- e = function() {
- var a = function() {
- c = r.now();
- window.webkitRequestAnimationFrame(a)
- };
- window.webkitRequestAnimationFrame(a);
- setInterval(function() {
- var a = 100 < r.now() - c;
- b !== a && (b = a, d.run(a))
- }, 100)
- },
- g = function() {
- var a =
- null;
- h.isDef(document.hidden) ? a = document.hidden : h.isDef(document.mozHidden) ? a = document.mozHidden : h.isDef(document.msHidden) ? a = document.msHidden : h.isDef(document.webkitHidden) && (a = document.webkitHidden);
- if (null !== a) {
- var c = a;
- b !== c && (b = c, d.run(c))
- }
- return a
- };
- a.onHiddenChange = function(a) {
- d.push(a)
- };
- a.isHidden = g;
- null === g() && h.isDef(window.webkitRequestAnimationFrame) && (e(), a.isHidden = function() {
- return b
- });
- return a
- },
- ha = function() {
- var a = function(a) {
- for (var c in a)
- if (a.hasOwnProperty(c)) {
- var e = a[c];
- ("" ===
- e || "null" === e || "undefined" === e || null === e || h.isUndef(e)) && delete a[c]
- }
- return a
- },
- c = function(a) {
- var c = {},
- e, g;
- for (g in a) a.hasOwnProperty(g) && (e = a[g], h.isUndef(c[e]) ? c[e] = g : c[e] += g);
- a = {};
- for (g in c) c.hasOwnProperty(g) && (e = c[g], a[e] = g);
- return a
- };
- return {
- detectTopURL: function() {
- var b = function() {
- var a = {
- g: "",
- q: ""
- };
- try {
- a.q = window.parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href
- } catch (b) {
- var c = b.message,
- c = c.substring(c.lastIndexOf("<") + 1, c.lastIndexOf(">")),
- d;
- if (d = h.isDef(c))
- if (d = !1, h.isDef(window.navigator) && h.isDef(window.navigator.userAgent)) {
- var e = window.navigator.userAgent.match(/Firefox\/([\.0-9]+)/);
- null !== e && 2 == e.length && (e = e[1].split("."), 3 == parseInt(e[0], 10) && 6 >= parseInt(e[1], 10) && (3 == e.length ? 13 >= parseInt(e[2], 10) && (d = !0) : d = !0))
- }
- d && (a.g = c)
- }
- return a
- },
- d = {};
- try {
- d.a = encodeURIComponent(top.location.href)
- } catch (e) {}
- try {
- d.b = encodeURIComponent(parent.location.href)
- } catch (g) {}
- if (s.embedded) {
- try {
- d.c = encodeURIComponent(parent.document.referrer)
- } catch (f) {}
- try {
- d.e = encodeURIComponent(window.document.referrer)
- } catch (l) {}
- }
- try {
- "jsi" !==
- k.mode && (d.d = encodeURIComponent(window.location.href))
- } catch (q) {}
- try {
- d.f = encodeURIComponent(k.jsref)
- } catch (m) {}
- try {
- var p = b();
- d.g = encodeURIComponent(p.g);
- d.q = encodeURIComponent(p.q)
- } catch (u) {}
- var d = a(d),
- d = c(d),
- b = [],
- y;
- for (y in d) d.hasOwnProperty(y) && b.push({
- key: y,
- val: d[y]
- });
- b.sort(function(a, c) {
- return a.val.length > c.val.length ? 1 : a.val.length < c.val.length ? -1 : 0
- });
- return b
- }
- }
- },
- Ga = function(a) {
- return {
- hash: function() {
- for (var c = 0, b = a.length, d = [], e; c < b; c++) e = a[c].filename.replace(/\.plugin$/, ""), e = K.hashCode(e),
- e = h.toBase(e, 62).slice(-4), d.push(e);
- return d
- },
- decode: function(c) {
- var b, d;
- b = r.floor(r.random() * c.length);
- d = encodeURIComponent(a[b].filename.replace(/\.plugin$/, ""));
- return [c[b], d]
- }
- }
- },
- ca = function() {
- var a = !1;
- return {
- measure: function(c) {
- a = 0 === c.rsa
- },
- skipAsFraudulent: function() {
- return a
- }
- }
- },
- ia = function() {
- var a = [],
- c = {
- sl: "n",
- gsl: "gn",
- fsl: "fn"
- },
- b = 0,
- d, e, g = {
- i: 0,
- o: 0,
- n: 0,
- pp: 0,
- pm: 0,
- gpp: 0,
- gpm: 0,
- gi: 0,
- go: 0,
- gn: 0,
- fi: 0,
- fo: 0,
- fn: 0
- },
- f = function(a) {
- var c = {},
- b = a.winDimensions,
- d = a.adDimensions,
- e = function(a) {
- var c = "";
- h.isDef(a) &&
- h.isDef(a.x) && h.isDef(a.y) && h.isDef(a.width) && h.isDef(a.height) && (c = [a.x, a.y, a.width, a.height].join("."));
- return c
- };
- h.isDef(b) && -1 !== b && (c.wc = e(b));
- h.isDef(d) && -1 !== d && (c.ac = e(d), c.am = d.method, c.cc = e(d.container));
- h({
- piv: "percentInView",
- obst: "obstructed",
- th: "tabHidden",
- reas: "reason"
- }).each(function(b, d) {
- var e = a[d];
- h.isDef(e) && (c[b] = e)
- });
- return "," + h(c).toParams()
- },
- k = function(a, c) {
- return (c || "") + {
- inView: "i",
- outOfView: "o",
- na: "n",
- partialViewMinus: "pm",
- partialViewPlus: "pp"
- }[a]
- },
- q = function() {
- h(c).each(function(c,
- d) {
- g[d] += a.length ? e - b : e
- });
- b = e
- },
- m = function(b) {
- a.length && q();
- h(b).each(function(a, b) {
- var d = c[a];
- d !== b && "n" === d && (g[b] += g.n);
- c[a] = b
- });
- a.length || q()
- },
- p = function(a) {
- var c;
- c = f(a);
- var b = {
- sl: k(a.viewState),
- fsl: k(a.fState || l.NA, "f"),
- gsl: k(a.gState || l.NA, "g")
- };
- e = s.getTagTime();
- m(b);
- b.t = e;
- c = h({
- toString: function() {
- return "{" + h(b).toParams() + this.details + "}"
- },
- details: c,
- isInView: function() {
- return -1 !== (l.IN_VIEW + "|" + l.PARTIAL_VIEW_PLUS).indexOf(a.viewState)
- }
- }).mixin(b);
- h(c).mixin(a);
- return c
- };
- return {
- fastForward: function() {
- e =
- s.getTagTime();
- q()
- },
- registerLocation: function(b) {
- var e;
- c.sl == k(b.viewState) && a.length ? (e = new p(b), a[a.length - 1].details = e.details) : (e = new p(b), a.push(e), d = b.viewState);
- return a[a.length - 1]
- },
- stringify: function(c) {
- var b = "";
- a.length && (b = h({
- slTimes: "{" + h(g).toParams() + "}",
- slEvents: "[" + a.slice(-c).join(",") + "]",
- slEventCount: a.length
- }).toParams());
- return b
- },
- getCurrentLoc: function() {
- return k(d)
- }
- }
- },
- K = {
- rot: function(a) {
- return a.replace(/[a-zA-Z]/g, function(a) {
- return String.fromCharCode(("Z" >= a ? 90 : 122) >= (a =
- a.charCodeAt(0) + 13) ? a : a - 26)
- })
- },
- hashCode: function(a) {
- var c = 0,
- b, d, e;
- if (0 === a.length) return c;
- b = 0;
- for (e = a.length; b < e; b++) d = a.charCodeAt(b), c = (c << 5) - c + d, c |= 0;
- return c
- },
- stringToFn: function(a) {
- var c, b = window,
- d = a.split(".");
- for (a = 0; a < d.length; a++)
- if (c = b, b = b[d[a]], h.isUndef(b) || a === d.length - 1 && !h.isFunction(b)) return !1;
- return function() {
- b.apply(c, arguments)
- }
- }
- },
- va = function(a, c, b) {
- var d = l.OUT_OF_VIEW,
- e, g = function() {
- if (e) return e;
- var b = h(document.getElementsByTagName("object")).toArray(),
- c = h(document.getElementsByTagName("embed")).toArray(),
- d = "IASid" + a;
- return e = h(b.concat(c)).find(function(b, c) {
- var e = h.isFunction(c[d]);
- if (e) c[d](a);
- return e
- })
- };
- c.on("videoBlockResult", function(b) {
- var c = g(),
- d = !1,
- e = "blockAd" + a;
- "failed" === b.action && (d = !0);
- if (c && h.isDef(c.blockAd)) c.blockAd(d);
- else if (c && h.isDef(c[e])) c[e](d)
- });
- (function() {
- var e = !1,
- h = !1;
- x.addEvent(window, "message", function(g) {
- var k = {};
- try {
- k = JSON.parse(unescape(g.data))
- } catch (p) {
- k = {}
- }
- k.recordType = "video";
- k.id === a && (g = k.messageType, -1 !== "showAd|adStarted|adVideoStarted|resumeAd".indexOf(g) ?
- (e = !0, d = h ? l.IN_VIEW : !1) : -1 !== "adVideoComplete|adStopped|stopAd|pauseAd".indexOf(g) ? (e = !1, d = l.OUT_OF_VIEW) : "resizeAd" === g && ("fullscreen" === k.viewMode ? (h = !0, d = e ? l.IN_VIEW : l.OUT_OF_VIEW) : (h = !1, d = e ? !1 : l.OUT_OF_VIEW)), b.addRecord(k), c.trigger(g, k))
- })
- })();
- return {
- findVideo: g,
- version: g().getVersion(),
- forceViewState: function() {
- return d
- }
- }
- },
- ua = function(a) {
- var c = [],
- b = function(c) {
- var b = h({
- t: c.time - k.birthdate,
- tp: c.messageType,
- vid: c.id,
- sl: a.getCurrentLoc()
- }).mixin(c.eventData);
- return h({
- toString: function() {
- return "{" +
- h(b).toParams() + "}"
- }
- }).mixin(b)
- };
- return {
- getEvents: function() {
- return c
- },
- addRecord: function(a) {
- a = new b(a);
- c.push(a)
- },
- stringify: function() {
- return h({
- vEventCount: c.length,
- vEvents: "[" + c.join(",") + "]"
- }).toParams()
- }
- }
- },
- Ba = function(a, c, b, d, e, g, f, n, q, m, p, u, y, C, z, v, B) {
- var E, t, P, A, L = 0,
- K = 0,
- T, Q = -1 !== k.mode.indexOf("jsvid"),
- F = y.isMobileApp(),
- G = Q ? 200 : 100,
- N = g.on("recordalternate");
- b = g.on("forcecocoa");
- z = c.getDocumentMode();
- z = c.browserIs("g") || c.browserIs("i") && (9 === z || 10 === z) && g.on("rattie");
- var R = s.friendlyIframe &&
- b || s.xDomainIframe && z && b || s.xDomainIframe && !z,
- I = R && g.on("cocoapuffs"),
- H = new Ia(10),
- D = [Q && g.on("videotwoseconds") ? 2E3 : 1E3, 5E3, 15E3],
- S = h(D).map(function(a, c) {
- return c / 1E3
- }).join("-"),
- O = new aa(1E3),
- U = new $([u.getPingJob(D[0]), u.getPingJob(D[1]), u.getPingJob(D[2])]);
- if (g.on("tabHiddenDtCall")) var M = new aa(1E3),
- W = new $([u.getPosInViewPingJob(D[0])]);
- var V = function(b) {
- H.start();
- var e, f;
- f = E.getScreenLocInfo(a);
- e = function() {
- V();
- g.on("viewabilityready") && d.send(null, l.DT_CODES.VIEWABILITY_READY)
- };
- N && (f.gState =
- f.viewState);
- if (I) {
- t = t || new Y(Z, f.adDimensions, e, g, C, c) || {};
- e = t.checkViewable();
- if (1 !== f.tabHidden || e.str === l.NA) f.viewState = e.str, f.percentInView = e.pct;
- g.on("unreliabilityDetection") && (A = A || new Y(Z, {
- height: 0,
- width: -2E4
- }, h.noop, g, C, c) || {}, e = A.checkViewable(), e.str !== l.OUT_OF_VIEW && (K += 1), L += 1, p.addItem({
- output: K + "/" + L
- }, "fu"))
- } else R && (f.viewState = l.NA, f.percentInView = -1);
- N && (P || b || (P = I ? t : new Y(Z, f.adDimensions, h.noop, g, C, c)), f.fState = b ? l.NA : P.checkViewable().str);
- if (Q) {
- if (b = B.forceViewState()) f.viewState =
- b
- } else F && (f.viewState = y.isInView());
- b = v.registerLocation(f);
- b.isInView() ? (O.mark(), U.doEligibleJobs(O.getTotalTime())) : O.stop();
- (e = U.getNextJob()) && e.time === D[0] && g.on("tabHiddenDtCall") && (f.posViewState === l.IN_VIEW || f.posViewState === l.PARTIAL_VIEW_PLUS ? (M.mark(), W.doEligibleJobs(M.getTotalTime())) : M.stop());
- H.stop();
- f = r.round(H.getTime() / H.getCount());
- p.addItem({
- output: f
- }, "lt", {
- type: l.DT_CODES.UNLOAD
- });
- return b
- },
- X = function(a) {
- T = !0;
- var b = !1;
- a = function() {
- b || (b = !0, d.send(null, l.DT_CODES.VIDEO_EVENTS))
- };
- q.impressionIsIdentifiable() && (V(), setInterval(V, G), n.on("adStopped", a), x.addEvent(window, "beforeunload", d.send, !1), Q && x.addEvent(window, "beforeunload", a, !1))
- };
- return E = {
- getWinDimensions: function() {
- var a, b, c, d, f;
- try {
- f = w.windowSize(), c = f.width, d = f.height, s.friendly ? a = b = 0 : (h.isDef(window.screenX) && (a = window.screenX), h.isDef(window.screenY) && (b = window.screenY))
- } catch (g) {
- e.add(e.ERROR_GET_WIN_DIMENSIONS)
- }
- return isNaN(a) || isNaN(b) || isNaN(c) || isNaN(d) ? -1 : {
- x: r.round(a),
- y: r.round(b),
- width: r.round(c),
- height: r.round(d)
- }
- },
- createIncompleteLocInfo: function(a, b) {
- return {
- viewState: l.NA,
- posViewState: l.NA,
- embedded: s.embedded,
- winDimensions: a,
- adDimensions: b
- }
- },
- getScreenLocInfo: function(a) {
- var b, c, d, g, k, m;
- a.find();
- b = a.getParent();
- k = a.isDetected();
- var n = a.getDetectionMethod(),
- p = [];
- try {
- c = E.getWinDimensions();
- d = a.calcDims();
- d.method = n;
- d.container = J.round(J.calcNodeDims(b));
- if (J.isInvalidDims(c, d)) return E.createIncompleteLocInfo(c, d);
- g = f.calcPercentInView(c, d)
- } catch (q) {
- e.add(e.ERROR_GET_SCREEN_LOC_GET_DIMENSIONS)
- }
- b = f.calcInitialViewState(g);
- b === l.OUT_OF_VIEW && p.push("l");
- k && (m = a.isObstructed(d));
- !0 === m && (b = l.OUT_OF_VIEW, p.push("o"));
- a = b;
- k = C.isHidden();
- !0 === k && (b = l.OUT_OF_VIEW, p.push("f"));
- return {
- winDimensions: c,
- adDimensions: d,
- viewState: b,
- percentInView: g,
- reason: p.join("."),
- obstructed: h.stringifyTriState(m),
- tabHidden: h.stringifyTriState(k),
- posViewState: a
- }
- },
- checkScreenLoc: V,
- init: function() {
- "true" === k.allowViewability && h.isFunction(document.addEventListener) ? (T = !1, "complete" == document.readyState || "loaded" == document.readyState || "interactive" ==
- document.readyState ? r.execAtEndOfThread(X) : document.addEventListener("DOMContentLoaded", X, !1)) : m.waitForBody(X)
- },
- needsFlash: function() {
- return R
- },
- readyFired: function() {
- return T
- },
- useFlash: function() {
- return I
- },
- stringifyPingTimes: function() {
- return S
- }
- }
- };
- try {
- Ha()
- } catch (Ja) {
- __IntegralASDiagnosticCall("main", Ja, k)
- }
- };
- try {
- __IntegralASConfig.initialize(__IntegralASConfig)
- } catch (err$$13) {
- __IntegralASDiagnosticCall("initialize", err$$13, __IntegralASConfig)
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement