//database alberghi

res=new Array(0);

function resc (nome, stelle, web, email, indirizzo, tel, fax,x,y,camere,letti,servizi)
{	this.nome=nome;
	this.stelle=stelle;
	this.web=web;
	this.email=email;
	this.indirizzo=indirizzo;
	this.tel=tel;
	this.fax=fax;
	this.x=x;
	this.y=y;
	this.camere=camere;
	this.letti=letti;
	this.servizi=espandi(servizi);
}

function espandi(serv)
{	// a = aria condizionata
	// d = disabili
	// g = garage
	// p = parcheggio
	// r = ristorante
	// s = sala conferenze
	// t = tv in camera
	temp="";
	for (i=0;i<serv.length;i++)
	{	if(serv.substr(i,1) == "a") {temp=temp+((lang=="_ita")?"aria condizionata, ":"air conditioning, ");}
		if(serv.substr(i,1) == "d") {temp=temp+((lang=="_ita")?"accessibile ai disabili, ":"facilities for disabled, ");}
		if(serv.substr(i,1) == "g") {temp=temp+((lang=="_ita")?"garage, ":"garage, ");}
		if(serv.substr(i,1) == "p") {temp=temp+((lang=="_ita")?"parcheggio, ":"parking, ");}
		if(serv.substr(i,1) == "r") {temp=temp+((lang=="_ita")?"ristorante, ":"restaurant, ");}
		if(serv.substr(i,1) == "s") {temp=temp+((lang=="_ita")?"sala conferenze, ":"conference room, ");}
		if(serv.substr(i,1) == "t") {temp=temp+((lang=="_ita")?"tv in camera, ":"tv set, ");}
	}
	if(temp.substr(temp.length-2,1) == ",") {temp=temp.substr(0,temp.length-2)+".";}
	return temp;
}
// 5 stelle
res[res.length]=new resc("Duchessa Isabella",5,"http://www.duchessaisabella.it/","isabelld@tin.it","Via Palestro, 68/70","+39 0532 202121","+39 0532 202638",463,159,27,53,"adgprst");
// 4 stelle
res[res.length]=new resc("Annunziata",4,"http://www.annunziata.it/","info@annunziata.it","Piazza Repubblica, 5","+39 0532 201111","+39 0532 203233",391,201,24,43,"adpst");
res[res.length]=new resc("Astra",4,"http://www.astrahotel.info/","info@astrahotel.info","V.le Cavour, 55","+39 0532 206088","+39 0532 247002",379,165,69,107,"adgrst");
//res[res.length]=new resc("Residence Il Chiozzino",4,"http://www.residence.ferrara.it","info@sintecoresidenze.it","Via Piangipane, 14","+39 0532 799601","+39 0532 799641",372,240,12,21,"adgpt");
res[res.length]=new resc("Best Western Hotel Palace Inn",4,"","ferrara@tervalhotel.com","Via Eridano, 2","+39 0532 773013","+39 0532 772984",145,49,85,170,"adpst");
res[res.length]=new resc("Corte Estense",4,"http://www.corteestense.it/","info@corteestense.it","Via Correggiari, 4a","+39 0532 242168","+39 0532 246405",395,227,20,37,"adt");
res[res.length]=new resc("Hotel De La Ville",4,"http://www.hoteldelavilleferrara.it/","info@hoteldelavilleferrara.it","P.le Stazione, 11","+39 0532 772635","+39 0532 772645",275,122,85,135,"arst");
res[res.length]=new resc("Duca d'Este",4,"http://www.ilducadeste.it/","info@ilducadeste.it","Via Bologna, 258","+39 0532 977676-7","+39 0532 905786",273,414,73,159,"adprst");
res[res.length]=new resc("Ferrara",4,"http://www.hotelferrara.com/","info@hotelferrara.it","Largo Castello","+39 0532 205048","+39 0532 242372",395,191,42,76,"adst");
res[res.length]=new resc("Orologio",4,"http://www.hotelorologio.com/","info@hotelorologio.com","Via Darsena, 67","+39 0532 769576","+39 0532 769544",286,220,46,91,"adgpst");
res[res.length]=new resc("Principessa Leonora",4,"http://www.principessaleonora.it/","principessaleonora@tin.it","Via Mascheraio, 39","+39 0532 206020","+39 0532 242707",467,164,22,38,"ads");
res[res.length]=new resc("Ripagrande",4,"http://www.ferrarahotelripagrande.it/"," info@ripagrandehotel.it","Via Ripagrande, 21","+39 0532 765250","+39 0532 764377",383,238,40,97,"adgrst");
res[res.length]=new resc("Villa Regina",4,"http://www.villaregina.it/","villaregina@tin.it","Via comacchio, 402","+39 0532 740222","+39 0532 61085",634,413,22,44,"aprst");
// 3 stelle
// res[res.length]=new resc("Residence Ariosto",3,"http://www.residenceariosto.it/","info@residenceariosto.it","Via San Romano, 41","+39 0532 763222","+39 0532 762204",417,234,9,11,"pt");
res[res.length]=new resc("Carlton",3,"http://www.hotelcarlton.net/","info@hotelcarlton.net","Via Garibaldi, 93","+39 0532 211130","+39 0532 205766",379,190,58,101,"adst");
res[res.length]=new resc("De Prati",3,"http://www.hoteldeprati.com/","info@hoteldeprati.com","Via dei Padiglioni, 5","+39 0532 241905","+39 0532 241966",422,180,16,29,"adt");
res[res.length]=new resc("Suite Duomo",3,"http://www.suiteduomo.it/","info@suiteduomo.it","Corso Porta Reno, 17","+39 0532 793888","+39 0532 793820",412,224,16,52,"adrt");
res[res.length]=new resc("Europa",3,"http://www.hoteleuropaferrara.com/","info@hoteleuropaferrara.com","C.so Giovecca, 49","+39 0532 205456","+39 0532 212120",440,198,39,63,"adgpst");
res[res.length]=new resc("Fondo Catena",3,"http://www.hotelfondocatena.it","info@hotelfondocatena.it","Via Catena, 21","+39 0532 733133","+39 0532 733225",5,129,32,58,"adpt");

res[res.length]=new resc("Lucrezia Borgia",3,"http://www.hotellucreziaborgia.it/","info@hotellucreziaborgia.it","Via Bononi, 34","+39 0532 909033","+39 0532 909221",219,442,28,53,"adprst");
res[res.length]=new resc("Nettuno",3,"http://www.nettunohotels.it/","info@nettunohotels.it","Via Pigna, 5","+39 0532 977155","+39 0532 977154",281,472,68,136,"adprst");
res[res.length]=new resc("Nord Ovest",3,"http://www.hotelnordovest.com/","info@hotelnordovest.com","Viale Po, 52","+39 0532 52083","+39 0532 773145",292,86,35,60,"apt");
res[res.length]=new resc("San Girolamo dei Gesuati",3,"http://www.sangirolamodeigesuati.com/","info@sangirolamodeigesuati.com","Via Madama, 40a","+39 0532 207448","+39 0532 207264",487,278,38,66,"adprst");
res[res.length]=new resc("San Paolo",3,"http://www.hotelsanpaolo.it/","hotelsanpaolo@tin.it","Via Baluardi, 9","+39 0532 762040","+39 0532 768333",396,264,1,1,"adt");
res[res.length]=new resc("Touring",3,"http://www.hoteltouringfe.it/","info@hoteltouringfe.it","Viale Cavour, 11","+39 0532 206200","+39 0532 212000",400,181,57,106,"dgt");
