/*
  requires SYSTEMLANGUAGE.JS
*/

function getTranslation ( textID ) {
	var languageIndex = (getCurrentLanguage() == "de") ? 0 : 1;
	var retValue = "unknown";
	
	var texte = new Array();
	texte["imprint.modified"] = "Letzte Aktualisierung: 07. Januar 2012##Last modified: 07-JAN-2012";
	texte["imprint.address"] = "Adresse##Address";
	texte["imprint.register"] = "Vereinsregister Norderstedt Nr. 281##Norderstedt Register of Associations No. 281";
	texte["imprint.disclaimer"] = "Haftungsausschluss##Disclaimer";
	texte["imprint.disclaimer.text"] = "Trotz sorgf&auml;ltiger inhaltlicher Kontrolle &uuml;bernehmen wir keine Haftung f&uuml;r die Inhalte externer Links. F&uuml;r den Inhalt der verlinkten Seiten sind ausschlie&szlig;lich deren Betreiber verantwortlich.##We are not responsible for the contents of the external links contained in www.FriendshipForceNorderstedt.de.";
	texte["imprint.created"] = "Realisierung und Design von##Created and designed by";
	texte["menu.home"] = "Start##Home",
	texte["menu.about"] = "&Uuml;ber FF##About FF",
	texte["menu.ffn"] = "FF-Norderstedt##FF Norderstedt",
	texte["menu.program"] = "Programm##Program",
	texte["menu.media"] = "Mediathek##Media",
	texte["menu.history"] = "Chronik##History",
	texte["menu.sights"] = "Umgebung##Sights",
	texte["menu.norderstedt"] = "Norderstedt##City of Norderstedt",
	texte["menu.100thexchange"] = "FF-Norderstedt feiert seinen 100. internationalen Austausch##FFN are proud to conduct their 100th international exchange",
	texte["menu.wc2012hiroshima"] = "FF-Weltkonferenz in Hiroshima, Japan##FF World Conference in Hiroshima, Japan",
	texte["menu.weinhold"] = "Dr. F. Weinhold pr&auml;sentiert &quot;Energiewende - was nun?&quot;##Dr. F. Weinhold presents &quot;Turn of energy policies - what next?&quot;",
	texte["menu.cooknlearn"] = "Friendship Force + VHS-Norderstedt &quot;cook'n learn&quot;##Friendship Force + VHS-Norderstedt &quot;cook'n learn&quot;",
	texte["activities.next"] = "N&auml;chste Aktivit&auml;ten##next activities";
	texte["activities.inprogress"] = "Gerade in Gang##in progress";
	texte["web.ffinthewww"] = "FF im Internet##FF in the WWW";
	texte["web.socialnet"] = "Anderen von FF-Norderstedt berichten:&nbsp;##Share this site on:&nbsp;";
	texte["flyer.current"] = "Aktueller Rundbrief##current newsletter";
	texte["toolbar.home"] = "Startseite##Home";
	texte["toolbar.contact"] = "Kontakt##Contact";
	texte["toolbar.imprint"] = "Impressum##Imprint";
	texte["toolbar.credits"] = "Danksagungen##Credits";
	texte["toolbar.english"] = "English/Englisch##Englisch/English";
	texte["toolbar.german"]  = "German/Deutsch##Deutsch/German";
	texte["board.president"] = "1. Vorsitzende##President";
	texte["board.webmaster"] = "Webmaster##Webmaster";
	texte["board.vicepresident"] = "2. Vorsitzende##Vice President";
	texte["board.treasurer"] = "Schatzmeisterin##Treasurer";
	texte["board.secretary"] = "Schriftf&uuml;hrer##Secretary";
	texte["board.pr"] = "&Ouml;ffentlichkeitsarbeit##Public Relations";
	texte["board.advisory"] = "Beirat##Advisory Board";
	texte["board.teamactivities"] = "Team Vereinsaktivit&auml;ten##Team Club Activities";
	texte["board.auditor"] = "Kassenpr&uuml;fung##Cash Auditor";
	texte["board.elections"] = "Der Vereinsvorstand wird alle zwei Jahre auf einer ordentlichen Mitgliederversammlung f&uuml;r die Dauer von zwei Jahren gew&auml;hlt. (Die n&auml;chste Wahl findet im M&auml;rz 2013 statt.)##The board is elected biennially for a term of two years at a general meeting. (The next elections will be held in March 2013)";
	texte["board.members"] = "Der derzeitige Vorstand besteht aus den folgenden Mitgliedern:##The members of the board are:";
	texte["board.presidents"] = "Die bisherigen Vereinsvorsitzenden von Friendship Force Norderstedt:##The club presidents of The Friendship Force of Norderstedt:";
	texte["contact.email"] = "E-Mail##email";
	texte["contact.phone"] = "Telefon##phone";
	texte["contact.click"] = "Klicken Sie hier##click HERE";
	texte["contact.www.world"] = "Friendship Force International (Atlanta, Georgia, USA)##Friendship Force International, Atlanta, Georgia, USA";
	texte["contact.www.europe"] = "Friendship Force in Europa##Friendship Force in Europe";
	texte["contact.www.germany"] = "Friendship Force in Deutschland##Friendship Force in Germany";
	texte["home.news"] = "Neues von Friendship Force Norderstedt##News from The Friendship Force of Norderstedt (in German only)";
	texte["home.more"] = "&#x25B6;&nbsp;mehr&nbsp;&#x25B6;##&#x25B6;&nbsp;more&nbsp;&#x25B6;";
	texte["home.gototop"] = "&#x25B2;&nbsp;nach oben&nbsp;&#x25B2;##&#x25B2;&nbsp;go to top&nbsp;&#x25B2;";
	texte["home.back"] = "&#x25C0;&nbsp;zur&uuml;ck&nbsp;&#x25C0;##&#x25C0;&nbsp;back&nbsp;&#x25C0;";
	texte["program.meetings"] = "Vereinsversammlungen##Public meetings";
	texte["program.exchanges"] = "Austauschprogramme##Exchange programs";
	texte["program.plenary"] = "<b>Plenarsaal</b>##<b>plenary assembly hall</b>";
	texte["program.townhall"] = "Rathaus Norderstedt##Townhall Norderstedt";
	texte["program.room"] = "Raum##Room";
	texte["program.meetus"] = "Wo Sie uns treffen k&ouml;nnen:##Where you can meet us:";
	texte["program.infocontact"] = "Informationen bei##For information contact";
	texte["program.noinfo"] = "Derzeit keine Informationen verf&uuml;gbar!##Currently no information available!";
	texte["program.WORLD"] = "&Uuml;berseeaustausche##Overseas exchanges";
	texte["program.EUROPE"] = "Europ&auml;ische Austausche##European exchanges";
	texte["program.GERMANY"] = "Innerdeutsche Austausche##Intra-German exchanges";
	texte["media.gallery"] = "Fotogalerie##Photo gallery";
	texte["media.articles"] = "Presseberichte##Articles";
	texte["media.newsletter"] = "Rundbriefe##Newsletters";
	texte["media.slide"] = "Video##Video";
	texte["media.slide.presentation"] = "Friendship Force Norderstedt stellt sich vor##Friendship Force Norderstedt presents itself (in German)";
	texte["media.slide.snapshots"] = "Schnappsch&uuml;sse einiger unserer Austauschprogramme##Snapshots from some of our exchange programs";
	texte["media.gotogallery"] = "Foto verf&uuml;gbar##photo available";
	texte["media.gotoarchives"] = "Pressebericht verf&uuml;gbar##newspaper article available";
	texte["history.headline"] = "Chronologie der Austauschprogramme##History of the exchange programs";
	texte["history.text"] = "Um schneller an die Aktivit&auml;ten eines bestimmten Jahres zu gelangen, klicken Sie bitte auf eine der folgenden Jahreszahlen:##For a quick jump to the activities of a specific year please click on one of the following links:";
	texte["history.planning"] = "in Vorbereitung##in planning stage";
	texte["ffn.general"] = "Allgemeines##General";
	texte["ffn.board"] = "Vorstandsmitglieder##Board members";
	texte["ffn.presidents"] = "Die 1. Vorsitzenden##Club presidents";
	texte["ffn.documents"] = "Dokumente##Documents";
	texte["ffn.today"] = "Heute##Today";
	texte["documents.text"] = "Hier finden Sie einige Dokumente und Formulare zum Download.##Here are some documents and forms you can download.";
	texte["documents.membership"] = "Antrag auf Mitgliedschaft mit Einzugserm&auml;chtigung##FF-Norderstedt Membership application and direct debit authorization (Germany only!)";
	texte["documents.directdebit"] = "Einzugserm&auml;chtigung##Direct debit authorization (Germany only!)";
	texte["documents.rules"] = "Vereinssatzung##Official club rules";
	texte["documents.conditions"] = "Teilnahmebedingungen f&uuml;r Austauschprogramme##Terms and conditions (Germany only)";
	texte["documents.application"] = "&quot;Botschafterantragsformular&quot;##Ambassador application form (Germany only)";
	texte["about.whatis"] = "Was ist The Friendship Force?##What is The Friendship Force?";
	texte["sights.map"] = "Landkarte##Map";
	texte["sights.sights"] = "Sehenswertes##Sights";
	texte["sights.weather"] = "Klima/Wetter##Climate/weather";
	texte["sights.northgermany"] = "Norddeutschland##Northern Germany";
	texte["sights.clickable"] = "(klickbare Karte)##(clickable map)";
	texte["sights.airport"] = "Flughafen Hamburg##Hamburg Airport";
	texte["sights.webcam"] = "(&quot;Live&quot;-Webcam)##(&quot;live&quot; webcam)";
	
	
	if (texte[textID]) {
		var multiLangText = texte[textID].split("##");
		retValue = multiLangText[languageIndex];
	} else {
		alert ("Text mit ID=\"" + textID + "\" nicht vorhanden!");
	}
	
	return retValue;

}

function getMonthName (month) {
	var entries = new Array("Jan##Jan",
							"Feb##Feb",
							"M&auml;r##Mar",
							"Apr##Apr",
							"Mai##May",
							"Jun##Jun",
							"Jul##Jul",
							"Aug##Aug",
							"Sep##Sep",
							"Okt##Oct",
							"Nov##Nov",
							"Dez##Dec"
				);
	var languageIndex = (getCurrentLanguage() == "de") ? 0 : 1;
	entry = entries[parseInt(month,10)-1].split("##");
	return (entry[languageIndex]);
}

function getDayName (day) {
	var entries = new Array("MO##Montag##Monday",
							"DI##Dienstag##Tuesday",
							"MI##Mittwoch##Wednesday",
							"DO##Donnerstag##Thursday",
							"FR##Freitag##Friday",
							"SA##Samstag##Saturday",
							"SO##Sonntag##Sunday"
				);
	var languageIndex = (getCurrentLanguage() == "de") ? 1 : 2;
	retValue = "---";
	var i = 0;
	while (i<=6) {
		entry = entries[i].split("##");
		if (entry[0] == day) {
			retValue = entry[languageIndex];
			break;
		}
		i++;
	}
	return retValue;
}

function getCountryName ( abk ) {
	var countries = new Array("??##---##---",
							  "ae##Vereinigte Arabisch Emirate##United Arab Emirates",
							  "al##Albanien##Albania",
							  "ao##Angola##Angola",
							  "ar##Argentinien##Argentina",
							  "at##&Ouml;sterreich##Austria",
							  "au##Australien##Australia",
							  "ba##Bosnien und Herzegovina##Bosnia and Herzegovina",
							  "be##Belgien##Belgium",
							  "bg##Bulgarien##Bulgaria",
							  "bo##Bolivien##Bolivia",
							  "br##Brasilien##Brazil",
							  "by##Wei&szlig;russland##Belarus",
							  "ca##Kanada##Canada",
							  "ch##Schweiz##Switzerland",
							  "ci##Elfenbeink&uuml;ste##Ivory Coast",
							  "cl##Chile##Chile",
							  "cm##Kamerun##Cameroon",
							  "cn##China##China",
							  "co##Kolumbien##Colombia",
							  "cr##Costa Rica##Costa Rica",
							  "cv##Kapverden##Cap Verde",
							  "cy##Zypern##Cyprus",
							  "cz##Tschechische Republik##Czech Republic",
							  "de##Deutschland##Germany",
							  "dj##Dschibuti##Djbouti",
							  "dk##D&auml;nemark##Denmark",
							  "ee##Estland##Estonia",
							  "es##Spanien##Spain",
							  "eu##Europa##Europe",
							  "ff##Welt##World",
							  "fi##Finnland##Finland",
							  "fj##Fiji Inseln##Fiji Islands",
							  "fo##F&auml;r&ouml;er##Faroe Islands",
							  "fr##Frankreich##France",
							  "gi##Gibraltar [UK]##Gibraltar [UK]",
							  "gl##Gr&ouml;nland##Greenland",
							  "gr##Griechenland##Greece",
							  "gu##Guam [USA]##Guam [USA]",
							  "hk##Hongkong [China]##Hongkong [China]",
							  "hr##Kroatien##Croatia",
							  "hu##Ungarn##Hungary",
							  "id##Indonesien##Indonesia",
							  "il##Israel##Israel",
							  "in##Indien##India",
							  "is##Island##Iceland",
							  "it##Italien##Italy",
							  "jp##Japan##Japan",
							  "ke##Kenia##Kenya",
							  "kr##S&uuml;dkorea##South Korea",
							  "lt##Litauen##Lithuania",
							  "lv##Lettland##Latvia",
							  "md##Moldavien##Moldova",
							  "me##Montenegro##Montenegro",
							  "mg##Madagaskar##Madagascar",
							  "mk##Mazedonien##Macedonia",
							  "mt##Malta##Malta",
							  "mx##Mexiko##Mexico",
							  "my##Malaysia##Malaysia",
							  "mz##Mozambik##Mozambique",
							  "na##Namibia##Namibia",
							  "nl##Niederlande##The Netherlands",
							  "no##Norwegen##Norway",
							  "np##Nepal##Nepal",
							  "nz##Neuseeland##New Zealand",
							  "pe##Peru##Peru",
							  "pg##Papua-Neuguinea##Papua New Guinea",
							  "ph##Philippinen##Philippines",
							  "pk##Pakistan##Pakistan",
							  "pl##Polen##Poland",
							  "pr##Puerto Rico##Puerto Rico",
							  "pt##Portugal##Portugal",
							  "ro##Rum&auml;nien##Romania",
							  "rs##Serbien##Serbia",
							  "ru##Russland##Russia",
							  "sb##Solomon Inseln##Solomon Islands",
							  "sc##Seychellen##Seychelles",
							  "se##Schweden##Sweden",
							  "sg##Singapur##Singapore",
							  "si##Slowenien##Slovenia",
							  "sk##Slowakei##Slovakia",
							  "sn##Senegal##Senegal",
							  "th##Thailand##Thailand",
							  "tr##T&uuml;rkei##Turkey",
							  "tt##Trinidad und Tobago##Trinidad and Tobago",
							  "tw##Taiwan##Taiwan",
							  "tz##Tansania##Tanzania",
							  "ua##Ukraine##Ukraine",
							  "uk##Gro&szlig;britannien##United Kingdom",
							  "us##USA##USA",
							  "za##S&uuml;dafrika##South Africa"
	);
	var languageIndex = (getCurrentLanguage() == "de") ? 1 : 2;
	var retValue = "unknown";
	var i=0;
	while (true) {
		if (countries[i] == null) {
			break;
		} else {
			var entry = countries[i].split("##");
			if (abk == entry[0]) {
				retValue = entry[languageIndex];
			}
		}
		i++;
	}
	return retValue;
}
