// ==============================================================================================
// Definitionen
// ==============================================================================================

//var extension='_gross'

// ==============================================================================================
// Zoom
//
// Der uebergebne Parameter "bildID" muss mit dem Bildname im IMG-Tag identisch sein.
// Die Dateinamen der kleinen und grossen Bilder muessen, bis auf eine in der Variablen 
// "extension" definierten Endung identisch sein, und im selben Verzeichnisse liegen.
// ==============================================================================================

function GALERIEPOPUP(bildID){
	var sw = screen.width;
	var sh = screen.height;
	var ImgSrc=bildID;
	if (document.all){
	zoomwindow=window.open('','zoom','width=10,height=10,status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no');
	zoomwindow.name = "zoom"; 
	zoomwindow.document.open();
	zoomwindow.document.write('<html><head><title>PETER ALLERT - PHOTOGRAPHER</title></head><body bgcolor="#cac4c1" onload="opener.resize()" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><a href="javascript:self.close()"><img name=bild src="' + ImgSrc + '" alt="Klick to Close" border=0></a>Loading Image ...</body></html>');
	}else if(navigator.appName == "Netscape") {
	zoomwindow=window.open('','zoom','width='+sw+',height='+sh+',status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no'); 
	zoomwindow.document.open();
	zoomwindow.document.write('<html><head><title>PETER ALLERT - PHOTOGRAPHER</title></head><body bgcolor="#cac4c1"  marginwidth=0 marginheight=0 leftmargin=0 topmargin=0><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><a href="javascript:self.close()"><img name=bild src="' + ImgSrc + '" alt="Klick to Close" border=0></a></td></tr></table></body></html>');
	}
	zoomwindow.document.close();
	zoomwindow.focus();
}

function resize(){

	var width=zoomwindow.document.images.bild.width;
	var height=zoomwindow.document.images.bild.height;

	
	var links = (screen.width/2)-(width/2);
    var oben = (screen.height/2)-(height/2);

	 	zoomwindow.moveTo(links,oben);
		zoomwindow.resizeTo(width+10,height+30);

}
// ==============================================================================================
 function ImpressumPA(url, breite, hoehe , seite) {
	  
	 links = (screen.width/2)-(breite/2);
     oben = (screen.height/2)-(hoehe/2);
	 
     FENSTERPA= window.open(url,name,"height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
  	 FENSTERPA.focus();
   } 
