function HB_Init(){var a=0;if(window.HB_oCallback){a=window.HB_oCallback.length}else{window.HB_oCallback=new Array();window.HB_oSB=new Array()}window.HB_oCallback[a]=function(){window.HB_oSB[a]=new HB_SearchBox();window.HB_oSB[a].Init({baseDiv:document.getElementById("HB_SearchBox"+a),webSiteId:1,lang:"es",routeId:14,routesArray:[4,8],searchAccom:"Encuentra alojamiento",selectedCountry:45,selectedCity:2637,txtCountryLabel:"País",txtCityLabel:"Ciudad",txtCheckinLabel:"Fecha de llegada",txtNightsLabel:"Noches",txtSelectCountry:"Selecciona un País",txtSelectCity:"Selecciona una Ciudad",txtSelectDay:"Dia",txtSelectMonth:"Mes",txtSelectYear:"Año",txtSearch:"Búsqueda",txtVldSelect:"Debe seleccionar el campo '[FieldLabel]'",txtVldDatePast:"Fecha erronea - No puede ser en el pasado",txtVldDate:"Fecha presente o futura dd/mm/año",monthNames:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],wlDomain:"",width:"300",height:"250",isBranded:false,affiliate:"solcom",baseUrl:"http://searchbox.hb-247.com/searchbox",jsonpURL:"http://searchbox.hb-247.com/locations-jsonp/1/es/14",openNewWindow:true,SearchServiceURL:"http://searchbox.hb-247.com"})};var e=function(){for(var h=0;h<window.HB_oCallback.length;h++){window.HB_oCallback[h]()}};document.write('<div id="HB_SearchBox'+a+'" class="hb247SearchWrapper"></div>');if(!window.HB_SearchBoxLoaded){window.HB_SearchBoxLoaded=true;var f=document.createElement("script");var c=document.createElement("link");var b=document.getElementsByTagName("body")[0];var d=document.getElementsByTagName("head")[0];f.setAttribute("src","http://searchbox.hb-247.com/searchbox/HBSBFoundation1.0.js");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");c.setAttribute("href","http://searchbox.hb-247.com/searchbox/sb.css");var g=false;f.onload=function(){if(!g){g=true;e()}};f.onreadystatechange=function(){if((this.readyState=="loaded"||this.readyState=="complete")&&!g){g=true;e()}};if(!b){alert("Please place the searchbox script inside your body tags, at the point where the form should appear")}else{b.appendChild(f)}d.appendChild(c)}}HB_Init();
