//JavaScript - General Definitions
//All rights reserved - Copyright by medialink 2001-2006 - v4.02c/28.02.2007

//-----browserAndSystem-setting
var browserAgent = navigator.userAgent.toLowerCase();
var browserName = navigator.appName;
var browserVersion = navigator.appVersion;

var ns3 = ((browserName == "Netscape") && (parseInt(navigator.userAgent.substring(8,9)) == 3));
var ns4 = (document.layers); //N4W, N4.5M, N4.7W
var ns6 = ((browserName == "Netscape") && (parseInt(navigator.userAgent.substring(8,9)) >= 5));
var nsX = ((browserName == "Netscape") && (parseInt(navigator.userAgent.substring(8,9)) >= 4)); //N4 and higher

var ie5 = (browserAgent.indexOf('msie 5')>-1);
var ie55 = (browserAgent.indexOf('msie 5.5')>-1);
var ie6 = (browserAgent.indexOf('msie 6')>-1);
var ie7 = (browserAgent.indexOf('msie 7')>-1);
var ie4 = ((browserAgent.indexOf('msie')>-1) && (document.all) && (!ie5) && (!ie55) && (!ie6) && (!ie7)); //E4M (no support for clipping), E4.5M, E4W
var ieX = ((browserName == "Microsoft Internet Explorer") && (parseInt(navigator.userAgent.substring(8,9)) >= 4)); //E4 and higher
var w3c = (document.getElementById); //N6M, E5M, E5W, E5.5W, E6W
var bv4 = (document.images && screen); //universal browser version 4 and higher
var neX = (nsX || ieX);

var MAC = (browserVersion.indexOf("Mac") > -1);
var noMAC = (browserVersion.indexOf("Mac") == -1);
var WIN = ((browserVersion.indexOf("Win") > -1) || (browserVersion.indexOf("Windows") > -1));
var WINNT = ((browserVersion.indexOf("WinNT") > -1) || (browserVersion.indexOf("Windows NT") > -1));
var noISO = ((MAC && ns4) || (MAC && ns3));		//noISO-setting for Mac (but not for NS6 or Explorer)
var online = ((self.location.href.indexOf('http://') > -1) || (self.location.href.indexOf('https://') > -1));

var ie45M = (ie4 && MAC && (navigator.userAgent.indexOf("5.") == -1));	//E4.5M doesn't support window.closed
var safari = (browserAgent.indexOf('safari') > -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 800x600 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 current browser configuration!";
var	msgPrintingFailedE5M = "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.";
var msgCookiesRequired = "For this function, you have to activate Cookies!";
var msgForwardingToRequestForm = "You have picked up a topic. You can now collect other topics (Cancel) or going forward to the contact form for sending your request (OK). Would you like to get the request form now?";

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 800x600 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 Ihre aktuelle Browser-Konfiguration nicht unterstützt!";
	msgPrintingFailedE5M = "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.";
	msgCookiesRequired = "Für diese Funktion müssen Sie in Ihren Browsereinstellungen Cookies zulassen!";
	msgForwardingToRequestForm = "Ihr Anfragethema wurde aufgenommen. Sie können nun weitere Themen sammeln (Abbrechen) oder zum Kontaktformular weitergehen, um Ihr Anliegen an uns zu senden (OK). Möchten Sie jetzt das Anfrageformular aufrufen?";

}

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 800x600 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 dans sa configuration actuelle!";
	msgPrintingFailedE5M = "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.";
	msgCookiesRequired = "Pour cette fonction vous devez activer cookies dans les préferences de votre navigateur!";
	msgForwardingToRequestForm = "Le thème de votre demande a bien été enregistré. Vous pouvez désormais ajouter d'autres thèmes (Abandonner) ou poursuivre sur le formulaire de contact, afin de nous envoyer votre demande (OK). Souhaitez-vous afficher maintenant le formulaire?";
}


//---end of file

