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";
			anchor.title = (anchor.title != "") ? anchor.title+" (opent in een nieuw venster)" : "Opent in een nieuw venster";
			anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external';
		}
	}
}
window.onload = externalLinks;

function openWindow(URL,WIDTH,HEIGHT){
	var LEFT =(screen.width - WIDTH) / 2;
	var TOP = (screen.height - HEIGHT) / 2;
	var NEWWINDOW = open(URL,'Popup','scrollbars=yes,toolbar=no,location=no,status=no,resizable=no,width=' + WIDTH + ',height=' + HEIGHT + ',left=' + LEFT + ',top=' + TOP + '');
	NEWWINDOW.focus();
	return false;
}

function redirectClose(URL){
	window.opener.top.location=URL;
	this.close();
}

function bookmarksite(title, url){
   if (document.all){
      window.external.AddFavorite(url, title);
   }else if (window.sidebar){
      window.sidebar.addPanel(title, url, "");
   }
}