//Lucid Counter v1.15
//Manuel de Verdier
//Copyright Lucid IT 2001-2002

//Variabeldeklarationer----------------------------------------------------
p="na";		//page
c="na";		//colors
r="na";		//resolution
o="na";		//os
b="na";		//browser
		
//Variabelvärden-----------------------------------------------------------
if (navigator.appVersion.charAt(0) >= 4) {
	b=navigator.appName;
	
	//Färger-------------------------------------
	if (b != "Netscape") {
		c=screen.colorDepth;
	}
	else {
		c=screen.pixelDepth;
	}
	if (c != 4 && c != 8 && c != 12 && c!= 16 && c != 24 && c != 32)
		c = "Unknown";
	
	//Upplösning---------------------------------
	r=screen.width;
	if (r != 240 && r != 640 && r != 800 && r!= 1024 && r != 1152 && r != 1280 && r!= 1600)
		r = "Unknown";
	
	//Browser------------------------------------
	if (b == "Netscape") {
		if (navigator.appVersion.charAt(0) >= 5) {
			if(navigator.userAgent.indexOf("Netscape") != -1) {
				if(navigator.userAgent.indexOf("Netscape/7") || navigator.userAgent.indexOf("Netscape 7") != -1)
					b="N7";
				else
					b="N6";
			}
			else
				b="Mozilla";
		}
		else
			b="N"+navigator.appVersion.charAt(0);
	}
	else if (b == "Microsoft Internet Explorer") {
		if (navigator.userAgent.indexOf("Opera") != -1)
			b="Opera";
		else {
			if (navigator.appVersion.indexOf("MSIE 5") != -1)
				b="IE5";
			else if (navigator.appVersion.indexOf("MSIE 6") != -1)
				b="IE6";
			else
				b="IE4";
		}
	}
	else if (navigator.userAgent.indexOf("Konqueror") != -1)
			b="Konqueror";
	else
		b = "na";
	
	//OS-----------------------------------------
	agt = navigator.userAgent.toLowerCase();
	if ((agt.indexOf("winme")!= -1) || (agt.indexOf("windows me") != -1)
									|| (agt.indexOf("win 9x")	  != -1))
		o = "WinME";
	else if ((agt.indexOf("win98") != -1) || (agt.indexOf("windows 98") != -1))
		o = "Win98";
	else if ((agt.indexOf("win95") != -1) || (agt.indexOf("windows 95") != -1))
		o = "Win95";
	else if ((agt.indexOf("windows nt 5.1") != -1) || (agt.indexOf("windows xp") != -1))
		o = "WinXP";
	else if ((agt.indexOf("windows nt 5") != -1) || (agt.indexOf("windows 2000") != -1)
						     || (agt.indexOf("win2000") != -1))
		o = "Win2000";
	else if ((agt.indexOf("winnt") != -1) || (agt.indexOf("windows nt") != -1))
		o = "WinNT4";
	else if ((agt.indexOf("wince") != -1) || (agt.indexOf("windows ce") != -1))
		o = "WinCE";
	else if ((agt.indexOf("os/2")  != -1) || (navigator.appVersion.indexOf("os/2") != -1) 
										  || (agt.indexOf("ibm-webexplorer")	   != -1))
		o = "OS2";
	else if	(agt.indexOf("mac") != -1)
		o = "Mac";
	else if (agt.indexOf("inux") != -1)
		o = "Linux";
	else if ((agt.indexOf("sunos") != -1) || (agt.indexOf("irix")  != -1) 
										  || (agt.indexOf("hp-ux") != -1) 
										  || (agt.indexOf("aix")   != -1) 
										  || (agt.indexOf("unix")  != -1) 
										  || (agt.indexOf("sco")   != -1) 
										  || (agt.indexOf("sinix") != -1) 
										  || (agt.indexOf("x11")   != -1) 
										  || (agt.indexOf("bsd")   != -1) 
										  || (agt.indexOf("ncr")   != -1))
		o = "UNIX";					
	else
		o = "Unknown";
}
//Om det är Win CE med IE3
else {
	if ((agt.indexOf("wince") != -1) || (agt.indexOf("windows ce") != -1)) {
		o = "WinCE";
		if (c == "na")
			c=12;
		if (agt.indexOf("240x320") != -1 && r == "na")
			r=240;
	}
}

//Skicka informationen--------------------------------------------------------
info="?c=" + c + "&r=" + r + "&b=" + b + "&o=" + o;