function popup(pfad,pic,endung) 
{ 
bild_fenster=window.open('pic.php?pfad='+pfad+'&bild='+pic+'&endung='+endung+'','large','height=325, width=420,left=100,top=100,location=no,resizable=no,status=no,scrollbars,toolbar=no,dictories=no,menubar=no'); 
}
function popup2(pfad,pic,endung) 
{ 
bild_fenster=window.open('../pre_pic.php?pfad='+pfad+'&bild='+pic+'&endung='+endung+'','large','height=325, width=420,left=100,top=100,location=no,resizable=no,status=no,scrollbars,toolbar=no,dictories=no,menubar=no'); 
}
function disclaimer() 
{ 
fenster=window.open('disclaimer.html','large','height=230, width=210,left=100,top=100,location=no,resizable=no,status=no,scrollbars=no,toolbar=no,dicetories=no,menubar=no'); 
}	

function P91Fadeout(id, geschwindigkeit) {
	var fps = Math.round(geschwindigkeit / 100); 
	var tmp = 0;
    for(i = 100; i >= 0; i--) {
        setTimeout("P91Fadeout_fade('" + id + "'," + i + ")", (tmp * fps));
        tmp++;
    }
}
function P91Fadeout_fade(id, pas) {
	var heurix = document.getElementById(id).style;
	if(pas > 0) {
		heurix.opacity = (pas / 100);
		heurix.MozOpacity = (pas / 100);
		heurix.KhtmlOpacity = (pas / 100);
		heurix.filter = "alpha(opacity=" + pas + ")"; 
	} else {
		heurix.display = "none";
		heurix.setAttribute("top","-500px");
		heurix.setAttribute("left","-500px");		
	}
}


	var bild_auf = false;
	function init() {
		document.body.onmouseup = Hintergrund_click;	
	}
	function Hintergrund_click(event) {
		if (event == null) event = window.event; 
		var target = event.target != null ? event.target : event.srcElement;
		if (target.getAttribute('bubble')) {
			return;
		} else {
			close();			
			return false;
		}	
	}
	function openbild (name,breite,hoehe) {
			bild_auf = true;
			document.getElementById("bubble").style.opacity = 100;
			document.getElementById("bubble").style.MozOpacity = 100;
			document.getElementById("bubble").style.KhtmlOpacity = 100;
			document.getElementById("bubble").style.filter = "alpha(opacity=100)";
			document.getElementById("bubble").style.left = (document.body.clientWidth  / 2) + (document.body.scrollLeft / 1.4);
			document.getElementById("bubble").style.top = (document.body.clientHeight / 2) + (document.body.scrollTop / 1.4);
			document.getElementById("bubble").style.marginLeft = '-' + (breite / 2) + 'px';
			document.getElementById("bubble").style.marginTop = '-' + (hoehe / 2) + 'px';		
			document.getElementById("bubble").style.display = "block";
			document.getElementById("bubble").innerHTML = "";
			var inhalt = "";
			inhalt += "<table cellpadding=0 cellspacing=0 border=0>";
			inhalt += "<tr><td width=18 height=30><img src=\"./website/o_l.gif\" border=0 bubble=true></td>";
			inhalt += "<td height=30 style=\"background-image:url(./website/o_m.gif)\" bubble=true><img src='./website/spacer.gif' border=0 height=30></td>";
			inhalt += "<td><img src=\"./website/o_r.gif\" width=30 height=30 border=0 style=\"cursor:hand;\" bubble=true onclick=\"P91Fadeout('bubble', 100);\" alt=\"Fenster schließen\"></td></tr>";
			inhalt += "<tr><td width=18 style=\"background-image:url(./website/m_l.gif)\" bubble=true></td>";
			inhalt += "<td><img src=\""+name+"\" border=0 bubble=true></td>"; //onclick=\"close(); return false;\"
			inhalt += "<td style=\"background-image:url(./website/m_r.gif)\" bubble=true></td></tr>";
			inhalt += "<tr><td><img src=\"./website/u_l.gif\" border=0 bubble=true></td>";
			inhalt += "<td style=\"background-image:url(./website/u_m.gif)\" bubble=true><img src='./website/spacer.gif' border=0></td>";
			inhalt += "<td><img bubble=true src='./website/u_r.gif' border=0></td>";
			inhalt += "</tr></table>";
			document.getElementById("bubble").innerHTML = inhalt;	
	}
	function close() {
			P91Fadeout('bubble', 100);
			bild_auf = false;					
	}