function winH() {
   if (window.innerHeight)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerHeight;
   else if
   (document.documentElement &&
   document.documentElement.clientHeight)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerHeight */
      return document.documentElement.clientHeight;
   else if
   (document.body && document.body.clientHeight)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientHeight;
   else
      return undefined;
}

function winW() {
   if (window.innerWidth)
      /* NN4 a kompatibilní prohlížeče */
      return window.innerWidth;
   else if
   (document.documentElement &&
   document.documentElement.clientWidth)
      /* MSIE6 v std. režimu - Opera a Mozilla
      již uspěly s window.innerWidth */
      return document.documentElement.clientWidth;
   else if
   (document.body && document.body.clientWidth)
      /* starší MSIE + MSIE6 v quirk režimu */
      return document.body.clientWidth;
   else
      return undefined;
}

function stat(){
var xyz=0;

var n=navigator;
var p=document;

var sx,sy;

var c,t,b,j,m,r,y;
var sd,x,wx,wy;
d=x=w=0;

var n3f8q;

b=(n.appName=="Netscape" && parseInt(n.appVersion)==4)?"border=\"0\"":"style=\"border:none\"";


 if(n.plugins && n.plugins["Shockwave Flash"]){
 t=n.plugins["Shockwave Flash"].description;
 n3f8q=parseInt(t.charAt(t.indexOf(".")-1));
 }

 r=window.top.document.referrer;


 m=(n.userAgent.substring(0,8)=="Mozilla/")?n.userAgent.substring(8,9):4;
 if(m>2)
   j=(n.javaEnabled())?1:0;


 if(m>3 && screen){
   sd=screen.colorDepth;
   if(sd==0)
     sd=screen.pixelDepth;


   sx=screen.width;
   sy=screen.height;

   wx = winW();
   wy = winH();


 }

 y=new Date();
 y.setTime(y.getTime()-31536000000);
 p.cookie="nvt=1";
 c=(p.cookie.indexOf("nvt") != -1)?1:0;
 p.cookie="nvt=1; expires="+y.toGMTString();


 var parms = "flash="+n3f8q
 +"&amp;java="+j
 +"&amp;cookie="+c
 +"&amp;referrer="+escape( r )
 +"&amp;sd="+sd
 +"&amp;sx="+sx
 +"&amp;sy="+sy
 +"&amp;wx="+wx
 +"&amp;wy="+wy
 +"&amp;usrId="+userId
 +"&amp;js=1"
 +"&amp;r="+Math.random();

 p.writeln('<img src="/modules/SQLLogSys2Js/hit.php?'+parms+'" width="1" height="1" style="display: none;">')

/* Flash Player		int(11)		*/
/* Java 1/0		bool		*/
/* Cookies 1/0		bool		*/
/* Referrer		varchar(2000)	*/
/* Screen deph		int(11)		*/
/* Screen.xPX		int(11)		*/
/* Screen.yPX		int(11)		*/
/* window.xPX		int(11)		*/
/* window.yPX		int(11)		*/
/* JavaScript 1/0	bool		*/
/* Aby se obrázek nekešoval		*/
 //alert(parms);

}
stat();


