function HotLOG(counter_id,js) {
  hotlog_js = parseInt(js);
  hotlog_d=document;hotlog_n=navigator;hotlog_rn=Math.random()
  hotlog_n_n=(hotlog_n.appName.substring(0,3)=="Mic")?0:1
  hotlog_r=""+hotlog_rn+"&s="+counter_id+"&r="+escape(hotlog_d.referrer)+"&pg="+escape(window.location.href)
  hotlog_d.cookie="hotlog=1";
  hotlog_r+="&c="+(hotlog_d.cookie?"Y":"N");
  hotlog_d.cookie="hotlog=1; expires=Thu, 01-Jan-70 00:00:01 GMT";
  if(hotlog_js >= 1) { hotlog_r+="&j="+(navigator.javaEnabled()?"Y":"N") } 
  if(hotlog_js >= 2) {
    hotlog_s=screen
    hotlog_r+="&wh="+hotlog_s.width+'x'+hotlog_s.height+"&px="+((hotlog_n_n==0)?hotlog_s.colorDepth:hotlog_s.pixelDepth)
  }

  if(hotlog_js == 0) { 
   hotlog_r += "&js=1.0"; 
  } else if(hotlog_js == 1) {
   hotlog_r += "&js=1.1";
  } else if(hotlog_js == 2) {
   hotlog_r += "&js=1.2";
  } else if(hotlog_js == 3) {
   hotlog_r += "&js=1.3";
  }

  hotlog_d.write("<img src=\"http://hit.hotlog.ru/cgi-bin/hotlog/count?"+hotlog_r+"&\" border=0  width=1 height=1>");
}
