
function patch_ga(){
  if(typeof _gat !== 'object'){ setTimeout(patch_ga, 1000);};
  _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;
          /* patch #1 */   
          if (0 == z || 2 == z) {
            var A = new Image(1, 1);
            A.src = h.Da + l;
            A.onload = function(){ 
              A.onload = null;
              if ((z != 2) && (x != null)) 
                x(); 
            };
          }
          /* patch #2 */
          if (1 == z || 2 == z) {
            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 = function(){u=null;  x;} || function () {u=null;};
          }
        }
      }
      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("+"));};
  }

  tf.ga.initialized = true;
}

patch_ga();
