function logNetFactorHit() {
  var cookie = null;

  try {
    cookie = getCookie("__nf");
  } catch(err) {}

  if (cookie) {
    var id = 358;
    var ver = 2.0;
    var x = new Date();
    var tzo = x.getTimezoneOffset() / 60;

    var imgsrc =
      location.protocol + '//www.visitor-track.com/admin/loghit.asp' +
      '?id=' + id +
      '&rp=' + escape(document.referrer) +
      '&sw=' + screen.width +
      '&sh=' + screen.height +
      '&pa=' + escape(document.URL) +
      '&bn=' + escape(navigator.appName + ' v' + navigator.appVersion) +
      '&tzo=' + tzo +
      '&vr=' + ver;
    document.write("<img border=\"0\" alt=\"\" src=\"" + imgsrc + "\" />");

    // reset the cookie
    setNetFactorVisit();
  }
}

function setNetFactorVisit() {
  var cookieval = null;
  try {
    cookieval = getCookie("__nf");
  } catch(err) {}

  if (cookieval == null)
    cookieval = document.URL;

  var expire = new Date();
  expire.setDate(expire.getDate() + 7);
  setCookie("__nf", cookieval, expire, "/", ".giganews.com");
}

function analyticsTrack(url) {
  _gaq.push(['_trackPageview', url]);
}

$(function(){
  $("a.outbound").click(function(event){
    analyticsTrack("giganews.com/outbound/" + this.href.replace(/^https?:\/\/(www\.)?/, "") );
    setTimeout(function(href){ return function(){ window.location = href; } }(this.href), 500);    
    event.preventDefault();
  });
});

