function caps(){
	var UA = navigator.userAgent;
	if(UA.indexOf("MSIE") != -1){
		this.ie = true;
		var v = UA.charAt(UA.indexOf("MSIE") + 5);
		if(v == 2 ) this.ie2 = true;
		else if(v == 3 ) this.ie3 = true;
		else if(v == 4 ) this.ie4 = true;
		else if(v == 5 ) this.ie5 = true;
		else if(v == 6 ) this.ie6 = true;
		if(this.ie4 || this.ie5 || this.ie6) this.UL = true;
	}else if(UA.indexOf("Mozilla") != -1 && UA.indexOf("compatible") == -1){
		this.nav = true;
		var v = UA.charAt(UA.indexOf("Mozilla") + 8);
		if(v == 2 ) this.nav2 = true;
		else if(v == 3 ) this.nav3 = true;
		else if(v == 4 ) this.nav4 = true;
		else if(v == 5 ) this.nav5 = true;
		else if(v == 6 ) this.nav6 = true;
	}
	this.version = v;
	if(UA.indexOf("Windows 95") > 0 || UA.indexOf("Win95") != -1 || UA.indexOf("Win98") != -1 || UA.indexOf("Windows 98") != -1 || UA.indexOf("Windows NT") != -1) this.win32 = true;
	else if(UA.indexOf("Windows 3.1") != -1 || UA.indexOf("Win16") != -1) this.win16 = true;
	else if(UA.indexOf("Mac") != -1) this.anymac = true;
	else if(UA.indexOf("SunOS") != -1 || UA.indexOf("HP-UX") != -1 || UA.indexOf("X11") != -1) this.unix = true;
	else if(UA.indexOf("Windows CE") != -1) this.wince = true;
}

var bc = new caps();
