	function getFlashVersion() {
		var agent = navigator.userAgent.toLowerCase();
		var flashVersion_DONTKNOW = -1;

		// NS3 needs flashVersion to be a local variable
		if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie") == -1) {
			flashVersion = 0;
		}

		// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Flash plugin in plugin array
		if (navigator.plugins != null && navigator.plugins.length > 0) {
			var flashPlugin = navigator.plugins['Shockwave Flash'];
			if (typeof flashPlugin == 'object') {
				if (flashPlugin.description.indexOf('7.') != -1) flashVersion = 7;
				else if (flashPlugin.description.indexOf('6.') != -1) flashVersion = 6;
				else if (flashPlugin.description.indexOf('5.') != -1) flashVersion = 5;
				else if (flashPlugin.description.indexOf('4.') != -1) flashVersion = 4;
				else if (flashPlugin.description.indexOf('3.') != -1) flashVersion = 3;
			}
		}

		// IE4+ Win32:  attempt to create an ActiveX object using VBScript
		else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
			document.write('<scr' + 'ipt language="VBScript"\> \n');
			document.write('on error resume next \n');
			document.write('dim obFlash \n');
			document.write('set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.7") \n');
			document.write('if IsObject(obFlash) then \n');
			document.write('flashVersion = 7 \n');
			document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.6") end if \n');
			document.write('if flashVersion < 7 and IsObject(obFlash) then \n');
			document.write('flashVersion = 6 \n');
			document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.5") end if \n');
			document.write('if flashVersion < 6 and IsObject(obFlash) then \n');
			document.write('flashVersion = 5 \n');
			document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.4") end if \n');
			document.write('if flashVersion < 5 and IsObject(obFlash) then \n');
			document.write('flashVersion = 4 \n');
			document.write('else set obFlash = CreateObject("ShockwaveFlash.ShockwaveFlash.3") end if \n');
			document.write('if flashVersion < 4 and IsObject(obFlash) then \n');
			document.write('flashVersion = 3 \n');
			document.write('end if');
			document.write('</scr' + 'ipt\> \n');
		}

		// WebTV 2.5 supports flash 3
		else if (agent.indexOf("webtv/2.5") != -1) flashVersion = 3;

		// older WebTV supports flash 2
		else if (agent.indexOf("webtv") != -1) flashVersion = 2;

		// Can't detect in all other cases
		else {
			flashVersion = flashVersion_DONTKNOW;
		}

		return flashVersion;
	}

	function frameset() {
		if (parent.frames.length == 0 && navigator.appCodeName == "Mozilla")
			top.location = "/index.php";
	}

	function MM_swapImgRestore() {
		var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}

	function MM_preloadImages() {
		var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}

	function MM_findObj(n, d) {
		var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
			d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
	}

	function MM_swapImage() {
		var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}

	function ST_HideOtherLayers(activeLayer) {
		var divs=document.getElementsByTagName("DIV");
		for (i=0;i<divs.length;i++) {
			if (divs[i].id != activeLayer) divs[i].style.visibility='hidden';
		}
	}

	function MM_showHideLayers() {
		var i,p,v,obj,args=MM_showHideLayers.arguments;
		for (i = 0; i < (args.length-2); i+=3)
			if ((obj = MM_findObj(args[i])) != null) {
				v = args[i+2];
				if (v == 'show') ST_HideOtherLayers(args[i]);
				if (obj.style) {
					obj = obj.style;
					v = (v =='show')?'visible':(v = 'hide')?'hidden':v;
				}
				obj.visibility=v;
			}
	}

	function swap_content(span) {
		displayType = (document.getElementById(span).style.display == 'none' ) ? 'block' : 'none';
		document.getElementById(span).style.display = displayType;
	}

	function fensteroeffnen(breite,hoehe,url) {
		if (! breite || breite == 0) breite = 400;
		if (! hoehe || hoehe == 0) hoehe = 400;

		neuesFenster = window.open(url,'popup','width='+breite+',height='+hoehe+',resizable=no,status=no,scrollbars');
		neuesFenster.moveTo(0,0);
		neuesFenster.resizeTo(breite+15,hoehe+40);
		neuesFenster.focus();
	}

	function ZweiFrames(URI1,F1,URI2,F2) {
		Frame1 = eval("parent."+F1);
		Frame2 = eval("parent."+F2);
		Frame1.location.href = URI1;
		Frame2.location.href = URI2;
	}

	function elementposition_bestimmen(element_id) {
		var koordinaten_referenz=new Array();
		if(is_op && navigator.appVersion.substring(0,1)<"7") {
			koordinaten_referenz["oben"]=document.getElementById(element_id).style.pixelTop;
			koordinaten_referenz["links"]=document.getElementById(element_id).style.pixelLeft;
		}
		else {
			koordinaten_referenz["oben"]=document.getElementById(element_id).offsetTop;
			koordinaten_referenz["links"]=document.getElementById(element_id).offsetLeft;
			var Eltern=document.getElementById(element_id).offsetParent;
			while(Eltern) {
				koordinaten_referenz["oben"]=koordinaten_referenz["oben"]+Eltern.offsetTop;
				koordinaten_referenz["links"]=koordinaten_referenz["links"]+Eltern.offsetLeft;
				Eltern=Eltern.offsetParent;
 			}
		}
		return koordinaten_referenz;
	}

	function browserFensterBreite() {
		if (document.body.clientWidth) return document.body.clientWidth;
		else return window.innerWidth;
	}

	// ************************************************************************

	function beiBeruehrungLoeschen(feld,wert)
	{
		if(document.getElementById(feld).value==wert)
			document.getElementById(feld).value="";
	}

	function fensteroeffnen_zentriert_neu(breite,hoehe,url,fenstername)
	{
		var positionlinks=(screen.width-breite)/2;
		var positionoben=(screen.height-hoehe)/2;
		dateiansicht=window.open(url,fenstername,'width='+breite+',height='+hoehe+',resizable=yes,status=yes,scrollbars,left='+positionlinks+',top='+positionoben);
	}
	function bild_hinherwechseln(bild_id,bild1_url,bild2_url)
	{
		if(document.getElementById(bild_id).src.search('.*'+bild1_url+'$')!=-1)
			document.getElementById(bild_id).src=bild2_url;
		else
			document.getElementById(bild_id).src=bild1_url;
	}
	function bild_vorladen(bild_url)
	{
		if(!vorgeladenebilder)
			var vorgeladenebilder=new Array();
		vorgeladenebilder[vorgeladenebilder.length]=new Image;
		vorgeladenebilder[vorgeladenebilder.length-1].src=bild_url;
	}
	function ein_aus_blenden(was_ein_aus_blenden)
	{
		var GECKO = document.getElementById? 1:0;
		var NS = document.layers? 1:0;
		var IE = document.all? 1:0;
		if(GECKO)
		{
			if(!document.getElementById(was_ein_aus_blenden).style.display || document.getElementById(was_ein_aus_blenden).style.display=='block')
				document.getElementById(was_ein_aus_blenden).style.display='none';
			else
				document.getElementById(was_ein_aus_blenden).style.display='block';
		}
		else if(NS)
		{
			document.layers[was_ein_aus_blenden].display=
				(document.layers[was_ein_aus_blenden].display=='block') ? 'none' : 'block';
		}
		else if(IE)
		{
			document.all[was_ein_aus_blenden].style.display=
				(document.all[was_ein_aus_blenden].style.display=='block') ? 'none' : 'block';
		}
	}
	function textareamaxlength(formularelementid,max,warntext,infoelementzaehlerid,infoelementid)
	{
		var zaehler;
		zaehler = max - document.getElementById(formularelementid).value.length;
		if (zaehler < 0)
		{
			if(warntext)
				alert(warntext);
			document.getElementById(formularelementid).value = document.getElementById(formularelementid).value.substring(0,max);
			zaehler = max-document.getElementById(formularelementid).value.length;
			if(infoelementzaehlerid && document.getElementById(infoelementzaehlerid))
				document.getElementById(infoelementzaehlerid).innerHTML = zaehler;
		}
		else
		{
			if(infoelementzaehlerid && document.getElementById(infoelementzaehlerid))
				document.getElementById(infoelementzaehlerid).innerHTML = zaehler;
		}
	}
	function ein_oder_aus_blenden(was_ein_oder_aus_blenden,ein_oder_aus)
	{
		var GECKO = document.getElementById? 1:0;
		var NS = document.layers? 1:0;
		var IE = document.all? 1:0;
		if(ein_oder_aus=='ein')
			var display_wert='block';
		else if(ein_oder_aus=='aus')
			var display_wert='none';
		else
			alert('JavaScript-Fehler: Funktion ein_oder_aus_blenden: Fuer '+ein_oder_aus+' ist nichts definiert.');
		


		if(GECKO)
		{
			document.getElementById(was_ein_oder_aus_blenden).style.display=display_wert;
		}
		else if(NS)
		{
			document.layers[was_ein_oder_aus_blenden].display=display_wert;
		}
		else if(IE)
		{
			document.all[was_ein_oder_aus_blenden].style.display=display_wert;
		}
	}

	function AnderesAusklappen(offen_wenn_feld,offen_wenn_wert,oeffnen_feld)
	{
		if(document.getElementById(offen_wenn_feld).value==offen_wenn_wert)
			document.getElementById(oeffnen_feld).style.display='block';
		else
			document.getElementById(oeffnen_feld).style.display='none';
	}



