/**
 * Function to format bot protected email addresses
 */
$(function() {
	$("a[@href^='mail to : ']").each(function(){
	    mailto = $(this).attr("href").substr(9);
	    split = mailto.split("?");
	    split[0] = split[0].replace(/DOT/g,".");
	    split[0] = split[0].replace(/AT/,"@");
	    split[0] = split[0].replace(/ /g,"");
	   $(this).attr("href","mailto:"+split.join("?"));
	});
});