links = 100; //000 = linkerzijde scherm
boven = 100; //000 = bovenzijde scherm

// Hieronder niets aanpassen
if (parseInt(navigator.appVersion.charAt(0))>=4)
{
var browser=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;
}
var positie='width=1,height=1,left='+links+',top='+boven;
function toonimagepopup_vast(ImageNaam,ImageTitel)
{
if (browser){imgWin=window.open('about:blank','',positie);
}
with (imgWin.document)
{

writeln('<html>');
writeln('<head>');
writeln('<meta http-equiv="pragma" content="no-cache">');
writeln('<meta http-equiv="imagetoolbar" content="no">');
writeln('<script>');
writeln('<!--');
writeln('if (window.Event)');
writeln('document.captureEvents(Event.MOUSEUP);');
writeln('function nocontextmenu()');
writeln('{');
writeln('event.cancelBubble = true');
writeln('event.returnValue = false;');
writeln('return false;');
writeln('}');
writeln('function norightclick(e)');
writeln('{');
writeln('if (window.Event)');
writeln('{');
writeln('if (e.which == 2 || e.which == 3)');
writeln('return false;');
writeln('}');
writeln('else');
writeln('if (event.button == 2 || event.button == 3)');
writeln('{');
writeln('event.cancelBubble = true');
writeln('event.returnValue = false;');
writeln('return false;');
writeln('}');
writeln('}');
writeln('document.oncontextmenu = nocontextmenu;');
writeln('document.onmousedown = norightclick;');
writeln('function disableselect(e){');
writeln('return false');
writeln('}');
writeln('function reEnable(){');
writeln('return true');
writeln('}');
writeln('document.onselectstart=new Function ("return false")');
writeln('if (window.sidebar){');
writeln('document.onmousedown=disableselect');
writeln('document.onclick=reEnable');
writeln('}');
writeln('//-->');
writeln('</script>');
writeln('<head>');
writeln('<title>( '+ImageTitel+' )</title>');
writeln('<style>body{margin:0px;}</style>');
writeln('');
writeln('<script>');
writeln('var browser;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4)');
writeln('{');
writeln('browser=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;');
writeln('}');
writeln('function beeldaanpassen()');
writeln('{');
writeln('if (browser)');
writeln('{');
writeln('window.resizeTo(0,0);');
writeln('breed=100-(document.body.clientWidth-document.images[0].width);');
writeln('hoog=100-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(breed,hoog);');
writeln('}');
writeln('}');
writeln('</script>');
writeln('</head>');
writeln('');
writeln('<body onload="beeldaanpassen();self.focus()" onblur="self.close()" onclick="self.close()">');
writeln('');
writeln('<img src='+ImageNaam+' title="     '+ImageTitel+'     "');
writeln('');
writeln('');
writeln('</body>');
writeln('');
writeln('</html>');
close();		
}
}