$(document).ready(function() {
	
	//$('.post-content a').eq(0).remove();
	
	// ajoute la classe "external" sur les liens hors domaine et ajoute un target="_blank"
	$('.post-content a').each(function() {
	
		if(this.href.indexOf('.epershand.net') == -1) {
			$(this).addClass('external').attr('target', '_blank');
		}
	
		/* la version regex marche sous safari pas sous FF... pfff
		var reg = /(www|exemple)\.epershand\.net/g;
		var matches = reg.exec(this.href);
		if( /(www|exemple)\.epershand\.net/g.test(this.href) )
			$('body').append('-> '+this.href+'<br />');
		*/
	});
	
});
