var lang = {
  de: {
    CheckJava : 'Zur Teilnahme an der Online-Präsentation wird eine funktionierende Java-VM in Ihrem Browser benötigt. Es wird jetzt versucht, eine Java-VM auf Ihrem System zu finden. Bitte haben Sie einen Augenblick Geduld.',
    CheckJavaFailed : '<div style="font-size:12pt; color:#FF0000">Browser nicht Java-fähig!</div><br>&nbsp;<br><div style="font-size:12pt; color:#000000">Klicken Sie <a href="h-index.html" style="color:#FF0000;">hier</a> um dennoch sofort and der Präsentation teilzunehmen.</div><br>&nbsp;<br>&nbsp;<br><hr>&nbsp;<br>&nbsp;<br><div style="font-size:10pt; font-weight: normal"><b>Wenn es Ihre Zeit erlaubt, folgen Sie nachstehenden Schritten um einen noch optimaleren Präsentationsverlauf zu erleben:</b><br>&nbsp;<br>1) Downloaden Sie <a href="http://www.java.com/de/download/manual.jsp" target="_new">hier</a> die aktuellste Version des kostenlosen Java Plug-Ins<br>&nbsp;<br>2) Wählen Sie als Windows-Nutzer die "Windows (Offline-Installation)" und starten Sie die Installation mit Administrator-Rechten. Wir empfehlen während des Installationsvorgangs die Option "Typische Installation" auszuwählen.</div>',
    CheckPIN : 'Bitte PIN oder Startzeit &#252;berpr&#252;fen!',
    MaxClients : 'Teilnehmerlimit erreicht. Bitte informieren Sie Ihren Gastgeber.',
    Mr : 'Herr',
    Mrs : 'Frau',
    Name : 'Name',
    PIN : 'PIN',
    Start : 'Start',
    Title : 'Anrede',
    TypeName : 'Bitte Namen eingeben!',
    TypePIN: 'Bitte geben Sie eine PIN ein!',
    powered: '<div style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">powered by CSN. Conference<br><a href="http://www.csn-gmbh.de" style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">http://www.csn-gmbh.de</a></div>'
  },
  en: {
    CheckJava : 'In order to participate in the online presentation, you will need an executable version of Java-VM in your browser. Your system is currently being checked for the Java-VM, please be patient.',
    CheckJavaFailed : '<div style="font-size:12pt; color:#FF0000">Browsertest failed!</div><br>&nbsp;<br>In order to attend an online presentation you need to have a Java-Runtime installed on your system. Please install a free version of the Java-Runtime by clicking on the following link:<br>&nbsp;<br><a href="http://www.java.com/en/download/manual.jsp" target="_new">http://www.java.com/en/download/manual.jsp</a><br>&nbsp;<br>Please note that you need to be logged on to your system as administrator to run the installation program! We recommend using the offline installation. After finishing the download please run the setup program with standard settings.',
    CheckPIN : 'Check your PIN or starttime!',
    MaxClients : 'Client limit reached. Please contact the moderator.',
    Mr : 'Mr.',
    Mrs : 'Mrs.',
    Name : 'Name',
    PIN : 'PIN',
    Start : 'Start',
    Title : 'Salutation',
    TypeName : 'Please type in your name!',
    TypePIN : 'Please type in the PIN!',
    powered: '<div style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">powered by CSN. Conference<br><a href="http://www.csn-gmbh.de" style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">http://www.csn-gmbh.de</a></div>'
  },
  es: { // Es fehlt CheckJava und TypePIN
    CheckPIN : 'Por favor, comprueba su PIN!',
    Mr : 'Sr.',
    Mrs : 'Sra.',
    Name : 'Nombre',
    PIN : 'PIN',
    Start : 'Comienzo',
    Title : 'Sr./Sra.',
    TypeName : 'Por favor, indique su nombre!',
    powered: '<div style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">powered by CSN. Conference<br><a href="http://www.csn-gmbh.de" style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">http://www.csn-gmbh.de</a></div>'
  },
  fr: { // Es fehlt CheckJava und TypePIN
    CheckPIN : "S'il vous plait, v&#233;rifiez votre GOUPILLE!",
    Mr : 'Mr',
    Mrs : 'Mme',
    Name : 'Nom',
    PIN : 'GOUPILLE',
    Start : 'Continuer',
    Title : 'Mr/Mme',
    TypeName : "S'il vous plait, donnez votre nom!",
    powered: '<div style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">powered by CSN. Conference<br><a href="http://www.csn-gmbh.de" style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">http://www.csn-gmbh.de</a></div>'
  },
  it: { // Es fehlt CheckJava und TypePIN
    CheckPIN : 'P.f. controllare il PIN!',
    Mr : 'Signore',
    Mrs : 'Signora',
    Name : 'Cognome',
    PIN : 'PIN',
    Start : 'Start',
    Title : 'Contatto',
    TypeName : 'P. f. dare il cognome!',
    powered: '<div style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">powered by CSN. Conference<br><a href="http://www.csn-gmbh.de" style="font-size:11px; color:#7F7F7F; text-decoration: none; font-weight: boldt;">http://www.csn-gmbh.de</a></div>'
  }
};

function getLangText(locale, key) {
  if (lang[locale] && lang[locale][key]) {
    return lang[locale][key];
  } else {
    return lang['en'][key];
  }
}



