var lang = {
  de: {
    CheckJava : 'Zur Teilnahme am CSN. Online Support 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">Browsercheck fehlgeschlagen!</div><br>&nbsp;<br> Zur Teilnahme am CSN. Online Support wird ein Java Plug-In benötigt - vorzugsweise von SUN Microsystems - welches auf Ihrem System nicht gefunden wurde. Die jeweils aktuellste Version des kostenlosen Java Plug-Ins finden Sie auf der Seite<br>&nbsp;<br><a href="http://www.java.com/de/download/manual.jsp" target="_new">http://www.java.com/de/download/manual.jsp</a><br>&nbsp;<br>Downloaden Sie von dieser Seite 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. Nach erfolgreicher Installation des Plug-Ins ist ein Neustart des Browsers erforderlich.',
    CheckPIN : 'Bitte PIN &#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 use the CSN. Online Support, 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 use the CSN. Online Support 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!',
    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 PIN!",
    Mr : 'Mr',
    Mrs : 'Mme',
    Name : 'Nom',
    PIN : 'PIN',
    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];
  }
}


