var width = screen.width;
var height = screen.height;
var browser = navigator.appName;
var depth;

if (browser.indexOf("Netscape") != -1) 
	depth = screen.pixelDepth;
else
	depth = screen.colorDepth;