document.write('
');var hcCultureMonths = new Array("JAN", "FEB", "MAR", "APR", "MAY", "JUN", "JUL", "AUG", "SEP", "OCT", "NOV", "DEC");
var hcCultureDays = new Array("S", "M", "T", "W", "T", "F", "S");
if (typeof (HC) == "undefined") {var HC = {}}; HC.gLanguageCode="ES"; if (!document.getElementById("selectedFileName")) document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');document.write('');
document.write('');
var defaultCityValue;
function addSearchBoxHandlers() {
var checkin = getObj("hotelCheckin");
var checkout = getObj("hotelCheckout");
var city = getObj("citySearch");
var guests = getObj("guests");
var rooms = getObj("rooms");
var searchButton = getObj("searchButton");
if (checkin) {
checkin.onclick = function() { checkin.select(); lcs(checkin); checkin.onclick.cancelBubble = true; };
checkin.onfocus = function() { checkin.select(); lcs(checkin); };
}
if (checkout) {
checkout.onclick = function() { checkout.select(); lcs(checkout); checkout.onclick.cancelBubble = true; };
checkout.onfocus = function() { checkout.select(); lcs(checkout); };
}
if (city) {
bind(city, { useiframe: true, affiliate: true, attachedToBody: true, width: city.clientWidth < 180 ? 180 : city.clientWidth, brandId:"", affiliateId:"26757", brandDomain:""});
defaultCityValue = city.value;
city.onfocus = function() { maintainInfoText(city, defaultCityValue); }
city.onblur = function() { maintainInfoText(city, defaultCityValue); }
}
if (guests) {
for (var i=1;i<10;i++){
var guestOption = document.createElement("option");
guestOption.text = i;
guestOption.value = i;
guests.options.add(guestOption);
}
}
if (rooms) {
for (var i = 1; i < 5; i++) {
var roomOption = document.createElement("option");
roomOption.text = i;
roomOption.value = i;
rooms.options.add(roomOption);
}
}
if (searchButton) {
searchButton.onclick = function() { return DoHcSearch('ES', '_blank', '26757', '', '', '');}
}
}