function informacion_navegador()
{

	var navegador = navigator.appName;

	//comprobamos el idioma con los diferentes navegadores

	if(navegador != "Netscape") //si no es IE
	{
 		this.idioma = navigator.browserLanguage;
	}
	else
	{
 		this.idioma =  navigator.language;
	}
	//this.codigo_nobre = navigator.appCodeName;
	//this.version = navigator.appVersion.substring(0,4);
	//this.plataforma = navigator.platform;
	//this.javaEnabled = navigator.javaEnabled();
	//this.pantalla_ancho = screen.width;
	//this.pantalla_alto = screen.height;

	//redireccionamos a la web en el idioma indicado
	if((this.idioma == "es")||(this.idioma == "es-ES")) //español
	{
		//redireccionamos a la web/es
		//alert('Español');
		location.href="es/index.html";
	}
	
	else //para cualquier otro idioma lo ponemos en inglés
	{
		//redireccionamos a la web/es
		//alert('English');
		location.href="en/index.html";
	}	
}

var datos= new informacion_navegador();
//timer = setTimeout("informacion_navegador()", 2000);  //hacemos que la función se ejecute a los x seg
//alert('Nombre del navegador:n'+datos.nombre);
	//alert('Idioma del navegador:'+datos.idioma);
//alert('Redireccionamos a Web:'+datos.idioma);
//alert('Código: n'+datos.codigo_nobre);
//alert('Plataforma: n'+datos.plataforma );
//alert('Java: n'+datos.javaEnabled);
//alert('Resolución Ancho: n'+datos.pantalla_ancho);
//alert('Resolución alto: n'+datos.pantalla_alto);
