<!--
	/*
	Es wird nicht gestattet, die js-Seite (auch auszugsweise) fuer kommerzielle
	oder nicht kommerzielle Zwecke ohne vorherige Genehmigung weiter zu verwenden !!!
	All rights reserved. Alle Rechte vorbehalten.
	
	Copyright: froese multimedia
	Autoren: Frank Froese
	erstellt: 13.06.2006
	aktualisiert: 06.03.2009
	e-mail: office@internetkundenservice.de
	*/

/* --------------------------------------------- Globale Variablen ---------------------------------------------- */

	var Fensterbreite = screen.availWidth;
	var Fensterhoehe = screen.availHeight;
	var Bildpfad = "inhalt/bilder/";
	var Dokumentpfad = "inhalt/angebote/kostenlos/dokumente/";
	var MozOwert = 0.1; // Mozilla Opazitaet von 0 - 1
	var IEOwert = 10; // IE-Opazitaet von 0 - 100 %
	var OpOwert = 0.1; // Opera Opazitaet von 0 - 1
	var alerttext_1 = "eine vorschau ist in kürze möglich!";
	
// -------------------------------------------------------------------------------------------- Antowrt

	var vA = 0; // startpos antwort

// -------------------------------------------------------------------------------------------- fotografie

	var v2R = (Fensterhoehe - 115); // startpos unten text_2R
	
// -------------------------------------------------------------------------------------------- kontakt	
	
	var v3Ro = (Fensterhoehe / Fensterhoehe - 240); // startpos oben text_3Ro
	var h3Rm1 = Fensterbreite + 25; // startpos rechts text_3Rm
	var v3Rm = Fensterhoehe - 70; // startpos unten text_3Ru
	
// -------------------------------------------------------------------------------------------- design
	
	var v5R = - 630; // startpos oben text_5R
	
// -------------------------------------------------------------------------------------------- home

	var h1 = Fensterbreite - 20; // startpos rechts text_1
	
// -------------------------------------------------------------------------------------------- programmierung

	var h6R = Fensterbreite + 25; // startpos rechts text_6R
	
// -------------------------------------------------------------------------------------------- login
	
	var v7Lo = (Fensterhoehe / Fensterhoehe -45); // startpos oben text_7Lo
	var h7Lm = (Fensterbreite / Fensterbreite - 225); // startpos links text_7Lm
	var v7Lu = (Fensterhoehe - 115); // startpos unten text_7Lu
	
// -------------------------------------------------------------------------------------------- spmblocker

	var s5 = eval("String.fromCharCode" + "(2 * (15 + 15) + 4)");
	var s6 = eval("String.fromCharCode" + "(116,0x06F,0x03A)");
	var s7 = eval("String.fromCharCode" + "(0x06D,0x061,0x069,108)" + " + s6");
	
/* ------------------------------------------ Browserversionen -------------------------------------------------- */	
	
	switch (navigator.appName)
		{			
		case "Opera":
			if (navigator.appVersion.substring(0, 1) < 9)
				{
				document.location.href = "index.html";
				}
		break;
		case "Netscape":
			if (navigator.appVersion.substring(0, 3) < 5.0)
				{
				document.location.href = "index.html";
				}
		break;
		}
	
	
/* ------------------------------------------ Elementpositionen ------------------------------------------------ */

	function Hposition() // ----------------------------------------------------------------------------------------- horizontal
		{
		document.getElementById("navigation").style.left = (Fensterbreite / 2) - 230 + "px"; // --- navigation
		
		if (Fensterbreite > 800) // --------------------------------------------------------------------------------- Fenster > 800 pixel
			{				
			if (document.getElementById("text_1")) // --------------------------------------------------------------- home
				{
				h1 -= 1;
				if (h1 > (Fensterbreite / 2 + 180))
					{
					document.getElementById("text_1").style.left = h1 + "px";
					} else {
							window.clearTimeout();
							}
				}
			if (document.getElementById("text_2L") && document.getElementById("text_2R")) // ------------------------ photographie
				{
				document.getElementById("text_2L").style.left = (Fensterbreite / 2 - 480) + "px"; // ----- text links
				document.getElementById("text_2R").style.left = (Fensterbreite / 2 + 180) + "px"; // ----- text rechts
				}
			if (document.getElementById("text_3Ro")) // --------------------------------------------------------------- kontakt
				{
				document.getElementById("text_3L").style.left = (Fensterbreite / 2 - 480) + "px"; // ----- text links
				
				h3Rm1 -= 1; // --------------------------------------------------------------------------- text rechts
				if (h3Rm1 > (Fensterbreite / 2 + 180))
					{
					document.getElementById("text_3Ro").style.left = h3Rm1 + "px";
					} else {
							window.clearTimeout();
							}
				document.getElementById("text_3Rm").style.left = (Fensterbreite / 2 + 180) + "px"; // ---- text mitte-2
				document.getElementById("text_3Ru").style.left = (Fensterbreite / 2 + 180) + "px"; // ---- text unten				
				
				if (document.getElementById("antwort")) // ----------------------------------------------- antwort
					{
					document.getElementById("antwort").style.left = (Fensterbreite / 2 - 160) + "px";
					}
				}
			if (document.getElementById("text_4L") && document.getElementById("text_4R")) // ----------------------- impressum
				{
				document.getElementById("text_4L").style.left = (Fensterbreite / 2 - 480) + "px"; // ----- text links
				document.getElementById("text_4R").style.left = (Fensterbreite / 2 + 180) + "px"; // ----- text rechts
				}				
			if (document.getElementById("text_5L") && document.getElementById("text_5R")) // ----------------------- design
				{
				document.getElementById("text_5L").style.left = (Fensterbreite / 2 - 480) + "px"; // ---- text links				
				document.getElementById("text_5R").style.left = (Fensterbreite / 2) + 180 + "px"; // ---- text rechts		
				}					
			if (document.getElementById("text_6L") && document.getElementById("text_6R")) // ----------------------- programmierung
				{
				document.getElementById("text_6L").style.left = (Fensterbreite / 2 - 480) + "px"; // ---- text links
				
				h6R -= 1; // --------------------------------------------------------------------------- text rechts
				if (h6R > (Fensterbreite / 2 + 180))
					{
					document.getElementById("text_6R").style.left = h6R + "px";
					} else {
							window.clearTimeout();
							}
				}				
			if (document.getElementById("text_7Lm")) // ------------------------------------------------------------ login
				{
				h7Lm += 1; // -------------------------------------------------------------------------- text links mitte
				if (h7Lm < (Fensterbreite / 2 - 480))
					{
					document.getElementById("text_7Lm").style.left = h7Lm + "px";
					} else {
							window.clearTimeout();
							}
				document.getElementById("text_7Lo").style.left = (Fensterbreite / 2 - 480) + "px"; // --- text oben
				document.getElementById("text_7Lu").style.left = (Fensterbreite / 2 - 480) + "px"; // --- text unten
				document.getElementById("antwort").style.left = (Fensterbreite / 2 + 65) + "px";
				}
			} else { // -------------------------------------------------------------------------------------------- Fenster <= 800 pixel
					document.location.href = "index.html"; // Weiterleitung zur noscript-start-seite
					}
		window.setTimeout("Hposition()", 1);
		}


	function Vposition() // -------------------------------------------------------------------------------------------  vertikal
		{
		// navigation
		//document.getElementById("navigation").style.top = (document.body.scrollTop + (Fensterhoehe / 2 - 55)) + "px";
		document.getElementById("navigation").style.top = (Fensterhoehe / 2 - 55) + "px";
		// referenzdivs
		document.getElementById("refpopupbackground").style.top = (document.body.scrollTop + (Fensterhoehe / Fensterhoehe + 25)) + "px";
		document.getElementById("refpopupnavi").style.top = (document.body.scrollTop + (Fensterhoehe / Fensterhoehe + 365)) + "px";
		document.getElementById("refpopup").style.top = (document.body.scrollTop + (Fensterhoehe / Fensterhoehe + 50)) + "px";
		
		if (document.getElementById("text_1")) // --------------------------------------------------------------------- home
			{
			document.getElementById("text_1").style.top = (Fensterhoehe / 2 - 70) + "px";
			}
			
		if (document.getElementById("text_2L") && document.getElementById("text_2R")) // ------------------------------ fotografie
			{				
			document.getElementById("text_2L").style.top = (Fensterhoehe / 2 - 280) + "px"; // --------- text links
			
			v2R -= 1; // ------------------------------------------------------------------------------- text rechts
			if (v2R > (Fensterhoehe / 2 - 290))
				{
				document.getElementById("text_2R").style.top = v2R + "px";
				} else {
						window.clearTimeout(Vpos);
						}						
			}
		if (document.getElementById("text_3L")) // ------------------------------------------------------------------- kontakt			
			{
			document.getElementById("text_3L").style.top = (Fensterhoehe / 2 - 280) + "px"; // ---------- text links			
			document.getElementById("text_3Ro").style.top = (Fensterhoehe / 2 - 280) + "px"; // --------- text rechts oben
			
			v3Rm -= 1; // ------------------------------------------------------------------------------ text rechts mitte
			if (v3Rm > (Fensterhoehe / 2 - 225))
				{
				document.getElementById("text_3Rm").style.top = v3Rm + "px";
				} else {
						window.clearTimeout(Vpos);
						document.getElementById("text_3Ru").style.display = "inline";
						}
			document.getElementById("text_3Ru").style.top = (Fensterhoehe / 2 - 168) + "px"; // --------- text rechts oben
			
			if (document.getElementById("antwort")) // ------------------------------------------------- antwort
				{
				vA += 1;
				if (vA < Fensterhoehe / 2 - 147)
					{
					document.getElementById("antwort").style.top = vA + "px";
					} else {
							window.clearTimeout(Vpos);
							}
				}
			}
		if (document.getElementById("text_4L")) // -------------------------------------------------------------------- impressum
			{
			document.getElementById("text_4L").style.top = (Fensterhoehe / 2 - 280) + "px"; // ---------- text links
			document.getElementById("text_4R").style.top = (Fensterhoehe / 2 - 290) + "px"; // ---------- text rechts
			}			
		if (document.getElementById("text_5L") && document.getElementById("text_5R")) // ------------------------------ design
			{
			document.getElementById("text_5L").style.top = (Fensterhoehe / 2 - 280) + "px"; // ---------- text links
			
			v5R += 1; // ------------------------------------------------------------------------------- text rechts
			if (v5R < (Fensterhoehe / 2 - 290))
				{
				document.getElementById("text_5R").style.top = v5R + "px";
				} else {
						window.clearTimeout(Vpos);
						}
			}
		if (document.getElementById("text_6L") && document.getElementById("text_6R")) // ------------------------------ programmierung
			{
			document.getElementById("text_6L").style.top = (Fensterhoehe / 2 - 280) + "px"; // ---------- text links
			document.getElementById("text_6R").style.top = (Fensterhoehe / 2 - 280) + "px"; // ---------- text rechts
			}			
		if (document.getElementById("text_7Lo")) // ------------------------------------------------------------------- login
			{
			document.getElementById("text_7Lo").style.top = (Fensterhoehe / 2 - 280) + "px"; // -------- text oben
			document.getElementById("text_7Lm").style.top = (Fensterhoehe / 2 - 205) + "px"; // --------- text mitte						
						
			v7Lu -= 1; // ------------------------------------------------------------------------------ text unten
			if (v7Lu > (Fensterhoehe / 2 - 148))
				{
				document.getElementById("text_7Lu").style.top = v7Lu + "px";
				} else {
						window.clearTimeout(Vpos);
						}
			}
		if (document.getElementById("antwort") && document.getElementById("text_7Lo")) // ----------------------------- login antwort
			{
			vA += 1;
			if (vA < Fensterhoehe / 2 - 147)
				{
				document.getElementById("antwort").style.top = vA + "px";
				} else {
						window.clearTimeout(Vpos);
						}
			}
		var Vpos = window.setTimeout("Vposition()", 1);
		}
		
/* ------------------------------------------ Mutterfensterkontrolle ------------------------------------------- */

	function Fensterstatus() // Status des Mutterfensters
		{
		if (window.opener.closed == true) // Wenn Mutterfenster geschlossen ist
			{
			window.close(); // Zweitfenster wird mit geschlossen
			}
		window.setTimeout("Fensterstatus()",500);
		}

/* ------------------------------------------ Zweitfensterkontrolle -------------------------------------------- */

	function Zweitfensterstatus(Zweitfenstername) // Status des Tochterfensters
		{
		if (eval ('window.' + Zweitfenstername + '.closed') != true) { // wenn Zweitfenster nicht geschlossen ist
			eval ('window.' + Zweitfenstername + '.focus()'); // Zweitfenster wird aktuelles Fenster
			window.setTimeout("Zweitfensterstatus('" + Zweitfenstername + "')",500);
			}
		}

/* ------------------------------------------ Druckfenster ----------------------------------------------------- */

	function Druckfenster(Ziel2)
		{
		DFenster = window.open(Ziel2,"DFenster","scrollbars=yes,resizable=yes,top=25,left=25,width=840,height=580");
		window.setTimeout("Zweitfensterstatus('DFenster')",1500);
		}

/* ------------------------------------------ Spmblocker ------------------------------------------------------- */

	function Blafasel(s2, s3, s0, s1, s4)
		{
		if (s4 == "L") // L = Link
			{
			document.write ('<a href="' + s7 + s0 + s1 + s5 + s2 + s3 + '">' + s0 + s1 + s5 + s2 + s3 + '</a>');
			} else { // T = Text
					document.write (s0 + s1 + s5 + s2 + s3);
					}
		}

/* --------------------------------------------- Formulare ----------------------------------------------------- */

	function FormAktion(Wert)
		{
		document.forms[0].wert.name = Wert;
		document.forms[0].wert.value = Wert;
		document.forms[0].submit();
		}

/* --------------------------------------------------- InfoPopup --------------------------------------------------- */

	function NCInfoPopupPos (Ereignis) // wird in karten.inc Dateien gestartet
		{
		switch (navigator.appName)
			{
			case "Netscape":
				window.document.getElementById("infopopup").style.left = Ereignis.pageX - 165;
				window.document.getElementById("infopopup").style.top = Ereignis.pageY - 128;
			break;
			}
		}

	function InfoPopup(Referenzbild, Popupstatus) // wird in design.inc Dateien gestartet
		{
		var Infobildpfad = Bildpfad + Referenzbild.replace(".", "_V.");

		var Infobild = new Image();

		switch (navigator.appName)
			{
			case "Microsoft Internet Explorer":
				if(Popupstatus == 1)
					{
					document.Infobild.src = Infobildpfad;
					document.all.infopopup.style.display = "inline";
					document.all.infopopup.style.left = window.event.x - 165;
					document.all.infopopup.style.top = document.body.scrollTop + window.event.y - 128;
					} else {
							document.all.infopopup.style.display = "none";
							document.all.infopopup.style.left = 0;
							document.all.infopopup.style.top = 0;
							}
			break;
			default:
				if(Popupstatus == 1)
					{
					document.Infobild.src = Infobildpfad;
					document.getElementById("infopopup").style.display = "inline";
					} else {
							document.getElementById("infopopup").style.display = "none";
							document.getElementById("infopopup").style.left = 0;
							document.getElementById("infopopup").style.top = 0;
							}
			break;
			}
		}

/* ------------------------------------------ Referenzansicht -------------------------------------------------- */

	function Referenz(Hintergrundbild, Referenzbild, altReferenzbildstatus, ReferenzZieltext, ReferenzUmtext, ReferenzBestext, ReferenzLink)
		{
		if (ReferenzLink != '')
			{
			var Referenzhaedline = "der referenzlink";
			
			var dateiformatstelle = (ReferenzLink.lastIndexOf(".") + 1);
			var dateiformat = eval("ReferenzLink.slice(" + dateiformatstelle + ")");
			var httpstelle = (ReferenzLink.lastIndexOf("/") + 1);
			var ReferenzURL = eval("ReferenzLink.slice(" + httpstelle + ")");
			
			switch (dateiformat)
				{
				case "pdf":
					var Referenzlink = '<a href="' + Dokumentpfad + ReferenzLink + '" target="_blank">' + ReferenzLink + '</a>';
				break;
				default:
					var Referenzlink = '<a href="' + ReferenzLink + '" target="_blank">' + ReferenzURL + '</a>';
				break;
				}
			}
			
		switch (navigator.appName)
			{
			case "Netscape":
				document.getElementById("refpopupbackground").style.top = (Fensterhoehe / Fensterhoehe + 25) + "px";
				document.getElementById("refpopupbackground").style.left = (Fensterbreite / 2 - 425) + "px";
				document.getElementById("refpopupbackground").style.MozOpacity = MozOwert;
				document.getElementById("refpopupbackground").style.display = "inline";
				
				var Refhintergrundbild = new Image();
				document.Refhintergrundbild.src = Bildpfad + Hintergrundbild;
				
				var Refbild = new Image();
				document.Refbild.src = Bildpfad + Referenzbild;
				
				if (altReferenzbildstatus == "J")
					{
					var altRefbildpfad = Bildpfad + Referenzbild.replace(".", "b.");
					var altRefbild = new Image();
					document.altRefbild.src = altRefbildpfad;
					} else {
							document.altRefbild.src = "inhalt/bilder/spacer.gif";
							}

				document.getElementById("refpopup").style.top = (Fensterhoehe / Fensterhoehe + 50) + "px";
				document.getElementById("refpopup").style.left = (Fensterbreite / 2 - 412) + "px";
				document.getElementById("refpopup").style.display = "inline";

				document.getElementById("refpopupnavi").style.top = (Fensterhoehe / Fensterhoehe + 365) + "px";
				document.getElementById("refpopupnavi").style.left = (Fensterbreite / 2 - 245) + "px";
				document.getElementById("refpopupnavi").style.display = "inline";				
				
				document.getElementById("refpopupbilder").style.MozOpacity = 1.0;
				document.getElementById("refpopupbilder").style.display = "inline";
				document.getElementById("refpopuptext").style.MozOpacity = 1.0;
				document.getElementById("refpopuptext").style.display = "inline";
				
				document.getElementById("refpopupzieltext").innerHTML = ReferenzZieltext;
				document.getElementById("refpopupausftext").innerHTML = ReferenzUmtext;
				document.getElementById("refpopupbestext").innerHTML = ReferenzBestext;
				
				if (ReferenzLink != '')
					{
					document.getElementById("refpopuplinkhaedline").innerHTML = Referenzhaedline;
					document.getElementById("refpopuplinkhaedline").style.display = "inline";	
					document.getElementById("refpopuplink").innerHTML = Referenzlink;
					document.getElementById("refpopuplink").style.display = "inline";
					}
			break;
			case "Microsoft Internet Explorer":
				document.all.refpopupbackground.style.top = (Fensterhoehe / Fensterhoehe + 25) + "px";
				document.all.refpopupbackground.style.left = (Fensterbreite / 2 - 425) + "px";
				document.all.refpopupbackground.style.filter = "Alpha(opacity = " + IEOwert + ")";
				document.all.refpopupbackground.style.display = "inline";
				
				var Refhintergrundbild = new Image();
				document.Refhintergrundbild.src = Bildpfad + Hintergrundbild;
				
				var Refbild = new Image();
				document.Refbild.src = Bildpfad + Referenzbild;
				
				if (altReferenzbildstatus == "J")
					{
					var altRefbildpfad = Bildpfad + Referenzbild.replace(".", "b.");
					var altRefbild = new Image();
					document.altRefbild.src = altRefbildpfad;
					} else {
							document.altRefbild.src = "inhalt/bilder/spacer.gif";
							}

				document.all.refpopup.style.top = (Fensterhoehe / Fensterhoehe + 50) + "px";
				document.all.refpopup.style.left = (Fensterbreite / 2 - 412) + "px";
				document.all.refpopup.style.display = "inline";

				document.all.refpopupnavi.style.top = (Fensterhoehe / Fensterhoehe + 365) + "px";
				document.all.refpopupnavi.style.left = (Fensterbreite / 2 - 245) + "px";
				document.all.refpopupnavi.style.display = "inline";				
				
				document.all.refpopupbilder.style.filter = "Alpha(opacity = 100)";
				document.all.refpopupbilder.style.display = "inline";
				document.all.refpopuptext.style.filter = "Alpha(opacity = 100)";
				document.all.refpopuptext.style.display = "inline";

				document.all.refpopupzieltext.innerHTML = ReferenzZieltext;
				document.all.refpopupausftext.innerHTML = ReferenzUmtext;
				document.all.refpopupbestext.innerHTML = ReferenzBestext;
				
				if (ReferenzLink != '')
					{
					document.all.refpopuplinkhaedline.innerHTML = Referenzhaedline;
					document.all.refpopuplinkhaedline.style.display = "inline";
					document.all.refpopuplink.innerHTML = Referenzlink;
					document.all.refpopuplink.style.display = "inline";
					}
			break;
			case "Opera":
				document.getElementById("refpopupbackground").style.top = (Fensterhoehe / Fensterhoehe + 25) + "px";
				document.getElementById("refpopupbackground").style.left = (Fensterbreite / 2 - 425) + "px";
				document.getElementById("refpopupbackground").style.opacity = OpOwert;
				document.getElementById("refpopupbackground").style.display = "inline";
				
				var Refhintergrundbild = new Image();
				document.Refhintergrundbild.src = Bildpfad + Hintergrundbild;
				
				var Refbild = new Image();
				document.Refbild.src = Bildpfad + Referenzbild;
				
				if (altReferenzbildstatus == "J")
					{
					var altRefbildpfad = Bildpfad + Referenzbild.replace(".", "b.");
					var altRefbild = new Image();
					document.altRefbild.src = altRefbildpfad;
					} else {
							document.altRefbild.src = "inhalt/bilder/spacer.gif";
							}
							
				document.getElementById("refpopup").style.top = (Fensterhoehe / Fensterhoehe + 50) + "px";
				document.getElementById("refpopup").style.left = (Fensterbreite / 2 - 412) + "px";
				document.getElementById("refpopup").style.display = "inline";
				
				document.getElementById("refpopupnavi").style.top = (Fensterhoehe / Fensterhoehe + 365) + "px";
				document.getElementById("refpopupnavi").style.left = (Fensterbreite / 2 - 245) + "px";
				document.getElementById("refpopupnavi").style.display = "inline";				
				
				document.getElementById("refpopupbilder").style.opacity = 1.0;
				document.getElementById("refpopupbilder").style.display = "inline";
				document.getElementById("refpopuptext").style.opacity = 1.0;
				document.getElementById("refpopuptext").style.display = "inline";
				
				document.getElementById("refpopupzieltext").innerHTML = ReferenzZieltext;
				document.getElementById("refpopupausftext").innerHTML = ReferenzUmtext;
				document.getElementById("refpopupbestext").innerHTML = ReferenzBestext;
				
				if (ReferenzLink != '')
					{
					document.getElementById("refpopuplinkhaedline").innerHTML = Referenzhaedline;
					document.getElementById("refpopuplinkhaedline").style.display = "inline";
					document.getElementById("refpopuplink").innerHTML = Referenzlink;
					document.getElementById("refpopuplink").style.display = "inline";
					}
			break;
			}

		}
		
// Opazitaet fuer refbackground-Div
	function Opazitaet(Hintergrundbild, Referenzbild, altReferenzbildstatus, ReferenzZieltext, ReferenzUmtext, ReferenzBestext, ReferenzLink)
		{
		switch (navigator.appName)
			{
			case "Netscape":		
				MozOwert += MozOwert;
				document.getElementById("refbackground").style.MozOpacity = MozOwert;		
				if (MozOwert < 0.7)
					{
					window.setTimeout(eval("\"Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 35);
					} else {
							window.setTimeout(eval("\"Referenz('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 350);
							}
			break;
			case "Microsoft Internet Explorer":
				IEOwert += IEOwert;
				document.all.refbackground.style.filter = "Alpha(opacity = " + IEOwert + ")";
				if (IEOwert < 70)
					{
					window.setTimeout(eval("\"Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 35);
					} else {
							window.setTimeout(eval("\"Referenz('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 350);
							}			
			break;
			case "Opera":
				OpOwert += OpOwert;
				document.getElementById("refbackground").style.opacity = OpOwert;		
				if (OpOwert < 0.7)
					{
					window.setTimeout(eval("\"Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 35);
					} else {
							window.setTimeout(eval("\"Referenz('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')\""), 350);
							}			
			
			break;
			}
		}

// refbackground-Div fur Hintergrund
	function Refbackground(Hintergrundbild, Referenzbild, altReferenzbildstatus, ReferenzZieltext, ReferenzUmtext, ReferenzBestext, ReferenzLink)
		{
		switch (navigator.appName)
			{
			case "Netscape":
				document.getElementById("refbackground").style.width = "100%";
				document.getElementById("refbackground").style.height = document.body.scrollTop + Fensterhoehe + "px";
				document.getElementById("refbackground").style.backgroundImage = "url(inhalt/bilder/vorhang.gif)";
				eval("Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')");
			break;
			case "Microsoft Internet Explorer":
				document.all.refbackground.style.width = "100%";
				document.all.refbackground.style.height = document.body.scrollTop + Fensterhoehe + "px";
				document.all.refbackground.style.backgroundImage = "url(inhalt/bilder/vorhang.gif)";
				eval("Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')");
			break;
			case "Opera":		
				document.getElementById("refbackground").style.width = "100%";
				document.getElementById("refbackground").style.height = document.body.scrollTop + Fensterhoehe + "px";
				document.getElementById("refbackground").style.backgroundImage = "url(inhalt/bilder/vorhang.gif)";
				eval("Opazitaet('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')");
			break;
			default:
				eval("Referenz('" + Hintergrundbild + "', '" + Referenzbild + "', '" + altReferenzbildstatus + "', '" + ReferenzZieltext + "', '" + ReferenzUmtext + "', '" + ReferenzBestext + "', '" + ReferenzLink + "')");
			break;
			}
		}

	function Refclose()
		{
		MozOwert = 0.1;
		IEOwert = 10;
		OpOwert = 0.1;
					
		switch (navigator.appName)
			{			
			case "Microsoft Internet Explorer":
				document.Refbild.src = "";
				
				if (document.altRefbild)
					{
					document.altRefbild.src = "";
					}
							
				document.all.refpopup.style.top = 0;
				document.all.refpopup.style.left = 0;				
				document.all.refpopup.style.display = "none";
					
				document.all.refpopupnavi.style.top = 0;
				document.all.refpopupnavi.style.left = 0;				
				document.all.refpopupnavi.style.display = "none";
				
				document.all.refpopupbackground.style.top = 0;
				document.all.refpopupbackground.style.left = 0;				
				document.all.refpopupbackground.style.display = "none";		
				
				document.all.refbackground.style.width = 0;
				document.all.refbackground.style.height = 0;
				document.all.refbackground.style.backgroundImage = "none";
						
				document.all.refpopuplinkhaedline.style.display = "none";
				document.all.refpopuplink.style.display = "none";
				
				document.all.refpopup.scrollTop = 0;
			break;
			default:
				document.Refbild.src = "";
				
				if (document.altRefbild)
					{
					document.altRefbild.src = "";
					}
				
				document.getElementById("refpopup").style.top = 0;
				document.getElementById("refpopup").style.left = 0;				
				document.getElementById("refpopup").style.display = "none";
				
				document.getElementById("refpopupnavi").style.top = 0;
				document.getElementById("refpopupnavi").style.left = 0;				
				document.getElementById("refpopupnavi").style.display = "none";
				
				document.getElementById("refpopupbackground").style.top = 0;
				document.getElementById("refpopupbackground").style.left = 0;				
				document.getElementById("refpopupbackground").style.display = "none";		
				
				document.getElementById("refbackground").style.width = 0;
				document.getElementById("refbackground").style.height = 0;
				document.getElementById("refbackground").style.backgroundImage = "none";
				
				document.all.refpopuplinkhaedline.style.display = "none";
				document.all.refpopuplink.style.display = "none";
				
				document.getElementById("refpopup").scrollTop = 0;
			break;
			}
		}
			
/* --------------------------------------------- Ende Java Script ---------------------------------------------- */	

//-->