if (typeof(sa_log) != 'function') {
  function sa_log(otherParams, st, id1, id2, uid)
  {
    var h = location.host
    var sn = location.pathname;
    var qs = location.search;
    var rf = document.referrer;

    if (st == undefined) st = 0;
    if (id1 == undefined) id1 = '';
    if (id2 == undefined) id2 = '';
    if (uid == undefined) uid = '';
    if (otherParams == undefined) otherParams = '';

    var url = '/sa/img-sa.php';
    var params = [
      "p=1",  
      "st=" + st,
      "h=" + h,
      "sn=" + sn,
      "qs=" + encodeURIComponent(qs),
      "rf=" + encodeURIComponent(rf),
      "id1=" + id1,
      "id2=" + id2,
      "uid=" + uid,
      "ot=" + encodeURI(otherParams),
    ];

    src = url + '?' + (params.join('&'));
    (new Image()).src = src;

    return true;
  }
}

