_gat.jc = function(d) {
var a = this,
c = _gat,
h = d,
o, k = function(l) {
var s = (new Date).getTime(),
q;
q = (s - l[3]) * (h.Zc / 1000);
if (q >= 1) {
l[2] = Math.min(Math.floor(l[2] * 1 + q), h.nc);
l[3] = s
}
return l
};
a.O = function(l, s, q, f, n, w, x) {
var g, z = h.D,
B = q.location;
if (!o) o = new c.Y(q, h);
o.Ha(f);
g = c.z(o.K(), ".");
if (g[1] < 500 || n) {
if (w) g = k(g);
if (n || !w || g[2] >= 1) {
if (!n && w) g[2] = g[2] * 1 - 1;
g[1] = g[1] * 1 + 1;
l = "?utmwv=" + _gat.lb + "&utmn=" + c.wa() + (c.q(B.hostname) ? "": "&utmhn=" + c.d(B.hostname)) + (h.ha == 100 ? "": "&utmsp=" + c.d(h.ha)) + l;
if (0 == z || 2 == z) {
console.log(h.Da + l);
// var A = new Image(1, 1);
// A.src = h.Da + l;
// var p = 2 == z ?
// function() {}: x || function() {};
// A.onload = p
}
if (1 == z || 2 == z) {
console.log(("https:" == B.protocol ? c.mc: c.lc) + l + "&utmac=" + s + "&utmcc=" + a.wc(q, f));
// var u = new Image(1, 1);
// u.src = ("https:" == B.protocol ? c.mc: c.lc) + l + "&utmac=" + s + "&utmcc=" + a.wc(q, f);
// u.onload = x ||
// function() {}
}
}
}
o.La(g.join("."));
o.Pa()
};
a.wc = function(l, s) {
var q = [],
f = [c.r, c.X, c.na, c.oa],
n,
w = l[c.m],
x;
for (n = 0; n < f[c.c]; n++) {
x = c.C(w, f[n] + s, ";");
if (!c.q(x)) c.h(q, f[n] + x + ";")
}
return c.d(q.join("+"))
}
};
_gat.kc = function(d) {
var a = this,
c = _gat,
h = c.b,
o = c.q,
k = c.w,
l = c.F,
s = c.C,
q = c.P,
f = c.z,
n = "location",
w = c.c,
x = h,
g = new c.hc,
z = false;
a.a = document;
a.e = window;
a.ja = Math.round((new Date).getTime() / 1000);
a.H = d;
a.yb = a.a.referrer;
a.va = h;
a.j = h;
a.A = h;
a.M = false;
a.aa = h;
a.rb = "";
a.l = h;
a.Ab = h;
a.f = h;
a.u = h;
function B() {
if ("auto" == g.g) {
var b = a.a.domain;
if ("www." == l(b, 0, 4)) b = l(b, 4);
g.g = b
}
g.g = c.T(g.g)
}
function A() {
var b = g.g,
e = k(b, "www.google.") * k(b, ".google.") * k(b, "google.");
return e || "/" != g.p || k(b, "google.org") > -1
}
function p(b, e, j) {
if (o(b) || o(e) || o(j)) return "-";
var t = s(b, c.r + a.f + ".", e),
v;
if (!o(t)) {
v = f(t, ".");
v[5] = v[5] ? v[5] * 1 + 1 : 1;
v[3] = v[4];
v[4] = j;
t = v.join(".")
}
return t
}
function u() {
return "file:" != a.a[n].protocol && A()
}
function m(b) {
if (!b || "" == b) return "";
while (c.Lb(b.charAt(0))) b = l(b, 1);
while (c.Lb(b.charAt(b[w] - 1))) b = l(b, 0, b[w] - 1);
return b
}
function r(b, e, j) {
if (!o(b())) {
e(c.J(b()));
if (!q(b(), ";")) j()
}
}
function i(b) {
var e, j = "" != b && a.a[n].host != b;
if (j) for (e = 0; e < g.B[w]; e++) j = j && k(c.T(b), c.T(g.B[e])) == -1;
return j
}
a.Bc = function() {
if (!g.g || "" == g.g || "none" == g.g) {
g.g = "";
return 1
}
B();
return g.pb ? c.t(g.g) : 1
};
a.tc = function(b, e) {
if (o(b)) b = "-";
else {
e += g.p && "/" != g.p ? g.p: "";
var j = k(b, e);
b = j >= 0 && j <= 8 ? "0": ("[" == b.charAt(0) && "]" == b.charAt(b[w] - 1) ? "-": b)
}
return b
};
a.Ia = function(b) {
var e = "",
j = a.a;
e += a.aa ? a.aa.Xc() : "";
e += g.qa ? a.rb: "";
e += g.ta && !o(j.title) ? "&utmdt=" + c.d(j.title) : "";
e += "&utmhid=" + c.uc() + "&utmr=" + a.va + "&utmp=" + a.Tc(b);
return e
};
a.Tc = function(b) {
var e = a.a[n];
b = h != b && "" != b ? c.d(b, true) : c.d(e.pathname + unescape(e.search), true);
return b
};
a.$c = function(b) {
if (a.Q()) {
var e = "";
if (a.l != h && a.l.N().length > 0) e += "&utme=" + c.d(a.l.N());
e += a.Ia(b);
x.O(e, a.H, a.a, a.f, true)
}
};
a.qc = function() {
var b = new c.Y(a.a, g);
return b.Ha(a.f) ? b.Wc() : h
};
a._getLinkerUrl = function(b, e) {
var j = f(b, "#"),
t = b,
v = a.qc();
if (v) if (e && 1 >= j[w]) t += "#" + v;
else if (!e || 1 >= j[w]) if (1 >= j[w]) t += (q(b, "?") ? "&": "?") + v;
else t = j[0] + (q(b, "?") ? "&": "?") + v + "#" + j[1];
return t
};
a.Zb = function() {
var b;
if (a.A && a.A[w] >= 10 && !q(a.A, "=")) {
a.u.Uc(a.A);
a.u.cd();
c._gasoDomain = g.g;
c._gasoCPath = g.p;
b = a.a.createElement("script");
b.type = "text/javascript";
b.id = "_gasojs";
b.src = "https://www.google.com/analytics/reporting/overlay_js?gaso=" + a.A + "&" + c.wa();
a.a.getElementsByTagName("head")[0].appendChild(b)
}
};
a.Jc = function() {
var b = a.a[c.m],
e = a.ja,
j = a.u,
t = a.f + "",
v = a.e,
y = v ? v.gaGlobal: h,
E,
F = q(b, c.r + t + "."),
I = q(b, c.W + t),
G = q(b, c.ma + t),
C,
D = [],
H = "",
K = false,
J;
b = o(b) ? "": b;
if (g.I) {
E = c.Db(a.a[n]);
if (g.pa && !o(E)) H = E + "&";
H += a.a[n].search;
if (!o(H) && q(H, c.r)) {
j.Rc(H);
if (!j.Jb()) j.pc();
C = j.ya()
}
r(j.Ba, j.Wb, j.fc);
r(j.Aa, j.Na, j.Qa)
}
if (!o(C)) if (o(j.K()) || o(j.za())) {
C = p(H, "&", e);
a.M = true
} else {
D = f(j.K(), ".");
t = D[0]
} else if (F) if (!I || !G) {
C = p(b, ";", e);
a.M = true
} else {
C = s(b, c.r + t + ".", ";");
D = f(s(b, c.W + t, ";"), ".")
} else {
C = [t, c.Gc(), e, e, e, 1].join(".");
a.M = true;
K = true
}
C = f(C, ".");
if (v && y && y.dh == t) {
C[4] = y.sid ? y.sid: C[4];
if (K) {
C[3] = y.sid ? y.sid: C[4];
if (y.vid) {
J = f(y.vid, ".");
C[1] = J[0];
C[2] = J[1]
}
}
}
j.Ub(C.join("."));
D[0] = t;
D[1] = D[1] ? D[1] : 0;
D[2] = undefined != D[2] ? D[2] : g.Yc;
D[3] = D[3] ? D[3] : C[4];
j.La(D.join("."));
j.Vb(t);
if (!o(j.Hc())) j.Ma(j.t());
j.dc();
j.Pa();
j.ec()
};
a.Lc = function() {
x = new c.jc(g)
};
a._initData = function() {
var b;
if (!z) {
a.Lc();
a.f = a.Bc();
a.u = new c.Y(a.a, g)
}
if (u()) a.Jc();
if (!z) {
if (u()) {
a.va = a.tc(a.Ac(), a.a.domain);
if (g.sa) {
a.aa = new c.gc(g.ua);
a.aa.xc()
}
if (g.qa) {
b = new c.n(a.f, a.a, a.va, a.ja, g);
a.rb = b.yc(a.u, a.M)
}
}
a.l = new c.Z;
a.Ab = new c.Z;
z = true
}
if (!c.Hb) a.Mc()
};
a._visitCode = function() {
a._initData();
var b = s(a.a[c.m], c.r + a.f + ".", ";"),
e = f(b, ".");
return e[w] < 4 ? "": e[1]
};
a._cookiePathCopy = function(b) {
a._initData();
if (a.u) a.u.bd(a.f, b)
};
a.Mc = function() {
var b = a.a[n].hash,
e;
e = b && "" != b && 0 == k(b, "#gaso=") ? s(b, "gaso=", "&") : s(a.a[c.m], c.Sa, ";");
if (e[w] >= 10) {
a.A = e;
if (a.e.addEventListener) a.e.addEventListener("load", a.Zb, false);
else a.e.attachEvent("onload", a.Zb)
}
c.Hb = true
};
a.Q = function() {
return a._visitCode() % 10000 < g.ha * 100
};
a.Vc = function() {
var b, e, j = a.a.links;
if (!g.Kb) {
var t = a.a.domain;
if ("www." == l(t, 0, 4)) t = l(t, 4);
g.B.push("." + t)
}
for (b = 0; b < j[w] && (g.Ga == -1 || b < g.Ga); b++) {
e = j[b];
if (i(e.host)) if (!e.gatcOnclick) {
e.gatcOnclick = e.onclick ? e.onclick: a.Qc;
e.onclick = function(v) {
var y = !this.target || this.target == "_self" || this.target == "_top" || this.target == "_parent";
y = y && !a.oc(v);
a.ad(v, this, y);
return y ? false: (this.gatcOnclick ? this.gatcOnclick(v) : true)
}
}
}
};
a.Qc = function() {};
a._trackPageview = function(b) {
if (u() || true) {
a._initData();
if (g.B) a.Vc();
a.$c(b);
a.M = false
}
};
a._trackTrans = function() {
var b = a.f,
e = [],
j,
t,
v,
y;
a._initData();
if (a.j && a.Q()) {
for (j = 0; j < a.j.la[w]; j++) {
t = a.j.la[j];
c.h(e, t.S());
for (v = 0; v < t.ca[w]; v++) c.h(e, t.ca[v].S())
}
for (y = 0; y < e[w]; y++) x.O(e[y], a.H, a.a, b, true)
}
};
a._setTrans = function() {
var b = a.a,
e, j, t, v, y = b.getElementById ? b.getElementById("utmtrans") : (b.utmform && b.utmform.utmtrans ? b.utmform.utmtrans: h);
a._initData();
if (y && y.value) {
a.j = new c.i;
v = f(y.value, "UTM:");
g.G = !g.G || "" == g.G ? "|": g.G;
for (e = 0; e < v[w]; e++) {
v[e] = m(v[e]);
j = f(v[e], g.G);
for (t = 0; t < j[w]; t++) j[t] = m(j[t]);
if ("T" == j[0]) a._addTrans(j[1], j[2], j[3], j[4], j[5], j[6], j[7], j[8]);
else if ("I" == j[0]) a._addItem(j[1], j[2], j[3], j[4], j[5], j[6])
}
}
};
a._addTrans = function(b, e, j, t, v, y, E, F) {
a.j = a.j ? a.j: new c.i;
return a.j.nb(b, e, j, t, v, y, E, F)
};
a._addItem = function(b, e, j, t, v, y) {
var E;
a.j = a.j ? a.j: new c.i;
E = a.j.xa(b);
if (!E) E = a._addTrans(b, "", "", "", "", "", "", "");
E.mb(e, j, t, v, y)
};
a._setVar = function(b) {
if (b && "" != b && A()) {
a._initData();
var e = new c.Y(a.a, g),
j = a.f;
e.Na(j + "." + c.d(b));
e.Qa();
if (a.Q()) x.O("&utmt=var", a.H, a.a, a.f, true)
}
};
a._link = function(b, e) {
if (g.I && b) {
a._initData();
a.a[n].href = a._getLinkerUrl(b, e)
}
};
a._linkByPost = function(b, e) {
if (g.I && b && b.action) {
a._initData();
b.action = a._getLinkerUrl(b.action, e)
}
};
a._setXKey = function(b, e, j) {
a.l._setKey(b, e, j)
};
a._setXValue = function(b, e, j) {
a.l._setValue(b, e, j)
};
a._getXKey = function(b, e) {
return a.l._getKey(b, e)
};
a._getXValue = function(b, e) {
return a.l.getValue(b, e)
};
a._clearXKey = function(b) {
a.l._clearKey(b)
};
a._clearXValue = function(b) {
a.l._clearValue(b)
};
a._createXObj = function() {
a._initData();
return new c.Z
};
a._sendXEvent = function(b) {
var e = "";
a._initData();
if (a.Q()) {
e += "&utmt=event&utme=" + c.d(a.l.Sc(b)) + a.Ia();
x.O(e, a.H, a.a, a.f, false, true)
}
};
a._createEventTracker = function(b) {
a._initData();
return new c.ic(b, a)
};
a._trackEvent = function(b, e, j, t) {
var v = true,
y = a.Ab;
if (h != b && h != e && "" != b && "" != e) {
y._clearKey(5);
y._clearValue(5);
v = y._setKey(5, 1, b) ? v: false;
v = y._setKey(5, 2, e) ? v: false;
v = h == j || y._setKey(5, 3, j) ? v: false;
v = h == t || y._setValue(5, 1, t) ? v: false;
if (v) a._sendXEvent(y)
} else v = false;
return v
};
a.ad = function(b, e, j) {
a._initData();
if (a.Q()) {
var t = new c.Z;
t._setKey(6, 1, e.href);
var v = j ?
function() {
a.rc(b, e)
}: undefined;
x.O("&utmt=event&utme=" + c.d(t.N()) + a.Ia(), a.H, a.a, a.f, false, true, v)
}
};
a.rc = function(b, e) {
if (!b) b = a.e.event;
var j = true;
if (e.gatcOnclick) j = e.gatcOnclick(b);
if (j || typeof j == "undefined") if (!e.target || e.target == "_self") a.e.location = e.href;
else if (e.target == "_top") a.e.top.document.location = e.href;
else if (e.target == "_parent") a.e.parent.document.location = e.href
};
a.oc = function(b) {
if (!b) b = a.e.event;
var e = b.shiftKey || b.ctrlKey || b.altKey;
if (!e) if (b.modifiers && a.e.Event) e = b.modifiers & a.e.Event.CONTROL_MASK || b.modifiers & a.e.Event.SHIFT_MASK || b.modifiers & a.e.Event.ALT_MASK;
return e
};
a._setDomainName = function(b) {
g.g = b
};
a.dd = function() {
return g.g
};
a._addOrganic = function(b, e) {
c.h(g.fa, new c.cb(b, e))
};
a._clearOrganic = function() {
g.fa = []
};
a.hd = function() {
return g.fa
};
a._addIgnoredOrganic = function(b) {
c.h(g.ea, b)
};
a._clearIgnoredOrganic = function() {
g.ea = []
};
a.ed = function() {
return g.ea
};
a._addIgnoredRef = function(b) {
c.h(g.ga, b)
};
a._clearIgnoredRef = function() {
g.ga = []
};
a.fd = function() {
return g.ga
};
a._setAllowHash = function(b) {
g.pb = b ? 1 : 0
};
a._setCampaignTrack = function(b) {
g.qa = b ? 1 : 0
};
a._setClientInfo = function(b) {
g.sa = b ? 1 : 0
};
a._getClientInfo = function() {
return g.sa
};
a._setCookiePath = function(b) {
g.p = b
};
a._setTransactionDelim = function(b) {
g.G = b
};
a._setCookieTimeout = function(b) {
g.wb = b
};
a._setDetectFlash = function(b) {
g.ua = b ? 1 : 0
};
a._getDetectFlash = function() {
return g.ua
};
a._setDetectTitle = function(b) {
g.ta = b ? 1 : 0
};
a._getDetectTitle = function() {
return g.ta
};
a._setLocalGifPath = function(b) {
g.Da = b
};
a._getLocalGifPath = function() {
return g.Da
};
a._setLocalServerMode = function() {
g.D = 0
};
a._setRemoteServerMode = function() {
g.D = 1
};
a._setLocalRemoteServerMode = function() {
g.D = 2
};
a.gd = function() {
return g.D
};
a._getServiceMode = function() {
return g.D
};
a._setSampleRate = function(b) {
g.ha = b
};
a._setSessionTimeout = function(b) {
g.Tb = b
};
a._setAllowLinker = function(b) {
g.I = b ? 1 : 0
};
a._setAllowAnchor = function(b) {
g.pa = b ? 1 : 0
};
a._setCampNameKey = function(b) {
g.db = b
};
a._setCampContentKey = function(b) {
g.eb = b
};
a._setCampIdKey = function(b) {
g.fb = b
};
a._setCampMediumKey = function(b) {
g.gb = b
};
a._setCampNOKey = function(b) {
g.hb = b
};
a._setCampSourceKey = function(b) {
g.ib = b
};
a._setCampTermKey = function(b) {
g.jb = b
};
a._setCampCIdKey = function(b) {
g.kb = b
};
a._getAccount = function() {
return a.H
};
a._getVersion = function() {
return _gat.lb
};
a.kd = function(b) {
g.B = [];
if (b) g.B = b
};
a.md = function(b) {
g.Kb = b
};
a.ld = function(b) {
g.Ga = b
};
a._setReferrerOverride = function(b) {
a.yb = b
};
a.Ac = function() {
return a.yb
}
a.debug = function() {
// create a little popup on the bottom of the screen
debug_div = document.createElement('div');
debug_div.setAttribute('style', 'position:fixed;bottom:10px;right:10px;padding:10px;border:3px solid #EEE;background-color:#FFF;font-size:10px;font-family:sans-serif;line-height:1.5em;');
// print out useful information
var info = "";
// -- cookies for ga
info += document['cookie'] + '<br />';
// -- tracking code
info += a.H + '<br />';
// -- tracking code version
info += c.lb + '<br />';
// -- campaign information
// -- custom variable set
debug_div.innerHTML = info;
document.body.appendChild(debug_div);
}
};