//JavaScript - General Definitions
// All rights reserved on concept, design and solution as well as on attached files
// Copyright by medialink 2009 - v9.05.002/20.04.2010
// -----------------------------------------------------------------------------------



//-----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 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 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 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!";
	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.";
}


//---end of file
