
	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_jumpMenu(targ,selObj,restore){ //v3.0
	  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	  if (restore) selObj.selectedIndex=0;
	}

	function newImage(arg) {
		if (document.images) {
			rslt = new Image();
			rslt.src = arg;
			return rslt;
		}
	}

	function changeImages() {
		if (document.images) {
			var img;
			for (var i=0; i<changeImages.arguments.length; i+=2) {
				img = null;
				if (document.layers) {
					img = findElement(changeImages.arguments[i],0);
				}
				else {
					img = document.images[changeImages.arguments[i]];
				}
				if (img) {
					img.src = changeImages.arguments[i+1];
				}
			}
		}
	}

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		winName = window.open(theURL,winName,features);
		winName.focus();
	}

	userAgent = window.navigator.userAgent;
	browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
	function findElement(n,ly) {
		if (browserVers < 4)		return document[n];
		var curDoc = ly ? ly.document : document;
		var elem = curDoc[n];
		if (!elem) {
			for (var i=0;i<curDoc.layers.length;i++) {
				elem = findElement(n,curDoc.layers[i]);
				if (elem) return elem;
			}
		}
		return elem;
	}
	
	



	function openFoto(foto_pfad, foto_w, foto_h) {
		var foto, foto_Width, foto_Height;
		var screen_w = screen.availWidth - 100;
		var screen_h = screen.availHeight - 100;
		foto = window.open("", "Foto", "resizable=1, scrollbars=0");
		if (foto_w <= screen_w) foto_Width = foto_w + 50;
		if (foto_h <= screen_h) foto_Height = foto_h + 65;
		foto.resizeTo(foto_Width, foto_Height);
		foto.document.open ("text/html");
		foto.document.write ("<html><head><title>Foto</title><style type=\"text/css\">body { scrollbar-base-color:#333333; scrollbar-track-color:#333333; }</style></head>");
		foto.document.write ("<body bgColor=\"#333333\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" height=\"95%\"><tr><td align=\"center\">");
		foto.document.write ("<img src=\"" + foto_pfad + "\" alt=\"Foto\"></td></tr></table></body></html>");
		foto.focus();
	}

	function openGalerie(id) {
		var features = "resizable=1, scrollbars=0, width=625, height=500, status=1";
		var pth = "include/bildergalerie.php?bildergalerie_id=" + id;
		galerie = window.open(pth, "Fotogalerie", features);
		galerie.focus();
	}

	function openPhorum(f, i) {
		var features = "resizable=1, scrollbars=yes, width=750, height=" + (screen.availHeight-100);
		if(f == 0) {
			pth = "phorum/index.php";
		} else {
			pth = "phorum/list.php?" + f;
			if(i > 0) pth = "phorum/read.php?" + f + "," + i;
		}
		forum = window.open(pth, "Forum", features);
		forum.focus();
	}



	function chkSuchFormular() {
		// wenn kein eintrag zur suche, bleibe auf der seite
		if(document.suche.suchstr.value == "")  {
			/*
			alert("Bitte Ihren Namen eingeben!");
			document.Formular.User.focus();
			*/
			return false;
		}
	}
