$(function() {

	$('#page a').each(function(){
		rel = $(this).attr('rel');
		if (rel!=''){
			tmp = rel.split(/\|/);
			if (tmp.length>1){
				tmp = tmp[1];	
			
				tmp = tmp.replace(/^\s*([a-z]{4})|([a-z]{4})\s*$/gi, '');
				tmp = tmp.replace(/[a-z]{2}\@[a-z]{2}/gi, '@');
				tmp = tmp.replace(/[a-z]{2}\.[a-z]{2}/gi, '.');
			
			
				$(this).attr('href', '' + tmp);	//mailto: weggehaald
				$(this).attr('rel', '');
			}
		}
		
	
	});

});
