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:"en",routeId:1,routesArray:[1,2,4,8,16],searchAccom:"Search Accommodation",selectedCountry:0,selectedCity:0,txtCountryLabel:"Country",txtCityLabel:"City",txtCheckinLabel:"Check-In",txtNightsLabel:"Nights",txtSelectCountry:"Select A Country",txtSelectCity:"Select A City",txtSelectDay:"Day",txtSelectMonth:"Month",txtSelectYear:"Year",txtSearch:"Search ",txtVldSelect:"You must select the '[FieldLabel]' field",txtVldDatePast:"Invalid Date - Cannot be in the past",txtVldDate:"Invalid Date Format",monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],wlDomain:"",width:"300",height:"250",isBranded:true,affiliate:"travelcomments",baseUrl:"http://searchbox.hb-247.com/searchbox",jsonpURL:"http://searchbox.hb-247.com/locations-jsonp/1/en/1",openNewWindow:false,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();
