<!-- PNG transparency fix -->
function pngfix(element,img) 
{
	if((navigator.appName.lastIndexOf('Microsoft', navigator.appName.length-1)) > -1) 
	{
		document.getElementById(element).innerHTML = 
		"<div style='width:100%;height:100%;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + img + ",sizingMethod=scale);'></div>";
    }
	else 
	{
	    document.getElementById(element).innerHTML = "<img src='" + img + "' border='0'>";
	}
}

<!-- POPUP -->
function showPopUp(url,name,height,width)
{
	window.open(url, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height='+ height+',width=' + width); 
}

<!-- A: TARGET --!>
function externalLinks() 
{
	if (!document.getElementsByTagName) return;
 
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) 
	{
   		var anchor = anchors[i];
  		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
     	anchor.target = "_blank";
 	}
}
window.onload = externalLinks;

<!-- FOTO POP-UP -->
function FotoPopUp(img,txt)
{
	foto1= new Image();
	foto1.src = (img);
	CheckFotoPopUp(img,txt);
}
function CheckFotoPopUp(img,txt)
{
 	if((foto1.width!=0)&&(foto1.height!=0))
 	{
 		viewFotoPopUp(img,txt);
	}
	else
	{
		uitvoering = "CheckFoto('"+img+"','"+txt+"')";
 		interval = setTimeout(uitvoering,20);
	}
}
function viewFotoPopUp(img,txt)
{
	imgbreedte = foto1.width;
	imghoogte = foto1.height;
	if (!txt) {txt=img}
 	
	vars="width="+imgbreedte+",height="+imghoogte+",left="+((screen.width-imgbreedte)/2)+",top="+((screen.height-imghoogte)/2);
 	newwindow=window.open("","nieuwvenster",vars);
 	newwindow.document.clear();
 	newwindow.document.write("<html>\n<head>\n<title>"+txt+"</title>\n");
 	newwindow.document.write("<meta http-equiv=\"imagetoolbar\" content=\"no\">\n");
 	newwindow.document.write("</head>\n\n<body style=\"margin:0px; padding:0px;\" onBlur=\"window.close()\">\n"); 
 	newwindow.document.write("<img src=\""+img+"\" border=\"0\" onclick=\"javascript:window.close()\">\n"); 
 	newwindow.document.write("</body>\n</html>\n"); 
 	if (newwindow.document.focus) {newwindow.document.focus();}
 	newwindow.document.close(); 
}

