if (parseInt(navigator.appVersion.charAt(0))>=4)
{
    var isNN=(navigator.appName=="Netscape")?1:0;
    var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}

// 
// PopBeeld
//

//aan te passen
vanaf_links = 100;
vanaf_boven = 70;
grootste_breedte  = 480+20;//afmetingen van het grootste beeld +20
grootste_hoogte = 360+20;  //afmetingen van het grootste beeld +20
//hieronder niets wijzigen

var optNN='scrollbars=no,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;
var optIE='scrollbars=no,width=400,height=400,left='+vanaf_links+',top='+vanaf_boven;

function popBeeld(BeeldURL,BeeldTitel) {
    if (isNN){
	    imgWin=window.open('about:blank','',optNN);
	}
    if (isIE) {
	    imgWin=window.open('about:blank','',optIE);
	}
    with (imgWin.document){	 
		 writeln('<html><head><title>Bezig met inladen ...</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 aanpassen_aan_beeldgrootte(){');writeln('if (isIE){');writeln('window.resizeTo(400,400);');
         writeln('width=400-(document.body.clientWidth-document.images[0].width);');
         writeln('height=400-(document.body.clientHeight-document.images[0].height);');
         writeln('window.resizeTo(width,height);}');writeln('if (isNN){');       
         writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
         writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
         writeln('</head><body bgcolor=000000 scroll="no" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" onblur="self.close()">');
         writeln('<img name="BeeldNaam" src='+BeeldURL+' style="display:block"></body></html>');
         close(); 
    }
}
//-->
// 
// PopBeeldScroll
//
var optIEScroll='scrollbars=yes,width=150,height=100,left='+vanaf_links+',top='+vanaf_boven;
var optNNScroll='scrollbars=yes,width='+grootste_breedte+',height='+grootste_hoogte+',left='+vanaf_links+',top='+vanaf_boven;

function popBeeldScroll(BeeldURL,BeeldTitel) {
    if (isNN){
	    imgWin=window.open('about:blank','',optNNScroll);
	}
    if (isIE) {
	    imgWin=window.open('about:blank','',optIEScroll);
	}
    with (imgWin.document){
         writeln('<html><head><title>Bezig met inladen ...</title><style>body{margin:0px;}</style>');
		 writeln('<link href="http://www.regentenkamer.nl/StyleSheets/Regentenkamer-css-text-style.css" rel="stylesheet" type="text/css">');
		 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 aanpassen_aan_beeldgrootte(){');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,height);}');writeln('if (isNN){');       
         writeln('window.innerWidth=document.images["BeeldNaam"].width;');writeln('window.innerHeight=document.images["BeeldNaam"].height;}}');
         writeln('function maak_titel(){document.title="'+BeeldTitel+'";}');writeln('</sc'+'ript>');
         writeln('</head><body bgcolor=000000 scroll="yes" onload="aanpassen_aan_beeldgrootte();maak_titel();self.focus()" onblur="self.close()">');
         writeln('<img name="BeeldNaam" src='+BeeldURL+' style="display:block"></body></html>');
         close(); 
    }
}
//
// Met deze functie kun je vanuit een andere HTML pagine de homepage van de Regentenkamer tonen, met in het mainFrame het gewenste HTML bestand.
//
function PopUpRegentenkamerFrameset(mainFrameDocument)
{
    if (isNN){
//	    imgWin=window.open('../regentenkamer.htm');
	    imgWin=window;
	}
    if (isIE) {
//      imgWin=window.open('../regentenkamer.htm');
	    imgWin=window;
	}

with (imgWin.document){
	writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">');
	writeln('<html>');
	writeln('<head>');
	writeln('<title>Regentenkamer: Jazz and other music centre - Literary café - Design and Art gallery</title>');
    writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
	writeln('</head>');
	writeln('<frameset rows="*" cols="*,195,800,*" framespacing="0" frameborder="no" border="0" bordercolor="#E1E1E1">');
    writeln('<frame src="zijframe.htm" name="LeftMargin" frameborder="no" scrolling="NO" noresize bordercolor="#E1E1E1">');
    writeln('<frame src="tools/hoofdmenu/hoofdmenu.htm" name="leftFrame" frameborder="no" scrolling="auto" noresize bordercolor="#E1E1E1">');
    writeln('<frame src="'+mainFrameDocument+'" name="mainFrame" frameborder="no" scrolling="auto" noresize bordercolor="#E1E1E1">');
    writeln('<frame src="zijframe.htm" name="RightMargin" frameborder="no" scrolling="NO" noresize bordercolor="#E1E1E1">');
    writeln('</frameset>');
    writeln('<noframes><body>');
    writeln('</body></noframes>');
    writeln('</html>');
	close(); 
}
    imgWin.focus();
}
	




