function gt_var(o, n) {
  var s = o.src;
  var k = n + "=";
  var b = s.indexOf("&" + k);
  if (b < 0) { 
    if ((b = s.indexOf("?" + k)) < 0)
      return null;
  } else b++;
  var e = s.indexOf("&", b);
  if (e == -1) {
    e = s.length;
  }
  return unescape(s.substring(b + k.length, e));
}

function gt_view(o, n) {
  // if (gt_var(o, "prev_fmts") != null) return;
  var bug = new Image();
  bug.src = 'http://dossy.org/gt.adp' +
    '?cv=v' +
    '&t=g' +
    '&n=' + n +
    '&ref=' + escape(document.location.href) +
    '&url=' +
    '&w=' + gt_var(o, 'u_w') +
    '&h=' + gt_var(o, 'u_h') +
    '&cd=' + gt_var(o, 'u_cd') +
    '&f=' + gt_var(o, 'format') +
    '&at=' + gt_var(o, 'ad_type') +
    '&cb=' + gt_var(o, 'color_border') +
    '&cbg=' + gt_var(o, 'color_bg') +
    '&cl=' + gt_var(o, 'color_link') +
    '&cu=' + gt_var(o, 'color_url') +
    '&ct=' + gt_var(o, 'color_text') +
    '&ch=' + gt_var(o, 'channel') +
    '&cch=null' +
    '&r=' + escape(document.referrer) +
    '&dt=' + new Date().valueOf();
}

function gt_log(e, n, o) {
  gt_status = window.status;
  window.focus();
  var bug = new Image();
  bug.src = 'http://dossy.org/gt.adp' +
    '?cv=c' +
    '&t=g' +
    '&n=' + n +
    '&ref=' + escape(document.location.href) +
    '&url=' + escape(gt_status) +
    '&w=' + gt_var(o, 'u_w') +
    '&h=' + gt_var(o, 'u_h') +
    '&cd=' + gt_var(o, 'u_cd') +
    '&f=' + gt_var(o, 'format') +
    '&at=' + gt_var(o, 'ad_type') +
    '&cb=' + gt_var(o, 'color_border') +
    '&cbg=' + gt_var(o, 'color_bg') +
    '&cl=' + gt_var(o, 'color_link') +
    '&cu=' + gt_var(o, 'color_url') +
    '&ct=' + gt_var(o, 'color_text') +
    '&ch=' + gt_var(o, 'channel') +
    '&cch=null' +
    '&r=' + escape(document.referrer) +
    '&dt=' + new Date().valueOf();
}

var gt_status = '';
var gt_o = new Array();
var e = document.getElementsByTagName("iframe");
var c = 0;
for (var i = 0; i < e.length; i++) {
  if (e[i].src.indexOf('googlesyndication.com') > -1) {
    if (document.layers) {
      e[i].captureEvents(Events.ONFOCUS);
      e[i].captureEvents(Events.ONMOUSEOVER);
    }
    gt_o[c] = e[i];
    eval("function gt_log" + c + "(e) { gt_log(e, " + c + ", gt_o[" + c + "]); }");
    e[i].onfocus = eval("gt_log" + c);
    setTimeout("gt_view(gt_o[" + c + "], " + c + ")", c * 100);
    c++;
  }
}
