// Licensed Materials - Property of IBM, eluminate.js (US-TEST Build # 4.16.17 Date/Time: 20140911-05:34), (C) Copyright IBM Corporation 2014. U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. (function(c) { var i = "", h = "", b = false; function f() { var m = [cm_JSFCoreCookieName, "cmRS", "cmTPSet", "CoreAt", "CMAVID", "CoreM_State", "CoreM_Ses"], n = cm_ClientID.split(";"), l; for (l = 0; l < n.length; l++) { m.push(cmJSFCreateCombinedSessionCookieName(n[l])) } for (l = 0; l < m.length; l++) { CC(m[l], cm_JSFPCookieDomain); CC(m[l]) } } function e(l, m) { var n = cI(l); return n && n.toUpperCase() == m } function g(o) { var l = 0, m = 0, p = o.length; for (; l < p; l++) { m = ~~(31 * m + o.charCodeAt(l)) } return Math.abs(m) } function a(m, l) { return m ? m : l ? l : "" } function d() { var s, u, q, l = screen, o = navigator, m = o.mimeTypes, r = o.plugins, t = "" + l.width + l.height + l.availWidth + l.availHeight + l.colorDepth + l.pixelDepth + a(o.language, a(o.browserLanguage)); if (m) { for (q = 0, u = m.length; q < u; q++) { t += a(m[q].type) } } if (r) { for (q = 0, u = r.length; q < u; q++) { s = r[q]; t += a(s.name) + a(s.version) + a(s.description) + a(s.filename) } } return t } function k() { return h == "D" } c.cmSetCookieSetting = function(l) { h = l; if (k()) { f() } }; c.cmCookiesDisabled = k; c.cmSessionCookiesOnly = function() { return h == "S" }; c.cmSetOptOut = function(l) { i = l }; c.cmOptedOut = function() { return ((i == "Y") || cI("CMDisabled") || e("CMOptout", "OPT_OUT") || e("CMOptOut", "OPT_OUT") || e("ID", "OPT_OUT")) }; c.cmAnonymous = function() { return ((i == "A") || e("CMOptout", "ANONYMOUS") || e("CMOptOut", "ANONYMOUS")) }; c.cmAutoAddTP = function() { return Math.random() < a(c.cm_TPThreshold, 0.2) }; c.cmSetIT = function(l) { b = l }; c.cmIT = function() { if (b) { return "it" + g(d()) } else { return null } } }(window)); var cmUtils = (function() { return { console: { log: function(a) { if (typeof console !== "undefined") { console.log(a) } }, error: function(a) { if (typeof console !== "undefined") { console.error(a) } } }, string: { trim: function(a) { if (typeof a === "string") { if (String.prototype.trim) { return a.trim() } else { return a.replace(/^\s+|\s+$/g, "") } } return a } } } }()); function cmForEach(a, c) { if (a) { var b, d = a.length; for (b = 0; b < d; b++) { if (c(a[b])) { return true } } } return false } function cmAppendQueryParameters(b, c) { var d = b.split("#"), a = [], e; cmForEach(c, function(f) { a.push(f.join("=")) }); e = a.join("&"); if (e) { d[0] += ((d[0].indexOf("?") > -1) ? "&" : "?") + e } return d.join("#") } function cmAppendQueryParameter(b, a, c) { var d = [a]; if (c) { d.push(c) } return cmAppendQueryParameters(b, [d]) } if (typeof CM_DDX === "undefined") { CM_DDX = { domReadyFired: false, headScripts: true, dispatcherLoadRequested: false, firstPassFunctionBinding: false, BAD_PAGE_ID_ELAPSED_TIMEOUT: 5000, version: -1, standalone: false, test: { syndicate: true, testCounter: "", doTest: false, newWin: false, process: function() { var d = CM_DDX.gup("tms.test"); CM_DDX.test.newWin = CM_DDX.gup("tms.mWin") === "y"; CM_DDX.test.doTest = CM_DDX.gup("tms.doTest") === "y"; if (CM_DDX.test.doTest) { var c = CM_DDX.gup("tms.syndicate"); if (c === null) { c = "n" } if (d === null) { d = "" } c = c.toLowerCase(); c = (c === "n" || c === "no" || c === "false") ? "N" : "Y"; CM_DDX.test.testCounter = (d === "") ? d : ((d * 1) + ""); CM_DDX.test.syndicate = (c === "Y"); CB("ddx.test.info", d + "-" + c + "-" + CM_DDX.test.doTest + "-" + CM_DDX.test.newWin) } else { var b = cI("ddx.test.info"); if (b) { var a = b.split("-"); CM_DDX.test.testCounter = a[0]; CM_DDX.test.syndicate = (a[1] === "Y"); CM_DDX.test.doTest = (a[2] === "true"); CM_DDX.test.newWin = (a.length === 4 && a[3] === "true") } } } }, partner: {}, invokeFunctionWhenAvailable: function(a) { if (CM_DDX.firstPassFunctionBinding === false) { setTimeout(function() { CM_DDX.invokeFunctionWhenAvailable(a) }, 5) } else { if (CM_DDX.version !== 0 && typeof(__$dispatcher) === "undefined") { setTimeout(function() { CM_DDX.invokeFunctionWhenAvailable(a) }, CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT); return } if (CM_DDX.version !== 0) { a() } } }, gup: function(d) { d = d.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var c = "[\\?&]" + d + "=([^&#]*)"; var b = new RegExp(c); var a = b.exec(window.location.href); return (a === null) ? null : decodeURIComponent(a[1].replace(/\+/g, " ")) }, privacy: { isDoNotTrackEnabled: function(b) { var a = CM_DDX.privacy.getDoNotTrack(b); if (a == false) { a = (cI("CM_DDX", "pdnt0", "false") == "true") ? true : false } return a }, setDoNotTrack: function(b, a) { CM_DDX.setSubCookie("CM_DDX", "pdnt" + b, a, 365) }, getDoNotTrack: function(a) { return (cI("CM_DDX", "pdnt" + a, "false") == "true") ? true : false } }, setSubCookie: function(b, a, e, c, d) { cmSetSubCookie(b, a, e, new Date(new Date().getTime() + (c * 86400000)).toGMTString(), d) } }; if (!cm_ClientID) { var cm_ClientID = "99999999" } if (!cm_HOST) { var cm_HOST = "testdata.coremetrics.com/cm?" } if (!cmMarketing) { var cmMarketing = {} } cmMarketing.COOKIE_NAME = "CoreMc"; cmMarketing.INSTANCE = null; if (!cm_McClientID) { var cm_McClientID = cm_ClientID } if (!cm_MC_LIB_HOST) { var cm_MC_LIB_HOST = "libs.coremetrics.com" } if (!cm_MC_RULES_HOST) { var cm_MC_RULES_HOST = "mktgcdn.coremetrics.com" } if (!cm_MC_USER_DETAILS_HOST) { var cm_MC_USER_DETAILS_HOST = "mcdata.coremetrics.com" } if (!cm_MC_APP_SERVER_HOST) { var cm_MC_APP_SERVER_HOST = "mc.coremetrics.com" } if (!cm_ClientTS) { var cm_ClientTS = new Date().getTime() } if (!cm_TrackLink) { var cm_TrackLink = "A" } if (!cm_NewLinkTracker) { var cm_NewLinkTracker = false } if (!cm_LinkClickDelay) { var cm_LinkClickDelay = false } if (!cm_LinkClickDelayInterval) { var cm_LinkClickDelayInterval = 500 } if (!cm_DelayHandlerReg) { var cm_DelayHandlerReg = "" } if (!cm_SkipHandlerReg) { var cm_SkipHandlerReg = "" } if (!cm_TrackImpressions) { var cm_TrackImpressions = "RSCM" } if (!cm_SecureTags || cm_SecureTags == null) { var cm_SecureTags = "|2|3|" } if (!cm_DownloadExtensions) { var cm_DownloadExtensions = null } if (!cm_UseUTF8) { var cm_UseUTF8 = true } if (!cm_FormPageID) { var cm_FormPageID = false } if (cm_UseCookie == null) { var cm_UseCookie = false } if (!cm_TimeoutSecs) { var cm_TimeoutSecs = 15 } if (!cm_UseDOMScriptLoad) { var cm_UseDOMScriptLoad = true } if (!cm_OffsiteImpressionsEnabled) { var cm_OffsiteImpressionsEnabled = false } if (!cm_AvidHost) { var cm_AvidHost = "data.cmcore.com/cookie-id.js?fn=cmSetAvid" } var cm_AvidLoadTimedOut = false; if (!cm_JSFEnabled) { var cm_JSFEnabled = false } if (!cm_JSFPCookieDomain) { var cm_JSFPCookieDomain = null } if (!cm_JSFTrackClients) { var cm_JSFTrackClients = true } if (!cm_JSFPCookieMigrate) { var cm_JSFPCookieMigrate = false } if (!cm_JSFPForceMigrateCookies) { var cm_JSFPForceMigrateCookies = false } if (!cm_JSFPCookieMigrateVisitorID) { var cm_JSFPCookieMigrateVisitorID = "cm_mc_uid" } if (!cm_JSFPCookieMigrateSessionID) { var cm_JSFPCookieMigrateSessionID = "cm_mc_sid" } if (!cm_JSFPMigrationDomainWhitelist) { var cm_JSFPMigrationDomainWhitelist = null } if (!cm_JSFPMigrationDomainBlacklist) { var cm_JSFPMigrationDomainBlacklist = null } if (!cm_JSFPMigrationPathWhitelist) { var cm_JSFPMigrationPathWhitelist = null } if (!cm_JSFPMigrationOtherCookies) { var cm_JSFPMigrationOtherCookies = null } if (!cm_JSFPMigrationOtherCookiesExpireTimes) { var cm_JSFPMigrationOtherCookiesExpireTimes = {} } if (!cm_JSFSessionType) { var cm_JSFSessionType = "I" } if (!cm_JSFSessionTimeout) { var cm_JSFSessionTimeout = 1800 } if (!cm_JSFCoreCookieName) { var cm_JSFCoreCookieName = "CoreID6" } if (!cm_JSFCoreCookieExpireSeconds) { var cm_JSFCoreCookieExpireSeconds = 473040000 } if (!cm_JSFEAMasterIDSessionCookie) { var cm_JSFEAMasterIDSessionCookie = false } if (!cm_AttributeDelimiter) { var cm_AttributeDelimiter = "-_-" } if (!cm_TealeafTagAttempts) { var cm_TealeafTagAttempts = 3 } if (!cmUA) { var cmUA = { MSIE: 2083 } } if (!cmDefaultLimit) { var cmDefaultLimit = 8197 } if (cGQ == null) { var cGQ = true } if (!cGO) { var cGO = 1024 } if (!cGR) { var cGR = 600000 } if (!encodeURIComponent) { var encodeURIComponent = null } var _$cV1 = null; var cG8; var cG9; var cG6 = document; var cGT; var cG7 = new _cmt(); cG6.cmTagCtl = cG7; var CI = cmStartTagSet; var CJ = cmSendTagSet; var cmIndex = 0; var cG0 = ["vn1", "vn2", "st", "pi", "rs", "ec", "rf", "ul"]; var cGA = null; var cmValidFlag_SessionContinue = 1; var cmValidFlag_NewSession = 2; var cmValidFlag_NewVisitor = 4; var cmValidFlag_SessionReset = 32; var cmCore_JSFParamEnabled = "cjen"; var cmCore_JSFParamUserID = "cjuid"; var cmCore_JSFParamSessionID = "cjsid"; var cmCore_JSFParamValidFlag = "cjvf"; if (!cG4) { var cG4 = 5000 } if (!cG5) { var cG5 = 200 } var cG2 = {}; var cG3 = {}; var cGM = navigator.appVersion; var cGN = navigator.userAgent; var cGS = cGN.indexOf("Opera") >= 0; var cGU = cGN.indexOf("Safari") >= 0; var cmT3 = -1; var cGC = ""; var cGD = ""; var cGE = ""; var cGF = ""; var cGG = ""; var cGH = ""; var cmSubmitFlag = false; var cmFormC1 = "submitbuttonreset"; var cmFormC2 = "textpasswordtextarea"; var cmFormC3 = "select-oneselect-multiple"; var cGI = ""; var cGJ = ""; var cGK = ""; var chost = null; var cci = null; var _cm_CMRules = {}; var _cm_isNew = true, _cm_NRSet = false; if (!cm_PartnerDataClientIDs) { var cm_PartnerDataClientIDs = "" } var cm_Avid; var cmCookieExpDate; var cm_AvidLoadTimer; var cm_IOEnabled = false; var cm_ATEnabled = false; var cm_MCEnabled = false; (function() { CI(); var e = new Date(); var i = 0; if (e.getFullYear) { i = e.getFullYear() } else { i = e.getYear(); if (i < 1900) { i += 1900 } } e.setYear(i + 15); cmCookieExpDate = e.toGMTString(); if (cm_UseCookie) { var k = cI("cmRS", "pi", ""); chost = cm_HOST; cm_HOST = cI("cmRS", "ho", chost); cci = cm_ClientID; cm_ClientID = cI("cmRS", "ci", cci); var b = cI("cmRS", "t3", ""); if (b != "") { cGA = b } var g = cI("cmRS", "cjen", ""); if (g != "") { cm_JSFEnabled = true } var d = cI("cmRS", "t1", ""); if (d != "" && (!cGA || cm_ClientTS - cGA < cGR)) { cmAddShared("st", d); var m = cI("cmRS", "ul", ""); var o = cI("cmRS", "rf", ""); var n = cI("cmRS", "hr", ""); if (n != "") { var a = cI("cmRS", "lti", ""); if (cm_ClientTS - a < cGR) { var p = cI("cmRS", "ln", ""); cM(d, a, p, n, true, k, m, o) } } var h = cI("cmRS", "ac", ""); var f = cI("cmRS", "fd", ""); if ((h != "") || (f != "")) { var a = cI("cmRS", "fti", ""); if (cm_ClientTS - a < cGR) { var c = cI("cmRS", "fn", ""); var l = cI("cmRS", "fu", ""); cL(d, a, c, h, l, f, true, k, m, o) } } } CC("cmRS") } if (cmIsBrowserCertified()) { cmAddNewEvent(document, "DOMContentLoaded", cmOnDomReady, "readystatechange", cmCheckIEReady); cmAddNewEvent(window, "load", cY); cmAddNewEvent(window, "unload", cZ); if (cm_DelayHandlerReg.indexOf("L") == -1) { window.cX("main") } if (cm_DelayHandlerReg.indexOf("F") == -1) { cU() } } CJ(1) }()); var _cmPartnerUtils = { AT_TagQueue: [], AT_PartnerCallQueue: [], AT_RulesSet: false }; var _cmMc = { readyToCall: {}, mcTagQueue: [], callPending: {} }; CM_DDX.test.process() } function cmIsBrowserCertified() { return (cF(4) || CD(5) || cGS || cGU) } function cmRetrieveUserID(a) { if (_$cV1 != null) { a(_$cV1) } else { if (cm_JSFEnabled) { _$cV1 = cmJSFGetUserId(); a(_$cV1) } else { var b = "eluminate" + Math.floor((Math.random() * 10000) + 1); window[b] = function(d) { if (typeof d === "string") { var c = d.indexOf("&ci="); if (c >= 0) { d = d.substring(0, c) } } _$cV1 = d; a(_$cV1) }; _cmPartnerUtils.loadScript(C8() + "//" + cm_Production_HOST + "/cookie-id.js?fn=" + b) } } } function cmLoad() { var b, k = C8() + "//", a, e, d, i, f, g, c = _cmPartnerUtils.loadScript; if (cm_OffsiteImpressionsEnabled) { cm_Avid = cI("CMAVID"); if (cm_Avid == null) { c(k + cm_AvidHost); cm_AvidLoadTimer = setTimeout(function() { cm_AvidLoadTimedOut = true }, 2000) } } if (cm_ATEnabled && !cmOptedOut() && !cmAnonymous() && typeof(cG6._cm_CMRulesLoaded) == "undefined") { a = cm_ClientID.split(";"); i = k + cm_Production_HOST + "/at/rules_"; f = ((cI("CorePartnerMode") == "TEST") ? "test" : "") + ".js"; for (d = 0; d < a.length; d++) { e = a[d].split("|")[0]; if (cm_PartnerDataClientIDs.indexOf(e) != -1) { c(i + e + f) } } cG6._cm_CMRulesLoaded = 1 } if (cm_MCEnabled) { c(k + cm_MC_LIB_HOST + "/mc.js"); try { if ((_cmMc.getIframeMaxDepth("IMODGUIDIDENTIFIER", 5) != null) && (window.name != null) && (window.name.length > 0)) { b = k + cm_MC_APP_SERVER_HOST + "/mcwebapp/js/"; c(b + "easyXDM.js"); c(b + "imodWebDesigner.js"); c(b + "json2.js") } } catch (h) {} } if (typeof($f126) === "undefined" && !CM_DDX.dispatcherLoadRequested) { CM_DDX.dispatcherLoadRequested = true; $cm_client_id = CM_DDX.cVA; g = (CM_DDX.version > 0) ? "-v" + CM_DDX.version : ""; if (CM_DDX.version >= 2) { c(k + "tmscdn.coremetrics.com/tms/dispatcher" + g + ".js") } if (CM_DDX.version >= 3 && !cm_ATEnabled) { _cmPartnerUtils.AT_RulesSet = true } } } _cmMc.getWebDesignerDependentScriptUrl = function() { var a = unica_imod.getWebDesignerScriptBaseUrl(); if (a != null) { return a + "easyXDM.js" } else { return null } }; _cmMc.getIframeMaxDepth = function(b, f) { var e = parent; var a = null; var d = 1; while (a == null && e != null && (f == null || d <= f)) { a = e.frames[b]; var c = e; e = e.parent; if (e == c) { e = null } d++ } return a }; var cI = cI; var cE = cE; function cmStartTagSet() { if (cG8) { return false } cG8 = []; cG8[0] = new _cm(); cG9 = 1; return true } function cmAddShared(a, b) { if (cG8) { cG8[0][a] = b } } function cmSendTagSet() { var a; var c = cG8; var b = null, d = 0; for (d = 0; d < c.length; d++) { if (typeof c[d]._$cmlch === "function") { b = c[d]; break } } while ((a = C7(arguments[0])) != null) { if (b) { c9.call(b, a, c[0].ci) } else { c9(a, c[0].ci) } } cG8 = null } function _cmCQ(b, c, a) { this.pl = b; this.hosts = c.split(","); if (a) { this.qs = a } this.cM5 = CR } function CR() { var b = arguments; var c = b[0] ? b[0] : this.hosts[0]; return this.pl + "//" + c + (this.qs ? this.qs : "") } function _cmt() { this.cM0 = {}; this.uls = {}; this.rfs = {}; this.cTI = []; this.cPE = 0; this.normalizeURL = c2; this.getPageID = c1; this.getPluginPageID = cmGetPluginPageID } function cmGetPluginPageID(f) { var e = "", c = cm_ClientID.split(";"), d = f.split("|")[0], b = f.split("|")[1]; for (var g = 0; g < c.length; g++) { if (d == c[g].split("|")[0]) { if (b) { b = b.split(":"); for (var a = 0; a < b.length; a++) { if (c[g].split("|")[1] && (c[g].split("|")[1].toUpperCase().indexOf(b[a].toUpperCase()) > -1)) { e = cm_ClientID; break } } break } else { e = cm_ClientID; break } } } return this.getPageID(e) } function c1(a) { var b = cG7.cM0[a]; return b ? b : "" } function CS(b) { var a = cG7.uls[b]; if (!a) { a = window.location.href } return a ? a : "" } function CT(b) { var a = cG7.rfs[b]; if (!a) { a = cG6.referrer } return a ? a : "" } function CP(d) { var e = cGT; if (!e) { e = cGT = cG7.normalizeURL(window.location.href, false) } var c = d.indexOf("#"); if (c >= 0 && c <= e.length) { var b = e.indexOf("#"); if (b < 0) { b = e.length } if (d.substring(0, c) == e.substring(0, b)) { return d.substring(c) } } return d } function c2(b, a) { if (a) { b = CP(b); var c = window.location.protocol + "//" + window.location.host; if (b.indexOf(c) == 0) { b = b.substring(c.length) } } return cD(b) } function c4() { for (var a in cmUA) { if (cGM.indexOf(a) != -1) { return cmUA[a] } } return cmDefaultLimit } function C0(a) { if (cG7) { if (cG7.cTI && cG7.cTI[a]) { cG7.cTI[a].cmLD = true; if (cG7.cTI[a].ci) { cmJSFSetValidFlagValue(cmValidFlag_SessionContinue, false, cG7.cTI[a].ci); cmJSFSetSessionCookies(false, cG7.cTI[a].ci) } } cG7.cPE--; if (cG7.onResponse) { cG7.onResponse(a) } } window.dontExit = false } function CN(b) { if (cG7) { cG7.cPE--; var a = null; if (cG7.cTI && cG7.cTI[b]) { a = cG7.cTI[b]; a.cmLD = true } if (cG7.onError && (!a || !a.cmTO)) { cG7.onError(3, a) } } } function c6(a, b) { if (cG3) { cG3[a] = true } C0(b) } function CO(b) { if (cG7 && cG7.cTI && cG7.cTI[b] && !(cG7.cTI[b].cmLD)) { var a = cG7.cTI[b]; a.cmTO = a.src; if (cG7.onError) { cG7.onError(4, a.cmTO) } } } function c8(b) { if (!cG3 || cG3[b]) { return true } var a = new Date(); return (a.getTime() - cG2[b]) > cG4 } function CV(h, e, b) { if ((CM_DDX.version >= 3) && CM_DDX.standalone) { return } b = b || cm_ClientID; var d = function(i) { var k = false; return function() { if (!k) { if (typeof i === "function") { i() } k = true } } }(this._$cmlch); if ((!cG2[h] || c8(h)) && (cm_OffsiteImpressionsEnabled == false || cm_Avid != null || cm_AvidLoadTimedOut)) { var c = new Image(); var f = cmIndex; cG7.cTI[cmIndex++] = c; if (!cG2[h]) { var g = new Date(); cG2[h] = g.getTime(); c.onload = function() { c6(h, f); d() } } else { c.onload = function() { C0(f); d() } } c.onerror = function() { CN(f); d() }; if (cm_OffsiteImpressionsEnabled && (cm_Avid != null) && (cm_Avid != "none")) { e += "&avid=" + cm_Avid } var a = c4(); if (e.length > a) { e = e.substring(0, a - 6) + "&err=O" } if (cG7.onTagSent) { cG7.onTagSent(e, f) } c.src = e; c.ci = b; setTimeout(function() { CO(f); d() }, cm_TimeoutSecs * 1000) } else { setTimeout(function() { CV(h, e, b) }, cG5) } } function c9(a, c) { if (cmOptedOut()) { return } for (var d = 0; d < a.hosts.length; d++) { var b = a.cM5(a.hosts[d]); cG7.cPE++; CV.call(this, a.hosts[d], b, c) } } function cC() { var a = null; if (!this.ul) { if (this.tid == "8" || (this.tid == "9" || this.tid == "10")) { this.ul = window.location.protocol + "//" + window.location.hostname } else { this.ul = window.location.href } } if (cG8) { cG8[cG9++] = this } else { var b = this.getImgSrc(arguments[0], 1); c9.call(this, b, this.ci); a = b } return a } function cmLogError(a) {} function C4(d, e, c) { if (!c) { if (!d.rf) { if (!document.referrer) { e.rf = "" } else { e.rf = document.referrer } } else { if (d != e) { e.rf = d.rf } } if (!d.ul || d.ul == "" || d.ul == "(none)") { e.ul = window.location.href } else { if (d != e) { e.ul = d.ul } } var b = cG7.normalizeURL(e.ul, false); var a = cG7.normalizeURL(e.rf, false); if (b != "") { e.ul = b } if (a != "") { e.rf = a } } } function C6(o, d, h) { var i = ""; if (o.tid) { i += "tid=" + o.tid } var a = (o.tid == 1 || (o.pc && o.pc.charAt(0) == "Y")); for (var k in o) { if (k == "qs" || k == "tid" || k == "topline") { continue } if (o[k] !== 0 && (!o[k] || o[k] == "" || typeof(o[k]) === "function")) { continue } if (d && d[k] && d[k] == o[k]) { continue } if (i != "") { i += "&" } i += cD(k) + "=" + cE(cD(o[k])) } if (!o.rs && o.ci) { if (o.pi && a) { cG7.cM0[o.ci] = o.pi } if (o.ul) { cG7.uls[o.ci] = o.ul } if (o.rf) { cG7.rfs[o.ci] = o.rf } } if (d && cm_SecureTags.indexOf("|" + o.tid + "|") != -1) { d.protocol = "https:" } if (cm_JSFEnabled && !h) { cmJSFSetSessionCookies(false, o.ci); i += (i != "" ? "&" : "") + cmCore_JSFParamEnabled + "=1"; var m = cmJSFGetUserId(); i += "&" + cmCore_JSFParamUserID + "=" + (m != null ? m : ""); i += "&" + cmCore_JSFParamSessionID + "=" + cmJSFGetSessionValue(o.ci); i += "&" + cmCore_JSFParamValidFlag + "=" + cmJSFGetValidFlagValue(o.ci) } if (cm_PartnerDataClientIDs && o.tid) { try { var n = {}; for (var l in o) { var b = o[l]; if (typeof(b) != "function" && typeof(b) != "undefined") { if (l == "ci") { b = b.split(";"); for (var g = 0; g < b.length; g++) { b[g] = b[g].split("|")[0] } b = b.join(";") } } n[l] = b } if (d) { for (var l in d) { var b = d[l]; if (typeof(b) != "function" && typeof(b) != "undefined") { if (l == "ci") { b = b.split(";"); for (var g = 0; g < b.length; g++) { b[g] = b[g].split("|")[0] } b = b.join(";") } } n[l] = b } } n.calculateTopLineAndReturnSegments = o.calculateTopLineAndReturnSegments; if (((cm_ATEnabled && _cmPartnerUtils.AT_RulesSet) || CM_DDX.version >= 3) && _cm_NRSet) { _cmPartnerUtils.calculateAndSendATData(n) } else { _cmPartnerUtils.AT_TagQueue.push(n) } } catch (f) {} } var c = _cmPartnerUtils.copyTag(o, d); if (c.tid) { _cmMc.mcTagQueue.push(c); if (cmMarketing.INSTANCE !== null) { cmMarketing.INSTANCE.tagCallTriggered() } else { _cmMc.callPending.tagCallTriggered = true } } return i } _cmPartnerUtils.copyTag = function(a, e) { var c = {}; for (var b in a) { var d = a[b]; if (typeof(d) != "function" && typeof(d) != "undefined") { c[b] = d } } if (e) { for (var b in e) { var d = e[b]; if (typeof(d) != "function" && typeof(d) != "undefined") { c[b] = d } } } c.calculateTopLineAndReturnSegments = a.calculateTopLineAndReturnSegments; return c }; function C8(b) { var a = location.protocol; if (b && b.protocol) { a = b.protocol } if (a != "http:" && a != "https:") { a = "http:" } return a } function c0() { var c = arguments; C4(this, this, c[0]); var e = {}; var b = C6(this, e); var d = new _cmCQ(C8(e), cm_HOST, b); return c[1] ? d : d.cM5() } function C7() { var f, n, b, r, e, c, o, d, k, q, g; if (!cG8 || cG8.length < 2) { return null } f = cG8[0]; n = cG8[1]; f.ci = n.ci; for (k = 1; k < cG8.length; k++) { if (f.ci.indexOf(cG8[k].ci) == -1) { f.ci += ";" + cG8[k].ci } if (cm_SecureTags.indexOf("|" + cG8[k].tid + "|") != -1) { f.protocol = "https:" } } for (k = 0; k < cG0.length; k++) { b = cG0[k]; if (!f[b]) { f[b] = n[b] } } r = arguments; C4(n, f, r[0]); e = C8(f); g = new _cmCQ(e, cm_HOST); g.qs = C6(f); c = c4(); o = 0; for (var m = 0; m < g.hosts.length; m++) { d = e.length + g.hosts[m].length + g.qs.length; if (d > o) { o = d } } for (k = 1; k < cG8.length; k++) { q = C6(cG8[k], f, true); if (k > 1 && o + q.length + 1 > c) { for (j = 1; j < cG8.length - k + 1; j++) { cG8[j] = cG8[j + k - 1] } cG8.length = cG8.length - k + 1; break } o += q.length + 1; g.qs += "&" + q } if (k == cG8.length) { cG8 = null } return g } function _cm() { var d, b = arguments; this.ci = cm_ClientID; for (d = 0; d < b.length; d++) { this[b[d]] = b[++d] } this.write = cC; this.getImgSrc = c0; this.writeImg = cC; this.st = cm_ClientTS; this.vn1 = "4.16.17"; if (cF(5.5) || !cF(0)) { var c = (cm_UseUTF8 && encodeURIComponent) || cGU ? "utf-8" : cG6.charset; if (!c) { c = cG6.defaultCharset } if (!c) { c = cG6.characterSet } this.ec = c } this.topline = [] } function cD(a) { var b = ""; a = b + (!a && a !== 0 ? "" : a); return a.split("'").join(b).split('"').join(b).split("\r").join(b).split("\n").join(b) } function cE(d) { var c = 0, b; while (d.charAt(c) == " " && c != d.length) { c++ } b = d.length - 1; while (d.charAt(b) == " " && b != 0) { b-- } d = d.substring(c, b + 1); if (cm_UseUTF8 && encodeURIComponent) { d = encodeURIComponent(d) } else { d = preEscape(d); d = escape(d); var a = new RegExp("%25u00", "g"); d = d.replace(a, "%u00") } d = d.split("+").join("%2B"); return d } function preEscape(c) { for (var b = 160; b < 256; b++) { var a = new RegExp(String.fromCharCode(b), "g"); c = c.replace(a, "%u00" + b.toString(16)) } return c } function cF(a) { var b = cGM.indexOf("MSIE"); if (b != -1) { return (parseFloat(cGM.substring(b + 5)) >= a) } return false } function CD(a) { return (cGN.indexOf("Gecko") != -1 && parseInt(cGM) >= a) } function cI(b, a, c) { var d = cJ(b, cG6.cookie, ";"); if (a && d) { d = cJ(a, d, "&") } if (d) { d = unescape(d) } else { if (c) { d = c } } return d } function CL() { var e, a, b, d, f = 0; a = cG6.cookie; if (a) { e = a.split(";"); f = e.length; for (d = 0; d < e.length; d++) { b = e[d].split("="); if (b.length < 2 || b[1] == null || b[1] == "") { f-- } } } return f } function CB(b, h, d, g) { if (cmCookiesDisabled()) { return true } var f, a, e, c = cG6.cookie; f = null; a = h.length + 1; if (!cI(b)) { a += b.length } if (a > 4096) { f = 1 } else { if (c) { if (CL() >= 50) { f = 2 } } } if (f) { if (cG7.onError) { cG7.onError(f, name) } return false } e = b + "=" + h + "; path=/"; if (g) { e += "; domain=" + g } if (d && !cmSessionCookiesOnly()) { e += "; expires=" + d } cG6.cookie = e; return true } function cmSetSubCookie(m, k, i, b, f) { var e = cI(m); var h; if (!e) { h = k + "=" + i } else { var l = "&"; var g = k + "="; var c = e.indexOf(g); if (c >= 0) { if (c > 0 && e.charAt(c - 1) != l) { c = e.indexOf(l + g); if (c >= 0) { c++ } } } if (c >= 0) { var a = c + k.length + 1; var d = e.indexOf(l, a); if (d < 0) { d = e.length } h = e.substring(0, a) + i + e.substring(d) } else { h = e + l + k + "=" + i } } CB(m, h, b, f) } function CC(a, d) { var b = cI(a); if (b != null) { var c = new Date(); c.setYear(1973); var b = a + "=; path=/; expires=" + c.toGMTString(); if (d) { b += "; domain=" + d } cG6.cookie = b } return b } function cJ(a, h, c) { var g, e, d, b, f = null; g = a + "="; e = c + " "; d = h.indexOf(e + g); if (d == -1) { e = c; d = h.indexOf(e + g) } if (d == -1) { d = h.indexOf(g); if (d != 0) { return null } } else { d += e.length } b = h.indexOf(e, d); if (b == -1) { b = h.length } return h.substring(d + g.length, b) } function CG(c) { if (!c) { c = window.event } var a = [c.currentTarget, c.target, c.srcElement]; for (var b = 0; b < a.length; b++) { if (a[b]) { return a[b] } } } function CU(a, b, g, c, f) { var e, d; a.pi = g ? g : c1(b); if (cGQ) { if (c || f) { a.ul = c ? c : ""; a.rf = f ? f : "" } else { e = CS(b); d = CT(b); if (a.pi == "" || e.indexOf("cm_") > 0 || (d != "" && d.indexOf(window.location.protocol + "//" + window.location.host) != 0)) { a.ul = e; a.rf = d } } } } function cL(g, e, c, h, a, i, m, f, l, b, d) { var k = new _cm("tid", "10"); CU(k, k.ci, f, l, b); k.st = g; k.ti = e; k.fo = c; k.ac = h; k.hr = a; k.fi = i; k._$cmlch = d; if (m) { k.rs = "Y" } k.write(1) } function cM(h, a, b, c, n, g, m, e, f) { var l = new _cm("tid", "8"); if (typeof(encodeURI) === "function") { c = encodeURI(c).replace(/%25/g, "%") } CU(l, l.ci, g, m, e); l.st = h; l.ti = a; l.nm = b; l.hr = c; l._$cmlch = f; var i = c.indexOf("cm_cr="); var d = c.indexOf("cm_me="); if (i > -1) { var k = c.indexOf("&", i); if (k == -1) { l.cm_cr = c.substring(i + 6) } else { l.cm_cr = c.substring(i + 6, k) } } if (d > -1) { var k = c.indexOf("&", d); if (k == -1) { l.cm_me = c.substring(d + 6) } else { l.cm_me = c.substring(d + 6, k) } } if (n) { l.rs = "Y" } l.write(1) } function CM(d) { var f, b, c, e; if ((f = d.indexOf("?")) == -1) { f = d.lastIndexOf("/") } if (f != -1) { b = d.indexOf("#", f); if (b == -1) { b = d.length } while (f != -1 && f < b) { f = d.indexOf("cm_", f); if (f != -1) { c = d.indexOf("&", f); if (c == -1) { c = b } e = d.indexOf("=", f); if (e != -1 && e < c) { this[d.substring(f, e)] = d.substring(e + 1, c) } f = c } } } } function CK(b, f, e, a, d) { var k, i, c, l, g, h; if ((f || e || a || d) && b) { k = new _cm("tid", "9"); i = new CM(CP(b)); if (f) { c = k.cm_sp_o = i.cm_sp_o; if (!c) { c = k.cm_sp = i.cm_sp } } if (e) { l = k.cm_re_o = i.cm_re_o; if (!l) { l = k.cm_re = i.cm_re } } if (a) { if (b.indexOf("#") == -1) { g = k.cm_cr = i.cm_cr } } if (d) { h = k.cm_me = i.cm_me } if (c || l || g || h) { k.pi = c1(k.ci); k.st = cm_ClientTS; if (typeof cmCheckIgnoreImpression == "function") { if (cmCheckIgnoreImpression(c, l, g, h)) { k.write(1) } } else { k.write(1) } } } } function cmFormBlurRecord(a) { if (a.cmFormEleMemValue != cmFormElementValue(a) && a.cmFormEleMemValue != null) { cmFormReportInteraction(a) } a.form.cmEleValue = -1 } function cmFormElementOnclickEvent() { try { var b; var a = cmFormElementValue(this); if ((cmFormC1.indexOf(this.type) >= 0) || (this.cmFormEleMemValue != a)) { if (this.type == "radio") { for (b = 0; b < this.form.elements.length; b++) { if (this.form.elements[b].cM2 == this.cM2) { this.form.elements[b].cmFormEleMemValue = null } } } this.cmFormEleMemValue = a; cmFormReportInteraction(this) } } catch (c) { cmLogError(c) } } function cmFormElementOnfocusEvent() { try { this.form.cmEleValue = this.cM2; this.cmFormEleMemValue = cmFormElementValue(this) } catch (a) { cmLogError(a) } } function cmFormElementOnblurEvent() { try { cmFormBlurRecord(this) } catch (a) { cmLogError(a) } } function cmFormElementOnchangeEvent() { try { cmFormReportInteraction(this) } catch (a) { cmLogError(a) } } function cmFormElementValue(c) { var a; if (c.type == "checkbox") { return c.checked } else { if ((cmFormC3.indexOf(c.type) >= 0) && c.options) { var b = ""; for (a = 0; a < c.options.length; a++) { if (c.options[a].selected == true) { b = b + c.options[a].index } } return b } else { if (cmFormC2.indexOf(c.type) >= 0 || c.type == "file" || c.type == "radio") { return c.value } else { return null } } } } function cO(g, h, d, c) { var b, a, i, l = ""; var f = null; h = g + ":" + h; if (g != -1) { if (cG6.forms[g]) { f = cG6.forms[g]; var l = f.attributes; a = f.action ? f.action : l.action.nodeValue ? l.action.nodeValue : l.getNamedItem("action").value ? l.getNamedItem("action").value : "" } } cGD = cG6.cmTagCtl.normalizeFORM(cGD); var k = c1(cm_ClientID); if (cm_FormPageID && k != "") { var e = cGD.split(";"); cGD = ""; for (i = 0; i < e.length - 1; i++) { cGD += k.split(":").join("").split(";").join("") + "_" + e[i] + ";" } cm_FormPageID = false } if (cV(a) && (g != "-1" || (g == "-1" && cmSubmitFlag == false))) { b = new Date(); cGH = b.getTime(); cGF = h; cGE = cG7.normalizeURL(a, true); cL(cm_ClientTS, cGH, cGD, cGF, cGE, cGC, false, c, c, c, d); cGG = cGC; cGC = ""; if ((f) && (typeof cmCustomFormSubmitHandler == "function")) { cmCustomFormSubmitHandler(f, h) } } else { cGF = "" } } function cmFormOnresetEvent() { var a; try { cO(this.cM1, "R") } catch (b) { cmLogError(b) } try { for (a = 0; a < cG6.forms[this.cM1].elements.length; a++) { cG6.forms[this.cM1].elements[a].cmFormEleMemValue = false } } catch (b) { cmLogError(b) } try { if (this.cQ) { return this.cQ() } } catch (b) { cmLogError(b) } } function cmFormOnsubmitEvent(c, a, d) { try { if (this.cmEleValue > -1) { cmFormBlurRecord(this.elements[this.cmEleValue]) } } catch (b) { cmLogError(b) } try { if (this.cM1 >= 0 && this.cmSubmitIndex == false) { cmSubmitFlag = true; this.cmSubmitIndex = true; cO(this ? this.cM1 : -1, "S", a); CE() } else { if (typeof a === "function") { a() } } } catch (b) { cmLogError(b) } cmJSFPMigrateLink(this, "action") } function cmFormReportInteraction(c) { var b = cG6.cmTagCtl.normalizeFIELDS(c.name ? c.name : c.id ? c.id : ""); var a = cGC + c.form.cM1 + ":" + c.cM2 + ":" + b.split(":").join("|").split(";").join("|") + ";"; if (a.length < 1000) { cGC = a } } function cmFormSubmit() { cmJSFPMigrateLink(this, "action"); try { if (this.cmEleValue > -1) { cmFormBlurRecord(this.elements[this.cmEleValue]) } } catch (b) { cmLogError(b) } try { if (this.cM1 >= 0 && this.cmSubmitIndex == false) { cmSubmitFlag = true; this.cmSubmitIndex = true; cO(this ? this.cM1 : -1, "S"); CE() } } catch (b) { cmLogError(b) } try { if (cm_LinkClickDelay) { setTimeout((function a(c) { return function() { c.cmSubmit() } }(this)), cm_LinkClickDelayInterval); return false } else { this.cmSubmit() } } catch (b) { cmLogError(b) } } cG6.cmTagCtl.normalizeFORM = function(a) { return a }; cG6.cmTagCtl.normalizeFIELDS = function(a) { return a }; function cU() { if (cm_SkipHandlerReg.indexOf("F") == -1) { _$cF1(); var c, f, b, a, k, g, h; for (c = 0; c < cG6.forms.length; c++) { f = cG6.forms[c]; h = 0; if (!f.cM1 && !f.cmEleValue && !f.cmSubmitIndex) { f.cM1 = c; f.cmEleValue = -1; f.cmSubmitIndex = false; f.radiogroup = { key: "value" }; try { if (cF(5) && !cF(8)) { var d = f.attributes; b = d.name ? d.name.nodeValue : d.id ? d.id.nodeValue : d.action ? d.action.nodeValue : "UNDEFINED" } else { if (f.attributes.getNamedItem) { b = ((f.attributes.getNamedItem("name")) && (f.attributes.getNamedItem("name").value !== "")) ? f.attributes.getNamedItem("name").value : ((f.attributes.getNamedItem("id")) && (f.attributes.getNamedItem("id").value !== "")) ? f.attributes.getNamedItem("id").value : ((f.attributes.getNamedItem("action")) && (f.attributes.getNamedItem("action").value !== "")) ? f.attributes.getNamedItem("action").value : "UNDEFINED" } else { b = f.name ? f.name : f.id ? f.id : f.action ? f.action : "UNDEFINED" } } } catch (k) { b = "ERROR"; cmLogError(k) } cGD += b + ":" + c + ";"; try { if (f.submit !== cmFormSubmit) { f.cmSubmit = f.submit; f.submit = cmFormSubmit } } catch (k) { cmLogError(k) } if (typeof cm_NewFormTracker !== "undefined") { if (!f._$cV2) { _$cF4(f) } } else { cmAddNewEvent(f, "submit", cmFormOnsubmitEvent) } cmAddNewEvent(f, "reset", cmFormOnresetEvent); for (a = 0; a < f.elements.length; a++) { k = f.elements[a]; if (!k.cM1 && !k.cM2 && !k.cmFormEleMemValue) { k.cM1 = c; k.cM2 = h; k.cmFormEleMemValue = null; h++; if (k.type == "radio") { g = k.name ? k.name : k.id ? k.id : ""; if (g != "") { if (f.radiogroup[g]) { k.cM2 = f.radiogroup[g] } else { f.radiogroup[g] = k.cM2 } } } if (cmFormC1.indexOf(k.type) >= 0 || k.type == "checkbox" || k.type == "radio") { try { cmAddNewEvent(k, "click", cmFormElementOnclickEvent) } catch (k) { cmLogError(k) } } if (cmFormC2.indexOf(k.type) >= 0 || cmFormC3.indexOf(k.type) >= 0) { try { cmAddNewEvent(k, "focus", cmFormElementOnfocusEvent); cmAddNewEvent(k, "blur", cmFormElementOnblurEvent) } catch (k) { cmLogError(k) } } if (k.type == "file") { try { cmAddNewEvent(k, "change", cmFormElementOnchangeEvent) } catch (k) { cmLogError(k) } } } } } } } } function _$cF1() { if (typeof cm_NewFormTracker !== "undefined" && cm_NewFormTracker.submitFunctions) { var fnCounts = {}; var frm = null; var count = 0; var fnToFrm = {}; for (frm in cm_NewFormTracker.submitFunctions) { count = fnCounts[cm_NewFormTracker.submitFunctions[frm]]; if (!count) { count = 0 } count++; fnCounts[cm_NewFormTracker.submitFunctions[frm]] = count; fnToFrm[cm_NewFormTracker.submitFunctions[frm]] = frm } var funcName = null; for (funcName in fnToFrm) { if (fnCounts[funcName] > 1) { cmUtils.console.error("Function " + funcName + " defined " + fnCounts[funcName] + " times. Hence ignoring.") } else { frm = _$cF2(fnToFrm[funcName]); if (frm && !frm._$cV2) { frm._$cV2 = true; var newFuncName = funcName + Math.floor((Math.random() * 10000) + 1); window[newFuncName] = eval(funcName); window[funcName] = (function(f, fn) { return function() { var args = arguments; var fnRealOnClick = function() { var retVal = fn.apply(this, args); if (retVal && f) { f.submit() } }; if (f) { cmFormOnsubmitEvent.call(f, undefined, fnRealOnClick) } return false } }(frm, window[newFuncName])) } } } } } function _$cF2(a) { var c = a; if (typeof a === "string") { c = document.getElementById(a); if (!c) { var b = document.getElementsByName(a); if (b.length > 0) { c = b[0] } b = null } } if (c && typeof c === "object" && c.tagName == "FORM") { return c } return null } function _$cF4(a) { var b = function(d, c) { return function(f) { if (!f) { f = window.event } var e = function() { var g = false; return function() { if (!g) { g = true; var h = c && c(); d.onsubmit = function() { return h }; d.submit() } } }(); cmFormOnsubmitEvent.call(f.srcElement ? f.srcElement : f.target, f, e); if (f.preventDefault) { f.preventDefault() } else { f.returnValue = false } return false } }(a, a.onsubmit); a.onsubmit = b; a = null } function cV(d) { if (cm_TrackLink == true || cm_TrackLink == "A") { return true } else { if (cm_TrackLink == "E" && d.indexOf("/") != 0) { return true } var f; if ((f = cm_DownloadExtensions) != null) { var c = d.lastIndexOf("."); if (c != -1) { var a = d.substring(c); for (var b = 0; b < f.length; b++) { if (a == f[b]) { return true } } } } return false } } function cW(b, a) { CI(); var b = CG(b); if (b) { C9(b, a) } CJ(1); CE(); if (a) { setTimeout(a, cm_LinkClickDelayInterval) } else { if (cm_LinkClickDelay) { if (b) { setTimeout('document.location = "' + b.href + '"', cm_LinkClickDelayInterval); return false } else { return true } } } } function C9(f, a, g) { cGI = ""; cGJ = ""; cGK = ""; var b = f.tagName.toUpperCase(); if (b == "AREA") { cGJ = f.href ? f.href : ""; var d = f.parentElement ? f.parentElement : f.parentNode; if (d != null) { cGI = d.name ? d.name : (d.title ? d.title : (d.id ? d.id : "")) } } else { while (b != "A" && b != "HTML") { if (!f.parentElement) { if (f.parentNode) { f = f.parentNode } else { break } } else { f = f.parentElement } if (f) { b = f.tagName.toUpperCase() } } if (b == "A") { cGJ = f.href ? f.href : ""; cGI = f.name ? f.name : (f.title ? f.title : (f.id ? f.id : "")) } } if (f.getAttribute) { cGJ = cmGetManualLinkUrl(f, cGJ) } cGJ = cG7.normalizeURL(cGJ, true); if (cV(cGJ) == true) { var c = new Date(); cGK = c.getTime(); if (typeof cmCustomLinkClickHandler == "function") { cmCustomLinkClickHandler(f) } cM(cm_ClientTS, cGK, cGI, cGJ, false, g, g, g, a) } else { cGJ = "" } cmJSFPMigrateLink(f, "href") } function cmAddNewEvent(e, d, f, g, b) { if (e.addEventListener) { e.addEventListener(d, f, false) } else { if (e.attachEvent) { g = g || d; b = b || f; var a = g + b, c = "e" + a; if (typeof e[c] === "undefined") { e[c] = b; e[a] = function() { e[c](window.event) }; e.attachEvent("on" + g, e[a]) } } } } function cX(a) { if (cmReadyToThrowImpressions()) { cmAddClicksAndThrowImpressions(a) } else { cmAddClickHandlers(); if (a === "onload") { cmThrowImpressionTags() } } } function cmReadyToThrowImpressions() { return (cm_ClientID !== "99999999" && c1(cm_ClientID) !== "") } function cmGetManualLinkUrl(c, b) { if (c.getAttribute) { function a(d, f) { var e = c.getAttribute("manual_" + f); if (e) { d = cmAppendQueryParameter(d, f, e) } return d } b = a(b, "cm_re"); b = a(b, "cm_sp") } return b } function cmInstrumentLinks(i, f) { var e, d, b, c, a = cm_TrackImpressions, k = "cmImpressionSent", h = cG6.links, g = false; e = (a.indexOf("S") != -1); d = (a.indexOf("R") != -1); b = (a.indexOf("C") != -1); c = (a.indexOf("M") != -1); i &= (cm_SkipHandlerReg.indexOf("L") == -1); f &= (e || d || b || c); if (i || f) { cmForEach(h, function(l) { if (i) { _$cF5(l) } if (f && !l[k]) { var m = cmGetManualLinkUrl(l, l.href); if (!g) { CI(); g = true } CK(m, e, d, b, c); l[k] = 1 } }); if (g) { CJ(1) } } } function cmAddClicksAndThrowImpressions(a) { cmInstrumentLinks(true, a === "onload") } function cmAddClickHandlers() { cmInstrumentLinks(true, false) } function cmThrowImpressionTags() { if (!cmReadyToThrowImpressions()) { setTimeout(cmThrowImpressionTags, 10) } else { cmInstrumentLinks(false, true) } } function _$cF5(a) { var b = cmUtils.string.trim(a.href).toLowerCase(); if (!cm_NewLinkTracker || a.className.indexOf("cmUseOldLinkTracker") != -1 || b.indexOf("#") === 0 || b.indexOf("javascript:") === 0 || b.indexOf(location.href.toLowerCase() + "#") === 0) { cmAddNewEvent(a, "click", cW) } else { if (!a._$cF6) { var c = a.onclick; a.onclick = null; a._$cF6 = function(i) { if (!i) { i = window.event } var h, e; h = e = this.href; var g = i.srcElement ? i.srcElement : i.target; var f = g.tagName.toUpperCase(); if (f !== "AREA" && f !== "A") { while (f !== "A") { g = g.parentElement ? g.parentElement : g.parentNode; if (g) { f = g.tagName.toUpperCase() } } } if (g) { e = g.href } if (e === h) { var k = false; if (g.target === window.name || g.target === "_self") { var d = (function(l, o, n) { var m = false; return function() { if (!m) { m = true; if (!o || o.call(n) !== false) { location.href = l } } } })(e, c, g) } else { if (c) { k = c.call(g) } } cW(i, d); if (g.target === window.name || g.target === "_self" || k) { if (i.preventDefault) { i.preventDefault() } else { i.returnValue = false } } } }; cmAddNewEvent(a, "click", a._$cF6) } } } function cY(a) { cmOnDomReady(); window.setTimeout(function() { CM_DDX.firstPassFunctionBinding = true }, CM_DDX.BAD_PAGE_ID_ELAPSED_TIMEOUT); if (cmIsBrowserCertified()) { window.cX("onload"); cU() } } function cZ(h) { cG3 = null; CI(); var b = false; for (var a = 0; a < document.forms.length; a++) { try { if (cG6.forms[a].cmEleValue > -1) { cmFormBlurRecord(document.forms[a].elements[document.forms[a].cmEleValue]) } } catch (h) { cmLogError(h) } try { if (cGC != "") { b = true; cO(-1, "U") } } catch (h) { cmLogError(h) } } CJ(1); if (b) { window.dontExit = true; var f = new Date(); var d = new Date(); for (; window.dontExit && (d - f < 1000);) { d = new Date() } } CE(); if (cm_UseCookie && cG7.cPE == 0) { var g = escape(c1(cm_ClientID)); CB("cmRS", "t3=" + cmT3 + "&pi=" + g) } if (cG7.onUnload) { cG7.onUnload() } if (cF(5) && !cF(5.5) && window.parent != window) { cG7.cTI = null } else { if (!cGU) { for (var c = 0; c < cG7.cTI.length; c++) { cG7.cTI[c].onload = null; cG7.cTI[c].onerror = null } } } } function CE() { if (cm_UseCookie) { cmT3 = new Date().getTime(); var b, a, f, d, c = ""; b = cGA ? "&t4=" + cGA : ""; a = (cGJ != "") ? "<i=" + cGK + "&ln=" + escape(cGI) + "&hr=" + escape(cGJ) : ""; f = {}; CU(f, cm_ClientID); var e = ""; if (cm_JSFEnabled) { e = "&cjen=1" } d = "&t1=" + cm_ClientTS + "&t3=" + cmT3 + b + a + "&fti=" + cGH + "&fn=" + escape(cGD) + "&ac=" + cGF + "&fd=" + escape(cGG) + "&fu=" + escape(cGE) + "&pi=" + escape(f.pi) + "&ho=" + escape(cm_HOST) + "&ci=" + escape(cm_ClientID); if (f.ul && f.rf && f.ul.length + f.rf.length < cGO) { c = "&ul=" + escape(f.ul) + "&rf=" + escape(f.rf) } if (!CB("cmRS", d + c + e)) { if (!CB("cmRS", d + e)) { CB("cmRS", "t3=" + cmT3 + "&pi=" + escape(f.pi) + e) } } } } function cmSetAvid(a) { clearTimeout(cm_AvidLoadTimer); if (a) { cm_Avid = a } else { cm_Avid = "none" } CB("CMAVID", cm_Avid); cm_AvidLoadTimedOut = false } function cmJSFSetSessionCookies(b, c) { if (!cm_JSFEnabled) { return } var a = c.split(";"); for (var d = 0; d < a.length; d++) { cmJSFSetSingleSessionCookie(b, a[d]) } } function debugReadCookie(b) { var e = b + "="; var a = document.cookie.split(";"); for (var d = 0; d < a.length; d++) { var f = a[d]; while (f.charAt(0) == " ") { f = f.substring(1, f.length) } if (f.indexOf(e) == 0) { return f.substring(e.length, f.length) } } return null } function cmJSFGetCookieExpireDate() { var a = new Date(); a.setTime(a.getTime() + (cm_JSFCoreCookieExpireSeconds * 1000)); return a.toGMTString() } function cmJSFGetUserId() { var a = cI(cm_JSFCoreCookieName); if (a) { a = a.split("&", 2)[0]; if (a == "anonymous" || cmAnonymous()) { a = "1000000000000003" } } if (!a) { a = cmIT() } return a } function cmJSFSetSingleSessionCookie(f, i) { if (!cm_JSFEnabled || cmOptedOut()) { return } var b = cI(cm_JSFCoreCookieName); if (b == null) { b = cmJSFCreateUserId(); if (cm_JSFTrackClients) { b += "&ci=" + i } CB(cm_JSFCoreCookieName, b, cmJSFGetCookieExpireDate(), cm_JSFPCookieDomain); cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor, false, i) } else { if (cm_JSFTrackClients) { function g() { var m = cI(cm_JSFCoreCookieName, "ci"); if (m) { m = unescape(m); m = m.split(",").join("_") } return m } function e(m, n) { return m && n && (n.indexOf(m) >= 0) } var l = g(); if (l && !e(i, l)) { cmSetSubCookie(cm_JSFCoreCookieName, "ci", l + "_" + i, cmJSFGetCookieExpireDate(), cm_JSFPCookieDomain); if (e(i, g())) { cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor, false, i) } } } } var k = cmJSFGetSessionLoginCookieValue(i); if (!k && cmJSFCombineSessionCookies(i)) { k = cmJSFGetSessionLoginCookieValue(i) } var a = new Date().getTime(), d = "" + (a + cm_JSFSessionTimeout * 1000), c = cmJSFIsSessionExpired(cmJSFGetSessionExpireCookieValue(i)); if (f || c || !k) { var h = "" + a; while (h.length < 10) { h = "0" + h } h = h.substring(0, 10); cmJSFSetSessionLoginCookieValue(i, h); cmJSFSetValidFlagSingleValue(((f || c) ? cmValidFlag_SessionReset : cmValidFlag_NewSession), true, i); if (cm_JSFSessionType == "T") { cmJSFSetSessionExpiresCookieValue(i, d) } } if (cm_JSFSessionType == "I") { cmJSFSetSessionExpiresCookieValue(i, d) } } function cmJSFIsSessionExpired(a) { if (a == null) { return false } return (new Date().getTime() > a) } function cmJSFCreateUserId() { function b(f) { var e = Math.random(); if (e == 0) { e = Math.random() } return e.toString().substr(2, f) } var c = b(2) + b(10) + new Date().getTime(), a = c.length, d = 23; if (a < d) { c = c + c.substr(a - (d - a)) } if (a > d) { c = c.substr(0, d) } return c } function cmJSFSetValidFlagValue(d, a, c) { if (!cm_JSFEnabled) { return } var b = c.split(";"); for (var e = 0; e < b.length; e++) { cmJSFSetValidFlagSingleValue(d, a, b[e]) } } function cmJSFSetValidFlagSingleValue(e, a, c) { var b = null; if (a) { var d = cmJSFGetSessionValidFlagCookieValue(c); if (d) { var f = parseInt(d); if (!isNaN(f)) { b = f } } if (b == null) { b = cmValidFlag_SessionContinue } if (e == cmValidFlag_NewSession) { b &= ~cmValidFlag_SessionReset } if (e == cmValidFlag_SessionReset) { b &= ~cmValidFlag_NewSession } b |= e } else { b = e } b |= cmValidFlag_SessionContinue; cmJSFSetSessionValidFlagCookieValue(c, b) } function cmJSFGetClientIdForSession(a) { if (cm_JSFEAMasterIDSessionCookie) { a = a.split("|")[0] } return a } function cmJSFCreateSessionMigrationParamName(a) { return cm_JSFPCookieMigrateSessionID + "_" + cmJSFGetClientIdForSession(a) } function cmJSFCreateCombinedSessionCookieName(a) { return cmJSFGetClientIdForSession(a) + "_clogin" } function cmJSFCombineSessionCookies(b) { var a = cI(b + "_login"); var e = cI(b + "_expires"); var d = cI(b + "_valid"); if (a != null && e != null & d != null) { var c = "l=" + a + "&e=" + e + "&v=" + d; CB(cmJSFCreateCombinedSessionCookieName(b), c, null, cm_JSFPCookieDomain); CC(b + "_login", cm_JSFPCookieDomain); CC(b + "_expires", cm_JSFPCookieDomain); CC(b + "_valid", cm_JSFPCookieDomain); return true } return false } function cmJSFSetSessionLoginCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "l", b, null, cm_JSFPCookieDomain) } function cmJSFSetSessionExpiresCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "e", b, null, cm_JSFPCookieDomain) } function cmJSFSetSessionValidFlagCookieValue(a, b) { cmSetSubCookie(cmJSFCreateCombinedSessionCookieName(a), "v", b, null, cm_JSFPCookieDomain) } function cmJSFGetSessionLoginCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "l") } function cmJSFGetSessionExpireCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "e") } function cmJSFGetSessionValidFlagCookieValue(a) { return cI(cmJSFCreateCombinedSessionCookieName(a), "v") } function cmJSFGetSessionValue(f) { var e = ""; var d = ""; var b = f.split(";"); for (var g = 0; g < b.length; g++) { var a = b[g]; if (a == "") { continue } var c = cmJSFGetSessionLoginCookieValue(a); e += d + (c != null ? c : ""); if (d == "") { d = "|" } } return e } function cmJSFGetValidFlagValue(f) { var e = ""; var d = ""; var b = f.split(";"); for (var g = 0; g < b.length; g++) { var a = b[g]; if (a == "") { continue } var c = cmJSFGetSessionValidFlagCookieValue(a); e += d + (c != null ? c : ""); if (d == "") { d = "|" } } return e } _cm.prototype.addTP = function() { coremetrics.getTechProps(this) }; function cmJSFPMigrateCookies(b, m, n) { if (b && m && cm_JSFEnabled && cm_JSFPCookieMigrate) { var e = cI(cm_JSFCoreCookieName), h, o, l, k; if (!e || cm_JSFPForceMigrateCookies) { CB(cm_JSFCoreCookieName, b + (cm_JSFTrackClients ? "&ci=" + cm_ClientID.split(";").join(",") : ""), cmJSFGetCookieExpireDate(), cm_JSFPCookieDomain); h = (new Date().getTime() + cm_JSFSessionTimeout * 1000).toString(); o = cm_ClientID.split(";"); for (k = 0; k < o.length; ++k) { l = o[k]; if (m[l] !== undefined) { cmJSFSetSessionLoginCookieValue(l, m[l]); cmJSFSetSessionExpiresCookieValue(l, h); cmJSFSetSessionValidFlagCookieValue(l, "1") } } } } if (cm_JSFPCookieMigrate && cm_JSFPMigrationOtherCookies !== null) { var f = cm_JSFPMigrationOtherCookies.split(","), c, g, a, d; for (g = 0; g < f.length; ++g) { c = f[g]; if (n[c] !== undefined) { a = cm_JSFPMigrationOtherCookiesExpireTimes[c]; if (a) { d = new Date(); d.setTime(d.getTime() + parseInt(a)); d = d.toGMTString() } else { d = null } CB(c, n[c], d, cm_JSFPCookieDomain) } } } } function cmJSFPMigrateLink(h, m) { if (cm_JSFPCookieMigrate) { var l = /:\/\/([a-z0-9_\-\.]+)/i.exec(h[m]), g, k, f, d, c, n, a = []; if (l) { l = l[1] } if (l && ((l.indexOf(cm_JSFPCookieDomain) === -1) && (h[m].toLowerCase().indexOf("javascript") !== 0) && ((cm_JSFPMigrationDomainWhitelist !== null && cmTextMatchList(l.toLowerCase(), cm_JSFPMigrationDomainWhitelist.split(","))) || (cm_JSFPMigrationDomainBlacklist !== null && !(cmTextMatchList(l.toLowerCase(), cm_JSFPMigrationDomainBlacklist.split(",")))))) || (cm_JSFPMigrationPathWhitelist !== null && cmTextMatchList(h[m].toLowerCase(), cm_JSFPMigrationPathWhitelist.split(",")))) { function b(e, o) { var i = cmExtractParameter(e, h[m]); if (i === null) { a.push([e, o]) } } if (cm_JSFEnabled) { g = cI(cm_JSFCoreCookieName); if (g) { g = g.split("&", 2)[0] } b(cm_JSFPCookieMigrateVisitorID, g); k = cm_ClientID.split(";"); for (f = 0; f < k.length; ++f) { b(cmJSFCreateSessionMigrationParamName(k[f]), cmJSFGetSessionLoginCookieValue(k[f])) } } if (cm_JSFPMigrationOtherCookies !== null) { c = cm_JSFPMigrationOtherCookies.split(","); for (d = 0; d < c.length; ++d) { n = cI(c[d]); if (n) { b("cm_mc_" + c[d], n) } } } h[m] = cmAppendQueryParameters(h[m], a) } } } function cmTextMatchList(a, c) { for (var b = 0; b < c.length; ++b) { if (a.indexOf(c[b]) > -1) { return true } } return false } _cm.prototype.calculateTopLineAndReturnSegments = function cmCalculateTopLineAndReturnSegments() { var f = [], g = _cmPartnerUtils.getContactCookieValues(), o = new Ctck(), G = "", p = "", H = this, C, y, A, u, v, F, m, h, z = false, c, w, b, x, n, l, t, a, E, d, q, B; if (document.referrer) { G = document.referrer } if (window.location.href) { p = window.location.href } for (C in _cm_CMRules) { if (_cm_CMRules.hasOwnProperty(C)) { z = true; break } } c = typeof(CM_DDX.notifySegmentProcessor) === "function"; if (!z && c) { _cm_CMRules[CM_DDX.cVA] = { cid: CM_DDX.cVA, segmentRules: [], tags: [], segments: [] }; z = true } for (y in _cm_CMRules) { F = _cm_CMRules[y]; if (typeof(F) != "object" || typeof(F.cid) == "undefined") { continue } m = F.cid; if (!H.topline[m]) { H.topline[m] = {} } h = H.topline[m]; h.pgct = g.getPgCt(m); h.osshct = g.getOsshCt(m); h.orders = g.getOrders(m); h.sales = g.getSales(m); h.itcartct = g.getItCartCt(m); h.itpurct = g.getItPurCt(m); h.pvct = g.getPvCt(m); h.evpts = g.getEvPts(m); h.evcomct = g.getEvComCt(m); h.evinict = g.getEvIniCt(m); h.elvct = g.getElvCt(m); w = true; if (g.getFpFlag(m)) { w = false } else { __cm_firstPageFlag = true } h.startTime = g.getStTime(m); if (h.startTime == 0) { h.startTime = ((new Date()).getTime() / 1000) | 0 } h.slen = (((new Date()).getTime() / 1000) | 0) - h.startTime; h.n_r = ""; h.mkchnl = ""; h.mkpgm = ""; h.mkv = ""; h.mkc = ""; h.mkp = ""; h.mki = ""; h.cmguid = ""; h.natscheng = ""; h.natschtm = ""; h.refurl = ""; h.refsite = ""; h.enpg = ""; if (w) { h.mkchnl = (new Crur()).DIRECT_LOAD_CHANNEL; if (H.pn) { h.enpg = H.pn } h.n_r = "NEW"; if (!_cm_isNew) { h.n_r = "REPEAT" } b = _cmPartnerUtils.parseVCPI(p); if (!b) { b = _cmPartnerUtils.parseVCPI(G) } x = _cmPartnerUtils.parseReferralURL(G); if (b && b.length > 0) { h.mkchnl = x.MARKETING_PROGRAMS; h.mkpgm = b[0]; h.mkv = b[1]; h.mkc = b[2]; h.mkp = b[3]; h.mki = b[4]; h.cmguid = b[5] } else { h.mkchnl = x.channel } h.refsite = x.refName; h.natscheng = x.natSearchEngine; h.natschtm = x.natSearchWord; h.refurl = G } if (typeof(__cm_firstPageFlag) != "undefined" && __cm_firstPageFlag && !h.enpg && H.pn) { h.enpg = H.pn } h.tzloc = ""; n = Math.floor(new Date(2009, 0, 15).getTimezoneOffset() / 60); if (n == 8) { h.tzloc = "LOS ANGELES" } else { if (n == 7) { h.tzloc = "DENVER" } else { if (n == 6) { h.tzloc = "CHICAGO" } else { if (n == 5) { h.tzloc = "NEW YORK" } } } } if (H.tid != 1) { if (H.tid == 6 || (H.pc && (H.pc.indexOf("y") == 0 || H.pc.indexOf("Y") == 0))) { h.pgct++; if (H.se && H.se.replace(/^\s*/, "").replace(/\s*$/, "")) { h.osshct++ } } } if (H.tid == "1") { h.pgct++; if (H.se && H.se.replace(/^\s*/, "").replace(/\s*$/, "")) { h.osshct++ } } else { if (H.tid == "3") { h.orders++; if (H.tr && parseFloat(H.tr) != NaN) { h.sales += parseFloat(H.tr) } } else { if (H.tid == "4") { if (H.at && H.at == "5" && H.qt && parseFloat(H.qt) != NaN) { h.itcartct += parseFloat(H.qt) } if (H.at && H.at == "9" && H.qt && parseFloat(H.qt) != NaN) { h.itpurct += parseFloat(H.qt) } } else { if (H.tid == "5") { h.pvct++ } else { if (H.tid == "14") { if (H.cpt && parseFloat(H.cpt) != NaN) { h.evpts += parseFloat(H.cpt) } if (H.cat && H.cat == "2") { h.evcomct++ } if (H.cat && H.cat == "1") { h.evinict++ } } else { if (H.tid == "15") { h.elvct++ } } } } } } o.setPgCt(m, h.pgct); o.setOsshCt(m, h.osshct); o.setOrders(m, h.orders); o.setSales(m, h.sales); o.setItCartCt(m, h.itcartct); o.setItPurCt(m, h.itpurct); o.setPvCt(m, h.pvct); o.setEvPts(m, h.evpts); o.setEvComCt(m, h.evcomct); o.setEvIniCt(m, h.evinict); o.setElvCt(m, h.elvct); o.setFpFlag(m, "1"); o.setStTime(m, h.startTime) } for (y in _cm_CMRules) { F = _cm_CMRules[y]; if (typeof(F) != "object" || typeof(F.cid) == "undefined") { continue } m = F.cid; if (c && CM_DDX.cVA == m) { CM_DDX.notifySegmentProcessor(this, H.topline[m]) } l = g.getSegRulesMet(m); for (A = 0; A < F.segmentRules.length; A++) { t = F.segmentRules[A]; if (l.indexOf(t.id + "_") == 0 || l.indexOf("_" + t.id + "_") != -1) { continue } a = false; try { a = t.fn(this, H.topline[m]) } catch (D) {} if (a) { l += t.id + "_" } } o.setSegRulesMet(m, l); E = g.getSegsMet(m); for (u = 0; u < F.segments.length; u++) { d = F.segments[u]; if (E.indexOf(d.id + "_") == 0 || E.indexOf("_" + d.id + "_") != -1) { continue } q = true; for (v = 0; v < d.rules.length; v++) { B = d.rules[v]; if (!(l.indexOf(B + "_") == 0 || l.indexOf("_" + B + "_") != -1)) { q = false; break } } if (q) { if (!f[m]) { f[m] = "" } f[m] += d.id + "_"; E += d.id + "_" } } o.setSegsMet(m, E) } if (z) { _cmPartnerUtils.setContactCookieValues(o) } return f }; _cmPartnerUtils.calculateAndSendATData = function(c) { var a = c.calculateTopLineAndReturnSegments(); var d = _cmPartnerUtils.cmGetPartnerRequestArray(c, a); for (var b = 0; b < d.length; b++) { c9(d[b]) } }; _cmPartnerUtils.loadScript = function(b) { if (cm_UseDOMScriptLoad) { try { var a = cG6.getElementsByTagName("head").item(0); var d = cG6.createElement("script"); d.setAttribute("language", "javascript"); d.setAttribute("type", "text/javascript"); d.setAttribute("src", b); a.appendChild(d) } catch (c) {} } else { cG6.write('