<!--
	function versionNavegador() {
		var version = navigator.appVersion;
		var nombre = navigator.appName;
		var IE = nombre.toUpperCase().indexOf('MICROSOFT') >=0;
		var NS = nombre.toUpperCase().indexOf('NETSCAPE') >=0;
		var OP = nombre.toUpperCase().indexOf('OPERA') >= 0;
		
		if(version+"" != "NaN"){
			if (IE){
				version.match(/(MSIE)(\s*)([0-9].[0-9]+)/ig);
				version = RegExp.$3;
			}

			Verent = parseInt(version);
			
			if (IE) return "IE"+Verent;
			if (NS) return "NS"+Verent;
			if (OP) return "OP"+Verent;
		}
		return "XXNN";
	} 	
	
	//Según resolución (en ancho) y versión de navegador se cargará una hoja de estilos u otra
	//cajacantabria.css es la hoja de estilos base para todas las resoluciones y navegadores
			
	urlHojaEstilo = '/portal/src/';
	resolucion = screen.width;
			
	if ((resolucion == '800') || (resolucion == '640')) {
		// Cargamos la hoja de estilo correspondiente a la resolución de pantalla utilizada
		document.getElementById('hojaestilo2').href = urlHojaEstilo + 'cajaCantabria.css';
		document.getElementById('hojaestilo').href = urlHojaEstilo + resolucion + ".css";
	}
	else {
		if ((versionNavegador() == 'IE6')&&(resolucion!='1024')&&(resolucion!='800')&&(resolucion!='640')){
		//caso especial del IE6 a resolución superior de 1024
			if ((resolucion == '1152') || (resolucion == '1280')) {
				document.getElementById('hojaestilo2').href = urlHojaEstilo + 'cajaCantabria.css';
				document.getElementById('hojaestilo').href = urlHojaEstilo + resolucion + "IE6" + ".css";
			}
			else{
				document.getElementById('hojaestilo').href = urlHojaEstilo + 'cajaCantabria.css';
			}
		}
		else{
			document.getElementById('hojaestilo').href = urlHojaEstilo + 'cajaCantabria.css';
		}
		resolucion = 'cajaCantabria';
	}
//-->
