



function ViewImage(ifile,ix,iy,ititle) { 
var win;
var sWidth;
var sHeight;
var NS = (document.layers) ? 1 : 0;
win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
if (NS) {
sWidth = win.innerWidth;
sHeight = win.innerHeight;
} else {
sWidth = win.document.body.clientWidth;
sHeight = win.document.body.clientHeight;
}

win.document.open();
win.document.write("<html><head><title>"+ititle+"</title>");
win.document.write("</head><body onblur='window.close();' background='_pix/gradientbg.gif'>");
win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
win.document.write("<img src="+ifile+"></div></body></html>");
win.document.close();
}



function laatzien(x)
{
if(navigator.appVersion.indexOf('Macintosh')>=0)
{
wk=0;
wk=window.open(x,'plaatje','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=600,left=0,top=0');
wk.focus();
}
else
{
if(window.wk)
{
wk.close();
}
wk=0;
wk=window.open(x,'plaatje','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=800,height=600,left=0,top=0');
wk.focus();
}
}




function opmaat()
{
var agt=navigator.userAgent.toLowerCase();
var appVer = navigator.appVersion.toLowerCase();
var is_ie6 = (appVer.indexOf('msie 6') != -1);
var is_ie5win = ((appVer.indexOf('msie 5') != -1) & (appVer.indexOf('windows') != -1))?true:false;
var is_safari = ((agt.indexOf('safari')!=-1) & (agt.indexOf('mac')!=-1))?true:false;
var is_ffm = ((agt.indexOf('firefox')!=-1) & (agt.indexOf('mac')!=-1))?true:false;
var is_ffW = ((agt.indexOf('firefox')!=-1) & (agt.indexOf('windows')!=-1))?true:false;
var wi=screen.availWidth;
var hi=screen.availHeight;
var br=parseInt(document.images[0].width);
var ho=parseInt(document.images[0].height);

	if(is_safari)
		{
		ho += 23;
		}

	if(is_ie5win)
		{
		br += 10;
		ho += 29;
		}

	if(is_ie6)
		{
		br += 8;
		ho += 59;
		}

	if(is_ffW)
		{
		br += 6;
		ho += 54;
		}

	if(is_ffm)
		{
		ho += 16;
		}

	var li=parseInt((wi-br)/2);
	var bo=parseInt((hi-ho)/2);
	window.resizeTo(br,ho);
	window.moveTo(li,bo);
	self.focus();
}