<!--
var sname="";

function MouseOver(iname){
	newSRC = document[iname].src.replace("_n.","_o.");
	document[iname].src = newSRC;
}

function MouseOut(iname){
	if (sname != iname){
		newSRC = document[iname].src.replace("_o.","_n.");
		document[iname].src = newSRC;
	}
}

function SetImage(name){
	sname = name;
	if (sname!=""){
		MouseOver(sname);
	}
}


mid="";

function MouseOverOut(img_name,img_src){
	if (img_name!=mid){
		document[img_name].src=img_src;
	}
}

function SetMenu(img_name,img_src){
	MouseOverOut(img_name,img_src);
	mid=img_name;
}

function Fenster(url,nameW,widthW,heightW,scrollbarsW,resizeableW){
	a=window.open(url,nameW,'top=0,left=0,width='+widthW+',height='+heightW+',scrollbars='+scrollbarsW+',resizable='+resizeableW);
	a.focus();
}

function LayerEinAusblenden(LName,EinAus){
	if (document.layers) {
		document[LName].visibility = EinAus;
	}
	else
	if (document.getElementById){
		document.getElementById(LName).style.visibility = EinAus;
	}
	else
	if (document.all && !document.getElementById){
		document.all[LName].style.visibility = EinAus;
	}
	else {
		alert("Ihr Browser unterstützt diese Funktion nicht. Bitte updaten Sie Ihren Browser.");
	}
}

function KontaktEinAusblenden(){
	LName="kontaktform";
	
	if (document.getElementById){
		if(document.getElementById(LName).style.visibility == "hidden"){
			LayerEinAusblenden("kontaktform","visible");
			MouseOverOut("kgr","image/right_gr_kontakt_offen_n.gif");
		}
		else {
			LayerEinAusblenden("kontaktform","hidden");
			MouseOverOut("kgr","image/right_gr_kontakt_geschlossen_n.gif");
		}
	}
}

//check for flash
var MM_contentVersion = 6;
var plugin_ok = false;

var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i)	{
			if (isNaN(parseInt(words[i])))
			continue;
			var MM_PluginVersion = words[i]; 
			if	(MM_PluginVersion >= MM_contentVersion)	{
				plugin_ok = true;
			}
		}	
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) { 
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('plugin_ok = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+MM_contentVersion+'")))\n');
		document.write('</SCR' + 'IPT\> \n');
}

//flash2
function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl){
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write(' ID='+id+' WIDTH='+width+'px; HEIGHT='+height+'px>' );
	document.write(' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="page_vars='+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>'); 
	if(navigator.userAgent.indexOf("Opera")==-1)       {
		document.write(' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" menu=false quality=high bgcolor='+bgcolor+'');
		document.write(' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH='+width+'px HEIGHT='+height+'px');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>');
		document.write(' </EMBED>');
	}
	else {
		document.write(' <EMBED src="'+file+'" FlashVars="page_vars='+vars+'" menu=false quality=high bgcolor='+bgcolor+'');
		document.write(' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH='+width+'px HEIGHT='+height+'px');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>');
		document.write(' </EMBED>');
	}
	document.write(' </OBJECT>');
}

function ChangeLanguage(){
	var language = location.href;
	
	if (language != "") {
  		if (language.indexOf("_en.php")>=0){
			document.cookie = "Language=deutsch;expires=Mon, 3 May 2010 12:00:00 UTC;";
			var newlanguage = language.substring(0, language.length-7);
			location.href=newlanguage+".php";
		}
		else {
			document.cookie = "Language=english;expires=Mon, 3 May 2010 12:00:00 UTC;";
			var newlanguage = language.substring(0, language.length-4);
			location.href=newlanguage+"_en.php";
		}
	}
}
//-->

