
function api_browser_check(){
	this.name = navigator.appName;
	this.ver = navigator.appVersion;
	this.userAgent = navigator.userAgent;
	this.dom = document.getElementById?true:false;
	this.ie5_5 = (this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?true:false;
	this.ie5 = (this.ver.indexOf("MSIE 5.0")>-1 && this.dom)?true:false;
	this.ie = (document.all && !this.dom)?true:false;
	//	this.n6=(this.dom && parseInt(this.ver) >= 5) ?true:false;
	//	opera returned true for this, so test for "Netscape6" instead
	this.n6 = (this.userAgent.indexOf("Netscape6")>-1 && this.dom)?true:false;
	this.n = (document.layers && !this.dom)?true:false;
	this.opera = (this.name.indexOf("Opera")>-1)?true:false;
	this.dreamcast = (this.name.indexOf("Dreamcast")>-1)?true:false;
	return this
}
//	short names are included for convenience, though they may be phased out in a later release...
this_browser = new api_browser_check();
browserDOM = dom = this_browser.dom;
browserIE5_5 = ie5_5 = this_browser.ie5_5;
browserIE5 = ie5 = this_browser.ie5;
browserN6 = n6 = this_browser.n6;
browserIE = ie = this_browser.ie;
browserN = n = this_browser.n;
browserOpera = opera = this_browser.opera;
browserDreamcast = dc = this_browser.dreamcast;
browserUserAgent = this_browser.userAgent;


//	api_browser_os
//
function api_browser_os(){
	this.os = navigator.platform;
	return this;
}
this_browser_os = new api_browser_os();
browserOs = this_browser_os.os;


//	api_browser_javascript_version
//
function api_browser_javascript_version(){
	//	where can i get the javascript version from,
	//	other than writing specific javascript blocks?
}


//	api_browser_doctype_version
//	the doctype object is currently only supported in mac IE5 and pc IE6
//
function api_browser_doctype_version(){
	if (document.doctype){
		this.name = document.doctype.name;
	}else{
		this.name = "not identified"
	}
}
this_doctype = new api_browser_doctype_version();
browserDoctype = this_doctype.name;
