//JavaScript - General Definitions
//All rights reserved - Copyright by medialink 2001-2007 - v6.00/06.04.2007



//-----browserAndSystem-setting
var brAgent   = navigator.userAgent.toLowerCase();
var brName    = navigator.appName;
var brVersion = navigator.appVersion;

var w3c    = (document.getElementById);   //N6M, N6W, E5M, E5W, E5.5W, E6W, E7W
var bv4    = (document.images && screen); //universal browser version 4 and higher

var ns     = (brName == "Netscape");
var ns3    = ((brName == "Netscape") && (parseInt(navigator.userAgent.substring(8,9)) == 3));
var ns4    = (document.layers); //N4W, N4.5M, N4.7W

var ie     = (brName == "Microsoft Internet Explorer")
var ie4    = ((brAgent.indexOf('msie')>-1) && (document.all) && (!w3c)); //E4.5M, E4W
var ie5    = (brAgent.indexOf('msie 5')>-1);
var ie55   = (brAgent.indexOf('msie 5.5')>-1);
var ie6    = (brAgent.indexOf('msie 6')>-1);
var ie7    = (brAgent.indexOf('msie 7')>-1);

var safari = (brAgent.indexOf('safari') > -1);

var mac    = (brVersion.indexOf("Mac") > -1);
var nomac  = (brVersion.indexOf("Mac") == -1);
var win    = (brVersion.indexOf("Win") > -1);
var online = (self.location.href.indexOf('http') > -1);




//----defining basic variables
var lang = "english";
var bookmarkshortcut = "CTRL+D";
var printshortcut = "CTRL+P";
	if (mac){
		bookmarkshortcut = "COMMAND+D";
		printshortcut = "COMMAND+P"
	}



//-----defining the basic messages
var msgBrowserFailed = "Your browser does not support certain functions needed for this site. Please update your browser.";
var	msgScreenResFailed ="Sorry, this website requires a screen resolution of 1024x768 pixel or higher. You can continue but you will only be able to use the interface to a certain limited extent.  The settings of your graphics system may allow you to enter higher values.";
var msgWinOpenFailed = "Certain JavaScript functions are deactivated on your computer! If you wish to use the window options, please activate full JavaScript functionality.";
var msgFunctionFailed = "This function is not supported by your browser or your current system configuration!";
var	msgPrintingFailed = "This function is not supported by your browser. To print out the document please press " + printshortcut +".";
var msgBookmarkingFailed = "This function is not supported by your browser. To bookmark this page please press " + bookmarkshortcut + ".";
var msgFormRequired = "Please complete the inscriptions marked by *.";
var msgFormSubmit= "Thank you for your request. We will carry it out as soon as possible.";

if (self.location.href.indexOf("deutsch") > -1){
	lang = "deutsch";
	msgBrowserFailed = "Ihr Browser unterstützt benötigte Funktionen nicht. Nehmen Sie bitte ein Update vor.";
	msgScreenResFailed ="Für diese Website ist eine Bildschirmauflösung von 1024x768 Pixel erforderlich. Sie können weitergehen, werden aber das Interface nur bedingt bedienen können. Eventuell erlauben die Einstellungen Ihres Grafiksystems die Eingabe höherer Werte.";
	msgWinOpenFailed = "Einige JavaScript-Funktionen sind deaktiviert! Bitte aktivieren Sie volle JavaScript-Funktionalität für die Nutzung von Fensteroptionen.";
	msgFunctionFailed = "Diese Funktion wird durch Ihren Browser oder die aktuelle System-Konfiguration nicht unterstützt!";
	msgPrintingFailed = "Diese Funktion wird durch Ihren Browser nicht unterstützt. Drücken Sie bitte " + printshortcut +" um das Dokument auszudrucken.";
	msgBookmarkingFailed = "Diese Funktion wird durch Ihren Browser nicht unterstützt. Drücken Sie bitte "+bookmarkshortcut+" um ein Lesezeichen auf diese Seite zu setzen.";
	msgFormRequired = "Bitte füllen Sie mindestens alle mit * bezeichneten Felder aus!";
	msgFormSubmit = "Vielen Dank für Ihr Interesse an unseren Dienstleistungen. Wir werden Ihren Wünschen so rasch als möglich nachkommen.";
}

if (self.location.href.indexOf("francais") > -1){
	lang = "francais";
	msgBrowserFailed = "Votre navigateur ne prend pas en charge certaines fonctions. Nous vous conseillons de procéder à une mise à jour.";
	msgScreenResFailed ="Ce site a été optimisé pour une résolution de 1024x768 pixels. Nous vous conseillons de configurer votre carte graphique avec une résolution supérieure, afin d'obtenir une navigation confortable.";
	msgWinOpenFailed = "Certaines fonctions JavaScript sont désactivées! Nous vous conseillons d'activer l'option Java Script de votre navigateur afin d'obtenir une navigation confortable.";
	msgFunctionFailed = "Cette fonction n'est pas prise en charge par votre navigateur ou par votre système dans sa configuration actuelle!";
	msgPrintingFailed = "Cette fonction n'est pas prise en charge par votre navigateur. Prière de cliquer sur " + printshortcut +" pour imprimer le document.";
	msgBookmarkingFailed = "Cette fonction n'est pas prise en charge par votre navigateur. Prière de cliquer sur "+bookmarkshortcut+" pour ajouter ce site à vos favoris.";
	msgFormRequired = "Prière de remplir au moins tous les champs marqués d'un astérisque!";
	msgFormSubmit = "Nous vous remercions de votre intérêt pour nos prestations. Nous tenterons de répondre à vos souhaits aussi rapidement que possible.";
}

if (self.location.href.indexOf("italiano") > -1){
	lang = "italiano";
	msgBrowserFailed = "Il vostro browser non supporta le funzioni necessarie. Effettuare un update.";
	msgScreenResFailed ="Per questo sito web è necessaria una risoluzione dello schermo di 1024x768 pixel. Potete proseguire ma sarà possibile utilizzare l'interfaccia solo limitatamente. E' possibile che la vostra scheda grafica consenta di impostare valori superiori.";
	msgWinOpenFailed = "Alcune funzioni JavaScript sono disattivate! Si prega di attivare tutte le funzionalità JavaScript per l'utilizzo delle opzioni delle finestre.";
	msgFunctionFailed = "Questa funzione non è supportata dal vostro browser o dall'attuale configurazione del sistema!";
	msgPrintingFailed = "Questa funzione non è supportata dal vostro browser. Premere " + printshortcut +" per stampare il documento.";
	msgBookmarkingFailed = "Questa funzione non è supportata dal vostro browser. Premere "+bookmarkshortcut+" per impostare un bookmark su questa pagina.";
	msgFormRequired = "Si prega di compilare almeno tutti i campi contrassegnati con * !";
	msgFormSubmit = "Vi ringraziamo per l'interesse dimostrato per i nostri servizi. Soddisferemo le vostre richieste il più presto possibile.";
}

//---end of file


