// Set the horizontal and vertical position for the popup

PositionX = 50;
PositionY = 50;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 1044;
defaultHeight = 1044;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
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,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=300,height=200,left='+PositionX+',top='+PositionY;
var IE7 = (navigator.appVersion.indexOf('MSIE 7.')==-1) ? false : true;

function popImage(imageURL,imageTitle,imageLegende,imageLegende2){
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);');
if (IE7) {writeln('width=250-(document.body.clientWidth-document.images[0].width);');}
else {writeln('width=100-(document.body.clientWidth-document.images[0].width);');}
writeln('height=110-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images["GALERIE"].width+20;');writeln('window.innerHeight=document.images["GALERIE"].height+40;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('<link href="lamont.css" rel="stylesheet" type="text/css"></head><body bgcolor=FFFFFF scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('<link href="lamont.css" rel="stylesheet" type="text/css"></head><body scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<table width="105%" cellspacing="0" cellpadding="0" bgcolor="#403B35" class="unternavi" border="0"><tr><td align="center" class="unternavi" height="20"><font class="unternaviaktiv">'+imageLegende+'</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+imageLegende2+'</td></td></tr></table>');
writeln('<a href="javascript:window.close();return true;" class="lauftext"><img border="0" alt="Fenster schliessen" name="GALERIE" src='+imageURL+' style="display:block"></a></body></html>');
close();		
}}


