/************************************************************************
(c) 2003 Canarias Data Webdesign & Hosting
     javascript 1.2 conform
		
 ************************************************************************/

 function browserInfoObj()
 { 
	this.version = navigator.appVersion; 
	this.agent	 = navigator.userAgent;
	this.dom	 = (typeof(document.getElementById) != "undefined") ? 1 : 0;
			
	if (this.agent.indexOf("Mac") > (-1)) 
		this.platform = "mac";
	else if (this.agent.indexOf("Windows 3.1") > (-1))
		this.platform = "windows31";
	else if (this.agent.indexOf("Windows") > (-1)) 
		this.platform = "windows";
	else this.platform = "unknown";
			
	if ((typeof(document.layers) != "undefined") &&
		(!this.dom))
		this.netscape = 4;
	else if ((this.dom) &&
			 (parseInt(this.version) >= 5))
		this.netscape = 6;
	else this.netscape = 0;
			
	if ((typeof(document.all) != "undefined") &&
		(!this.dom))
		this.explorer = 4;
	else if ((this.version.indexOf("MSIE 5") > (-1)) && 
			 (this.dom))
		this.explorer = 5;
	else if ((this.version.indexOf("MSIE 6") > (-1)) && 
			 (this.dom))
				this.explorer = 6;
	else this.explorer = 0;
				
	if (this.agent.indexOf("Opera 5") > (-1))
		this.opera = 5;
	else this.opera = 0;
	
	return (this);
 }

