		browserName = navigator.appName;
		browserVer = parseInt(navigator.appVersion);
	
		ver = "";        
		if (browserName == "Netscape" && browserVer >= 3) 
			ver = "n3";        
		else if (browserName == "Microsoft Internet Explorer" && browserVer > 3)
			ver = "e3";
	
		canAnimate = false;
		if (ver == 'n3' || ver == 'e3') 
			canAnimate = true;
		if (canAnimate)	{
			SCurrent = new String();
			SCurrent = "Marktplatz";
			SPath = new String();
			SPath = "marktplatz.gif";
			a = new Image();
			aa = new Image();
			aa.src = "images/marktplatz.gif";
			a.src = "images/b-marktplatz.gif";
		}	
	
		function ButtonOn(SPicture, SName) {
			//alert(document.location.pathname);
			var sCurrLang = funcGetLanguage(document.location.pathname);
			//alert(sCurrLang);
			document.images[SName].src = sCurrLang + "images/"+SPicture;
		}
		function ButtonOff(SPicture, SName) {
			var sCurrLang = funcGetLanguage(document.location.pathname);
			
			if (SCurrent == SName) {
			SPicture = sCurrLang + "images/"+SPicture;
			document.images[SName].src = SPicture;
			}
			else
			{
			document.images[SName].src = sCurrLang + "images/"+SPicture;
			}
		}

		// Bjoern Grenda - GR - 2007-11-02: Sprache aus Pfad
		function funcGetLanguage(strPath) {

			if (strPath.match("deutsch") != null) {
				return "/deutsch/";
			}
			else if (strPath.match("english") != null) {
						return "/english/";
					}
					else if (strPath.match("francais") != null) {
								return "/francais/";
							}

			return "";
		} 
		
// Bjoern Grenda - GR - nbsp GmbH - 2007-10-30: Popup f. OtherLanguages:
function MM_window(theURL,wname,features) { window.open(theURL,wname,features);	}
function displayPDF(nPk) { 
		MM_window('/default/showpdf.cfm?pk=' + nPk,'KuS','width=720,height=400,resizable=yes,scrollbars=yes'); 
}

function ShowFile() {
	var nLangID = 0;

	if (document.getElementById("frmlangfileid").value > 0) {
		document.getElementById("frmlangfileid").style.background = "";
		nLangID = document.getElementById("frmlangfileid").value;
		displayPDF(nLangID);
	}
	else {
		alert ("Please select one of the listed countries.");
		document.getElementById("frmlangfileid").style.background = "#FF6666";
		document.getElementById("frmlangfileid").focus();
	}
}


