<!--


//  detects the users web browser (name, version, OS)
//  detects IE 5.x, IE 6
//			NN 4.x, NN 6, NN7
//  		Opera 5, Opera 6
//			Mozilla 1.x

	function browserSpecs() {
		
		var client = navigator.userAgent.toLowerCase();
	   	this.name  = client;
	   	this.ver   = 0;
	   	
	   	this.apver = navigator.appVersion.toLowerCase();
	   
	   	this.w3c   = (document.documentElement);
	   	this.ie    = ((client.indexOf("msie") != -1) && (client.indexOf("opera") == -1));
	   	this.ns    = ((client.indexOf('mozilla')    != -1) && 
	                  (client.indexOf('spoofer')    == -1) && 
	                  (client.indexOf('compatible') == -1));
	   	this.ns6   =  (client.indexOf("netscape6") != -1);
	   	this.ns7   =  (client.indexOf("netscape/7") != -1);
	   	this.moz   = ((client.indexOf('mozilla')  != -1) && 
	                  (client.indexOf('gecko')    != -1) &&
	                  (client.indexOf('netscape') == -1));
	   	this.op    =  (client.indexOf("opera") != -1);
	   
	   	if (this.ie) 
	   		this.ver = this.name.substring(this.name.indexOf('msie')+4,this.name.length);
	   
	   	if (this.ns) {
	   		this.ver = (client.indexOf('gecko') == -1) ? this.apver : this.ver;
	   		this.ver = (this.ns6) ? this.name.substring(this.name.indexOf('netscape6')+10,this.name.length) : this.ver;
	   		this.ver = (this.ns7) ? this.name.substring(this.name.indexOf('netscape/7')+9,this.name.length) : this.ver;
	   	}
	   
	   	if (this.moz)
	   		this.ver = this.name.substring(this.name.indexOf('rv:')+3,this.name.length);
	   		
	   	if (this.op)
	   		this.ver = this.name.substring(this.name.indexOf('opera')+6,this.name.length);
	   		
	   	this.major = parseInt(this.ver);
	   	this.minor = parseFloat(this.ver);
	   
	   	this.ie4   = (this.ie  && (this.major >= 4) && (this.major < 5));
	   	this.ie5   = (this.ie  && (this.major >= 5) && (this.major < 6));
	   	this.ie6   = (this.ie  && (this.major >= 6) && (this.major < 7));
	   	this.ie7   = (this.ie  && (this.major >= 7) && (this.major < 8));
	   	this.ns4   = (this.ns  && (this.major >= 4) && (this.major < 5));
		this.moz1  = (this.moz && (this.major >= 1) && (this.major < 2));
	   	this.moz5  = (this.moz1 || this.ns6 || this.ns7);
	   	this.op4   = (this.op  && (this.major >= 4) && (this.major < 5));
	   	this.op5   = (this.op  && (this.major >= 5) && (this.major < 6));
	   	this.op6   = (this.op  && (this.major >= 6) && (this.major < 7));
			   
	   	this.dhtml = (this.ns || this.ie || this.w3c || this.op || this.moz || this.moz5);
	   
	   	this.win   = (client.indexOf("win")!=-1);
	   	this.mac   = (client.indexOf("mac")!=-1);
	   	this.unix  = (client.indexOf("x11")!=-1);
	}
	
	var webclient = new browserSpecs();

//-->



