
 jQuery.fn.mailto = function() {
	return this.each(function(){
                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);
                }

	});
}; 

