
	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 = "html/bildergalerie.php?bildergalerie_id=" + id;
		galerie = window.open(pth, "Fotogalerie", features);
		galerie.focus();
	}
	
	function openSMS(dateiname) {
		var features = "resizable=1, scrollbars=0, width=420, height=330";
		var pth = dateiname;
		smspop = window.open(pth, "SMS", features);
		smspop.focus();
	}
	


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




/*
	function showHideBanner(x,y) {
		var obj1=MM_findObj(x);
		var obj2=MM_findObj(y);
		
		if (obj1!=null){
			obj1 = obj1.style;
			obj2 = obj2.style;
			if((obj1.visibility == "inherit") || (obj1.visibility == "visible")){
				obj1.visibility = "hidden";
			} else {
				obj1.visibility = "visible";
			}
			obj2.visibility = "hidden";
			showHideWerbung('werbung?head');
		}
	}

	function showHideWerbung(x) {
		var obj1=MM_findObj(x);
		
		if (obj1!=null){
			obj1 = obj1.style;
			if((obj1.visibility == "inherit") || (obj1.visibility == "visible")){
				obj1.visibility = "hidden";
				window.setTimeout('showWerbung()',30000);
			} else {
				obj1.visibility = "visible";
			}
		}
	}

	function showWerbung(){
		showHideWerbung('werbung?head');
	}
	
*/
