// Variable Zoomfunktion Parallaxis - Manuel Bieh, 03.09.2004
function fZoom(imageName,scroll,bildunterschrift) { 
if (fZoom.arguments.length>2){
  if (scroll == 'yes'){
    newWindow = window.open("","newWindow","width="+599+",height="+400+",scrollbars=yes");
  }else{
    newWindow = window.open("","newWindow","width="+599+",height="+400+",scrollbars=no,resizable=yes");
  }
}else{
  if (scroll == 'no'){
    newWindow = window.open("","newWindow","width="+599+",height="+400+",scrollbars=no resizable=no");
  }else{
    newWindow = window.open("","newWindow","width="+599+",height="+400+",scrollbars=yes,resizable=no");
  }
}

newWindow.document.open();
newWindow.document.writeln('<html><head><title>Bäckerei Wulf</title>');
newWindow.document.writeln('<link rel=stylesheet type="text/css" href="parallaxis.css"></head>');
newWindow.document.writeln('<body topmargin="0" id="popup" marginheight="0" leftmargin="0" marginleft="0" onload="window.resizeTo(document.bild.width,document.bild.height+30);" onBlur="self.close()">');
newWindow.document.writeln('<p align="center"><a href="javascript:self.close()"><img src=\"../zoom/'+imageName+'\" name="bild" align="absmiddle" border=0></a>'); 
if (fZoom.arguments.length>2){
newWindow.document.writeln('<b>'+ bildunterschrift+'</b>')}
newWindow.document.write('</p></body></html>');
newWindow.document.close();
newWindow.focus(); 

if(navigator.appName == "Microsoft Internet Explorer") {
var bildhoehe = newWindow.document.bild.height;
var bildbreite = newWindow.document.bild.width;
{if (bildhoehe>600) { newWindow.resizeTo(bildbreite+27,600);}
 else {
  if (fZoom.arguments.length>2) { newWindow.resizeTo(bildbreite,bildhoehe+50); }
  else { newWindow.resizeTo(bildbreite,bildhoehe+29) }}}}
}

