       var hotels =  [ 				  				  { 'nombre' : 'Alemania',                      'provincias' : [ { 'nombre' : 'Munich',									 	'url' : 'germany/munich.html',                                        'ciudades' : [ {'nombre' : 'Munich',                                                        'url' : 'germany/munich.html',                                                        'hoteles' : [ { 'nombre' : 'Regent' , 'id': '66034642' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },				   				  { 'nombre' : 'Austria',                      'provincias' : [ { 'nombre' : 'Viena',									 	'url' : 'austria/vienna.html',                                        'ciudades' : [ {'nombre' : 'Viena',                                                        'url' : 'austria/vienna.html',                                                        'hoteles' : [ { 'nombre' : 'Mate Dependance' , 'id': '69041149'}                                                                    ]                                                        }													  ]                                      }                                     ]                   },				  { 'nombre' : 'Bélgica',                      'provincias' : [ { 'nombre' : 'Bruselas',									 	'url' : 'belgium/brussels.html',                                        'ciudades' : [ {'nombre' : 'Bruselas',                                                        'url' : 'belgium/brussels.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Royal Embassy' , 'id': '77923699'}                                                                    ]                                                        }													  ]                                      }                                     ]                   },				   { 'nombre' : 'España',                      'provincias' : [ { 'nombre' : 'Alicante',									 	'url' : 'spain/alicante.html',                                        'ciudades' : [ {'nombre' : 'Alicante',                                                        'url' : 'spain/alicante.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Mediterránea Plaza' , 'id': '100132516' }                                                                    ]                                                        },                                                     ]                                      }, 									  									  { 'nombre' : 'Ávila',									  	 'url' : 'spain/avila.html',                                        'ciudades' : [ {'nombre' : 'Ávila',                                                        'url' : 'spain/avila.html',                                                        'hoteles' : [ { 'nombre' : 'Palacio de Valderrabanos' , 'id': '100070236' }                                                                    ]                                                        },                                                     ]                                      }, 									 									 { 'nombre' : 'Barcelona',  									   'url' : 'spain/barcelona.html',                                        'ciudades' : [ {'nombre' : 'Barberà del Vallés',                                                        'url' : 'spain/barcelona.html#BARBERA',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Barberà Parc' , 'id': '71666035' }                                                                    ]                                                       },													   {'nombre' : 'Barcelona',                                                                                                                'hoteles' : [ 																	 { 'nombre' : 'Eurostars Anglì', 'id': '64389139' },																	 { 'nombre' : 'Eurostars Cristal Palace' , 'id': '10958302' },																	 { 'nombre' : 'Eurostars Gaudí', 'id': '37729590' },																	 { 'nombre' : 'Eurostars Grand Marina' , 'id': '70013964'},																	 { 'nombre' : 'Eurostars Laietana Palace' , 'id' : '70013982'},																	 { 'nombre' : 'Eurostars Mitre', 'id': '10358126' }                                                                    ]                                                        },													   													   {'nombre' : 'Cerdanyola del Vallés',                                                        'url' : 'spain/barcelona.html#CERDANYOLA',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Parc del Vallès' , 'id': '100033200' }                                                                    ]                                                       }                                                     ]                                      },									  									  { 'nombre' : 'Córdoba',									  	'url' : 'spain/cordoba.html',                                        'ciudades' : [ {'nombre' : 'Córdoba',                                                        'url' : 'spain/cordoba.html',                                                        'hoteles' : [ { 'nombre' : 'Conquistador' , 'id': '100132415' },																	  { 'nombre' : 'Eurostars Ciudad de Córdoba' , 'id': '64363135' },																	  																	  { 'nombre' : 'Eurostars Las Adelfas' , 'id': '100147353' },																	  { 'nombre' : 'Eurostars Maimónides' , 'id': '100120579' },																	  { 'nombre' : 'Villa Turística de Priego', 'id': '100136190' }                                                                    ]                                                        },                                                     ]                                      }, 									  									   { 'nombre' : 'Granada',									   	 'url' : 'spain/granada.html',                                        'ciudades' : [ {'nombre' : 'Granada',                                                        'url' : 'spain/granada.html',                                                        'hoteles' : [ { 'nombre' : 'Juan Miguel', 'id': '100177337' }                                                                    ]                                                        },                                                     ]                                      }, 									  									  { 'nombre' : 'Huelva',									   	 'url' : 'spain/huelva.html',                                        'ciudades' : [ {'nombre' : 'Huelva',                                                        'url' : 'spain/huelva.html',                                                        'hoteles' : [ { 'nombre' : 'Tartessos', 'id': '100128214' }                                                                    ]                                                        },                                                     ]                                      },                                       { 'nombre' : 'La Coruña',									  	'url' : 'spain/acoruna.html',                                        'ciudades' : [ {'nombre' : 'La Coruña',                                                        'url' : 'spain/acoruna.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Cuidad de la Coruña', 'id': '100001937' }                                                                    ]                                                       },													   													   {'nombre' : 'Santiago de Compostela',                                                        'url' : 'spain/acoruna.html#SANTIAGO',                                                        'hoteles' : [ { 'nombre' : 'Monte do Gozo', 'id': '100007899' }                                                                    ]                                                       }                                                                                                          ]                                      },									  									  { 'nombre' : 'León',									  	'url' : 'spain/leon.html',                                        'ciudades' : [ {'nombre' : 'León',                                                        'url' : 'spain/leon.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars León' , 'id': '70977497' }                                                                    ]                                                       }                                                                                                          ]                                      },                                      { 'nombre' : 'Madrid',									  	'url' : 'spain/madrid.html',                                        'ciudades' : [ {'nombre' : 'Alcobendas',                                                        'url' : 'spain/madrid.html#ALCOBENDAS',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Gran Madrid' , 'id': '90529952' }                                                                    ]                                                       }, 													  {'nombre' : 'Madrid',                                                        'url' : 'spain/madrid.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Zarzuela Park' , 'id': '38735328' },                                                                      { 'nombre' : 'El Coloso' , 'id': '10001514' }                                                                    ]                                                       }													                                                        ]                                      },									  { 'nombre' : 'Málaga',									  	'url' : 'spain/malaga.html',                                        'ciudades' : [ {'nombre' : 'Málaga',                                                        'url' : 'spain/malaga.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Astoria' , 'id': '60011205' }                                                                    ]                                                       }                                                                                                          ]                                      },									  									  { 'nombre' : 'Orense',									  	'url' : 'spain/orense.html',                                        'ciudades' : [ {'nombre' : 'Eurostars Auriense',                                                        'url' : 'spain/orense.html#auriense',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Auriense' , 'id': '100006336' }                                                                    ]                                                       },													   {'nombre' : 'Eurostars M. de San Clodio ',                                                        'url' : 'spain/orense.html#sanclodio',                                                        'hoteles' : [ { 'nombre' : 'Eurostars M. de San Clodio ' , 'id': '100017666' }                                                                    ]                                                       },                                                     ]                                      },									  									  { 'nombre' : 'Palencia',									  	'url' : 'spain/palencia.html',                                        'ciudades' : [ {'nombre' : 'Palencia',                                                        'url' : 'spain/palencia.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Diana Palace' , 'id': '19074204' }                                                                    ]                                                       }                                                                                                          ]                                      },									   									  { 'nombre' : 'Sevilla',									  	'url' : 'spain/sevilla.html',                                        'ciudades' : [ {'nombre' : 'Mairena del Aljarafe',                                                        'url' : 'spain/sevilla.html#MAIRENA',                                                        'hoteles' : [ { 'nombre' : 'Sevilla Suites' , 'id': '100122919' }                                                                    ]                                                       },													   {'nombre' : 'Sanlúcar la Mayor',                                                        'url' : 'spain/sevilla.html#SANLUCAR',                                                        'hoteles' : [ { 'nombre' : 'Solúcar' , 'id': '23235812' }                                                                    ]                                                       },													   {'nombre' : 'Sevilla',                                                        'url' : 'spain/sevilla.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Regina' , 'id': '100146506' },																	  { 'nombre' : 'Sevilla Congresos' , 'id': '98837998' },                                                                    ]                                                       }                                                     ]                                      },									  									  { 'nombre' : 'Tarragona',									  	'url' : 'spain/tarragona.html',                                        'ciudades' : [ {'nombre' : 'Tarragona',                                                        'url' : 'spain/tarragona.html',                                                        'hoteles' : [ { 'nombre' : 'Tarraco' , 'id': '77954486' }                                                                    ]                                                        },                                                     ]                                      }, 									  									  { 'nombre' : 'Toledo',									  	'url' : 'spain/toledo.html',                                        'ciudades' : [ {'nombre' : 'Toledo',                                                        'url' : 'spain/toledo.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Toledo' , 'id': '57857633' }                                                                    ]                                                       }                                                     ]                                      },									  { 'nombre' : 'Valencia',									  	'url' : 'spain/valencia.html',                                        'ciudades' : [ {'nombre' : 'Valencia',                                                        'url' : 'spain/valencia.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Gran Valencia' , 'id': '58767289' }                                                                    ]                                                       }                                                     ]                                      },									  { 'nombre' : 'Zaragoza',									  	'url' : 'spain/zaragoza.html',                                        'ciudades' : [ {'nombre' : 'Zaragoza',                                                        'url' : 'spain/zaragoza.html',                                                        'hoteles' : [ { 'nombre' : 'Paris' , 'id': '100125908' },																	   { 'nombre' : 'Plaza Delicias' , 'id': '21375535' }                                                                    ]                                                       }                                                     ]                                      },                                    ]                   },				   { 'nombre' : 'Francia',                      'provincias' : [ { 'nombre' : 'París',									 	'url' : 'france/paris.html',                                        'ciudades' : [ {'nombre' : 'París',                                                        'url' : 'france/paris.html',                                                        'hoteles' : [ { 'nombre' : 'Panorama' , 'id': '11662' },																	  { 'nombre' : 'Flêche d\'Or' , 'id': '10642' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },				   				   				   { 'nombre' : 'Italia',                      'provincias' : [ { 'nombre' : 'Lucca',									 	'url' : 'italy/lucca.html',                                        'ciudades' : [ {'nombre' : 'Lucca',                                                        'url' : 'italy/lucca.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Toscana' , 'id': '49826113' }                                                                    ]                                                        }													  ]                                      }, 									 { 'nombre' : 'Roma',									 	'url' : 'italy/roma.html',                                        'ciudades' : [ {'nombre' : 'Roma',                                                        'url' : 'italy/roma.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Domus Aurea' , 'id': '10361396' },																	  { 'nombre' : 'Eurostars International Palace' , 'id': '21977438' },																	  { 'nombre' : 'Saint Paul' , 'id': '80945942' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },				   				   				    { 'nombre' : 'México',                      'provincias' : [ { 'nombre' : 'México Ciudad',									 	'url' : 'mexico/mexicocity.html',                                        'ciudades' : [ {'nombre' : 'México Ciudad',                                                        'url' : 'mexico/mexicocity.html',                                                        'hoteles' : [ { 'nombre' : 'San Marino Suites' , 'id': '90498978' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },				   				   { 'nombre' : 'Portugal',                      'provincias' : [ { 'nombre' : 'Porto',									 	'url' : 'portugal/porto.html',                                        'ciudades' : [ {'nombre' : 'Porto',                                                        'url' : 'portugal/porto.html',                                                        'hoteles' : [ { 'nombre' : 'Eurostars Das Artes' , 'id': '24970812' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },                   { 'nombre' : 'Reino Unido',                      'provincias' : [ { 'nombre' : 'Londres',									 	'url' : 'uk/london.html',                                        'ciudades' : [ {'nombre' : 'Londres',                                                        'url' : 'uk/london.html',                                                        'hoteles' : [ { 'nombre' : 'Royal Eagle', 'id':'74638305' },																	 { 'nombre' : 'Henry VIII', 'id':'34444468' },																	  { 'nombre' : 'Grosvenor Kensington', 'id':'26608990' }                                                                    ]                                                        }													  ]                                      }                                     ]                   },                 ];    function getElement(element,from){       if (!from) { var doc = document; } else { var doc= from.document; }       return (doc.all) ? doc.all[element] : doc.getElementById(element);    }     function getSelect(ctl){       var selected = ctl.selectedIndex;       if (selected < 0) return "";       if (!ctl[selected]){         return "";       }else {         return ctl[selected].value;       }    }    function setSelect(ctl,select){      for (var i=0; i < ctl.length ; i++){        if (ctl[i].value == select){           ctl[i].selected = true;           ctl.selectedIndex = i;        }      }    }   function hideControl(ctl,from) {      if (!from) {  getElement(ctl).style.display='none'; }      else { getElement(ctl,from).style.display='none'; }  }   function unhideControl(ctl,from) {      if (!from) { getElement(ctl).style.display='inline'; }      else { getElement(ctl,from).style.display='inline'; }  }    function addSelect(name,txt_onchange) {       if (txt_onchange == "") return '<select name="'+name+'" id="'+name+'" class="defaultControl" disabled="disabled">';      return '<select name="'+name+'" id="'+name+'" onchange="'+txt_onchange+'" class="defaultControl">';    }       function addOption(txt,value) {      return '<option value="'+value+'">'+txt+'</option>';    }    function showCountry() {       var area = getElement("sel_country");       var select = addSelect('hotels_country',"changeCountry()");       select += addOption('Elija un país',-1);       for(country in hotels) {         select += addOption(hotels[country]['nombre'],country);       }       select += '</select>';       area.innerHTML = select;       // Province area       area = getElement("sel_province");       select = addSelect('hotels_province',"");       select += addOption('--',-1);       area.innerHTML = select;       // hotel area       area = getElement("sel_hotel");       select = addSelect('hotels',"");       select += addOption('--',-1);       area.innerHTML = select;       }    function changeCountry() {               //Province area       var area = getElement("sel_province");       var country = getSelect(getElement("hotels_country"));       var select = null;       if (country != -1) {         select = addSelect('hotels_province',"changeProvince()");         select += addOption('Elija una provincia',-1);         for(prov in hotels[country]['provincias']) {            select += addOption(hotels[country]['provincias'][prov]['nombre'],prov);         }       } else {         select = addSelect('hotels_province',"");         select += addOption('--',-1);       }       select += '</select>';       area.innerHTML = select;                                                                                                                                                                   // hotel area       area = getElement("sel_hotel");       select = addSelect('hotels',"");       select += addOption('--',-1);       area.innerHTML = select;       if (hotels[country]['provincias'].length == 1) {         setSelect(getElement("hotels_province"),0);         changeProvince();       } else {         hideControl('yesbook'); unhideControl('nobook');       }                                                                                                                                                                }    function changeProvince() {      // Hotel area      var area = getElement("sel_hotel");      var country = getSelect(getElement("hotels_country"));      var province = getSelect(getElement("hotels_province"));      var select = null;      if (province != -1) {        select = addSelect('hotels',"changeHotel()");        select += addOption('Elija un hotel',-1);        for(city in hotels[country]['provincias'][province]['ciudades']) {          for(hotel in hotels[country]['provincias'][province]['ciudades'][city]['hoteles']) {             select += addOption(hotels[country]['provincias'][province]['ciudades'][city]['hoteles'][hotel]['nombre'],city+"-"+hotel);          }        }      } else {        select = addSelect('hotels',"");        select += addOption('--',-1);      }      select += '</select>';      area.innerHTML = select;          if (hotels[country]['provincias'][province]['ciudades'].length == 1 && hotels[country]['provincias'][province]['ciudades'][0]['hoteles'].length == 1) {         setSelect(getElement("hotels"),"0-0");         changeHotel();       } else {         hideControl('yesbook'); unhideControl('nobook');       }    }    function changeHotel() {      var country = getSelect(getElement("hotels_country"));      var province = getSelect(getElement("hotels_province"));      var cityhotel = (getSelect(getElement('hotels'))).split("-");      var city = cityhotel[0];      var hotel = cityhotel[1];            if (hotels[country]['provincias'][province]['ciudades'][city]['hoteles'][hotel]['id']) {         hideControl('nobook'); unhideControl('yesbook');         var id = hotels[country]['provincias'][province]['ciudades'][city]['hoteles'][hotel]['id'];         var ifr = getElement('bookframe');         var url = "spa/book/"+id+".html";         if (ifr.contentWindow){            ifr.contentWindow.document.location.replace(url);         } else {            ifr.src = url;         }       } else {         hideControl('yesbook'); unhideControl('nobook');      }    }    function goSearch() {      var country = getSelect(getElement("hotels_country"));      var province = getSelect(getElement("hotels_province"));      if (country == -1) {        alert("Seleccione un país, por favor"); return false;      }      if (province == -1) {        alert("Seleccione una provincia, por favor"); return false;      }      var dir_lang ="spa";      document.location = dir_lang+"/"+hotels[country]['provincias'][province]['url'];          }
