// Die gesammelten JavaScript-Funktionen
// Scripted by Aysberg 

// Normales Popup für große Version des Lageplans

function lageplan(){
	posLeft = (screen.width-544)/2;
	posTop = (screen.height-430)/2;
	popup = window.open("","lageplan","height=430,width=544,scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,left="+posLeft+",top="+posTop+"");
popup.focus();
}

// Schickes Popup für Küchenfotos
function fotoup(imageName,imageWidth,imageHeight) {
	posLeft = (screen.width-imageWidth)/2;
	posTop = (screen.height-imageHeight)/2;
	newWindow = window.open("","fotoup","width="+imageWidth+",height="+imageHeight+",scrollbars=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,left="+posLeft+",top="+posTop);
//	newWindow.document.open();
	newWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" ');
	newWindow.document.write('"http://www.w3.org/TR/html4/loose.dtd"> ');
	newWindow.document.write('<html><head><title>Klick auf das Foto schließt das Fenster</title> ');
	newWindow.document.write('<link rel="stylesheet" type="text/css" href="inc/style.css"></head> ');
	newWindow.document.write(' ');
	newWindow.document.write('<body onBlur="self.close()" onClick="self.close()"> ');  
	newWindow.document.write('<img src="'+imageName+'" width="'+imageWidth+'" height="'+imageHeight+'" ');
	newWindow.document.write('alt="Klick auf das Foto schließt das Fenster"> '); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
