	function popupPic(welches,titel,width,height) {

		scrollbars= "no";
		if ((width>1000) || (height>700))
			scrollbars= "yes";
		winname=window.open("", "picture_zoom","width="+width+",height="+height+",toolbar=no,status=no,menubar=no,scrollbars=" + scrollbars +",resizable=no,menubar=no,location=no,directories=no");
    		winname.moveTo((screen.width-width)/2,(screen.height-height)/2);
		with(winname.document) {
			open();
			write('<html><head><title>' + titel + '</title></head>');
			write('<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><a href="javascript:window.close()"><img src="'+welches+'" border="0"></a>');
			write('</body></html>');
			close();
		}
		winname.focus();
	}

	function popupFlash(welches,titel,width,height) {
		winname=window.open("", "picture_zoom","width="+width+",height="+height+",toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,location=no,directories=no");
    	winname.moveTo((screen.width-width)/2,(screen.height-height)/2);

		with(winname.document)	{
			open();
			write('<html><head><title>' + titel + '</title></head>');
			write('<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
        	write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + width + '" height="' + height + '">');
  			write('<param name="movie" value="' + welches + '">');
  			write('<param name="quality" value="high">');
			write('<embed src="' + welches + '" width="' + width + '" height="' + height + '" quality="high" type="application/x-shockwave-flash"></embed></object>');
			write('</body></html>');
			close();
		}
		winname.focus();
	}

	function popupAudio(welches,titel,width,height) {
		winname=window.open("", "audio_zoom","width="+width+",height="+height+",toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,menubar=no,location=no,directories=no");
		winname.moveTo((screen.width-width)/2,(screen.height-height)/2);

		with(winname.document)	{
			open();
			write('<html><head><title>' + titel + '</title></head>');
			write('<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">');
			write('<object id="prev" height="' + height + '" width="' + width + '">');
			write('<param name="controls" value="ControlPanel">');
			write('<param name="autostart" value="true">');
			write('<param name="type" value="audio/x-pn-realaudio-plugin">');
			write('<param name="src" value="' + welches + '">');
			write('<embed src="' + welches + '" type="audio/x-pn-realaudio-plugin" ');
			write('controls="ControlPanel" height="' + height + '" width="' + width + '" autostart="true">');
			write('</object>');
			write('</body></html>');
			close();
		}
		winname.focus();
	}
	
	function 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=findObj(n,d.layers[i].document);
			
  		if(!x && d.getElementById) 
			x=d.getElementById(n); 
			
		return x;
	}

	function ShowHideLayers(name, status) { 
  		var v,obj;

		if ((obj=findObj(name))!=null) { 
			v=status;
    		if (obj.style) { 
				obj=obj.style; 
				v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
			}
    		obj.visibility=v; 
		}
	}	
	
