PositionX = 300;
PositionY = 250;

// Sæt disse værdier ca 20 pixels mere end 
// størrelsen på det the største billede (nødvendig for Netscape)

defaultWidth  = 350;
defaultHeight = 350;
imageTitle = "Museets popup";
he = 350;
he1 = 250;

// Sæt autoclose true Vinduet lukker automatisk
// Sæt autoclose false flere popup Vinduer

var AutoClose = true;
var popbag = "lavenderblush"; // Baggrundsfarven virker ikke?

// Editer ikke herunder ================================
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=150,height=100,left='+PositionX+',top='+PositionY;
var aw = window.screen.availWidth;
function popImage(imageURL,imageText){
if (isNN){imgWin=window.open('about:blank','',optNN);}
if (isIE){imgWin=window.open('about:blank','',optIE);}
with (imgWin.document){
writeln('<html><head><title>Henter billede...</title><style>body{margin:10px;}</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('window.resizeTo(width+170,height+60);}');writeln('if (isNN){');       
writeln('window.innerWidth=document.images[0].width+30;');writeln('window.innerHeight=document.images[0].height+80;}}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor="#000088" scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor="#000088" scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
if(aw > 1024 ) writeln('<img name="WebMaster" src='+imageURL+' style="border-style: solid; border-width: 2; border-color : navy;display:block"></body></html>');
else if(aw >801) writeln('<img name="WebMaster" src='+imageURL+' height='+he+' style="border-style: solid; border-width: 2; border-color : navy;display:block"></body></html>');
else writeln('<img name="WebMaster" src='+imageURL+' height='+he1+' style="border-style: solid; border-width: 2; border-color : navy;display:block"></body></html>');
writeln('<b><font size="3" color="#000080">');
writeln(imageText);
writeln('</font></b>');
close();		
	
}}
function nyside(sideUrl,titel,vidde,h) {
var y = screen.height - 100; // maximal størrelse
if(h<y) {y = h; topPosition = (screen.height-h)/2; }
else { topPosition = 0; }
var venstre = (screen.width) ? (screen.width-vidde)/2 : 0;
var settings = 'height='+y+',width='+vidde+',top='+topPosition+',left='+venstre+',scrollbars=yes,resizable=yes';
MinMsg=open(sideUrl, titel,settings);
}
function fullwin(targeturl){
window.open(targeturl,"","fullscreen,scrollbars")
}

