
function UserBrowser(){
	this.ns4 = (document.layers) ? true : false;
	this.ns6 = (document.getElementById) ? true : false;
	this.ie4 = (document.all) ? true : false;
	// if( this.ie4 ) var docRoot = 'document.body';
	this.ie5 = false;

	if( this.ie4 ){
		if( navigator.userAgent.indexOf('MSIE 5') > 0 || navigator.userAgent.indexOf('MSIE 6') > 0 ){
			// if( document.compatMode && document.compatMode == 'CSS1Compat' ) docRoot = 'document.documentElement';
			this.ie5 = true;
		}
		this.ns6 = false;
	}

	this.isNS4 = UserBrowser_isNS4;
	this.isNS6 = UserBrowser_isNS6;

	this.isIE4 = UserBrowser_isIE4;
	this.isIE5 = UserBrowser_isIE5;

	this.isNS = UserBrowser_isNS;
	this.isIE = UserBrowser_isIE;
}

function UserBrowser_isNS4(){ return this.ns4; }

function UserBrowser_isNS6(){ return this.ns6; }

function UserBrowser_isIE4(){ return this.ie4; }

function UserBrowser_isIE5(){ return this.ie5; }


function UserBrowser_isNS(){ return this.ns4 || this.ns6; }

function UserBrowser_isIE(){ return this.ie4 || this.ie5; }

var userBrowser = new UserBrowser();
