// **********************************************************************************************
// 						
// 	CLASE: Navegador			
// 				
// 	VER: 3.0				 	
//	AUTOR: Alberto Marruenda Molina		
//	FECHA: 10/03/2003		
//	SOPORTA: 
//		-Microsoft Internet Explorer ver. 4.0 o superior
//		-Netscape ver. 4.0 o superior
//		
// 	NOTAS: Navegadores detectados:
//
//		-Microsoft Internet Explorer ver. 4.x, 5.x y 6.x
//		-Netscape ver. 4.x, 6.x y 7.x
//
//	PROPIEDADES DEL OBJETO:
//
//		-ns: a verdadero cuando el navegador es el Netscape
//		-ns4: a verdadero cuando el navegador es el Netscape 4.x
//		-ns6: a verdadero cuando el navegador es el Netscape 6.x
//		-ns7: a verdadero cuando el navegador es el Netscape 7.x
//		-ie: a verdadero cuando el navegador es el Microsoft Internet Explorer
//		-ie4: a verdadero cuando el navegador es el Microsoft Internet Explorer 4.x
//		-ie5: a verdadero cuando el navegador es el Microsoft Internet Explorer 5.x
//		-ie6: a verdadero cuando el navegador es el Microsoft Internet Explorer 6.x
//
//	METODOS DEL OBJETO:
//
//		-N/A
//
//
// **********************************************************************************************

function Navegador()
{
	this.nav="no valido"	

	if (navigator.appName=="Netscape") 
		this.nav = "ns";
	if (navigator.appName=="Microsoft Internet Explorer") 
		this.nav = "ie";
	
	this.v = navigator.appVersion
	this.ver = parseInt(this.v)
	
	//DETECCIÓN DEL NAVEGADOR 
	//	-Microsoft Internet Explorer (Versión 4.0 o superior)
	//	-Netscape (Versión 4.0 o superior)

	this.ns = (this.nav=="ns" && this.ver>=4)
	this.ie = (this.nav=="ie" && this.ver>=4)
	
	//DETECCIÓN DE LA VERSIÓN DEL NAVEGADOR
	
	this.ns4 = (this.nav=="ns" && this.ver==4)
	this.ns6 = (this.nav=="ns" && this.ver==6)
	this.ns7 = (this.nav=="ns" && this.ver==7)
	this.ie4 = (this.v.indexOf('MSIE 4')>0)
	this.ie5 = (this.v.indexOf('MSIE 5')>0)
	this.ie6 = (this.v.indexOf('MSIE 6')>0)
}