function ServicioAvisoCanal(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y){if(typeof jQuery=="function")if(f=2,u=0,e=0,o=0,s=0,DivResultados=document.getElementById(n),DivResultados){DivZona[n]==undefined&&(DivZona[n]=[[],0,[]],FijoIdCanal=t);IDValido=jQuery("#HidBusqTextoId").val();typeof IDValido=="undefined"&&(IDValido="");(jQuery("#HidBusqTextoTipo").val()=="hotel"||jQuery("#HidBusqTextoTipo").val()=="zona")&&IDValido==0&&(jQuery("#HidBusqTextoTipo").val(""),jQuery("#HidBusqTextoId").val(""));IDValido=IDValido.trim();var p="&IdCanal="+t+"&FIni="+i+"&FFin="+r+"&Adulto="+f+"&Senior="+u+"&Joven="+e+"&Nino="+o+"&Bebe="+s+"&Idioma="+v+"&Servicios="+l+"&Zonas="+c+"&Tipo="+h+"&CaracEspe="+a+"&Pob="+y+"&HidBusqTextoTipo="+jQuery("#HidBusqTextoTipo").val()+"&HidBusqTextoId="+IDValido;LlamarServicio("GetListHotel",p,ProcesarHoteles,n)}else setTimeout(function(){ServicioAvisoCanal(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y)},200);else setTimeout(function(){ServicioAvisoCanal(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y)},100)}function LlamarServicio(n,t,i,r){try{jQuery.ajax({type:"GET",url:ReservarURL+ServicioPortal+n+t,contentType:"application/json; utf-8",dataType:"jsonp",success:function(n){if(typeof i=="function")try{r!=0?i(n,r):i(n);AumentoScrol&&(ControlScroll(),AumentoScrol=!1)}catch(t){i(n,r)}},error:function(n){console.log(n)}})}catch(u){console.log(u)}}function LlamarServicioEx(n,t,i,r){try{jQuery.ajax({type:"POST",url:ReservarURL+ServicioPortal+n+t,contentType:"application/json; utf-8",dataType:"jsonp",success:function(n){if(typeof i=="function")try{i(n);AumentoScrol&&(ControlScroll(),AumentoScrol=!1);r&&r()}catch(t){i(n)}},error:function(n){try{datos=jQuery.parseJSON(n.responseText);i(datos)}catch(t){console.log(n)}}})}catch(u){console.log(u)}}function RecogerImg(n,t){try{jQuery.ajax({type:"GET",url:ReservarURL+"XMLImg/"+t+".html",data:"",success:function(i){ProcesarImg(n,t,jQuery.parseJSON(i))},error:function(n){console.log(n)}})}catch(i){console.log(i)}}function ProcesarHoteles(n,t){var d=!0,p,g,e,a,u;if(typeof n!="undefined"&&typeof n.request!="undefined"&&n.request!=null){GetVariablesUrl();p=jQuery("#template").html();p=p.replace(/@DireccionIconos/g,DireccionIconos);g=jQuery("#templateSlider").html();e=jQuery("#templateInfo").html().replace(/@Zona/g,t);e=e.replace(/@DireccionIconos/g,DireccionIconos);var tt=jQuery("#templateTableHabita").html().replace(/@Zona/g,t),it=jQuery("#templateTableHabitaSinPrecio").html().replace(/@Zona/g,t),k="",r="",l=0,o=0,v=Array(),w=Array(),i=t,y=0,s=0,h=0,c=0,b=n.request.Hotel.length,f=0,nt=!1;for(b==undefined&&(b=1),Paginacion='