Instantly share code, notes, and snippets.

Embed
What would you like to do?
This file has been truncated, but you can view the full file.
if (!cGB) {
var cGB = true;
if (!cm_ClientID) {
var cm_ClientID = "99999999";
}
if (!cm_HOST) {
var cm_HOST = "test.coremetrics.com/cm?";
}
if (!cm_ClientTS) {
var dt = new Date();
var cm_ClientTS = dt.getTime();
}
if (!cm_TrackLink) {
var cm_TrackLink = "";
}
if (!cm_DelayHandlerReg) {
var cm_DelayHandlerReg = "FL";
}
if (!cm_SkipHandlerReg) {
var cm_SkipHandlerReg = "";
}
if (!cm_TrackTime) {
var cm_TrackTime = false;
}
if (!cm_TrackImpressions) {
var cm_TrackImpressions = "";
}
if (!cm_SecureTags || cm_SecureTags == null) {
var cm_SecureTags = "|2|3|";
}
if (!cm_FirstPartyDetect) {
var cm_FirstPartyDetect = false;
}
if (!cm_DownloadExtensions) {
var cm_DownloadExtensions = null;
}
if (!cm_UseUTF8) {
var cm_UseUTF8 = false;
}
if (!cm_FormError) {
var cm_FormError = "";
}
if (cm_UseCookie == null) {
var cm_UseCookie = true;
}
if (!cm_TimeoutSecs) {
var cm_TimeoutSecs = 15;
}
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_JSFMigrationEnabled) {
var cm_JSFMigrationEnabled = 0;
}
if (!cm_JSFSessionType) {
var cm_JSFSessionType = "I";
}
if (!cm_JSFSessionTimeout) {
var cm_JSFSessionTimeout = 1800;
}
if (!cm_JSFCoreCookieName) {
var cm_JSFCoreCookieName = "CoreID6";
}
if (!cm_JSFSpecCookieNames) {
var cm_JSFSpecCookieNames = new Array();
}
if (!cmUA) {
var cmUA = new Object();
cmUA.MSIE = 2083;
}
if (!cmDefaultLimit) {
var cmDefaultLimit = 8197;
}
if (cGQ == null) {
var cGQ = true;
}
if (!cGO) {
var cGO = 1024;
}
if (!cGR) {
var cGR = 6e5;
}
if (!encodeURIComponent) {
var encodeURIComponent = null;
}
var cG8;
var cG8Index;
var cG6 = document;
var cGT;
var cG7 = new _cG7();
cG6.cmTagCtl = cG7;
var CI = cmStartTagSet;
var CJ = cmSendTagSet;
var cG1 = 0;
var cG0 = new Array("vn1", "vn2", "st", "pi", "rs", "ec", "rf", "ul");
var cmLastPageID = null;
var cGA = null;
var cmMigrationDisabled = 0;
var cmMigrationFrom1p_CM = 1;
var cmMigrationFrom1p_SA = 2;
var cmValidFlag_SessionContinue = 1;
var cmValidFlag_NewSession = 2;
var cmValidFlag_NewVisitor = 4;
var cmValidFlag_SessionReset = 32;
var cmSACookieName = "sauid";
var cmCore_JSFParamEnabled = "cjen";
var cmCore_JSFParamUserID = "cjuid";
var cmCore_JSFParamSessionID = "cjsid";
var cmCore_JSFParamValidFlag = "cjvf";
var cmCore_JSFParamSpecCookiesCount = "cjscc";
var cmCore_JSFParamSpecCookiesNames = "cjscn";
var cmCore_JSFParamSpecCookiesValues = "cjscv";
var cmSpecCookieNames = "";
var cmSpecCookieValues = "";
var cmSpecCookiesCount = 0;
if (!cG4) {
var cG4 = 5e3;
}
if (!cG5) {
var cG5 = 200;
}
var cG2 = new Object();
var cG3 = new Object();
var cGM = navigator.appVersion;
var cGN = navigator.userAgent;
var cGS = cGN.indexOf("Opera") >= 0;
var cGU = cGN.indexOf("Safari") >= 0;
var cmT2 = -1;
var cmT3 = -1;
var cGC = "";
var cGD = "";
var cGE = "";
var cGF = "";
var cGG = "";
var cGH = "";
var cGI = "";
var cGJ = "";
var cGK = "";
var cGL = "";
var chost = null;
var cci = null;
CI();
for (var cmSpecCookieIndex = 0; cmSpecCookieIndex < cm_JSFSpecCookieNames.length; cmSpecCookieIndex++) {
var currSpecCookieName = cm_JSFSpecCookieNames[cmSpecCookieIndex];
var currSpecCookieValue = cI(cm_JSFSpecCookieNames[cmSpecCookieIndex]);
if (currSpecCookieValue == null) {
continue;
}
if (currSpecCookieValue.length == 0) {
continue;
}
cmSpecCookieNames = cmSpecCookieNames + (cmSpecCookieNames != "" ? "|" : "") + escape(currSpecCookieName);
cmSpecCookieValues = cmSpecCookieValues + (cmSpecCookieValues != "" ? "|" : "") + escape(currSpecCookieValue);
cmSpecCookiesCount++;
}
var dt = new Date();
var cmYearOffset = 0;
if (dt.getFullYear) {
cmYearOffset = dt.getFullYear();
} else {
cmYearOffset = dt.getYear();
if (cmYearOffset < 1900) {
cmYearOffset += 1900;
}
}
dt.setYear(cmYearOffset + 15);
var cmCookieExpDate = dt.toGMTString();
if (cm_UseCookie) {
var pi = cI("cmRS", "pi", "");
if (pi != "") {
cmLastPageID = pi;
}
chost = cm_HOST;
cm_HOST = cI("cmRS", "ho", chost);
cci = cm_ClientID;
cm_ClientID = cI("cmRS", "ci", cci);
var cT3 = cI("cmRS", "t3", "");
if (cT3 != "") {
cGA = cT3;
}
var jsfpdata = cI("cmRS", "cjen", "");
if (jsfpdata != "") {
cm_JSFEnabled = true;
}
var cT1 = cI("cmRS", "t1", "");
if (cT1 != "" && (!cGA || cm_ClientTS - cGA < cGR)) {
cmAddShared("st", cT1);
var ul = cI("cmRS", "ul", "");
var rf = cI("cmRS", "rf", "");
var cT2 = cI("cmRS", "t2", "");
var cT4 = cI("cmRS", "t4", "");
if (cm_TrackTime) {
cN(cT1, cT2, cT3, cT4, true, pi);
}
var hr = cI("cmRS", "hr", "");
if (hr != "") {
var ti = cI("cmRS", "lti", "");
if (cm_ClientTS - ti < cGR) {
var nm = cI("cmRS", "ln", "");
cM(cT1, ti, nm, hr, true, pi, ul, rf);
}
}
var cV6 = cI("cmRS", "ac", "");
var cV7 = cI("cmRS", "fd", "");
if (cV6 != "" || cV7 != "") {
var ti = cI("cmRS", "fti", "");
if (cm_ClientTS - ti < cGR) {
var cV9 = cI("cmRS", "fn", "");
var cV0 = cI("cmRS", "fu", "");
cL(cT1, ti, cV9, cV6, cV0, cV7, true, pi, ul, rf);
}
}
var cError = unescape(cI("cmRS", "uer", ""));
CH(cT1, cT3, cError, true, pi);
}
CC("cmRS");
}
if (!cGS && (cF(4) || CD(5))) {
this.onload = cK(this, "onload", this.onload, "cY(e)", cY);
this.onunload = cK(this, "onunload", this.onunload, "cZ(e)", cZ);
if (cm_DelayHandlerReg.indexOf("L") == -1) {
window.cX("main");
}
if (cm_DelayHandlerReg.indexOf("F") == -1) {
cU();
}
}
CJ(1);
if (cm_OffsiteImpressionsEnabled) {
var cm_Avid = cI("CMAVID");
if (cm_Avid == null) {
document.write("<script src='" + C8(null) + "//" + cm_AvidHost + "' language='javascript1.1' type='text/javascript'></script>");
var cm_AvidLoadTimer = setTimeout("cm_AvidLoadTimedOut=true", 2e3);
}
}
if (chost) {
cm_HOST = chost;
}
if (cci) {
cm_ClientID = cci;
}
}
var cI = cI;
var cE = cE;
function cmStartTagSet() {
if (cG8) {
return;
}
cG8 = new Array();
cG8[0] = new _cm();
cG8Index = 1;
}
function cmAddShared(a, b) {
if (cG8) {
cG8[0][a] = b;
}
}
function cmSendTagSet() {
var b;
var a = cG8;
while ((b = C7(arguments[0])) != null) {
setTimeout(function(c) {
c9(c, a[0].ci);
}, 2e3, b);
}
cG8 = null;
}
function CQ(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 _cG7() {
this.cM0 = new Object();
this.uls = new Object();
this.rfs = new Object();
this.cTI = new Array();
this.cPE = 0;
this.normalizeURL = c2;
this.getPageID = c1;
this.getPluginPageID = cmGetPluginPageID;
}
function cmGetPluginPageID(a) {
splitClientIDs = cm_ClientID.split(";");
finalClientID = a;
for (var b = 0; b < splitClientIDs.length; b++) {
if (splitClientIDs[b] == a) {
finalClientID = cm_ClientID;
break;
}
}
return this.getPageID(finalClientID);
}
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 f = cGT;
if (!f) {
f = cGT = cG7.normalizeURL(window.location.href, false);
}
var c = d.indexOf("#");
if (c >= 0 && c <= f.length) {
var b = f.indexOf("#");
if (b < 0) {
b = f.length;
}
if (d.substring(0, c) == f.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);
}
}
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();
if (a.getTime() - cG2[b] > cG4) {
return true;
}
return false;
}
function CV(h, d, b) {
if (!b) {
b = cm_ClientID;
}
if ((!cG2[h] || c8(h)) && (cm_OffsiteImpressionsEnabled == false || cm_Avid != null || cm_AvidLoadTimedOut)) {
var c = new Image();
var f = cG1;
cG7.cTI[cG1++] = c;
if (!cG2[h]) {
var g = new Date();
cG2[h] = g.getTime();
c.onload = new Function("if(c6)c6('" + h + "'," + f + ");");
} else {
c.onload = new Function("if(C0)C0(" + f + ");");
}
c.onerror = new Function("if(CN)CN(" + f + ");");
if (cm_OffsiteImpressionsEnabled && cm_Avid != null) {
d += "&avid=" + cm_Avid;
}
var a = c4();
if (d.length > a) {
d = d.substring(0, a - 6) + "&err=O";
}
if (cG7.onTagSent) {
cG7.onTagSent(d, f);
}
c.src = d;
c.ci = b;
setTimeout("if(CO)CO(" + f + ");", cm_TimeoutSecs * 1e3);
} else {
setTimeout('if(CV)CV("' + h + '","' + d + '","' + b + '");', cG5);
}
}
function c9(a, c) {
if (cI("CMDisabled")) {
return;
}
for (var d = 0; d < a.hosts.length; d++) {
var b = a.cM5(a.hosts[d]);
cG7.cPE++;
CV(a.hosts[d], b, c);
}
}
function cC() {
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[cG8Index++] = this;
} else {
var a = this.getImgSrc(arguments[0], 1);
c9(a, this.ci);
return a;
}
}
function C4(c, d, b) {
if (!b) {
if (!c.rf) {
if (!document.referrer) {
d.rf = "";
} else {
d.rf = document.referrer;
}
} else {
if (c != d) {
d.rf = c.rf;
}
}
if (!c.ul || c.ul == "" || c.ul == "(none)") {
d.ul = window.location.href;
} else {
if (c != d) {
d.ul = c.ul;
}
}
var a = cG7.normalizeURL(d.ul, false);
if (a != "") {
d.ul = a;
}
}
}
function C5(b, a) {
if (cm_FirstPartyDetect && !a) {
if (cI("cmRS") || cI("TestSess")) {
b.ts = "Y";
} else {
CB("TestSess", "Y");
b.ts = cI("TestSess");
}
b.tp = cI("TestPerm");
if (b.tp != "Y") {
dt.setHours(dt.getHours() + 5);
CB("TestPerm", "Y", dt.toGMTString());
b.tp = cI("TestPerm");
}
}
}
function C6(b, h, g) {
var a = "";
if (b.tid) {
a += "tid=" + b.tid;
}
var d = b.tid == 1 || b.pc && b.pc.charAt(0) == "Y";
if (!b.lp && d) {
b.lp = cmLastPageID;
}
for (var f in b) {
if (!b[f] || b[f] == "" || b[f].constructor == Function || f == "qs" || f == "tid") {
continue;
}
if (h && h[f] == b[f]) {
continue;
}
if (a != "") {
a += "&";
}
a += cD(f) + "=" + cE(cD(b[f]));
}
if (!b.rs && b.ci) {
if (b.pi && d) {
cG7.cM0[b.ci] = b.pi;
}
if (b.ul) {
cG7.uls[b.ci] = b.ul;
}
if (b.rf) {
cG7.rfs[b.ci] = b.rf;
}
}
if (h && cm_SecureTags.indexOf("|" + b.tid + "|") != -1) {
h.protocol = "https:";
}
if (cm_JSFEnabled && !g) {
cmJSFSetSessionCookies(false, b.ci);
a += (a != "" ? "&" : "") + cmCore_JSFParamEnabled + "=1";
var c = cI(cm_JSFCoreCookieName);
a += "&" + cmCore_JSFParamUserID + "=" + (c != null ? c : "");
a += "&" + cmCore_JSFParamSessionID + "=" + cmJSFGetSessionValue(b.ci);
if (cmSpecCookiesCount > 0) {
a += "&" + cmCore_JSFParamSpecCookiesCount + "=" + cmSpecCookiesCount;
a += "&" + cmCore_JSFParamSpecCookiesNames + "=" + cmSpecCookieNames;
a += "&" + cmCore_JSFParamSpecCookiesValues + "=" + cmSpecCookieValues;
}
a += "&" + cmCore_JSFParamValidFlag + "=" + cmJSFGetValidFlagValue(b.ci);
}
return a;
}
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]);
C5(this, c[0]);
var f = new Object();
var b = C6(this, f);
var d = new CQ(C8(f), cm_HOST, b);
return c[1] ? d : d.cM5();
}
function C7() {
var g, n, b, r, f, c, o, d, k, q;
if (!cG8 || cG8.length < 2) {
return null;
}
g = cG8[0];
n = cG8[1];
g.ci = n.ci;
for (k = 2; k < cG8.length; k++) {
if (g.ci.indexOf(cG8[k].ci) == -1) {
g.ci += ";" + cG8[k].ci;
}
}
for (k = 0; k < cG0.length; k++) {
b = cG0[k];
if (!g[b]) {
g[b] = n[b];
}
}
r = arguments;
C4(n, g, r[0]);
C5(g, r[0]);
f = C8(g);
img = new CQ(f, cm_HOST);
img.qs = C6(g);
c = c4();
o = 0;
for (var m = 0; m < img.hosts.length; m++) {
d = f.length + img.hosts[m].length + img.qs.length;
if (d > o) {
o = d;
}
}
for (k = 1; k < cG8.length; k++) {
q = C6(cG8[k], g, 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;
img.qs += "&" + q;
}
if (k == cG8.length) {
cG8 = null;
}
return img;
}
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.2.7";
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;
}
}
function cD(a) {
var b = "";
a = b + (!a ? "" : 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, d) {
var c = cG6.cookie;
var f = cJ(b, c, ";");
if (!a || !f) {
if (!f && d != null) {
return d;
}
return f;
}
f = cJ(a, f, "&");
if (!f && d != null) {
return d;
}
return unescape(f);
}
function CL() {
var f, a, b, d, g = 0;
a = cG6.cookie;
if (a) {
f = a.split(";");
g = f.length;
for (d = 0; d < f.length; d++) {
b = f[d].split("=");
if (b.length < 2 || b[1] == null || b[1] == "") {
g--;
}
}
}
return g;
}
function CB(b, k, d, h) {
var g, a, f, c = cG6.cookie;
g = null;
a = k.length + 1;
if (!cI(b)) {
a += b.length;
}
if (a > 4096) {
g = 1;
} else {
if (c) {
if (CL() >= 50) {
g = 2;
}
}
}
if (g) {
if (cG7.onError) {
cG7.onError(g, name);
}
return false;
}
f = b + "=" + k + ";path=/";
if (h) {
f += ";domain=" + h;
}
if (d) {
f += ";expires=" + d;
}
cG6.cookie = f;
return true;
}
function cmSetSubCookie(o, m, l, b, g) {
var f = cI(o);
var k;
if (!f) {
k = m + "=" + l;
} else {
var n = "&";
var h = m + "=";
var c = f.indexOf(h);
if (c >= 0) {
if (c > 0 && f.charAt(c - 1) != n) {
c = f.indexOf(n + h);
if (c >= 0) {
c++;
}
}
}
if (c >= 0) {
var a = c + m.length + 1;
var d = f.indexOf(n, a);
if (d < 0) {
d = f.length;
}
k = f.substring(0, a) + l + f.substring(d);
} else {
k = f + n + m + "=" + l;
}
}
CB(o, k, b, g);
}
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, k, c) {
var h, f, d, b, g = null;
h = a + "=";
f = c + " ";
d = k.indexOf(f + h);
if (d == -1) {
f = c;
d = k.indexOf(f + h);
}
if (d == -1) {
d = k.indexOf(h);
if (d != 0) {
return null;
}
} else {
d += f.length;
}
b = k.indexOf(f, d);
if (b == -1) {
b = k.length;
}
return k.substring(d + h.length, b);
}
function cK(a, b, k, h, g) {
if (k) {
var c = k.toString();
if (c.indexOf(h) == -1) {
if (cGU && c.indexOf("function (") == 0) {
if (b == "onload") {
h = c.substring(c.indexOf("{"), c.length) + ";" + h + ";";
} else {
h = h + ";" + c.substring(c.indexOf("{"), c.length);
}
} else {
a["_c_" + b] = k;
if (b == "onload") {
h = "if(!e)var e=null;var ret=this._c_" + b + "(" + (cF(5) ? "" : "e") + ");" + h + ";return ret;";
} else {
h = "if(!e)var e=null;" + h + ";return this._c_" + b + "(" + (cF(5) ? "" : "e") + ");";
}
}
if (b == "onsubmit") {
a.cmFunction1 = cP;
a.cmFunction2 = a.onsubmit;
return cmAlternateOnSubmit;
} else {
var d = new Function("e", h);
return d;
}
} else {
return k;
}
} else {
if (b == "onsubmit") {
a.cmFunction1 = cP;
return cmAlternateOnSubmit;
} else {
return g;
}
}
}
function cmAlternateOnSubmit(a) {
a = CG(a);
if (!a) {
if (document.cmPostbackForm) {
a = document.cmPostbackForm;
} else {
if (this.cmFunction1) {
a = this;
} else {
return true;
}
}
} else {
if (a) {
if (a.form) {
a = a.form;
}
} else {
return true;
}
}
if (a.cM1 >= 0) {
CI();
cO(a ? a.cM1 : -1, "S");
CA(1);
CJ(1);
CE();
}
if (a.cmFunction2) {
return a.cmFunction2();
} else {
return true;
}
}
function CG(a) {
var a;
if (cF(4)) {
if (window.event) {
a = window.event.srcElement;
}
} else {
if (a) {
if (CD(5)) {
a = a.currentTarget;
} else {
a = a.target;
}
}
}
return a;
}
function CU(a, b, h, c, g) {
var f, d;
a.pi = h ? h : c1(b);
if (cGQ) {
if (c || g) {
a.ul = c ? c : "";
a.rf = g ? g : "";
} else {
f = CS(b);
d = CT(b);
if (a.pi == "" || f.indexOf("cm_") > 0 || d != "" && d.indexOf(window.location.protocol + "//" + window.location.host) != 0) {
a.ul = f;
a.rf = d;
}
}
}
}
function cL(g, d, c, h, a, k, n, f, m, b) {
var l = new _cm("tid", "10");
CU(l, l.ci, f, m, b);
l.st = g;
l.ti = d;
l.fo = c;
l.ac = h;
l.hr = a;
l.fi = k;
if (n) {
l.rs = "Y";
}
l.write(1);
}
function cM(h, a, b, c, o, g, n, f) {
var m = new _cm("tid", "8");
CU(m, m.ci, g, n, f);
m.st = h;
m.ti = a;
m.nm = b;
m.hr = c;
var k = c.indexOf("cm_cr=");
var d = c.indexOf("cm_me=");
if (k > -1) {
var l = c.indexOf("&", k);
if (l == -1) {
m.cm_cr = c.substring(k + 6);
} else {
m.cm_cr = c.substring(k + 6, l);
}
}
if (d > -1) {
var l = c.indexOf("&", d);
if (l == -1) {
m.cm_me = c.substring(d + 6);
} else {
m.cm_me = c.substring(d + 6, l);
}
}
if (o) {
m.rs = "Y";
}
m.write(1);
}
function cN(g, f, b, d, c, h) {
var a = new _cm("tid", "11");
a.pi = h ? h : c1(a.ci);
a.st = g;
a.lc = f;
a.lx = d;
a.cx = b;
if (c) {
a.rs = "Y";
}
a.write(1);
}
function CM(d) {
var g, b, c, f;
if ((g = d.indexOf("?")) == -1) {
g = d.lastIndexOf("/");
}
if (g != -1) {
b = d.indexOf("#", g);
if (b == -1) {
b = d.length;
}
while (g != -1 && g < b) {
g = d.indexOf("cm_", g);
if (g != -1) {
c = d.indexOf("&", g);
if (c == -1) {
c = b;
}
f = d.indexOf("=", g);
if (f != -1 && f < c) {
this[d.substring(g, f)] = d.substring(f + 1, c);
}
g = c;
}
}
}
}
function CK(b, g, f, a, d) {
var m, l, c, n, h, k;
if ((g || f) && b) {
m = new _cm("tid", "9");
l = new CM(CP(b));
if (g) {
c = m.cm_sp_o = l.cm_sp_o;
if (!c) {
c = m.cm_sp = l.cm_sp;
}
}
if (f) {
n = m.cm_re_o = l.cm_re_o;
if (!n) {
n = m.cm_re = l.cm_re;
}
}
if (a) {
if (b.indexOf("#") == -1) {
h = m.cm_cr = l.cm_cr;
}
}
if (d) {
k = m.cm_me = l.cm_me;
}
if (c || n || h || k) {
m.pi = c1(m.ci);
m.st = cm_ClientTS;
m.write(1);
}
}
}
function CH(d, c, g, b, f) {
if (g != cGL) {
var a = new _cm("tid", "12");
a.pi = f ? f : c1(a.ci);
a.st = d;
a.ti = c;
if (b) {
a.rs = "Y";
}
a.er = g;
a.write(1);
cGL = cm_FormError;
}
}
function cO(c, f) {
var d, a = "";
f = c + ":" + f;
if (c != -1) {
var b = cG6.forms[c];
if (cF(5)) {
a = b.attributes.action.nodeValue;
} else {
if (b.attributes.getNamedItem) {
a = b.attributes.getNamedItem("action");
if (a) {
a = a.value;
}
} else {
a = b.action;
}
}
if (!a) {
a = "";
}
}
if (cV(a)) {
d = new Date();
cGH = d.getTime();
cGF = f;
cGE = cG7.normalizeURL(a, true);
cL(cm_ClientTS, cGH, cGD, cGF, cGE, cGC, false);
cGG = cGC;
cGC = "";
} else {
cGF = "";
}
}
function cP(a) {
CI();
var a = CG(a);
cO(a ? a.cM1 : -1, "S");
CA(1);
CJ(1);
CE();
}
function cQ(a) {
var a = CG(a);
if (a) {
cO(a.cM1, "R");
}
}
function cR(a) {
var a = CG(a);
if (a) {
a.cM3 = "xyzzy";
}
}
function cS(a) {
var a = CG(a);
if (a) {
a.cM3 = a.value;
}
}
function cT(c) {
var c = CG(c);
if (c && c.type != "submit" && c.type != "reset") {
if (c.value != c.cM3) {
var b = c.name;
if (!b) {
b = c.id;
}
var a = cGC + c.cM1 + ":" + c.cM2 + ":" + b.split(":").join("|").split(";").join("|") + ";";
if (a.length < 1e3) {
cGC = a;
}
}
}
}
function CF(a) {
var a = CG(a);
if (a) {
cGC = cGC + a.cM1 + ":" + a.cM2 + ":" + a.name + ";";
}
}
function cU() {
if (cm_SkipHandlerReg.indexOf("F") == -1) {
var c, d, b, a, f;
for (c = 0; c < cG6.forms.length; c++) {
d = cG6.forms[c];
if (d.cM1 == null) {
d.cM1 = c;
if (cF(5)) {
if (d.attributes.name) {
b = d.attributes.name.nodeValue;
} else {
if (d.attributes.id) {
b = d.attributes.id.nodeValue;
} else {
b = "UNDEFINED";
}
}
} else {
if (d.attributes.getNamedItem) {
b = d.attributes.getNamedItem("name");
if (b) {
b = b.value;
}
} else {
b = d.name;
}
}
if (!b) {
b = "";
}
cGD = cGD + b + ":" + c + ";";
d.onsubmit = cK(d, "onsubmit", d.onsubmit, "cP(e)", cP);
d.onreset = cK(d, "onreset", d.onreset, "cQ(e)", cQ);
for (a = 0; a < d.elements.length; a++) {
f = d.elements[a];
f.cM1 = c;
f.cM2 = a;
f.cM3 = "";
f.onfocus = cK(f, "onfocus", f.onfocus, "cS(e)", cS);
f.onblur = cK(f, "onblur", f.onblur, "cT(e)", cT);
f.onchange = cK(f, "onchange", f.onchange, "cR(e)", cR);
if (f.type == "submit" || f.type == "button") {
f.onclick = cK(f, "onclick", f.onclick, "CF(e)", CF);
}
}
}
}
}
}
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(a) {
CI();
var a = CG(a);
if (a) {
C9(a);
}
CA(1);
CJ(1);
CE();
}
function C9(f) {
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 : "";
}
} else {
while (b != "A" && b != "HTML") {
if (!f.parentElement) {
f = f.parentNode;
} else {
f = f.parentElement;
}
if (f) {
b = f.tagName.toUpperCase();
}
}
if (b == "A") {
cGJ = f.href ? f.href : "";
cGI = f.name ? f.name : "";
}
}
var g = f.getAttribute("manual_cm_re");
if (g) {
cGJ = cGJ + (cGJ.indexOf("?") > -1 ? "&" : "?") + "cm_re=" + g;
}
var a = f.getAttribute("manual_cm_sp");
if (a) {
cGJ = cGJ + (cGJ.indexOf("?") > -1 ? "&" : "?") + "cm_sp=" + a;
}
cGJ = cG7.normalizeURL(cGJ, true);
if (cV(cGJ) == true) {
var c = new Date();
cGK = c.getTime();
cM(cm_ClientTS, cGK, cGI, cGJ, false);
} else {
cGJ = "";
}
}
function cX(l) {
CI();
var f, g, a, h, d, b, c;
a = cm_TrackImpressions;
h = a.indexOf("S") != -1;
d = a.indexOf("R") != -1;
b = a.indexOf("C") != -1;
c = a.indexOf("C") != -1;
for (f = 0; f < cG6.links.length; f++) {
g = cG6.links[f];
if (cm_SkipHandlerReg.indexOf("L") == -1) {
if (!CD(5)) {
g.onclick = cK(g, "onclick", g.onclick, "cW(e)", cW);
} else {
if (!g.cM4) {
g.addEventListener("click", cW, false);
g.cM4 = 1;
}
}
}
if (l == "onload") {
var k = g.href;
if (g.getAttribute("manual_cm_re")) {
if (g.href.indexOf("?") > -1) {
k = k + "&cm_re=" + g.getAttribute("manual_cm_re");
} else {
k = k + "?cm_re=" + g.getAttribute("manual_cm_re");
}
}
if (g.getAttribute("manual_cm_sp")) {
if (g.href.indexOf("?") > -1) {
k = k + "&cm_sp=" + g.getAttribute("manual_cm_sp");
} else {
k = k + "?cm_sp=" + g.getAttribute("manual_cm_sp");
}
}
if (!g.cmImpressionSent) {
CK(k, h, d, b, c);
g.cmImpressionSent = 1;
}
}
}
CJ(1);
}
function cY(b) {
var a = new Date();
cmT2 = a.getTime();
CH(cm_ClientTS, cmT2, cm_FormError, false);
if (!cGS && (cF(4) || CD(5))) {
window.cX("onload");
cU();
}
cGB = null;
}
function cZ(g) {
cG3 = null;
CI();
var a = false;
if (cGC != "") {
cO(-1, "U");
a = true;
}
CA(0);
CH(cm_ClientTS, cmT3, cm_FormError, false);
CJ(1);
if (a) {
dontExit = true;
var d = new Date();
var c = new Date();
for (;dontExit && c - d < 1e3; ) {
c = new Date();
}
}
CE();
if (cm_UseCookie && cG7.cPE == 0) {
var f = escape(c1(cm_ClientID));
CB("cmRS", "t3=" + cmT3 + "&pi=" + f);
}
if (cG7.onUnload) {
cG7.onUnload();
}
if (cF(5) && !cF(5.5) && window.parent != window) {
cG7.cTI = null;
} else {
if (!cGU) {
for (var b = 0; b < cG7.cTI.length; b++) {
cG7.cTI[b].onload = null;
cG7.cTI[b].onerror = null;
}
}
}
}
function CA(c) {
var b = new Date();
var a = b.getTime();
if (cm_TrackTime && (cmT3 == -1 || c == 1 || a - cmT3 > 1e4)) {
cN(cm_ClientTS, cmT2, a, cGA, false);
}
cmT3 = a;
}
function CE() {
if (cm_UseCookie) {
var b, a, g, d, c = "";
b = cGA ? "&t4=" + cGA : "";
a = cGJ != "" ? "&lti=" + cGK + "&ln=" + escape(cGI) + "&hr=" + escape(cGJ) : "";
g = new Object();
CU(g, cm_ClientID);
var f = "";
if (cm_JSFEnabled) {
f = "&cjen=1";
}
d = "&t1=" + cm_ClientTS + "&t2=" + cmT2 + "&t3=" + cmT3 + b + a + "&fti=" + cGH + "&fn=" + escape(cGD) + "&ac=" + cGF + "&fd=" + escape(cGG) + "&uer=" + escape(cm_FormError) + "&fu=" + escape(cGE) + "&pi=" + escape(g.pi) + "&ho=" + escape(cm_HOST) + "&ci=" + escape(cm_ClientID);
if (g.ul && g.rf && g.ul.length + g.rf.length < cGO) {
c = "&ul=" + escape(g.ul) + "&rf=" + escape(g.rf);
}
if (!CB("cmRS", d + c + f)) {
if (!CB("cmRS", d + f)) {
CB("cmRS", "t3=" + cmT3 + "&pi=" + escape(g.pi) + f);
}
}
}
}
function cmSetAvid(a) {
clearTimeout(cm_AvidLoadTimer);
if (a) {
cm_Avid = a;
} else {
cm_Avid = "";
}
CB("CMAVID", cm_Avid);
cm_AvidLoadTimedOut = false;
}
function cmJSFConvertSAtoCM(f) {
var b = f.length;
var d = 22;
var c = 23;
if (b < 19) {
return null;
}
if (f.charAt(0) != "U" && f.charAt(0) != "u") {
return null;
}
if (b < d) {
f = f + f.substring(b - (d - b), b);
}
var a = "99";
a = a + f.substring(1, c - 1);
return a;
}
function cmJSFSetSessionCookies(c, b) {
if (!cm_JSFEnabled) {
return;
}
var a = b.split(";");
for (var d = 0; d < a.length; d++) {
cmJSFSetSingleSessionCookie(c, a[d]);
}
}
function debugReadCookie(b) {
var f = b + "=";
var a = document.cookie.split(";");
for (var d = 0; d < a.length; d++) {
var g = a[d];
while (g.charAt(0) == " ") {
g = g.substring(1, g.length);
}
if (g.indexOf(f) == 0) {
return g.substring(f.length, g.length);
}
}
return null;
}
function cmJSFSetSingleSessionCookie(g, k, c) {
if (!cm_JSFEnabled) {
return;
}
if (cI(cm_JSFCoreCookieName) == null) {
if (!cmJSFDoMigrateCookies()) {
CB(cm_JSFCoreCookieName, cmJSFCreateUserId(), cmCookieExpDate, cm_JSFPCookieDomain);
}
if (!c) {
cmJSFSetSingleSessionCookie(true, k, true);
}
cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, false, k);
cmJSFSetValidFlagSingleValue(cmValidFlag_NewVisitor, true, k);
return;
}
var l = cmJSFGetSessionLoginCookieValue(k) != null;
if (!l) {
if (cmJSFCombineSessionCookies(k)) {
l = cmJSFGetSessionLoginCookieValue(k) != null;
}
}
if (!l && !g) {
if (!c) {
cmJSFSetSingleSessionCookie(true, k, true);
}
cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, true, k);
return;
}
var a = new Date();
var b = a.getTime();
var f = b + cm_JSFSessionTimeout * 1e3;
var d = cmJSFIsSessionExpired(cmJSFGetSessionExpireCookieValue(k));
if (g != null && g == true || d) {
var h = b.toString();
if (h.length < 10) {
while (h.length < 10) {
h = "0" + h;
}
} else {
h = h.substring(0, 10);
}
cmJSFSetSessionLoginCookieValue(k, h);
if (d) {
cmJSFSetValidFlagSingleValue(cmValidFlag_SessionReset, true, k);
} else {
cmJSFSetValidFlagSingleValue(cmValidFlag_NewSession, true, k);
}
if (cm_JSFSessionType == "T") {
cmJSFSetSessionExpiresCookieValue(k, f.toString());
}
}
if (cm_JSFSessionType == "I") {
cmJSFSetSessionExpiresCookieValue(k, f.toString());
}
}
function cmJSFIsSessionExpired(b) {
if (b == null) {
return false;
}
var a = new Date();
if (a.getTime() > b) {
return true;
} else {
return false;
}
}
function cmJSFCreateUserId() {
var g = new Date();
var d = Math.random();
if (d == 0) {
d = Math.random();
}
var b = Math.random();
if (b == 0) {
b = Math.random();
}
var c = d.toString().substring(2, 4) + b.toString().substring(2, 12) + g.getTime().toString();
var a = c.length;
var f = 23;
if (a < f) {
c = c + c.substring(a - (f - a), a);
}
if (a > f) {
c = c.substring(0, f);
}
return c;
}
function cmJSFSetValidFlagValue(d, a, c) {
if (!cm_JSFEnabled) {
return;
}
var b = c.split(";");
for (var f = 0; f < b.length; f++) {
cmJSFSetValidFlagSingleValue(d, a, b[f]);
}
}
function cmJSFSetValidFlagSingleValue(f, a, c) {
var b = null;
var d = cmJSFGetSessionValidFlagCookieValue(c);
if (d) {
var g = parseInt(d);
if (!isNaN(g)) {
b = g;
}
}
if (b == null) {
b = cmValidFlag_SessionContinue;
}
if (a) {
if (f == cmValidFlag_NewSession) {
b &= ~cmValidFlag_SessionReset;
}
if (f == cmValidFlag_SessionReset) {
b &= ~cmValidFlag_NewSession;
}
b |= f;
} else {
b = f;
}
b |= cmValidFlag_SessionContinue;
cmJSFSetSessionValidFlagCookieValue(c, b);
}
function cmJSFCreateCombinedSessionCookieName(a) {
return a + "_clogin";
}
function cmJSFCombineSessionCookies(b) {
var a = cI(b + "_login");
var f = cI(b + "_expires");
var d = cI(b + "_valid");
if (a != null && f != null & d != null) {
var c = "l=" + a + "&e=" + f + "&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(c) {
var g = "";
var f = "";
var b = c.split(";");
for (var h = 0; h < b.length; h++) {
var a = b[h];
if (a == "") {
continue;
}
var d = cmJSFGetSessionLoginCookieValue(a);
g += f + (d != null ? d : "");
if (f == "") {
f = "|";
}
}
return g;
}
function cmJSFGetValidFlagValue(c) {
var g = "";
var f = "";
var b = c.split(";");
for (var h = 0; h < b.length; h++) {
var a = b[h];
if (a == "") {
continue;
}
var d = cmJSFGetSessionValidFlagCookieValue(a);
g += f + (d != null ? d : "");
if (f == "") {
f = "|";
}
}
return g;
}
function cmJSFDoMigrateCookies() {
if (cm_JSFMigrationEnabled == cmMigrationFrom1p_SA) {
if (cI(cm_JSFCoreCookieName) == null) {
var a = cI(cmSACookieName);
if (a) {
a = cmJSFConvertSAtoCM(a);
if (a != null) {
CB(cm_JSFCoreCookieName, a, cmCookieExpDate, cm_JSFPCookieDomain);
return true;
}
}
}
}
return false;
}
_cm.prototype.addTP = function() {
var b = new cmTP(new cmApp());
for (var a in b) {
if (b[a] == null || b[a] == "" || b[a].toString().indexOf("function ") == 0) {
continue;
}
this[a] = cE(cD(b[a]));
}
return this;
};
function cmApp() {
var f = navigator, a = f.appName, d = this;
if (a == "Netscape") {
d.b = "ns";
} else {
if (a == "Microsoft Internet Explorer") {
d.b = "ie";
} else {
d.b = a;
}
}
d.v = parseInt(f.appVersion);
}
function cmTP(c) {
var n = navigator, w = window.screen;
this.jv = cmJv;
if (c.b == "ns" && c.v >= 3) {
for (var i = 0; i < n.plugins.length; i++) {
eval("this.np" + i + "=n.plugins[" + i + "].name");
}
}
if (c.v > 3) {
if (c.v >= 4 && (c.b == "ns" || c.b == "ie")) {
this.je = n.javaEnabled() == true ? "y" : "n";
}
if (c.b == "ie") {
this.ce = n.cookieEnabled;
this.cp = n.cpuClass;
}
this.sw = w.width;
this.sh = w.height;
this.pd = w.colorDepth;
if (this.pd == 0) {
this.pd = w.pixelDepth;
}
var fs = w.fontSmoothingEnabled;
if (fs) {
this.fs = fs ? "y" : "n";
}
}
var tz = new Date();
if (tz.getTimezoneOffset() == 0) {
this.tz = "0";
} else {
this.tz = tz.getTimezoneOffset() / 60;
}
}
var cm_exAttr = [];
var cm_ClientID = "60392154";
var low_ids = [ [ "60392154", [ "dtq8m.lowes.com", "ppm.lowes.com", "lxvbv2app.lowes.com", "sit3m.lowes.com" ] ], [ "90392154", [ "m.lowes.com", "deploy.m.lowes.com", "origin-m.lowes.com" ] ] ];
var low_droid_ids = [ [ "60386293", [ "dtq8m.lowes.com", "ppm.lowes.com", "lxvbv2app.lowes.com", "sit3m.lowes.com" ] ], [ "90386293", [ "m.lowes.com", "deploy.m.lowes.com", "origin-m.lowes.com" ] ] ];
var low_iphone_ids = [ [ "60382523", [ "dtq8m.lowes.com", "ppm.lowes.com", "lxvbv2app.lowes.com", "sit3m.lowes.com" ] ], [ "90382523", [ "m.lowes.com", "deploy.m.lowes.com", "origin-m.lowes.com" ] ] ];
function getCookie(b) {
var f = b + "=";
var a = document.cookie.split(";");
for (var d = 0; d < a.length; d++) {
var g = a[d];
while (g.charAt(0) == " ") {
g = g.substring(1, g.length);
}
if (g.indexOf(f) == 0) {
return g.substring(f.length, g.length);
}
}
return null;
}
function getUrlParamsCM() {
var a = {};
var c = (window.location.search.split("?")[1] || "").split("&");
for (var b in c) {
if (c.hasOwnProperty(b)) {
paramParts = c[b].split("=");
a[paramParts[0]] = decodeURIComponent(paramParts[1] || "");
}
}
return a;
}
for (var i = 0; i < low_ids.length; i++) {
var cm_temp_id = low_ids[i][0], cm_url_arr = low_ids[i][1];
for (var j = 0; j < cm_url_arr.length; j++) {
if (window.location.hostname == cm_url_arr[j]) {
cm_ClientID = cm_temp_id;
break;
}
}
}
function setAppsCoremetricId(f) {
if (!f) {
return;
}
for (var d = 0; d < f.length; d++) {
var c = f[d][0], b = f[d][1];
for (var a = 0; a < b.length; a++) {
if (window.location.hostname == b[a]) {
cm_ClientID = c;
break;
}
}
}
}
fromApps = getCookie("fromApps");
cm_queryParams = getUrlParamsCM();
if (fromApps === "Y") {
cm_ClientID_apps_id = getCookie("cm_ClientID_apps");
if (cm_ClientID_apps_id) {
cm_ClientID = cm_ClientID_apps_id;
} else {
iPhoneLegacy = getCookie("iPhoneLegacy");
if (iPhoneLegacy) {
setAppsCoremetricId(low_iphone_ids);
} else {
setAppsCoremetricId(low_droid_ids);
}
}
} else {
if (cm_queryParams.fromApps === "Y") {
if (cm_queryParams.coremetric_id && cm_queryParams.coremetric_id !== "") {
cm_ClientID = cm_queryParams.coremetric_id;
} else {
if (cm_queryParams.un_jtt_application_platform === "iphone") {
setAppsCoremetricId(low_iphone_ids);
} else {
setAppsCoremetricId(low_droid_ids);
}
}
}
}
cG7.cM0[cm_ClientID] = "";
var cm_TrackLink = "A";
var cm_TrackImpressions = "";
var cm_JSFEnabled = false;
var cmJv = "1.0";
if (typeof isNaN == "function") {
cmJv = "1.1";
}
if (typeof isFinite == "function") {
cmJv = "1.2";
}
if (typeof NaN == "number") {
cmJv = "1.3";
}
if (typeof decodeURI == "function") {
cmJv = "1.5";
}
if (typeof Array.forEach == "function") {
cmJv = "1.6";
}
if (typeof Iterator == "object") {
cmJv = "1.7";
}
var cmCheckCMEMFlag = true;
var cmSendOSLinkClickTag = true;
if (typeof IORequest == "function") {
IORequest.client_id = cm_ClientID;
IORequest.encrypt_cats = true;
IORequest.encrypt_prds = true;
IORequest.conflict_resolution = true;
IORequest.max_prd_length = 25;
IORequest.max_cat_length = 25;
IORequest.timeout = [ 8e3, 4e3 ];
IORequest.use_site_category = false;
if (IORequest.ie_version() !== null && IORequest.ie_version() < 7) {
IORequest.a_max_elements = [ 3, 3, 5, 3, 3, 3, 3 ];
} else {
IORequest.a_max_elements = [ 3, 3, 5, 3, 3, 7, 7 ];
}
IORequest.required_attributes = [ 0, 0, 0, 0, 0 ];
IORequest.access_method = "json remote";
IORequest.default_product_file = undefined;
}
function cmSetProduction() {
if (cm_ClientID.toString()[0] == "9") {
cm_HOST = "www7.lowes.com/eluminate?";
} else {
cm_HOST = "testdata.coremetrics.com/eluminate?";
}
}
function cmCreateConversionEventTag(c, b, f, d, a) {
if (a) {
var g = new Array();
g = a.split("-_-");
}
cmMakeTag([ "tid", "14", "cid", c, "cat", b, "ccid", f, "cpt", d, "cm_exAttr", g ]);
}
function cmCreatePageviewTag(f, b, d, a, h, c) {
if (c) {
var g = new Array();
g = c.split("-_-");
}
cmMakeTag([ "tid", "1", "pi", f, "cg", b, "se", d, "sr", a, "pc", "Y", "pv11", h, "cm_exAttr", g ]);
}
function cmCreateDefaultPageviewTag(a) {
cmCreatePageviewTag(cmGetDefaultPageID(), a);
}
function cmCreateProductviewTag(g, p, b, q, m, d, n, h, k, l, o) {
if (n) {
if (n != "0") {
q = n;
}
}
if (d == null || d == "") {
d = "Y";
}
if (g == null || g == "" || d == "N") {
g = cmPageviewData.pageName;
}
if (h) {
var c = new Array(), a;
c = h.split("-_-");
try {
a = document.location.href.split("pd_")[1];
a = a.split("?")[0];
a = a.split("_");
if (a[1] !== "" && a[2] !== "") {
c.splice(15, 0, a[1], a[2]);
}
} catch (f) {}
}
if (k == null) {
k = cmExtractParameter("cm_vc", document.location.href);
}
cmMakeTag([ "tid", "5", "pi", g, "pr", p, "pm", b, "cg", q, "pc", d, "pv11", m, "cm_vc", k, "se", l, "sr", o, "cm_exAttr", c ]);
}
var __sArray = new Array();
var __skuString = "";
var __ex = new Array();
function __cmGetPI(b) {
var a;
for (a = 0; a < __sArray.length; ++a) {
if (b == __sArray[a][1]) {
return a;
}
}
return -1;
}
function __cmGetPIPC(f, a) {
var b, c;
var g = new Array();
var d = new Array();
for (c = 0; c < __ex.length; ++c) {
g = g + __ex[c];
}
for (b = 0; b < __sArray.length; ++b) {
if (__ex.length > 0) {
d = new Array();
for (c = __sArray[b].length - __ex.length * 2 + 1; c < __sArray[b].length; c = c + 2) {
d = d + __sArray[b][c];
}
if (f == __sArray[b][1] && a == __sArray[b][9] && g == d) {
return b;
}
} else {
if (f == __sArray[b][1] && a == __sArray[b][9]) {
return b;
}
}
}
return -1;
}
function cmAddShop(f) {
var a = __cmGetPIPC(f[1], f[9]);
if (a == -1) {
if (__ex.length > 0) {
for (var d = 0; d < __ex.length; ++d) {
f[f.length] = "s_a" + (d + 1);
f[f.length] = __ex[d];
}
}
__sArray[__sArray.length] = f;
} else {
var b = __sArray[a][5];
var c = __sArray[a][7];
__sArray[a][5] = parseInt(__sArray[a][5]) + parseInt(f[5]);
__sArray[a][7] = (f[7] * f[5] + c * b) / __sArray[a][5];
}
}
function cmCreateShopAction5Tag(k, a, c, h, l, f, d, g, b) {
if (g) {
if (g != "0") {
l = g;
}
}
if (b) {
__ex = b.split("-_-");
} else {
__ex = new Array();
}
cmAddShop([ "pr", k, "pm", a, "qt", c, "bp", h, "cg", l, "ha1", b ? cm_hex_sha1(b) : null, "at", "5", "tid", "4", "pc", "N", "sx11", f, "cc", d ]);
}
function cmCreateShopAction9Tag(p, b, f, o, a, d, g, q, m, h, k, n, l, c) {
if (l) {
if (l != "0") {
q = l;
}
}
q = "";
if (c) {
__ex = c.split("-_-");
} else {
__ex = new Array();
}
cmAddShop([ "pr", p, "pm", b, "qt", f, "bp", o, "cg", q, "ha1", c ? cm_hex_sha1(c) : null, "cd", a, "on", d, "tr", g, "at", "9", "tid", "4", "pc", "N", "sx11", m, "cc", h, "sx13", k, "sx14", n ]);
cmCalcSKUString();
}
function cmDisplayShop5s() {
cmDisplayShops();
}
function cmDisplayShop9s() {
cmCalcSKUString();
cmDisplayShops();
}
function cmCalcSKUString() {
__skuString = "";
for (i = 0; i < __sArray.length; ++i) {
__skuString += "|" + __sArray[i][1] + "|" + __sArray[i][7] + "|" + __sArray[i][5] + "|";
}
}
function cmDisplayShops() {
var a;
for (a = 0; a < __sArray.length; ++a) {
cmMakeTag(__sArray[a]);
}
__sArray = new Array();
}
function cmCreateOrderTag(g, l, f, a, d, m, k, q, n, o, h, p, c) {
if ((p == null || p == "") && o) {
p = "No Code";
}
if (c) {
var b = new Array();
b = c.split("-_-");
}
cmMakeTag([ "tid", "3", "osk", __skuString, "on", g, "tr", l, "sg", f, "cd", a, "ct", d, "sa", m, "zp", k, "or11", q, "cc", n, "or13", o, "or14", h, "or15", p, "cm_exAttr", b ]);
}
function cmCreateRegistrationTag(d, g, h, a, c, b) {
if (b) {
var f = new Array();
f = b.split("-_-");
}
cmMakeTag([ "tid", "2", "cd", d, "em", g, "ct", h, "sa", a, "zp", c, "cm_exAttr", f ]);
}
function cmAttrCreator(b) {
var a = new Array();
$.each(b, function(c, d) {
a[parseInt(c) - 1] = d.toString();
});
return a.join("-_-");
}
function cmCreateErrorTag(c, a, f, b) {
if (b) {
var d = new Array();
d = b.split("-_-");
}
cmMakeTag([ "tid", "404", "pi", c, "cg", a, "pc", "Y", "pv1", f, "cm_exAttr", d ]);
}
function cmGetDefaultPageID() {
var d = window.location.pathname;
var b = d.indexOf("?");
if (b != -1) {
d = d.substr(0, b);
}
var a = d.indexOf("#");
if (a != -1) {
d = d.substr(0, a);
}
var f = d.indexOf(";");
if (f != -1) {
d = d.substr(0, f);
}
var c = d.lastIndexOf("/");
if (c == d.length - 1) {
d = d + "default.asp";
}
while (d.indexOf("/") == 0) {
d = d.substr(1, d.length);
}
return d;
}
function cmMakeTag(a) {
setTimeout(function() {
var n = new _cm("vn2", "e4.0");
var h;
for (h = 0; h < a.length; h += 2) {
var d = a[h];
var m = a[h + 1];
n[d] = m;
}
var k = new Date();
var b = Math.floor(Math.random() * 11111111) + k.valueOf();
n.rnd = b;
if (n.tid == "6") {
n.addTP();
document.cookie = "cmTPSet=Y; path=/";
}
if (n.tid == "1") {
if (cI("cmTPSet") != "Y") {
n.tid = "6";
n.pc = "Y";
n.addTP();
document.cookie = "cmTPSet=Y; path=/";
}
}
if (n.tid != "4") {
switch (n.tid) {
case "6":
prefix = "pv";
break;
case "1":
prefix = "pv";
break;
case "2":
prefix = "rg";
break;
case "5":
prefix = "pr";
break;
case "3":
prefix = "o";
break;
case "14":
prefix = "c";
break;
case "15":
prefix = "e";
break;
default:
break;
}
var o = n.cm_exAttr ? n.cm_exAttr.length : 0;
for (h = 0; h < o; h++) {
if (n.tid == "2") {
Attval = prefix + (h + 1);
} else {
Attval = prefix + "_a" + (h + 1);
}
n[Attval] = n.cm_exAttr[h];
}
if (o == 0) {
n[prefix + "_a1"] = "_blank";
}
var l = Lowes.GPS.accurateLocation || "0,0", g = new Date();
n[prefix + "_a24"] = g.toISOString().replace("T", " ").replace("Z", "");
n[prefix + "_a25"] = Lowes.User.HorizontalAccuracy || "0";
n[prefix + "_a28"] = ":mow:" + Lowes.User.uuid;
n[prefix + "_a29"] = l.split(",")[0];
n[prefix + "_a30"] = Lowes.User.backendId || "0";
n[prefix + "_a31"] = Lowes.User.email || "null";
n[prefix + "_a32"] = l.split(",")[1];
n.cm_exAttr = null;
}
if (n.pi == null && n.pc == "Y") {
n.pi = cmGetDefaultPageID();
}
try {
if (parent.cm_ref != null) {
n.rf = parent.cm_ref;
if (n.pc == "Y") {
parent.cm_ref = document.URL;
}
}
if (parent.cm_set_mmc) {
n.ul = document.location.href + (document.location.href.indexOf("?") < 0 ? "?" : "&") + parent.cm_mmc_params;
if (n.pc == "Y") {
parent.cm_ref = n.ul;
parent.cm_set_mmc = false;
}
}
} catch (f) {}
if (!n.ul) {
n.ul = document.location.href;
}
if (!n.rf) {
n.rf = document.referrer;
}
n.ul = cmRemoveParameter("krypto", n.ul);
n.rf = cmRemoveParameter("krypto", n.rf);
n.ul = cmRemoveParameter("firstReferURL", n.ul);
n.rf = cmRemoveParameter("firstReferURL", n.rf);
n.ul = cmRemoveParameter("selectedLocalStoreBeanArray", n.ul);
n.rf = cmRemoveParameter("selectedLocalStoreBeanArray", n.rf);
n.ul = cmRemoveParameter("parentProductCacheKey", n.ul);
n.rf = cmRemoveParameter("parentProductCacheKey", n.rf);
if (cmCheckCMEMFlag) {
cmStartTagSet();
}
n.writeImg();
if (cmCheckCMEMFlag) {
cmCheckCMEMFlag = false;
cmCheckCMEM();
cmSendTagSet();
}
if (cmSendOSLinkClickTag) {
if (window.location.href.indexOf("cm_cr=OS:") > -1 || window.location.href.indexOf("cm_cr=OS%3A") > -1 || window.location.href.indexOf("cm_cr=OS%3a") > -1) {
var c = window.location.href;
c = c.split("cm_cr=OS:").join("cm_cr=");
c = c.split("cm_cr=OS%3A").join("cm_cr=");
c = c.split("cm_cr=OS%3a").join("cm_cr=");
c = c.split("-_-E-mail%20Activity-_-").join("-_-1-_-");
c = c.split("-_-E-mail%2BActivity-_-").join("-_-1-_-");
c = c.split("-_-E-mail%2bActivity-_-").join("-_-1-_-");
cmCreateManualLinkClickTag(c, null, "Email");
cmSendOSLinkClickTag = false;
}
}
if (typeof cm_ted_io == "function") {
cm_ted_io(n);
}
}, 1500, a);
}
if (defaultNormalize == null) {
var defaultNormalize = null;
}
function myNormalizeURL(a, l) {
if (cmIndexOfParameter("#", a) != -1) {
h = cmRemoveParameter("cm_cr", a);
} else {
var h = a;
}
var n = document.URL;
if (l) {
var k = [ "krypto=", "storeref=", "site=", "Ntt=", "newSearch=", "Ns=" ];
var b;
var o = h.indexOf("?");
var c;
var m = new Array();
var g;
if (o > 0) {
b = h.substring(o + 1);
h = h.substring(0, o);
c = b.split("&");
for (var f = 0; f < c.length; f++) {
g = true;
for (var d = 0; d < k.length; d++) {
if (c[f].toLowerCase().indexOf(k[d].toLowerCase()) == 0) {
g = false;
}
}
if (g == true) {
m[m.length] = c[f];
}
}
h += "?" + m.join("&");
}
if (defaultNormalize != null) {
h = defaultNormalize(h, l);
}
}
return h;
}
if (document.cmTagCtl != null) {
var func = "" + document.cmTagCtl.normalizeURL;
if (func.indexOf("myNormalizeURL") == -1) {
defaultNormalize = document.cmTagCtl.normalizeURL;
document.cmTagCtl.normalizeURL = myNormalizeURL;
}
}
function cmIndexOfParameter(b, a) {
return a.indexOf(b);
}
function cmExtractParameter(g, f) {
if (cmIndexOfParameter(g, f) == -1) {
return null;
}
var d = f;
var c = d.indexOf(g);
var a = d.indexOf("&", c);
if (a == -1) {
a = d.length;
}
var b = d.indexOf("=", c);
return d.substring(b + 1, a);
}
function cmRemoveParameter(g, d) {
if (cmIndexOfParameter(g, d) == -1) {
return d;
}
var c = d;
var b = c.indexOf(g);
var f = b - 1;
var a = c.indexOf("&", b);
if (a == -1) {
a = c.length;
}
if (c.substring(f, b) == "?") {
f = f + 1;
a = a + 1;
}
return c.substring(0, f) + c.substring(a, c.length);
}
function cmCheckCMEM() {
if (cmIndexOfParameter("cm_em", document.location.href) != -1) {
var a = cmExtractParameter("cm_em", document.location.href);
if (a.indexOf(":") > -1) {
a = a.substring(a.indexOf(":") + 1);
}
cmCreateRegistrationTag(a, a);
}
if (cmIndexOfParameter("cm_lm", document.location.href) != -1) {
var a = cmExtractParameter("cm_lm", document.location.href);
if (a.indexOf(":") > -1) {
a = a.substring(a.indexOf(":") + 1);
}
cmCreateRegistrationTag(a, a);
}
}
function cmCreateManualPageviewTag(a, d, c, b) {
cmMakeTag([ "tid", "1", "pi", a, "cg", d, "ul", c, "rf", b ]);
}
function cmCreateManualImpressionTag(a, c, b) {
cmMakeTag([ "tid", "9", "pi", a, "cm_sp", c, "cm_re", b, "st", cm_ClientTS ]);
}
function cmCreateManualLinkClickTag(b, c, a) {
if (d == null && cM != null) {
var d = cM;
}
if (d != null) {
var f = new Date();
cmLnkT3 = f.getTime();
b = cG7.normalizeURL(b, true);
d(cm_ClientTS, cmLnkT3, c, b, false, a);
}
}
function cmCreatePageElementTag(b, a, c) {
if (c) {
var d = new Array();
d = c.split("-_-");
}
cmMakeTag([ "tid", "15", "eid", b, "ecat", a, "pflg", "0", "cm_exAttr", d ]);
}
function cm_hex_sha1(a) {
return cm_rstr2hex(cm_rstr_sha1(cm_str2rstr_utf8(a)));
}
function cm_rstr_sha1(a) {
return cm_binb2rstr(cm_binb_sha1(cm_rstr2binb(a), a.length * 8));
}
function cm_rstr2hex(c) {
var f = 0 ? "0123456789ABCDEF" : "0123456789abcdef";
var b = "";
var a;
for (var d = 0; d < c.length; d++) {
a = c.charCodeAt(d);
b += f.charAt(a >>> 4 & 15) + f.charAt(a & 15);
}
return b;
}
function cm_str2rstr_utf8(c) {
var b = "";
var d = -1;
var a, f;
while (++d < c.length) {
a = c.charCodeAt(d);
f = d + 1 < c.length ? c.charCodeAt(d + 1) : 0;
if (55296 <= a && a <= 56319 && 56320 <= f && f <= 57343) {
a = 65536 + ((a & 1023) << 10) + (f & 1023);
d++;
}
if (a <= 127) {
b += String.fromCharCode(a);
} else {
if (a <= 2047) {
b += String.fromCharCode(192 | a >>> 6 & 31, 128 | a & 63);
} else {
if (a <= 65535) {
b += String.fromCharCode(224 | a >>> 12 & 15, 128 | a >>> 6 & 63, 128 | a & 63);
} else {
if (a <= 2097151) {
b += String.fromCharCode(240 | a >>> 18 & 7, 128 | a >>> 12 & 63, 128 | a >>> 6 & 63, 128 | a & 63);
}
}
}
}
}
return b;
}
function cm_rstr2binb(b) {
var a = Array(b.length >> 2);
for (var c = 0; c < a.length; c++) {
a[c] = 0;
}
for (var c = 0; c < b.length * 8; c += 8) {
a[c >> 5] |= (b.charCodeAt(c / 8) & 255) << 24 - c % 32;
}
return a;
}
function cm_binb2rstr(b) {
var a = "";
for (var c = 0; c < b.length * 32; c += 8) {
a += String.fromCharCode(b[c >> 5] >>> 24 - c % 32 & 255);
}
return a;
}
function cm_binb_sha1(v, o) {
v[o >> 5] |= 128 << 24 - o % 32;
v[(o + 64 >> 9 << 4) + 15] = o;
var y = Array(80);
var u = 1732584193;
var s = -271733879;
var r = -1732584194;
var q = 271733878;
var p = -1009589776;
for (var l = 0; l < v.length; l += 16) {
var n = u;
var m = s;
var k = r;
var h = q;
var f = p;
for (var g = 0; g < 80; g++) {
if (g < 16) {
y[g] = v[l + g];
} else {
y[g] = cm_bit_rol(y[g - 3] ^ y[g - 8] ^ y[g - 14] ^ y[g - 16], 1);
}
var z = cm_safe_add(cm_safe_add(cm_bit_rol(u, 5), cm_sha1_ft(g, s, r, q)), cm_safe_add(cm_safe_add(p, y[g]), cm_sha1_kt(g)));
p = q;
q = r;
r = cm_bit_rol(s, 30);
s = u;
u = z;
}
u = cm_safe_add(u, n);
s = cm_safe_add(s, m);
r = cm_safe_add(r, k);
q = cm_safe_add(q, h);
p = cm_safe_add(p, f);
}
return Array(u, s, r, q, p);
}
function cm_sha1_ft(f, a, h, g) {
if (f < 20) {
return a & h | ~a & g;
}
if (f < 40) {
return a ^ h ^ g;
}
if (f < 60) {
return a & h | a & g | h & g;
}
return a ^ h ^ g;
}
function cm_sha1_kt(a) {
return a < 20 ? 1518500249 : a < 40 ? 1859775393 : a < 60 ? -1894007588 : -899497514;
}
function cm_safe_add(a, d) {
var c = (a & 65535) + (d & 65535);
var b = (a >> 16) + (d >> 16) + (c >> 16);
return b << 16 | c & 65535;
}
function cm_bit_rol(a, b) {
return a << b | a >>> 32 - b;
}
function getCmExplorerAttributes() {
var b = "", a = "-_-", f = Lowes.User.getCurrentStore(), d = [ f.name, f.state, f.number, f.zip, f.city ];
for (var c = 0; c < d.length; c++) {
b += d[c] || "";
b += c == d.length - 1 ? "" : a;
}
return b;
}
cmSetProduction();
(function(bd, N) {
var ax = bd.document, bw = bd.navigator, bn = bd.location;
var b = function() {
var bI = function(b3, b4) {
return new bI.fn.init(b3, b4, bG);
}, bX = bd.jQuery, bK = bd.$, bG, b1 = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, bP = /\S/, bL = /^\s+/, bH = /\s+$/, bD = /^<(\w+)\s*\/?>(?:<\/\1>)?$/, bQ = /^[\],:{}\s]*$/, bZ = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, bS = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, bM = /(?:^|:|,)(?:\s*\[)+/g, bB = /(webkit)[ \/]([\w.]+)/, bU = /(opera)(?:.*version)?[ \/]([\w.]+)/, bT = /(msie) ([\w.]+)/, bV = /(mozilla)(?:.*? rv:([\w.]+))?/, bE = /-([a-z]|[0-9])/gi, b2 = /^-ms-/, bW = function(b3, b4) {
return (b4 + "").toUpperCase();
}, b0 = bw.userAgent, bY, bF, bx, bO = Object.prototype.toString, bJ = Object.prototype.hasOwnProperty, bC = Array.prototype.push, bN = Array.prototype.slice, bR = String.prototype.trim, by = Array.prototype.indexOf, bA = {};
bI.fn = bI.prototype = {
constructor: bI,
init: function(b3, b7, b6) {
var b5, b8, b4, b9;
if (!b3) {
return this;
}
if (b3.nodeType) {
this.context = this[0] = b3;
this.length = 1;
return this;
}
if (b3 === "body" && !b7 && ax.body) {
this.context = ax;
this[0] = ax.body;
this.selector = b3;
this.length = 1;
return this;
}
if (typeof b3 === "string") {
if (b3.charAt(0) === "<" && b3.charAt(b3.length - 1) === ">" && b3.length >= 3) {
b5 = [ null, b3, null ];
} else {
b5 = b1.exec(b3);
}
if (b5 && (b5[1] || !b7)) {
if (b5[1]) {
b7 = b7 instanceof bI ? b7[0] : b7;
b9 = b7 ? b7.ownerDocument || b7 : ax;
b4 = bD.exec(b3);
if (b4) {
if (bI.isPlainObject(b7)) {
b3 = [ ax.createElement(b4[1]) ];
bI.fn.attr.call(b3, b7, true);
} else {
b3 = [ b9.createElement(b4[1]) ];
}
} else {
b4 = bI.buildFragment([ b5[1] ], [ b9 ]);
b3 = (b4.cacheable ? bI.clone(b4.fragment) : b4.fragment).childNodes;
}
return bI.merge(this, b3);
} else {
b8 = ax.getElementById(b5[2]);
if (b8 && b8.parentNode) {
if (b8.id !== b5[2]) {
return b6.find(b3);
}
this.length = 1;
this[0] = b8;
}
this.context = ax;
this.selector = b3;
return this;
}
} else {
if (!b7 || b7.jquery) {
return (b7 || b6).find(b3);
} else {
return this.constructor(b7).find(b3);
}
}
} else {
if (bI.isFunction(b3)) {
return b6.ready(b3);
}
}
if (b3.selector !== N) {
this.selector = b3.selector;
this.context = b3.context;
}
return bI.makeArray(b3, this);
},
selector: "",
jquery: "1.7.1",
length: 0,
size: function() {
return this.length;
},
toArray: function() {
return bN.call(this, 0);
},
get: function(b3) {
return b3 == null ? this.toArray() : b3 < 0 ? this[this.length + b3] : this[b3];
},
pushStack: function(b4, b6, b3) {
var b5 = this.constructor();
if (bI.isArray(b4)) {
bC.apply(b5, b4);
} else {
bI.merge(b5, b4);
}
b5.prevObject = this;
b5.context = this.context;
if (b6 === "find") {
b5.selector = this.selector + (this.selector ? " " : "") + b3;
} else {
if (b6) {
b5.selector = this.selector + "." + b6 + "(" + b3 + ")";
}
}
return b5;
},
each: function(b4, b3) {
return bI.each(this, b4, b3);
},
ready: function(b3) {
bI.bindReady();
bF.add(b3);
return this;
},
eq: function(b3) {
b3 = +b3;
return b3 === -1 ? this.slice(b3) : this.slice(b3, b3 + 1);
},
first: function() {
return this.eq(0);
},
last: function() {
return this.eq(-1);
},
slice: function() {
return this.pushStack(bN.apply(this, arguments), "slice", bN.call(arguments).join(","));
},
map: function(b3) {
return this.pushStack(bI.map(this, function(b5, b4) {
return b3.call(b5, b4, b5);
}));
},
end: function() {
return this.prevObject || this.constructor(null);
},
push: bC,
sort: [].sort,
splice: [].splice
};
bI.fn.init.prototype = bI.fn;
bI.extend = bI.fn.extend = function() {
var cc, b5, b3, b4, b9, ca, b8 = arguments[0] || {}, b7 = 1, b6 = arguments.length, cb = false;
if (typeof b8 === "boolean") {
cb = b8;
b8 = arguments[1] || {};
b7 = 2;
}
if (typeof b8 !== "object" && !bI.isFunction(b8)) {
b8 = {};
}
if (b6 === b7) {
b8 = this;
--b7;
}
for (;b7 < b6; b7++) {
if ((cc = arguments[b7]) != null) {
for (b5 in cc) {
b3 = b8[b5];
b4 = cc[b5];
if (b8 === b4) {
continue;
}
if (cb && b4 && (bI.isPlainObject(b4) || (b9 = bI.isArray(b4)))) {
if (b9) {
b9 = false;
ca = b3 && bI.isArray(b3) ? b3 : [];
} else {
ca = b3 && bI.isPlainObject(b3) ? b3 : {};
}
b8[b5] = bI.extend(cb, ca, b4);
} else {
if (b4 !== N) {
b8[b5] = b4;
}
}
}
}
}
return b8;
};
bI.extend({
noConflict: function(b3) {
if (bd.$ === bI) {
bd.$ = bK;
}
if (b3 && bd.jQuery === bI) {
bd.jQuery = bX;
}
return bI;
},
isReady: false,
readyWait: 1,
holdReady: function(b3) {
if (b3) {
bI.readyWait++;
} else {
bI.ready(true);
}
},
ready: function(b3) {
if (b3 === true && !--bI.readyWait || b3 !== true && !bI.isReady) {
if (!ax.body) {
return setTimeout(bI.ready, 1);
}
bI.isReady = true;
if (b3 !== true && --bI.readyWait > 0) {
return;
}
bF.fireWith(ax, [ bI ]);
if (bI.fn.trigger) {
bI(ax).trigger("ready").off("ready");
}
}
},
bindReady: function() {
if (bF) {
return;
}
bF = bI.Callbacks("once memory");
if (ax.readyState === "complete") {
return setTimeout(bI.ready, 1);
}
if (ax.addEventListener) {
ax.addEventListener("DOMContentLoaded", bx, false);
bd.addEventListener("load", bI.ready, false);
} else {
if (ax.attachEvent) {
ax.attachEvent("onreadystatechange", bx);
bd.attachEvent("onload", bI.ready);
var b3 = false;
try {
b3 = bd.frameElement == null;
} catch (b4) {}
if (ax.documentElement.doScroll && b3) {
bz();
}
}
}
},
isFunction: function(b3) {
return bI.type(b3) === "function";
},
isArray: Array.isArray || function(b3) {
return bI.type(b3) === "array";
},
isWindow: function(b3) {
return b3 && typeof b3 === "object" && "setInterval" in b3;
},
isNumeric: function(b3) {
return !isNaN(parseFloat(b3)) && isFinite(b3);
},
type: function(b3) {
return b3 == null ? String(b3) : bA[bO.call(b3)] || "object";
},
isPlainObject: function(b5) {
if (!b5 || bI.type(b5) !== "object" || b5.nodeType || bI.isWindow(b5)) {
return false;
}
try {
if (b5.constructor && !bJ.call(b5, "constructor") && !bJ.call(b5.constructor.prototype, "isPrototypeOf")) {
return false;
}
} catch (b4) {
return false;
}
var b3;
for (b3 in b5) {}
return b3 === N || bJ.call(b5, b3);
},
isEmptyObject: function(b4) {
for (var b3 in b4) {
return false;
}
return true;
},
error: function(b3) {
throw new Error(b3);
},
parseJSON: function(b3) {
if (typeof b3 !== "string" || !b3) {
return null;
}
b3 = bI.trim(b3);
if (bd.JSON && bd.JSON.parse) {
return bd.JSON.parse(b3);
}
if (bQ.test(b3.replace(bZ, "@").replace(bS, "]").replace(bM, ""))) {
return new Function("return " + b3)();
}
bI.error("Invalid JSON: " + b3);
},
parseXML: function(b5) {
var b3, b4;
try {
if (bd.DOMParser) {
b4 = new DOMParser();
b3 = b4.parseFromString(b5, "text/xml");
} else {
b3 = new ActiveXObject("Microsoft.XMLDOM");
b3.async = "false";
b3.loadXML(b5);
}
} catch (b6) {
b3 = N;
}
if (!b3 || !b3.documentElement || b3.getElementsByTagName("parsererror").length) {
bI.error("Invalid XML: " + b5);
}
return b3;
},
noop: function() {},
globalEval: function(b3) {
if (b3 && bP.test(b3)) {
(bd.execScript || function(b4) {
bd["eval"].call(bd, b4);
})(b3);
}
},
camelCase: function(b3) {
return b3.replace(b2, "ms-").replace(bE, bW);
},
nodeName: function(b4, b3) {
return b4.nodeName && b4.nodeName.toUpperCase() === b3.toUpperCase();
},
each: function(b6, b9, b5) {
var b4, b7 = 0, b8 = b6.length, b3 = b8 === N || bI.isFunction(b6);
if (b5) {
if (b3) {
for (b4 in b6) {
if (b9.apply(b6[b4], b5) === false) {
break;
}
}
} else {
for (;b7 < b8; ) {
if (b9.apply(b6[b7++], b5) === false) {
break;
}
}
}
} else {
if (b3) {
for (b4 in b6) {
if (b9.call(b6[b4], b4, b6[b4]) === false) {
break;
}
}
} else {
for (;b7 < b8; ) {
if (b9.call(b6[b7], b7, b6[b7++]) === false) {
break;
}
}
}
}
return b6;
},
trim: bR ? function(b3) {
return b3 == null ? "" : bR.call(b3);
} : function(b3) {
return b3 == null ? "" : b3.toString().replace(bL, "").replace(bH, "");
},
makeArray: function(b6, b4) {
var b3 = b4 || [];
if (b6 != null) {
var b5 = bI.type(b6);
if (b6.length == null || b5 === "string" || b5 === "function" || b5 === "regexp" || bI.isWindow(b6)) {
bC.call(b3, b6);
} else {
bI.merge(b3, b6);
}
}
return b3;
},
inArray: function(b5, b6, b4) {
var b3;
if (b6) {
if (by) {