	function cambiar_fuentes(){

		FLIR.init();		
		//$("div.slogan").each( function() { FLIR.replace(this, newFLIRStyle( {cFont:'fontname' } )); } );
		// estas dos lineas corrigen ie5
		var b_version=navigator.appVersion;
		var version=parseFloat(b_version);		

		$("h1").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'deloise',mode:'wrap' } )); } );
		$(".nav").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$(".nav2").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'candara',mode:'wrap' } )); } );
		
		$(".gothic").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$(".candara").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'candara',mode:'wrap' } )); } );
		
		$(".establecimiento").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$(".categoria").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'deloise',mode:'wrap' } )); } );
		$(".subnombre").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$(".resultado_nombre").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic' } )); } );		
		
		$("h2").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'deloise',mode:'wrap' } )); } );
		$("h3").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$("h4").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
	//	$("h2").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		$(".servicio_titulo").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'gothic',mode:'wrap' } )); } );
		
		//$("div.cuerpo_texto").each( function() { FLIR.replace(this, new FLIRStyle( {cFont:'candara', mode:'wrap' } )); } );
		
																																								   
	}



	function dame_correo(usuario,dominio){
	   return usuario + '@' + dominio
	}




	function escribe_correo_retocado(usuario,dominio,usuario_retocado,dominio_retocado){
	   document.write("<a href='mailto:" + dame_correo(usuario,dominio) + "'>" + dame_correo(usuario_retocado,dominio_retocado) + "</a>")
	}
	
	function escribe_correo(usuario,dominio){
	   document.write("<a href='mailto:" + dame_correo(usuario,dominio) + "'>" + dame_correo(usuario,dominio) + "</a>")
	}
	function escribe_correo_mensaje(usuario,dominio,mensaje){
	   document.write("<a href='mailto:" + dame_correo(usuario,dominio) + "'>" + mensaje + "</a>")
	}
	function escribe_correo_img(usuario,dominio,img){
	   document.write("<a href='mailto:" + dame_correo(usuario,dominio) + "'><img src='" + img + "' /></a>")
	}
	




	function enviarFormularioContacto(n_form){

	   mandar = true;
       form = document.getElementById(n_form)
	   if (form.nombre.value < 1){
			alert("Error, debe escribir un Nombre válido.");
			form.nombre.focus();
			mandar = false;            
        }
        if ((form.email.value < 8)&&(form.telefono.value < 1)){
			alert("Error, debe escribir un Email o Télefono valido.");
			form.email.focus();
			mandar = false;            
        }		
		
	   if (mandar){
			form.submit();		
	   }
	}
	
 	
	
	
	

	var nav4 = window.Event ? true : false;
	function acceptNum(evt){	
		// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57	
		var key = nav4 ? evt.which : evt.keyCode;	
		if (key == 13) {
			enviar();
		}else{
			return (key <= 13 || (key >= 48 && key <= 57));
		}
		return false;
	}

	


	function  isDate(sDate) { 
		
		var  match  =  sDate.match(/^(\d\d?)\/(\d\d?)\/(\d{4})$/);
		if  (!match)  {  return  false;  }//no  es  una  fecha valida
		return  true;
	}


	function crearPopUp(URL, Nombre, popW, popH, scr, resize) {
		var winleft = (screen.width - popW) / 2;
		var winUp = (screen.height - popH) / 2;
		popW = popW + 20;
		popH = popH + 20;	
		winProp ='width='+popW+',height='+popH+',left='+winleft+',top='+winUp+',scrollbars='+scr+',resizable='+resize+',location=no';
		Win = window.open(URL, Nombre, winProp);
		Win.window.focus();
	}



	function text(c){
	
		var entra=new Array('\n','\t','\"');
		var sale =new Array('','&nbsp;&nbsp;&nbsp;&nbsp;','');
		nt= "";
		for(var q=0; q < c.length; q++){
			nc = c.charAt(q)
			for(var w=0; w < entra.length ;w++){
				if(c.charAt(q) == entra[w]){
					nc = sale[w];
					break;
				}
			}
			nt+= nc;
		}
		
		text = nt;
		return text;
	}


	function setH() {
		altura_cuerpo = document.getElementById('establecimiento_cuerpo_texto').offsetHeight;
		altura_servicios = document.getElementById('establecimiento_cuerpo_servicios').offsetHeight;
//    	var maxH =Math.max(document.getElementById('alojamiento_cuerpo_servicios').offsetHeight,altura_cuerpo);
		if (altura_cuerpo > altura_servicios){
			altura = altura_cuerpo + 1;
			document.getElementById('establecimiento_cuerpo_servicios').style.height=altura+'px';
		}else{
			altura = altura_servicios - 35;
		    document.getElementById('establecimiento_cuerpo_texto').style.height=altura+'px';		
		}

    }
    
// 	window.onload=setH();

	function hideSelects(action) {
		//documentation for this script at http://www.shawnolson.net/a/1198/
		//possible values for action are 'hidden' and 'visible'
		if (action!='visible'){action='hidden';}
		if (document.all) {
			for (var S = 0; S < document.forms.length; S++){
				for (var R = 0; R < document.forms[S].length; R++) {
					if (document.forms[S].elements[R].options) {
						document.forms[S].elements[R].style.visibility = action;
					}
				}
			}
		}
	}