// Collect essential client properties and conditionally load style sheet

domdata = new domdetect();

// domdetect() makes domdata object
function domdetect() {

	// Capture essential client properties
	this.wvlong = parseFloat(navigator.appVersion);
	this.wvshort = parseInt(navigator.appVersion);
	this.wagent = navigator.userAgent;
	this.wplatform = navigator.platform;
	this.wbrowser = navigator.appName;
	this.isFlash = false;
	
	// Set Browser and Platform Tests
	this.isMac = (this.wplatform.indexOf("Mac") != -1);
	this.isWin = (this.wplatform.indexOf("Win") != -1);
	this.isNN = (this.wbrowser == "Netscape");
	this.isIE = (this.wbrowser.indexOf("Microsoft") != -1);

	// Set Browser Version Tests
	this.isNN4 = (this.wvshort == 4) && (this.isNN);  
	this.isNN4Win = (this.isNN4) && (this.isWin != -1); 
	this.isNN6 = (this.wvshort >= 5) && (this.isNN);
	this.isIE4up = (this.wvshort >= 4) && (this.isIE);
	this.isIE5Mac = (this.isIE4up) && (this.wagent.indexOf("5.0") != -1) && (this.isMac);
	this.isIE6 = (this.wagent.indexOf("MSIE 6.0") != -1);
	this.isOther = (!this.isIE4up) && (!this.isNN6);
	
} // end function domdetect()

