/* ========================
	External links function
======================== */
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;

function open_plaatje(mypage, myname, w, h) {
	var scroll = 'no';
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=yes'
	win = window.open(mypage, myname, winprops)

	if (
		parseInt(navigator.appVersion) >= 4) { win.window.focus(); 
	}
	
	win.document.open();
	win.document.writeln('<html>');
	win.document.writeln('<head>');
	win.document.writeln('<title>'+myname+'</title>');
   win.document.writeln('<style>');
   win.document.writeln('* { margin: 10px;padding: 0;}');
   win.document.writeln('body { margin: 0;padding: 0;background: url(' + mypage + ') no-repeat top left;}');
   win.document.writeln('img {margin: 10px;border: 0;}');
   win.document.writeln('</style>');
	win.document.writeln('</head>');   
	win.document.writeln('<body>');
	win.document.writeln('</body>');
	win.document.writeln('</html>');
	win.document.close();
}


function swapOn(pic, id) {
	p = document.getElementById(pic);   
	p.src = "fotos/" + id + "/" + pic + "-tekst.jpg";  
}
function swapOff(pic, id) {
	p = document.getElementById(pic);   
	p.src="fotos/" + id + "/" + pic + ".jpg";  
}

