(function() { function o(a) { p[a] = (new Date).getTime() } function i(a) { var b = (new Date).getTime() - (p[a] || j), c = {}; c.k = 2; c.n = a; c.v = b; q(c); return b } function r(a) { var b = new Image(1, 1), c; if(a === undefined) { a = "/favicon.ico?r=" + Math.random(); c = "/favicon.ico" } b.onload = function() { i("ping-" + c || a) }; b.onerror = b.onload; o("ping-" + c || a); b.src = a } function g(a, b) { var c, e = [], f = {}; for(c = 0;c < b.length;c += 1) { (param = b[c]) ? e.push(v(param.toString())) : e.push('"' + String(param) + '"') } f.k = 1; f.l = a; f.m = e.join(","); q(f) } function q(a) { k.push(a); if(l === null) { l = setTimeout(w, 1E3) } } function w() { var a = new Image(1, 1), b = [], c, e, f, s, h; l = null; document.documentMode && b.push("d=" + encodeURIComponent(document.documentMode)); b.push("s=" + encodeURIComponent(t)); b.push("p=" + encodeURIComponent(window.location.pathname)); b.push("k=" + m); c = k; k = []; e = 0; for(s = c.length;e < s;e += 1) { h = c[e]; for(f in h) { Object.hasOwnProperty.call(h, f) && b.push(f + e.toString() + "=" + h[f].toString()) } } a.src = u + "log?" + b.join("&") } function x(a, b, c) { a = typeof a === "string" ? document.getElementById.a(a) : a; window.addEventListener && a.addEventListener(b, c, false); window.attachEvent && a.attachEvent("on" + b, c) } function y() { j = d.jsStart === undefined ? (new Date).getTime() : d.jsStart; t = d.uid === undefined ? j : d.uid; z = d.pageName === undefined ? encodeURI(window.location.toString()) : d.pageName; if(d.trackerId) { m = d.trackerId } x(window, "load", function() { i("load"); d.mesureLatency && setTimeout(function() { r() }, 100) }); window.onerror = function(a, b, c) {  d.error(a, b, c) } } function v(a) { n.lastIndex = 0; return n.test(a) ? '"' + a.replace(n, function(b) { var c = meta[b]; return typeof c === "string" ? c : "\\u" + ("0000" + b.charCodeAt(0).toString(16)).slice(-4) }) + '"' : '"' + a + '"' } var d = window.jsTracker || {}, p = {}, j, t, z, m = window.location.hostname, u = "http://myjstracker.appspot.com/track/", l = null, k = [], n = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; if(document.location.hostname === "localhost") { u = "http://localhost:8088/track/" } y(); d.start = o; d.stop = i; d.latency = r; d.error = function() { g(3, arguments) }; d.warn = function() { g(2, arguments) }; d.info = function() { g(1, arguments) }; d.debug = function() { g(0, arguments) }; d.setTrackerId = function(a) { m = a }; window.jsTracker = d })();
