//JavaScript - General Definitions
//All rights reserved - Copyright by medialink 2001-2006 - v4.01d/30.11.2006

//-----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 ie4 = ((browserAgent.indexOf('msie')>-1) && (document.all) && (!ie5) && (!ie55) && (!ie6)); //E4M (no support for clipping), E4.5M, E4W (E5/E5.5/E6 accept document.all !!!)
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 browserFrameSpec;
var bookmarkshortcut = "CTRL+D";
var printshortcut = "CTRL+P";
	if (MAC){
		bookmarkshortcut = "COMMAND+D";
		printshortcut = "COMMAND+P"
	}

	
var msgBrowserFailed = "Your browser does not support certain functions needed for this site. Please get an update of your browser.";
var	msgScreenResFailed ="To view this site you will need a screen resolution of 800 x 600 pixels. 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 define 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 by 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 this document please press " + printshortcut +".";
var msgBookmarkingFailed = "This function is not supported by your browser. To bookmark this page please press " + bookmarkshortcut + ".";

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

if (self.location.href.indexOf("_francais/") > -1){
	lang = "francais";
	msgBrowserFailed = "Votre navigateur n'exécute pas certaines fonctions indispensables. Veuillez le réactualiser.";
	msgScreenResFailed ="Ce site Internet nécessite une résolution d'écran de 800x600 Pixel. Vous pouvez continuer, mais ne disposerez d'un accès que limité à l'interface. Le réglage de votre systme graphique permettra éventuellement d'entrer des valeurs plus élevées.";
	msgWinOpenFailed = "Certaines fonctions JavaScript sont désactivées! Veuillez activer la totalité des fonctions JavaScript pour utiliser les options des fenêtres.";
	msgFunctionFailed = "Votre navigateur ou la configuration actuelle de votre systme n'exécutent pas cette fonction!";
	msgPrintingFailed = "La configuration actuelle de votre navigateur n'exécute pas cette fonction!";
	msgPrintingFailedE5M = "Votre nagivateur n'exécute pas cette fonction. Veuillez appuyer sur " + printshortcut +" pour imprimer le document.";
	msgBookmarkingFailed = "Votre navigateur n'exécute pas cette fonction. Veuillez appuyer sur "+bookmarkshortcut+" pour placer un bookmark sur cette page.";
}

if (self.location.href.indexOf("_polsku/") > -1){
	lang = "polsku";
	msgBrowserFailed = "Your browser does not support certain functions needed for this site. Please get an update of your browser.";
	msgScreenResFailed ="To view this site you will need a screen resolution of 800 x 600 pixels. 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 define higher values.";
	msgWinOpenFailed = "Certain JavaScript functions are deactivated on your computer! If you wish to use the window options, please activate full JavaScript functionality.";
	msgFunctionFailed = "This function is not supported by your browser or by your current system configuration!";
	msgPrintingFailed = "This function is not supported by your current browser configuration!";
	msgPrintingFailedE5M = "This function is not supported by your browser. To print out this document please press " + printshortcut +".";
	msgBookmarkingFailed = "This function is not supported by your browser. To bookmark this page please press " + bookmarkshortcut + ".";
}

//---end of file
