// Kommentar:

<!-- Open-Funktion -->

PositionX     = 120;
PositionY     = 120;
defaultWidth  = 640;
defaultHeight = 480;
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,status=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,status=no,width=150,height=100,left='+PositionX+',top='+PositionY;


function popImage(imageURL){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document)
{
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(100,100);');
//writeln('width=100-(document.body.clientWidth-document.images[0].width);');
//writeln('height=100-(document.body.clientHeight-document.images[0].height);');
writeln('width=document.images[0].width+10;');
writeln('height=document.images[0].height+58;');
writeln('window.resizeTo(width,height);}');
writeln('if (isNN){');       
writeln('window.innerWidth=document.images["img"].width;');
writeln('window.innerHeight=document.images["img"].height;}}');
writeln('function doTitle(){document.title="Detailbild";}');
writeln('</sc'+'ript>');
writeln('</head><body bgcolor="ffffff" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<a href="javascript:window.close();" title="Fenster schließen"><img name="img" src="'+imageURL+'" style="display:block" border="0"></a></body></html>');
close();		
}}


function popImage2(imageURL,width,height){

    var screenWidth = screen.availWidth - 20;
    var screenHeight = screen.availHeight - 20;

    if (screenWidth > width && screen.availHeight > height) {
      var F1 = window.open("", "_blank", "width=" + width + ",height=" + height + ",top=0,left=0,status=no,menubar=no,location=no,scrollbars=no,resizable=no");
    }
    else {
      width = screenWidth;
      height = screenHeight;
      var W1 = window.open("", "_blank", "width=" + width + ",height=" + height + ",top=0,left=0,status=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
    }

    W1.document.writeln("<html>");
    W1.document.writeln("<head>");
    W1.document.writeln("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
    W1.document.writeln("<title>DIGITAL-LAYOUT Schmitz | Galerie-Foto</title>");
    W1.document.writeln("<meta http-equiv=\"imagetoolbar\" content=\"no\" />");
    W1.document.writeln("</head>");
    W1.document.writeln("<body style=\"margin:0px; padding:0px;\">");
    W1.document.writeln("<div >");
    W1.document.writeln("<img align=\"center\" valign=\"middle\" style=\"border-style:none; border-width:0px; margin:0px; padding:0px;\" src=\"" + imageURL + "\">");
    W1.document.writeln("</div>");
    W1.document.writeln("</body>");
    W1.document.writeln("</html>");
    W1.document.close();

}


function resize_window2image() {
	var new_width  = document.img_full.width+10;
	var new_heigth = document.img_full.height+10;
	window.resizeTo(new_width,new_heigth);
}


<!-- Alt1 POPUP -->
 
function popup(breite, hoehe, ziel, name){
    var name = name;
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=yes, scrollbars=yes";
    _popup = window.open(ziel,name,_eigenschaften);
    _popup.focus();
   }
   
   function popupn(breite, hoehe, ziel){
     var _popwidth = breite;
     var _popheight = hoehe;
     _xpos = (screen.width - _popwidth) / 2;
     _ypos = (screen.height - _popheight) / 2;
     var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=yes, scrollbars=yes";
     _popup = window.open(ziel,"PopUpn",_eigenschaften);
     _popup.focus();
   }
   

   function popupnoscroll(breite, hoehe, ziel, name){
    var name = name;
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=no, scrollbars=no";
    _popup = window.open(ziel,name,_eigenschaften);
   }
   
   function orderpopup(breite, hoehe, ziel){
    var _popwidth = breite;
    var _popheight = hoehe;
    _xpos = (screen.width - _popwidth) / 2;
    _ypos = (screen.height - _popheight) / 2;
    var _eigenschaften = "width=" + _popwidth + ",height=" + _popheight + ", menubar=no, left=" + _xpos  + ",top=" + _ypos + ", resizable=no, scrollbars=no";
    _popup = window.open("orderpopup.html","orderpopup",_eigenschaften);
    self.location.href = ziel;
   }
<!-- ENDE POPUP -->



