
//place-markers have been included in all arrays for easier updates in future 
//versions which may include Chinese, Arabic, Japanese and Russian.
var tran = new Array();

tran[0] = 'arabic';
tran[1] = 'chinese';


tran[2] = new Array();
tran[2][0]="Tickets";
tran[2][1]="What time does the...leave?";
tran[2][2]="Train";
tran[2][3]="Plane";
tran[2][4]="Bus";
tran[2][5]="Boat/ship";
tran[2][6]="Airport";
tran[2][7]="Underground";
tran[2][8]="Station";
tran[2][9]="Departures";
tran[2][10]="Arrivals";
tran[2][11]="Car park";
tran[2][12]="Rent a car";
tran[2][13]="Hotel";
tran[2][14]="Room";
tran[2][15]="Reservations";
tran[2][16]="Passport";
tran[2][17]="Terminal";
tran[2][18]="Taxi";
tran[2][19]="Is it free?";
tran[2][20]="Take me to...";
tran[2][21]="Stop here!";
tran[2][22]="I am in a hurry";

tran[3] = new Array();
tran[3][0]="Billets, Tickets";
tran[3][1]="A quelle heure part...?";
tran[3][2]="le train";
tran[3][3]="l'avion";
tran[3][4]="le bus";
tran[3][5]="le bateau";
tran[3][6]="Aéroport";
tran[3][7]="Métro";
tran[3][8]="Gare";
tran[3][9]="Départs";
tran[3][10]="Arrivées";
tran[3][11]="Parking";
tran[3][12]="Location de voitures";
tran[3][13]="Hôtel";
tran[3][14]="Chambre";
tran[3][15]="Réservations";
tran[3][16]="Passeport";
tran[3][17]="Terminal";
tran[3][18]="Taxi";
tran[3][19]="Vous êtes libre?";
tran[3][20]="Emmenez-moi à...";
tran[3][21]="Arrêtez-vous ici!";
tran[3][22]="Je suis pressé!";

tran[4] = new Array();
tran[4][0]="Tickets";
tran[4][1]="Um wieviel Uhr geht...?";
tran[4][2]="der Zug";
tran[4][3]="das Flugzeug";
tran[4][4]="der Bus";
tran[4][5]="das Schiff";
tran[4][6]="Flughafen";
tran[4][7]="U-Bahn";
tran[4][8]="Bahnhof";
tran[4][9]="Abflug /Abfahrt";
tran[4][10]="Ankunft";
tran[4][11]="Parkplatz";
tran[4][12]="Autovermietung";
tran[4][13]="Hotel";
tran[4][14]="Zimmer";
tran[4][15]="Reservierungen";
tran[4][16]="Pass";
tran[4][17]="Terminal / Bahnsteig";
tran[4][18]="Taxi";
tran[4][19]="Ist hier frei?";
tran[4][20]="Bringen Sie mich zu...";
tran[4][21]="Bleiben Sie hier stehen!";
tran[4][22]="Ich habe es eilig!";

tran[5] = new Array();
tran[5][0]="Biglietti, tickets";
tran[5][1]="A che ora parte...?";
tran[5][2]="il treno";
tran[5][3]="l' aereo";
tran[5][4]="l' autobus";
tran[5][5]="il traghetto";
tran[5][6]="Aeroporto";
tran[5][7]="Metropolitana";
tran[5][8]="Stazione di";
tran[5][9]="Partenze";
tran[5][10]="Arrivi";
tran[5][11]="Parcheggio";
tran[5][12]="Noleggio auto";
tran[5][13]="Hotel";
tran[5][14]="Stanza";
tran[5][15]="Prenotazioni";
tran[5][16]="Passaporto";
tran[5][17]="Terminal";
tran[5][18]="Taxi";
tran[5][19]="È libero?";
tran[5][20]="Mi porti a...";
tran[5][21]="Si fermi qui!";
tran[5][22]="Ho fretta!";

tran[6] = 'japanese';


tran[7] = new Array();
tran[7][0]="Bilhetes, Tickets";
tran[7][1]="A que hora parte...?";
tran[7][2]="o comboio";
tran[7][3]="o avião";
tran[7][4]="o autocarro";
tran[7][5]="o barco";
tran[7][6]="Aeroporto";
tran[7][7]="Metro";
tran[7][8]="Estação de";
tran[7][9]="Saídas";
tran[7][10]="Chegadas";
tran[7][11]="Estacionamento";
tran[7][12]="Aluguer de automóveis";
tran[7][13]="Hotel";
tran[7][14]="quarto";
tran[7][15]="Reservas";
tran[7][16]="Passaporte";
tran[7][17]="Terminal";
tran[7][18]="Taxi";
tran[7][19]="Está livre?";
tran[7][20]="Leve-me a...";
tran[7][21]="Pare aqui!";
tran[7][22]="Tenho pressa!";

tran[8] = 'russian';


tran[9] = new Array();
tran[9][0]="Billetes, Tickets";
tran[9][1]="¿A qué hora sale...?";
tran[9][2]="el tren";
tran[9][3]="el avión";
tran[9][4]="el autobús";
tran[9][5]="el barco";
tran[9][6]="Aeropuerto";
tran[9][7]="Metro";
tran[9][8]="Estación de";
tran[9][9]="Salidas";
tran[9][10]="Llegadas";
tran[9][11]="Aparcamiento";
tran[9][12]="Alquiler de coches";
tran[9][13]="Hotel";
tran[9][14]="Habitación";
tran[9][15]="Reservas";
tran[9][16]="Pasaporte";
tran[9][17]="Terminal";
tran[9][18]="Taxi";
tran[9][19]="¿Está libre?";
tran[9][20]="Lléveme a...";
tran[9][21]="¡Pare aquí!";
tran[9][22]="¡Tengo prisa!";

var comm = new Array();

comm[0] = 'arabic';
comm[1] = 'chinese';

comm[2] = new Array();
comm[2][0]="Yes";
comm[2][1]="No";
comm[2][2]="Thank you";
comm[2][3]="You're welcome";
comm[2][4]="Goodbye";
comm[2][5]="Hello";
comm[2][6]="Please";
comm[2][7]="Sorry";
comm[2][8]="Good morning";
comm[2][9]="Good afternoon/Good evening";
comm[2][10]="Good night";
comm[2][11]="I beg your pardon";
comm[2][12]="Nice to meet you!";
comm[2][13]="How are you?";
comm[2][14]="Fine";
comm[2][15]="Not very well";
comm[2][16]="All right";
comm[2][17]="Where is the lost and found desk?";
comm[2][18]="Where can I rent a car?";
comm[2][19]="Where can I get cash?";
comm[2][20]="Where is the toilet?";

comm[3] = new Array();
comm[3][0]="Oui";
comm[3][1]="Non";
comm[3][2]="Merci";
comm[3][3]="De rien";
comm[3][4]="Au revoir";
comm[3][5]="Bonjour";
comm[3][6]="S'il vous plaît";
comm[3][7]="Excusez-moi";
comm[3][8]="Bonjour";
comm[3][9]="Bonjour/Bonsoir";
comm[3][10]="Bonsoir/Bonne nuit";
comm[3][11]="Je ne comprends pas";
comm[3][12]="Enchanté de vous connaître.";
comm[3][13]="Comment vas-tu?";
comm[3][14]="Bien";
comm[3][15]="Mal";
comm[3][16]="D'accord";
comm[3][17]="Où est le guichet des objets perdus?";
comm[3][18]="Où puis-je louer une voiture?";
comm[3][19]="Où puis-je retirer de l'argent?";
comm[3][20]="Où sont les toilettes?";

comm[4] = new Array();
comm[4][0]="Ja";
comm[4][1]="Nein";
comm[4][2]="Danke";
comm[4][3]="Bitte";
comm[4][4]="Auf Wiedersehen";
comm[4][5]="Hallo";
comm[4][6]="Bitte";
comm[4][7]="Entschuldigung";
comm[4][8]="Guten Morgen";
comm[4][9]="Guten Tag / Guten Abend";
comm[4][10]="Gute Nacht";
comm[4][11]="Ich verstehe Sie nicht.";
comm[4][12]="Ich freue mich, Sie kennenzulernen.";
comm[4][13]="Wie geht's?";
comm[4][14]="Gut";
comm[4][15]="Schlecht";
comm[4][16]="Einverstanden";
comm[4][17]="Wo ist der Schalter für Fundsachen?";
comm[4][18]="Wo kann ich ein Auto mieten?";
comm[4][19]="Wo kann ich Geld abheben?";
comm[4][20]="Wo sind die Toiletten?";

comm[5] = new Array();
comm[5][0]="Si";
comm[5][1]="No";
comm[5][2]="Grazie";
comm[5][3]="Prego";
comm[5][4]="Arrivederci";
comm[5][5]="Salve";
comm[5][6]="Per favore";
comm[5][7]="Mi scusi";
comm[5][8]="Buon giorno";
comm[5][9]="Buona sera";
comm[5][10]="Buona notte";
comm[5][11]="Prego?";
comm[5][12]="Lieto di conoscerla.";
comm[5][13]="Come sta?";
comm[5][14]="Bene";
comm[5][15]="Male";
comm[5][16]="D'accordo";
comm[5][17]="Dove si trova lo sportello degli oggetti persi?";
comm[5][18]="Dove posso noleggiare una macchina?";
comm[5][19]="Dove posso trovare un Bancomat?";
comm[5][20]="Dov'è il bagno?";

comm[6] = 'japanese';

comm[7] = new Array();
comm[7][0]="Sim";
comm[7][1]="Não";
comm[7][2]="Obrigado";
comm[7][3]="De nada";
comm[7][4]="Adeus";
comm[7][5]="Olá";
comm[7][6]="Por favor";
comm[7][7]="Desculpe";
comm[7][8]="bom dia";
comm[7][9]="Boa tarde";
comm[7][10]="Boa noite";
comm[7][11]="Não percebo";
comm[7][12]="É um prazer conhecê-lo.";
comm[7][13]="Como está?";
comm[7][14]="Bem";
comm[7][15]="Mal";
comm[7][16]="Está bem";
comm[7][17]="Onde está o balcão de objectos perdidos?";
comm[7][18]="Onde posso alugar um carro?";
comm[7][19]="Onde posso levantar dinheiro?";
comm[7][20]="Onde está a casa de banho?";

comm[8] = 'russian';


comm[9] = new Array();
comm[9][0]="Sí";
comm[9][1]="No";
comm[9][2]="Gracias";
comm[9][3]="De nada";
comm[9][4]="Adios";
comm[9][5]="Hola";
comm[9][6]="Por favor";
comm[9][7]="Disculpe";
comm[9][8]="Buenos días";
comm[9][9]="Buenas tardes";
comm[9][10]="Buenas noches";
comm[9][11]="No entiendo";
comm[9][12]="Encantado de conocerle";
comm[9][13]="¿Cómo estás?";
comm[9][14]="Bien";
comm[9][15]="Mal";
comm[9][16]="De acuerdo";
comm[9][17]="¿Dónde está el mostrador de objetos perdidos?";
comm[9][18]="¿Dónde puedo alquilar un coche?";
comm[9][19]="¿Dónde puedo sacar dinero?";
comm[9][20]="¿Dónde están los servicios?";

var shop = new Array();

shop[0] = 'arabic';


shop[1] = 'chinese';


shop[2] = new Array();
shop[2][0]="How much does it cost?";
shop[2][1]="Do you accept credit cards?";
shop[2][2]="What time do you open/close?";
shop[2][3]="What hours are you open?";
shop[2][4]="Open";
shop[2][5]="Closed";
shop[2][6]="Postcard";
shop[2][7]="Stamps";
shop[2][8]="Expensive";
shop[2][9]="Cheap";
shop[2][10]="More";
shop[2][11]="Less";
shop[2][12]="I would like to buy/rent";
shop[2][13]="I am just looking";
shop[2][14]="Could you show it to me?";
shop[2][15]="Could you send it to me?";
shop[2][16]="Can I try on...?";
shop[2][17]="this suit";
shop[2][18]="those shoes";
shop[2][19]="this dress";
shop[2][20]="I need this in a...size.";
shop[2][21]="larger";
shop[2][22]="smaller";

shop[3] = new Array();
shop[3][0]="Combien ça coûte?";
shop[3][1]="Vous acceptez les cartes de crédit?";
shop[3][2]="A quelle heure ouvrez / fermez vous?";
shop[3][3]="Quels sont vos horaires?";
shop[3][4]="Ouvert";
shop[3][5]="Fermé";
shop[3][6]="Carte postale";
shop[3][7]="Timbres";
shop[3][8]="Cher";
shop[3][9]="Bon marché";
shop[3][10]="Plus";
shop[3][11]="Moins";
shop[3][12]="J'aimerais acheter/louer";
shop[3][13]="Je regarde, c'est tout";
shop[3][14]="Vous pouvez me montrer cela?";
shop[3][15]="Vous pouvez me l'envoyer?";
shop[3][16]="Puis-je essayer...?";
shop[3][17]="ce costume / ce tailleur";
shop[3][18]="ces chaussures";
shop[3][19]="cette robe";
shop[3][20]="Il me faut une taille...";
shop[3][21]="plus grande";
shop[3][22]="plus petite";

shop[4] = new Array();
shop[4][0]="Was kostet das?";
shop[4][1]="Kann ich mit Kreditkarte bezahlen?";
shop[4][2]="Um wieviel Uhr macht auf/zu?";
shop[4][3]="Welche Öffnungszeiten haben Sie?";
shop[4][4]="Geöffnet";
shop[4][5]="Geschlossen";
shop[4][6]="Postkarte";
shop[4][7]="Briefmarken";
shop[4][8]="Teuer";
shop[4][9]="Billig";
shop[4][10]="Mehr";
shop[4][11]="Weniger";
shop[4][12]="Ich würde gerne kaufen / mieten.";
shop[4][13]="Ich sehe mich nur um.";
shop[4][14]="Könnten Sie mir das zeigen?";
shop[4][15]="Können Sie mir das schicken?";
shop[4][16]="Könnte ich...anprobieren?";
shop[4][17]="diesen Anzug";
shop[4][18]="diese Schuhe";
shop[4][19]="dieses Kleid";
shop[4][20]="Ich benötige eine...Grösse";
shop[4][21]="grössere";
shop[4][22]="kleinere";

shop[5] = new Array();
shop[5][0]="Quanto costa?";
shop[5][1]="Accettate carte di credito?";
shop[5][2]="A che ora apre / chiude?";
shop[5][3]="Che orario fate?";
shop[5][4]="Aperto";
shop[5][5]="Chiuso";
shop[5][6]="Cartolina";
shop[5][7]="Francobolli";
shop[5][8]="Caro";
shop[5][9]="A buon mercato";
shop[5][10]="Più";
shop[5][11]="Meno";
shop[5][12]="Mi piacerebbe acquistare/affittare.";
shop[5][13]="Stò solo dando un'occhiata.";
shop[5][14]="Può farmi vedere questo?";
shop[5][15]="Può spedirmelo?";
shop[5][16]="Posso provare...?";
shop[5][17]="questo completo";
shop[5][18]="quelle scarpe";
shop[5][19]="questo vestito";
shop[5][20]="Mi serve una taglia...";
shop[5][21]="piú grande";
shop[5][22]="piú piccola";

shop[6] = 'japanese';


shop[7] = new Array();
shop[7][0]="Quanto custa?";
shop[7][1]="Aceitam cartões de crédito?";
shop[7][2]="A que hora abre / fecha?";
shop[7][3]="Que horário têm?";
shop[7][4]="Aberto";
shop[7][5]="Fechado";
shop[7][6]="Postal";
shop[7][7]="Selos";
shop[7][8]="Caro";
shop[7][9]="Barato";
shop[7][10]="Mais";
shop[7][11]="Menos";
shop[7][12]="Gostava de comprar/alugar";
shop[7][13]="Só estou a ver";
shop[7][14]="Pode mostrar-me isto?";
shop[7][15]="Pode mandar-me isto?";
shop[7][16]="Poderia provar...";
shop[7][17]="este fato";
shop[7][18]="esses sapatos";
shop[7][19]="este vestido";
shop[7][20]="Preciso um tamanho...";
shop[7][21]="maior";
shop[7][22]="mais pequeno";

shop[8] = 'russian';


shop[9] = new Array();
shop[9][0]="¿Cuánto cuesta?";
shop[9][1]="¿Aceptan tarjetas de crédito?";
shop[9][2]="¿A qué hora abre / cierra?";
shop[9][3]="¿Qué horario tienen?";
shop[9][4]="Abierto";
shop[9][5]="Cerrado";
shop[9][6]="Postal";
shop[9][7]="Sellos";
shop[9][8]="Caro";
shop[9][9]="Barato";
shop[9][10]="Más";
shop[9][11]="Menos";
shop[9][12]="Me gustaría comprar/alquilar";
shop[9][13]="Sólo estoy mirando";
shop[9][14]="¿Puede enseñarme esto?";
shop[9][15]="¿Puede enviármelo?";
shop[9][16]="¿Podría probarme...?";
shop[9][17]="este traje";
shop[9][18]="esos zapatos";
shop[9][19]="este vestido";
shop[9][20]="Necesito una talla...";
shop[9][21]="más grande";
shop[9][22]="más pequeña";

var rest = new Array();

rest[0] = 'arabic';
rest[1] = 'chinese';


rest[2] = new Array();
rest[2][0]="We would like to see the menu.";
rest[2][1]="A table for two, please.";
rest[2][2]="I would like my meat...";
rest[2][3]="well done";
rest[2][4]="rare";
rest[2][5]="medium";
rest[2][6]="Appetizers";
rest[2][7]="Main course";
rest[2][8]="Dessert";
rest[2][9]="Waiter";
rest[2][10]="The bill!";
rest[2][11]="I would like to book a table";
rest[2][12]="Menu";
rest[2][13]="Fork";
rest[2][14]="Spoon";
rest[2][15]="Knife";
rest[2][16]="Bottle";
rest[2][17]="Wine Glass";
rest[2][18]="Glass";
rest[2][19]="Table napkins";
rest[2][20]="I would like to have...";
rest[2][21]="Salt";
rest[2][22]="Sugar";
rest[2][23]="Bread";
rest[2][24]="Meat";
rest[2][25]="Beef";
rest[2][26]="Pork";
rest[2][27]="Poultry";
rest[2][28]="Fish";
rest[2][29]="Fruit";
rest[2][30]="Pasta";
rest[2][31]="Rice";
rest[2][32]="Vegetables";
rest[2][33]="Potato";
rest[2][34]="Water";
rest[2][35]="Wine";
rest[2][36]="Beer";
rest[2][37]="Coffee";
rest[2][38]="Tea";
rest[2][39]="Non-alcoholic";
rest[2][40]="Soft drinks, Juice";

rest[3] = new Array();
rest[3][0]="Nous voudrions voir la carte.";
rest[3][1]="Une table pour deux, s'il vous plaît.";
rest[3][2]="J'aime la viande...";
rest[3][3]="bien cuite";
rest[3][4]="saignante";
rest[3][5]="à point";
rest[3][6]="Entrée";
rest[3][7]="Plat de résistance";
rest[3][8]="Dessert";
rest[3][9]="Serveur";
rest[3][10]="L'addition!";
rest[3][11]="J'aimerais réserver une table";
rest[3][12]="Menu";
rest[3][13]="Fourchette";
rest[3][14]="Cuillère";
rest[3][15]="Couteau";
rest[3][16]="Bouteille";
rest[3][17]="Verre";
rest[3][18]="Verre";
rest[3][19]="Serviettes";
rest[3][20]="J'aimerais prendre...";
rest[3][21]="Sel";
rest[3][22]="Sucre";
rest[3][23]="Pain";
rest[3][24]="Viande";
rest[3][25]="Veau";
rest[3][26]="Porc";
rest[3][27]="Volaille";
rest[3][28]="Poisson";
rest[3][29]="Fruit";
rest[3][30]="Pâtes";
rest[3][31]="Riz";
rest[3][32]="Légume";
rest[3][33]="Pomme de terre";
rest[3][34]="Eau";
rest[3][35]="Vin";
rest[3][36]="Bière";
rest[3][37]="Café";
rest[3][38]="Thé";
rest[3][39]="Sans alcool";
rest[3][40]="Boissons fraîches, Jus";

rest[4] = new Array();
rest[4][0]="Wir möchten gerne die Karte sehen...";
rest[4][1]="Bitte einen Tisch für zwei Personen";
rest[4][2]="Ich hätte gerne das Fleisch...";
rest[4][3]="gut durchgebraten";
rest[4][4]="nicht durchgebraten";
rest[4][5]="medium";
rest[4][6]="Vorspeise";
rest[4][7]="Hauptgang";
rest[4][8]="Nachtisch";
rest[4][9]="Ober / Kellner";
rest[4][10]="Die Rechnung";
rest[4][11]="Ich würde gerne einen Tisch bestellen";
rest[4][12]="Speisekarte";
rest[4][13]="Gabel";
rest[4][14]="Löffel";
rest[4][15]="Messer";
rest[4][16]="Flasche";
rest[4][17]="Glas";
rest[4][18]="Becher";
rest[4][19]="Servietten";
rest[4][20]="Ich hätte gerne...";
rest[4][21]="Salz";
rest[4][22]="Zucker";
rest[4][23]="Brot";
rest[4][24]="Fleisch";
rest[4][25]="Rindfleisch";
rest[4][26]="Schweinefleisch";
rest[4][27]="Geflügel";
rest[4][28]="Fisch";
rest[4][29]="Obst";
rest[4][30]="Nudeln";
rest[4][31]="Reis";
rest[4][32]="Gemüse";
rest[4][33]="Kartoffel";
rest[4][34]="Wasser";
rest[4][35]="Wein";
rest[4][36]="Bier";
rest[4][37]="Kaffee";
rest[4][38]="Tee";
rest[4][39]="Alkoholfrei";
rest[4][40]="Erfrischungsgetränke, Saft";

rest[5] = new Array();
rest[5][0]="Vorremmo vedere il menu";
rest[5][1]="Un tavolo per due persone, per favore";
rest[5][2]="Mi piace la carne...";
rest[5][3]="molto cotta";
rest[5][4]="poco cotta";
rest[5][5]="cotta al punto giusto";
rest[5][6]="il primo";
rest[5][7]="Piatto principale";
rest[5][8]="il dessert";
rest[5][9]="Cameriere";
rest[5][10]="Il conto!";
rest[5][11]="Desidererei prenotare un tavolo";
rest[5][12]="Menu";
rest[5][13]="Forchetta";
rest[5][14]="Cucchiaio";
rest[5][15]="Coltello";
rest[5][16]="Bottiglia";
rest[5][17]="Coppa";
rest[5][18]="Bicchiere";
rest[5][19]="Tovaglioli";
rest[5][20]="Vorrei ...";
rest[5][21]="Sale";
rest[5][22]="Zucchero";
rest[5][23]="Pane";
rest[5][24]="Carne";
rest[5][25]="Manzo";
rest[5][26]="Maiale";
rest[5][27]="Pollame";
rest[5][28]="Pesce";
rest[5][29]="Frutta";
rest[5][30]="Pasta";
rest[5][31]="Riso";
rest[5][32]="Verdura";
rest[5][33]="Patata";
rest[5][34]="Acqua";
rest[5][35]="Vino";
rest[5][36]="Birra";
rest[5][37]="Caffè";
rest[5][38]="Té";
rest[5][39]="Senza alcol";
rest[5][40]="Bibita, Succo";

rest[6] = 'japanese';


rest[7] = new Array();
rest[7][0]="Queremos ver a ementa";
rest[7][1]="Uma mesa para dois, por favor";
rest[7][2]="Gosto da carne...";
rest[7][3]="bem passada";
rest[7][4]="mal passada";
rest[7][5]="normal";
rest[7][6]="Entrada";
rest[7][7]="Prato principal";
rest[7][8]="Sobremesa";
rest[7][9]="Empregado de mesa";
rest[7][10]="A conta!";
rest[7][11]="Gostava de reservar uma mesa";
rest[7][12]="Ementa";
rest[7][13]="Garfo";
rest[7][14]="Colher";
rest[7][15]="Faca";
rest[7][16]="Garrafa";
rest[7][17]="aça";
rest[7][18]="Copo";
rest[7][19]="Guardanapos";
rest[7][20]="Queria...";
rest[7][21]="Sal";
rest[7][22]="Açúcar";
rest[7][23]="Pão";
rest[7][24]="Carne";
rest[7][25]="Vaca";
rest[7][26]="Porco";
rest[7][27]="Ave";
rest[7][28]="Peixe";
rest[7][29]="Fruta";
rest[7][30]="Massa";
rest[7][31]="Arroz";
rest[7][32]="Legumes";
rest[7][33]="Batata";
rest[7][34]="Água";
rest[7][35]="Vinho";
rest[7][36]="Cerveja";
rest[7][37]="Café";
rest[7][38]="Chá";
rest[7][39]="Sem Álcool";
rest[7][40]="Refrescos, Sumo";

rest[8] = 'russian';


rest[9] = new Array();
rest[9][0]="Queremos ver la carta.";
rest[9][1]="Una mesa para dos, por favor.";
rest[9][2]="Me gusta la carne...";
rest[9][3]="muy hecha";
rest[9][4]="poco hecha";
rest[9][5]="en su punto";
rest[9][6]="Primer plato";
rest[9][7]="Segundo plato";
rest[9][8]="Postre";
rest[9][9]="Camarero";
rest[9][10]="¡La cuenta!";
rest[9][11]="Me gustaría reservar una mesa";
rest[9][12]="Menú";
rest[9][13]="Tenedor";
rest[9][14]="Cuchara";
rest[9][15]="Cuchillo";
rest[9][16]="Botella";
rest[9][17]="Copa";
rest[9][18]="Vaso";
rest[9][19]="Servilletas";
rest[9][20]="Quisiera tomar...";
rest[9][21]="Sal";
rest[9][22]="Azúcar";
rest[9][23]="Pan";
rest[9][24]="Carne";
rest[9][25]="Ternera";
rest[9][26]="Cerdo";
rest[9][27]="Ave";
rest[9][28]="Pescado";
rest[9][29]="Fruta";
rest[9][30]="Pasta";
rest[9][31]="Arroz";
rest[9][32]="Verdura";
rest[9][33]="Patata";
rest[9][34]="Agua";
rest[9][35]="Vino";
rest[9][36]="Cerveza";
rest[9][37]="Café";
rest[9][38]="Té";
rest[9][39]="Sin alcohol";
rest[9][40]="Refrescos, Zumo";

var numb = new Array();

numb[0] = 'arabic';
numb[1] = 'chinese';


numb[2] = new Array();
numb[2][0]="zero";
numb[2][1]="one";
numb[2][2]="two";
numb[2][3]="three";
numb[2][4]="four"; 
numb[2][5]="five";
numb[2][6]="six";
numb[2][7]="seven"; 
numb[2][8]="eight";
numb[2][9]="nine";
numb[2][10]="ten";
numb[2][11]="eleven";
numb[2][12]="twelve";
numb[2][13]="thirteen";
numb[2][14]="fourteen"; 
numb[2][15]="fifteen";
numb[2][16]="sixteen";
numb[2][17]="seventeen"; 
numb[2][18]="eighteen";
numb[2][19]="nineteen";
numb[2][20]="twenty";
numb[2][21]="twenty one";
numb[2][22]="thirty";
numb[2][23]="forty";
numb[2][24]="fifty"; 
numb[2][25]="sixty";
numb[2][26]="seventy";
numb[2][27]="eighty"; 
numb[2][28]="ninety";
numb[2][29]="one hundred";
numb[2][30]="one thousand";
numb[2][31]="one million";
numb[2][32]="My phone number is...";
numb[2][33]="The number at my hotel is...";
numb[2][34]="It's half past three.";
numb[2][35]="It's eleven o'clock.";
numb[2][36]="Where can I change currency?";
numb[2][37]="Do you need my identification?";

numb[3]= new Array();
numb[3][0]="zéro";
numb[3][1]="un(e)";
numb[3][2]="deux";
numb[3][3]="trois";
numb[3][4]="quatre";
numb[3][5]="cinq";
numb[3][6]="six";
numb[3][7]="sept";
numb[3][8]="huit";
numb[3][9]="neuf";
numb[3][10]="dix";
numb[3][11]="onze";
numb[3][12]="douze";
numb[3][13]="treize";
numb[3][14]="quatorze";
numb[3][15]="quinze";
numb[3][16]="seize";
numb[3][17]="dix-sept";
numb[3][18]="dix-huit";
numb[3][19]="dix-neuf";
numb[3][20]="vingt";
numb[3][21]="vingt-et-un(e)";
numb[3][22]="trente";
numb[3][23]="quarante";
numb[3][24]="cinquante";
numb[3][25]="soixante";
numb[3][26]="soixante-dix";
numb[3][27]="quatre-vingts";
numb[3][28]="quatre-vingt-dix";
numb[3][29]="cent";
numb[3][30]="mille";
numb[3][31]="un million";
numb[3][32]="Mon numéro de téléphone est le...";
numb[3][33]="Le numéro de mon hôtel est le...";
numb[3][34]="Il est trois heures et demie";
numb[3][35]="Il est onze heures";
numb[3][36]="Où puis-je changer de l'argent?";
numb[3][37]="Vous avez besoin de mes papiers d'identité?";

numb[4]= new Array();
numb[4][0]="null";
numb[4][1]="eins";
numb[4][2]="zwei";
numb[4][3]="drei";
numb[4][4]="vier";
numb[4][5]="fünf";
numb[4][6]="sechs";
numb[4][7]="sieben";
numb[4][8]="acht";
numb[4][9]="neun";
numb[4][10]="zehn";
numb[4][11]="elf";
numb[4][12]="zwölf";
numb[4][13]="dreizehn";
numb[4][14]="vierzehn";
numb[4][15]="fünfzehn";
numb[4][16]="sechzehn";
numb[4][17]="siebzehn";
numb[4][18]="achtzehn";
numb[4][19]="neunzehn";
numb[4][20]="zwanzig";
numb[4][21]="einundzwanzig";
numb[4][22]="dreissig";
numb[4][23]="vierzig";
numb[4][24]="fünfzig";
numb[4][25]="sechzig";
numb[4][26]="siebzig";
numb[4][27]="achtzig";
numb[4][28]="neunzig";
numb[4][29]="hundert";
numb[4][30]="tausend";
numb[4][31]="million";
numb[4][32]="Meine Telefonnummer ist...";
numb[4][33]="Die Nummer meines Hotels ist...";
numb[4][34]="Es ist halb vier";
numb[4][35]="Es ist elf Uhr";
numb[4][36]="Wo kann ich Geld umtauschen?";
numb[4][37]="Brauchen Sie meinen Ausweis?";

numb[5]= new Array();
numb[5][0]="zero";
numb[5][1]="uno";
numb[5][2]="due";
numb[5][3]="tre";
numb[5][4]="quattro";
numb[5][5]="cinque";
numb[5][6]="sei";
numb[5][7]="sette";
numb[5][8]="otto";
numb[5][9]="nove";
numb[5][10]="dieci";
numb[5][11]="undici";
numb[5][12]="dodici";
numb[5][13]="tredici";
numb[5][14]="quattordici";
numb[5][15]="quindici";
numb[5][16]="sedici";
numb[5][17]="diciassette";
numb[5][18]="diciotto";
numb[5][19]="diciannove";
numb[5][20]="venti";
numb[5][21]="ventuno";
numb[5][22]="trenta";
numb[5][23]="quaranta";
numb[5][24]="cinquanta";
numb[5][25]="sessanta";
numb[5][26]="settanta";
numb[5][27]="ottanta";
numb[5][28]="novanta";
numb[5][29]="cento";
numb[5][30]="mille";
numb[5][31]="un milione";
numb[5][32]="Il mio numero di telefono è...";
numb[5][33]="Il numero di telefono del mio hotel è...";
numb[5][34]="Sono le tre e mezza";
numb[5][35]="Sono le undici";
numb[5][36]="Dove posso cambiare valuta?";
numb[5][37]="Ha bisogno della mia identificazione?";

numb[6]= 'japanese';


numb[7]= new Array();
numb[7][0]="zero";
numb[7][1]="um, uma";
numb[7][2]="dois, duas";
numb[7][3]="três";
numb[7][4]="quatro";
numb[7][5]="cinco";
numb[7][6]="seis";
numb[7][7]="sete";
numb[7][8]="oito";
numb[7][9]="nove";
numb[7][10]="dez";
numb[7][11]="onze";
numb[7][12]="doze";
numb[7][13]="treze";
numb[7][14]="catorze";
numb[7][15]="quinze";
numb[7][16]="dezasseis";
numb[7][17]="dezassete";
numb[7][18]="dezoito";
numb[7][19]="dezanove";
numb[7][20]="vinte";
numb[7][21]="vinte e um";
numb[7][22]="trinta";
numb[7][23]="quarenta";
numb[7][24]="cinquenta";
numb[7][25]="sessenta";
numb[7][26]="setenta";
numb[7][27]="oitenta";
numb[7][28]="noventa";
numb[7][29]="cem";
numb[7][30]="mil";
numb[7][31]="un milhão";
numb[7][32]="O meu número de telefone é...";
numb[7][33]="O número do meu hotel é...";
numb[7][34]="São três e meia";
numb[7][35]="São onze horas";
numb[7][36]="Donde posso trocar dinheiro?";
numb[7][37]="Precisa da minha identificação?";

numb[8]= 'russian';


numb[9]= new Array();
numb[9][0]="cero";
numb[9][1]="uno";
numb[9][2]="dos";
numb[9][3]="tres";
numb[9][4]="cuatro";
numb[9][5]="cinco";
numb[9][6]="seis";
numb[9][7]="siete";
numb[9][8]="ocho";
numb[9][9]="nueve";
numb[9][10]="diez";
numb[9][11]="once";
numb[9][12]="doce";
numb[9][13]="trece";
numb[9][14]="catorce";
numb[9][15]="quince";
numb[9][16]="dieciseis";
numb[9][17]="diecisiete";
numb[9][18]="dieciocho";
numb[9][19]="diecinueve";
numb[9][20]="veinte";
numb[9][21]="veintiuno";
numb[9][22]="treinta";
numb[9][23]="cuarenta";
numb[9][24]="cincuenta";
numb[9][25]="sesenta";
numb[9][26]="setenta";
numb[9][27]="ochenta";
numb[9][28]="noventa";
numb[9][29]="cien";
numb[9][30]="mil";
numb[9][31]="millón";
numb[9][32]="Mi número de teléfono es...";
numb[9][33]="El número de mi hotel es...";
numb[9][34]="Son las tres y media.";
numb[9][35]="Son las once.";
numb[9][36]="¿Dónde puedo cambiar dinero?";
numb[9][37]="¿Necesita mi identificación?";

var emer = new Array();

emer[0] = 'arabic';
emer[1] = 'chinese';


emer[2] = new Array();
emer[2][0]="I need to see a doctor.";
emer[2][1]="I have a headache.";
emer[2][2]="Call an ambulance!";
emer[2][3]="I have a toothache.";
emer[2][4]="Where is the nearest...?";
emer[2][5]="emergency room";
emer[2][6]="dentist";
emer[2][7]="pharmacy";
emer[2][8]="I am allergic to penicillin.";
emer[2][9]="I would like some aspirin.";
emer[2][10]="I need a painkiller.";
emer[2][11]="My...hurts.";
emer[2][12]="stomach";
emer[2][13]="arm";
emer[2][14]="leg";
emer[2][15]="ears";
emer[2][16]="throat";
emer[2][17]="I'm going to vomit.";

emer[3] = new Array();
emer[3][0]="Je dois voir un médecin";
emer[3][1]="J'ai mal à la tête";
emer[3][2]="Appelez une ambulance!";
emer[3][3]="J'ai mal aux dents";
emer[3][4]="Où est le/la... le/la plus proche?";
emer[3][5]="le service des urgences";
emer[3][6]="le dentiste";
emer[3][7]="la pharmacie";
emer[3][8]="Je suis allergique à la pénicilline";
emer[3][9]="Je voudrais de l'aspirine";
emer[3][10]="J'ai besoin d'un analgésique";
emer[3][11]="J'ai mal...";
emer[3][12]="à l'estomac";
emer[3][13]="au bras";
emer[3][14]="à la jambe";
emer[3][15]="aux oreilles";
emer[3][16]="à la gorge";
emer[3][17]="J'ai envie de vomir.";

emer[4] = new Array();
emer[4][0]="Ich brauche einen Arzt";
emer[4][1]="Ich habe Kopfschmerzen";
emer[4][2]="Rufen Sie einen Notarztwagen";
emer[4][3]="Ich habe Zahnschmerzen";
emer[4][4]="Wo ist das/der/die nächste...?";
emer[4][5]="die Notaufnahme";
emer[4][6]="der Zahnarzt";
emer[4][7]="die Apotheke";
emer[4][8]="Ich bin gegen Penizillin allergisch";
emer[4][9]="Ich hätte gerne Aspirin";
emer[4][10]="Ich hätte gerne ein Schmerzmittel";
emer[4][11]="Mir tut...weh";
emer[4][12]="der Magen";
emer[4][13]="der Arm";
emer[4][14]="das Bein";
emer[4][15]="die Ohren";
emer[4][16]="der Hals";
emer[4][17]="Ich muss mich übergeben";

emer[5] = new Array();
emer[5][0]="Ho bisogno di un medico";
emer[5][1]="Mi fa male la testa";
emer[5][2]="Chiamate un' ambulanza!";
emer[5][3]="Ho mal di denti";
emer[5][4]="Dov' è .... piú vicino?";
emer[5][5]="il pronto soccorso";
emer[5][6]="il dentista";
emer[5][7]="la farmacia";
emer[5][8]="Sono allergico alla penicillina";
emer[5][9]="Vorrei un' aspirina";
emer[5][10]="Ho bisogno di un analgesico";
emer[5][11]="Mi fa male...";
emer[5][12]="lo stomaco";
emer[5][13]="il braccio";
emer[5][14]="la gamba";
emer[5][15]="le orecchie";
emer[5][16]="la gola";
emer[5][17]="Ho un conato di vomito";

emer[6] = 'japanese';


emer[7] = new Array();
emer[7][0]="Preciso ver um médico";
emer[7][1]="Tenho dor de cabeça";
emer[7][2]="Chame uma ambulância";
emer[7][3]="Tenho dor de dentes";
emer[7][4]="Onde está...mais próxima?";
emer[7][5]="a sala de urgências";
emer[7][6]="o dentista";
emer[7][7]="a farmácia";
emer[7][8]="Tenho alergia à penicilina";
emer[7][9]="Queria aspirinas";
emer[7][10]="Preciso um analgésico";
emer[7][11]="Dói-me...";
emer[7][12]="o estômago";
emer[7][13]="o braço";
emer[7][14]="a perna";
emer[7][15]="os ouvidos";
emer[7][16]="a garganta";
emer[7][17]="Tenho vontade de vomitar";

emer[8] = 'russian';


emer[9] = new Array();
emer[9][0]="Necesito ver a un médico.";
emer[9][1]="Tengo dolor de cabeza.";
emer[9][2]="¡Llame a una ambulancia!";
emer[9][3]="Tengo dolor de muelas.";
emer[9][4]="¿Dónde está...más cercana?";
emer[9][5]="la sala de urgencias";
emer[9][6]="el dentista";
emer[9][7]="la farmacia";
emer[9][8]="Tengo alergia a la penicilina.";
emer[9][9]="Quisiera aspirinas.";
emer[9][10]="Necesito un analgésico";
emer[9][11]="Me duele...";
emer[9][12]="el estómago";
emer[9][13]="el brazo";
emer[9][14]="la pierna";
emer[9][15]="los oídos";
emer[9][16]="la garganta";
emer[9][17]="Tengo ganas de vomitar.";

var hote = new Array();

hote[0] = 'arabic';
hote[1] = 'chinese';


hote[2] = new Array();
hote[2][0]="Hotel";
hote[2][1]="I have a reservation.";
hote[2][2]="I would like a room.";
hote[2][3]="I would like to see the room.";
hote[2][4]="Sheet";
hote[2][5]="Blanket";
hote[2][6]="Towel";
hote[2][7]="Gel";
hote[2][8]="Shampoo";
hote[2][9]="Toilet paper";
hote[2][10]="Reception desk";
hote[2][11]="Key";
hote[2][12]="What time do you serve...?";
hote[2][13]="breakfast";
hote[2][14]="lunch";
hote[2][15]="dinner";
hote[2][16]="Do you have a safe?";
hote[2][17]="Do you have room service?";
hote[2][18]="How do I call a foreign number?";
hote[2][19]="I would like to cancel the reservation for (Mr./Ms...)";


hote[3] = new Array();
hote[3][0]="Hôtel";
hote[3][1]="J'ai réservé.";
hote[3][2]="J'aimerais une chambre.";
hote[3][3]="J'aimerais voir la chambre.";
hote[3][4]="Drap";
hote[3][5]="Couverture";
hote[3][6]="Serviette";
hote[3][7]="Gel";
hote[3][8]="Shampoing";
hote[3][9]="Papier toilette";
hote[3][10]="Réception";
hote[3][11]="Clé";
hote[3][12]="A quelle heure servez-vous... ?";
hote[3][13]="le petit déjeuner";
hote[3][14]="le déjeuner";
hote[3][15]="le dîner";
hote[3][16]="Avez-vous un coffre-fort ?";
hote[3][17]="Avez-vous un service de chambre ?";
hote[3][18]="Comment faut-il faire pour appeler à l'étranger ?";
hote[3][19]="J'aimerais annuler la réservation au nom de...";


hote[4] = new Array();
hote[4][0]="Hotel";
hote[4][1]="Ich habe eine Reservierung.";
hote[4][2]="Ich möchte gerne ein Zimmer.";
hote[4][3]="Ich würde gerne das Zimmer sehen.";
hote[4][4]="Betttuch";
hote[4][5]="Decke";
hote[4][6]="Handtuch";
hote[4][7]="Gel";
hote[4][8]="Shampoo";
hote[4][9]="Toilettenpapier";
hote[4][10]="Empfang";
hote[4][11]="Schlüssel";
hote[4][12]="Um wieviel Uhr wird...serviert?";
hote[4][13]="das Frühstück";
hote[4][14]="das Essen";
hote[4][15]="das Abendessen";
hote[4][16]="Haben Sie ein Safe?";
hote[4][17]="Haben Sie Zimmerservice?";
hote[4][18]="Wie kann ich ins Ausland anrufen?";
hote[4][19]="Ich möchte die Reservierung im Namen von...annullieren";


hote[5] = new Array();
hote[5][0]="Hotel";
hote[5][1]="Ho una prenotazione.";
hote[5][2]="Vorrei una stanza.";
hote[5][3]="Mi piacerebbe vedere la stanza.";
hote[5][4]="Lenzuola";
hote[5][5]="Coperta";
hote[5][6]="Asciugamano";
hote[5][7]="Bagnoschiuma";
hote[5][8]="Shampoo";
hote[5][9]="Carta igienica";
hote[5][10]="Reception";
hote[5][11]="Chiave";
hote[5][12]="A che ora si serve... ?";
hote[5][13]="la colazione";
hote[5][14]="il pranzo";
hote[5][15]="la cena";
hote[5][16]="Avete una cassaforte ?";
hote[5][17]="Avete servizio in camera ?";
hote[5][18]="Come faccio per telefonare all' estero ?";
hote[5][19]="Vorrei annullare la prenotazione a nome di...";


hote[6] = 'japanese';



hote[7] = new Array();
hote[7][0]="Hotel";
hote[7][1]="Tenho uma reserva.";
hote[7][2]="Queria um quarto.";
hote[7][3]="Gostava de ver o quarto.";
hote[7][4]="Lençol";
hote[7][5]="Cobertor";
hote[7][6]="Toalha";
hote[7][7]="Gel";
hote[7][8]="Champô";
hote[7][9]="Papel Higiénico";
hote[7][10]="Recepção";
hote[7][11]="Chave";
hote[7][12]="A que hora servem...?";
hote[7][13]="o pequeno-almoço";
hote[7][14]="o almoço";
hote[7][15]="o jantar";
hote[7][16]="Têm caixa de segurança?";
hote[7][17]="Têm serviço de quartos?";
hote[7][18]="Como posso telefonar para o estrangeiro?";
hote[7][19]="Quero cancelar a reserva a nome de...";

hote[8] = 'russian';

hote[9] = new Array();
hote[9][0]="Hotel";
hote[9][1]="Tengo una reserva.";
hote[9][2]="Quisiera una habitación.";
hote[9][3]="Me gustaría ver la habitación.";
hote[9][4]="Sábana";
hote[9][5]="Manta";
hote[9][6]="Toalla";
hote[9][7]="Gel";
hote[9][8]="Champú";
hote[9][9]="Papel higiénico";
hote[9][10]="Recepción";
hote[9][11]="Llave";
hote[9][12]="¿A qué hora sirven...?";
hote[9][13]="el desayuno";
hote[9][14]="la comida";
hote[9][15]="la cena";
hote[9][16]="¿Tienen caja de seguridad?";
hote[9][17]="¿Tienen servicio de habitaciones?";
hote[9][18]="¿Cómo puedo llamar al extranjero?";
hote[9][19]="Quiero cancelar la reserva a nombre de...";


var plac = new Array();

plac[0] = 'arabic';
plac[1] = 'chinese';


plac[2] = new Array();
plac[2][0]="Post Office";
plac[2][1]="Museum";
plac[2][2]="Bank";
plac[2][3]="Police Station";
plac[2][4]="Hospital";
plac[2][5]="Pharmacy / Chemist's";
plac[2][6]="Shop";
plac[2][7]="Restaurant";
plac[2][8]="Church";
plac[2][9]="Restrooms / Toilets";
plac[2][10]="Street";
plac[2][11]="Square";
plac[2][12]="Swimming pool";
plac[2][13]="Sea";
plac[2][14]="Mountain";

plac[3] = new Array();
plac[3][0]="la poste";
plac[3][1]="le musée";
plac[3][2]="la banque";
plac[3][3]="la police";
plac[3][4]="l'hôpital";
plac[3][5]="la pharmacie";
plac[3][6]="le magasin";
plac[3][7]="le restaurant";
plac[3][8]="l'eglise";
plac[3][9]="les toilettes";
plac[3][10]="la rue";
plac[3][11]="la place";
plac[3][12]="la piscine";
plac[3][13]="la mer";
plac[3][14]="la montagne";

plac[4] = new Array();
plac[4][0]="Postamt";
plac[4][1]="Museum";
plac[4][2]="Bank";
plac[4][3]="Polizei";
plac[4][4]="Krankenhaus";
plac[4][5]="Apotheke";
plac[4][6]="Geschäft";
plac[4][7]="Restaurant";
plac[4][8]="Kirche";
plac[4][9]="Toiletten";
plac[4][10]="Strasse";
plac[4][11]="Platz";
plac[4][12]="Schwimmbad";
plac[4][13]="Meer";
plac[4][14]="Berg";

plac[5] = new Array();
plac[5][0]="Ufficio Postale";
plac[5][1]="Museo";
plac[5][2]="Banca";
plac[5][3]="Polizia";
plac[5][4]="Ospedale";
plac[5][5]="Farmacia";
plac[5][6]="Negozio";
plac[5][7]="Ristorante";
plac[5][8]="Chiesa";
plac[5][9]="Bagno";
plac[5][10]="Via/Strada";
plac[5][11]="Piazza";
plac[5][12]="Piscina";
plac[5][13]="Mare";
plac[5][14]="Montagna";

plac[6] = 'japanese';


plac[7] = new Array();
plac[7][0]="Correios";
plac[7][1]="Museu";
plac[7][2]="Banco";
plac[7][3]="Policia";
plac[7][4]="Hospital";
plac[7][5]="Farmácia";
plac[7][6]="Loja";
plac[7][7]="Restaurante";
plac[7][8]="Igreja";
plac[7][9]="Casas de banho";
plac[7][10]="Rua";
plac[7][11]="Praça";
plac[7][12]="Piscina";
plac[7][13]="Mar";
plac[7][14]="Montanha";

plac[8] = 'russian';


plac[9] = new Array();
plac[9][0]="Correos";
plac[9][1]="el museo";
plac[9][2]="el banco";
plac[9][3]="la policía";
plac[9][4]="el hospital";
plac[9][5]="la farmacia";
plac[9][6]="la tienda ";
plac[9][7]="el restaurante";
plac[9][8]="la iglesia";
plac[9][9]="los servicios";
plac[9][10]="la calle";
plac[9][11]="la plaza";
plac[9][12]="la piscina";
plac[9][13]="el mar";
plac[9][14]="la montaña";

var days = new Array();

days[0] = 'arabic';
days[1] = 'chinese';


days[2] = new Array();
days[2][0]="What time is it?";
days[2][1]="Today";
days[2][2]="Yesterday";
days[2][3]="Tomorrow";
days[2][4]="Happy birthday";
days[2][5]="Monday";
days[2][6]="Tuesday";
days[2][7]="Wednesday";
days[2][8]="Thursday";
days[2][9]="Friday";
days[2][10]="Saturday";
days[2][11]="Sunday";

days[3] = new Array();
days[3][0]="Quelle heure est-il?";
days[3][1]="Aujourd'hui";
days[3][2]="Hier";
days[3][3]="Demain";
days[3][4]="Joyeux anniversaire";
days[3][5]="Lundi";
days[3][6]="Mardi";
days[3][7]="Mercredi";
days[3][8]="Jeudi";
days[3][9]="Vendredi";
days[3][10]="Samedi";
days[3][11]="Dimanche";

days[4] = new Array();
days[4][0]="Wie viel Uhr ist es?";
days[4][1]="Heute";
days[4][2]="Gestern";
days[4][3]="Morgen";
days[4][4]="Alles Gute zum Geburtstag";
days[4][5]="Montag";
days[4][6]="Dienstag";
days[4][7]="Mittwoch";
days[4][8]="Donnerstag";
days[4][9]="Freitag";
days[4][10]="Samstag";
days[4][11]="Sonntag";

days[5] = new Array();
days[5][0]="Che ora è?";
days[5][1]="Oggi";
days[5][2]="Ieri";
days[5][3]="Domani";
days[5][4]="Auguri per il tuo compleanno";
days[5][5]="Lunedí";
days[5][6]="Martedí";
days[5][7]="Mercoledí";
days[5][8]="Giovedí";
days[5][9]="Venerdí";
days[5][10]="Sabato";
days[5][11]="Domenica";

days[6] = 'japanese';


days[7] = new Array();
days[7][0]="Que hora é?";
days[7][1]="Hoje";
days[7][2]="Ontem";
days[7][3]="Amanhã";
days[7][4]="Parabéns";
days[7][5]="Segunda";
days[7][6]="Terça";
days[7][7]="Quarta";
days[7][8]="Quinta";
days[7][9]="Sexta";
days[7][10]="Sábado";
days[7][11]="Domingo";

days[8] = 'russian';


days[9] = new Array();
days[9][0]="¿Qué hora es?";
days[9][1]="Hoy";
days[9][2]="Ayer";
days[9][3]="Mañana";
days[9][4]="Feliz cumpleaños";
days[9][5]="ellunes";
days[9][6]="el martes";
days[9][7]="el miércoles";
days[9][8]="el jueves";
days[9][9]="el viernes";
days[9][10]="el sábado";
days[9][11]="el domingo";

var dire = new Array();


dire[0] = 'arabic';
dire[1] = 'chinese';


dire[2] = new Array();
dire[2][0]="Where is...?/ I am looking for...";
dire[2][1]="Left";
dire[2][2]="Right";
dire[2][3]="Straight on/Go ahead";
dire[2][4]="Up";
dire[2][5]="Down";
dire[2][6]="Go left";
dire[2][7]="Go right";
dire[2][8]="I need a map.";
dire[2][9]="Map/Plan";
dire[2][10]="Tourist information";

dire[3] = new Array();
dire[3][0]="Où est... ?/Je cherche";
dire[3][1]="Gauche";
dire[3][2]="Droite";
dire[3][3]="Tout droit";
dire[3][4]="En-haut";
dire[3][5]="En-bas";
dire[3][6]="Allez à gauche";
dire[3][7]="Allez à droite";
dire[3][8]="J'ai besoin d'un plan.";
dire[3][9]="Carte/Plan";
dire[3][10]="Informations touristiques";

dire[4] = new Array();
dire[4][0]="Wo ist...?/Ich suche...";
dire[4][1]="Links";
dire[4][2]="Rechts";
dire[4][3]="Geradeaus";
dire[4][4]="Oben";
dire[4][5]="Unten";
dire[4][6]="Gehen Sie nach links";
dire[4][7]="Gehen Sie nach rechts";
dire[4][8]="Ich brauche eine Karte.";
dire[4][9]="Stadtplan / Landkarte";
dire[4][10]="Fremdenverkehrsinformation";

dire[5] = new Array();
dire[5][0]="Dov'è...?/Cerco...";
dire[5][1]="Sinistra";
dire[5][2]="Destra";
dire[5][3]="Diritto, dritto";
dire[5][4]="Sopra";
dire[5][5]="Sotto";
dire[5][6]="Vai a sinistra";
dire[5][7]="Vai a destra";
dire[5][8]="Ho bisogno di una cartina.";
dire[5][9]="Mappa/Piano stradale";
dire[5][10]="Informazione turistica";

dire[6] = 'japanese';


dire[7] = new Array();
dire[7][0]="Donde está...?/Procuro...";
dire[7][1]="Esquerda";
dire[7][2]="Direita";
dire[7][3]="Directo, direito";
dire[7][4]="Em cima";
dire[7][5]="Em baixo";
dire[7][6]="Vá para a esquerda";
dire[7][7]="Vá para a direita";
dire[7][8]="Preciso de um mapa.";
dire[7][9]="Mapa/Plano";
dire[7][10]="Informação Turística";

dire[8] = 'russian';


dire[9] = new Array();
dire[9][0]="¿Dónde está...?/Busco...";
dire[9][1]="Izquierda";
dire[9][2]="Derecha";
dire[9][3]="Directo, derecho";
dire[9][4]="Arriba";
dire[9][5]="Abajo";
dire[9][6]="Vaya a la izquierda";
dire[9][7]="Vaya a la derecha";
dire[9][8]="Necesito un plano.";
dire[9][9]="Mapa/Plano";
dire[9][10]="Información turística";


var cadenaSearch = window.location.search;
function leeParametro(par){
	var resultado = null;
	
	var iniPar = cadenaSearch.indexOf(par);
	if (iniPar != -1){
		var iniValor = iniPar + par.length +1;
		var finValor = cadenaSearch.indexOf("&", iniValor);
		if (finValor ==-1) finValor = cadenaSearch.length;
		resultado = cadenaSearch.substring(iniValor,finValor);
	}
	return resultado;
}

//declare global variables

var lang1=parseInt(leeParametro('from'));
var lang2=parseInt(leeParametro('into'));
var tema = new String(leeParametro('topic'));


function choosePage(){
		
	if(document.f.from.type == "hidden"){
		document.f.from.value=lang1;
		document.f.into.value=lang2;
	}
	document.f.action = "topics.htm";
	document.f.submit();
	
}

function goToIndex(){
	window.location.href="index.htm";
}

function checkIt(){
	
	if(tema=="tran"){document.f.topic[2].checked=true;}
	if(tema=="comm"){document.f.topic[5].checked=true;}
	if(tema=="shop"){document.f.topic[4].checked=true;}
	if(tema=="rest"){document.f.topic[0].checked=true;}
	if(tema=="numb"){document.f.topic[8].checked=true;}
	if(tema=="emer"){document.f.topic[9].checked=true;}
	if(tema=="hote"){document.f.topic[1].checked=true;}
	if(tema=="plac"){document.f.topic[6].checked=true;}
	if(tema=="days"){document.f.topic[3].checked=true;}
	if(tema=="dire"){document.f.topic[7].checked=true;}
	if(tema=="all"){document.f.topic[10].checked=true;}
	
	
}

function writeTitle(){
	var title;
	if(tema=="tran"){title="public.gif"}
	if(tema=="comm"){title="common.gif"}
	if(tema=="shop"){title="shopping.gif"}
	if(tema=="rest"){title="restaurants.gif"}
	if(tema=="numb"){title="numbers.gif"}
	if(tema=="emer"){title="emergencies.gif"}
	if(tema=="hote"){title="hotels.gif"}
	if(tema=="plac"){title="places.gif"}
	if(tema=="days"){title="dates.gif"}
	if(tema=="dire"){title="asking.gif"}
	if(tema=="all"){title="all.gif"}
	
	document.write('<img src="../../../phrasebook/v1/js/img/'+title+'" width="216" height="34" />');
	
}

function writeLang(lang){
	var name;
	if(lang==2){name="english.gif"}
	if(lang==3){name="french.gif"}
	if(lang==4){name="german.gif"}
	if(lang==5){name="italian.gif"}
	if(lang==7){name="portuguese.gif"}
	if(lang==9){name="spanish.gif"}
	
	document.write('<img src="../../../phrasebook/v1/js/img/'+name+'" width="189" height="35" />');
	
}


function writeTable(){
	//this function will write out the contents of two arrays of the same 
	//name in separate columns of a table, after cutting them to the specified length,
	//in this case 21 characters. 
	
	var s; //s and s2 are the substrings for the two arrays' contents.
	var s2;
	var all;//all and all2 are the parts to be cut, and then the part remaining after cutting.
	var all2;
	var one;//one and two are booleans to know if the string is longer than 21 characters
	var two;
	
	if(tema=="all"){//call another function in order to write the 'all topics' page
		writeAll();
			
	}else{//write the arrays for one topic
		
		var first = eval(tema+'[lang1]');
		var second = eval(tema+'[lang2]');
		var arrow ='<img src="../../../phrasebook/v1/js/img/arrow.gif" width="18" height="13" />'		
		document.write('<table>');
		
		for(i=0;i<first.length;i++){
		
			one=(first[i].length>39)?true:false;//measure the string
			
			two=(second[i].length>39)?true:false;
			if(i==1){
			
			}
			
			if(one||two){
				//cut the 1st string, if necessary
				all=first[i];
				s=first[i].substring(0,40);
				pos=s.lastIndexOf(" ");
				s=first[i].substr(0,pos);
				all=all.substring(pos);
				
				//cut the 2nd string, if necessary
				all2=second[i];
				s2=second[i].substring(0,40);
				pos2=s2.lastIndexOf(" ");
				s2=second[i].substr(0,pos2);
				all2=all2.substring(pos2);
				
				//control if both or either one needs cutting
	
				if(one && two){
				
					document.write('<tr>');
					document.write('<td class="t1" width="220">'+s+'<br />'+all+'</td>');
					document.write('<td width="50">'+arrow+'</td>');
					document.write('<td class="t1" width="220">'+s2+'<br />'+all2+'</td>');
					document.write('</tr>');
					
				}else if(one){
				
					document.write('<tr>');
					document.write('<td class="t1" width="220">'+s+'<br />'+all+'</td>');
					document.write('<td width="50">'+arrow+'</td>');
					document.write('<td class="t1" width="220" valign="top">'+second[i]+'<br /></td>');
					document.write('</tr>');
					
				}else if(two){
				
					document.write('<tr>');
					document.write('<td class="t1" width="220" valign="top">'+first[i]+'<br /></td>');
					document.write('<td width="50">'+arrow+'</td>');
					document.write('<td class="t1" width="220">'+s2+'<br />'+all2+'</td>');
					document.write('</tr>');
				
				}
			}else{
				
				//if nothing needs cutting, do this.
				document.write('<tr>');
				document.write('<td class="t1" width="220">'+first[i]+'</td>');
				document.write('<td width="50">'+arrow+'</td>');
				document.write('<td class="t1" width="220">'+second[i]+'</td>');
				document.write('</tr>');
			}
		}
		document.write('</table>');
	}
}

function writeAll(){
	tema="comm";
	document.write('<br /><table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="tran";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="rest";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="numb";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="emer";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="plac";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="hote";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	
	tema="dire";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	
	tema="days";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	
	tema="shop";
	document.write('<table align="center">');
	document.write('<tr><td>');
	writeTitle()
	document.write('</td></tr>');
	document.write('</table>');
	writeTable();
	
	tema="all";

}
