function show(area){
	var p = document.getElementById(area).style.position;
	
	if(p == "relative"){
		document.getElementById(area).style.position = "absolute";
		document.getElementById(area).style.visibility = "hidden";
	}
	else {
		document.getElementById(area).style.position = "relative";
		document.getElementById(area).style.visibility = "visible";
	}	
}

function showArea(area){
	var p = document.getElementById(area).style.display;
	
	if(p == "none"){
		document.getElementById(area).style.display = "block";
	}
	else {
		document.getElementById(area).style.display = "none";
	}	
}

function pop(url, height, width){
	if(!height) height = 500;
	if(!width) width = 700;

	window.open(url,'','height=' + height +',width=' + width +',location=no,menubar=no,resizable=yes,status=yes,toolbar=no,scrollbars=yes')
}

function FotoWindow(bildurl,b,h){
var eigenschaft,sbreite,shoehe,fenster,b,h;



// stellt die Bildschirmabmessungen fest
// find window size
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
	sbreite = document.body.clientWidth;
	shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");
  document.write("document.onmousedown=click ");
  document.write("</script>");
  document.write('<title>Klick to close</title></head>');
  document.write('<' + 'body onblur="window.close()" ');
  document.write('style="margin:0px;">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('<center>');
  document.write('</body></html>');
  fenster.document.close();
}
}

