var detectOsos, detectOsua = navigator.userAgent;
if (detectOsua.match(/Win(dows )?NT 6\.0/)) {
	detectOsos = "WindowsVista";				// Windows Vista ???
}
else if (detectOsua.match(/Win(dows )?NT 5\.2/)) {
	detectOsos = "WindowsServer2003";			// Windows Server 2003 ???
}
else if (detectOsua.match(/Win(dows )?(NT 5\.1|XP)/)) {
	detectOsos = "WindowsXP";				// Windows XP ???
}
else if (detectOsua.match(/Win(dows)? (9x 4\.90|ME)/)) {
	detectOsos = "WindowsME";				// Windows ME ???
}
else if (detectOsua.match(/Win(dows )?(NT 5\.0|2000)/)) {
	detectOsos = "Windows2000";				// Windows 2000 ???
}
else if (detectOsua.match(/Win(dows )?98/)) {
	detectOsos = "Windows98";				// Windows 98 ???
}
else if (detectOsua.match(/Win(dows )?NT( 4\.0)?/)) {
	detectOsos = "WindowsNT";				// Windows NT ???
}
else if (detectOsua.match(/Win(dows )?95/)) {
	detectOsos = "Windows95";				// Windows 95 ???
}
else if (detectOsua.match(/Mac|PPC/)) {
	detectOsos = "MacOS";					// Macintosh ???
}
else if (detectOsua.match(/Linux/)) {
	detectOsos = "Linux";					// Linux ???
}
else if (detectOsua.match(/(Free|Net|Open)BSD/)) {
	detectOsos = RegExp.$1 + "BSD";				// BSD ????
}
else if (detectOsua.match(/SunOS/)) {
	detectOsos = "Solaris";					// Solaris ???
}
else {
	detectOsos = "N/A";					// ???? OS ???
}
