
var browserName = navigator.appName;
var browserVer = parseFloat(navigator.appVersion);
var qs, wHeight, wWidth, sHeight, sWidth, bitDepth;	
if (browserName == 'Netscape' && browserVer >= 4 && browserVer < 5) 
  {
  	
	wHeight = window.innerHeight;
		wWidth = window.innerWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
  } 
  else if (browserName == 'Netscape' && browserVer >= 5) 
  {
  	
	wHeight = window.innerHeight;
		wWidth = window.innerWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
  }
  else if (browserName == 'Netscape' && browserVer >= 3 && browserVer <= 4) 
  {
  	
	wHeight = 0;
		wWidth = 0;
		sHeight = 0;
		sWidth = 0;
		bitDepth = 0;
  }
  else {
	
	wHeight = document.body.clientHeight;
		wWidth = document.body.clientWidth;
		sHeight = screen.height;
		sWidth = screen.width;
		bitDepth = screen.colorDepth;
  }
qs = "";
qs = qs + "wHeight=" + wHeight + "&";
qs = qs + "wWidth=" + wWidth + "&";
qs = qs + "sHeight=" + sHeight + "&";
qs = qs + "sWidth=" + sWidth + "&";
qs = qs + "bitDepth=" + bitDepth;

	setCookie("WHEIGHT",wHeight);
	setCookie("WWIDTH",wWidth);
	setCookie("SHEIGHT",sHeight);
	setCookie("SWIDTH",sWidth);
	setCookie("BITDEPTH",bitDepth);

