<!--
function sysInfo(){
	this.checkBrowser = checkBrowser
	this.checkVersion = checkVersion
	this.checkPlatform = checkPlatform
	this.checkLanguage = checkLanguage
	this.checkCookie = checkCookie
	this.checkAll = checkAll
	this.showProp = showProp
}

function checkBrowser(){
	this.Name = navigator.appName
	this.ie = ((this.Name == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=4 ))
	this.ns = ((this.Name == "Netscape")	&& (parseInt(navigator.appVersion) >=4 ))
}

function checkVersion(){
	this.Ver = navigator.appVersion
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.v = parseInt(navigator.appVersion)
	if (this.ie5){
		this.v = 5
	}
	this.ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 4))
	this.ns5 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) == 5))
}

function checkPlatform(){
	this.OS = navigator.platform
}

function checkLanguage(mode){
	//if mode then pop will appear in netscape

	if (navigator.appName == "Netscape"){
		this.Lang = navigator.language
	}else{
		this.Lang = navigator.systemLanguage
	}

	this.userLang = navigator.userLanguage

	if (navigator.appName == "Netscape"){
		this.userLang = "error";
		if (mode){
			alert("checkLanguage function alert\nNetscape can not check for user language")
		}
	}
}

function checkCookie(mode){
	//if mode then pop will appear in netscape

	this.cookies = (navigator.cookieEnabled)
	if (navigator.appName == "Netscape"){
	this.cookies = "error"
		if (mode){
			alert("checkCookie function alert\nNetscape can not check if cookies is enabled")
		}
	}
}

function checkAll(mode){
	this.checkBrowser();
	this.checkVersion();
	this.checkPlatform();
	this.checkLanguage();
	this.checkCookie(mode);
}

function showProp(){
	var browser = "info: \n"
	for (var propname in navigator){
		browser += propname + ": " + navigator[propname] + "\n";
	}
	alert(browser)
}


bc = new sysInfo()
bc.checkAll()


//-->
