// JavaScript Document<script type="text/javascript">
jQuery(function($){

function mail()
{
	//on attend que la page soit chargée
	//Pour tous les liens commençant par "mailto" ou les span ayant une class "wmail"
	$('a[href^="mailto"]').each(function () {
			//Remplacment du texte dans l'élément
			var temp = $(this).html();
			
			temp = temp.replace("[atte]","@");
			temp = temp.replace("[p]",".");
			$(this).html(temp);
			//Si il y a un attribut "href", on remplace le texte dans l'attribut
			if($(this).attr("href")){
					var temphref = $(this).attr("href");
					temphref = temphref.replace("[atte]","@");
					temphref = temphref.replace("[p]",".");
					$(this).attr("href",temphref);
			}
	})
		
}

mail();

});

