/**
 *  Script JavaScript exécuté sur toutes les pages
 */
 
/**
 *  Fonciton équivalente de str_replace() de PHP
 */
function kwReplace(str,find,rep)
{
  var reg = new RegExp(find,'g'); // "g" -> "gi" pour ne pas prendre en compte la casse
  return str.replace(reg,rep);
}


$(document).ready(function()
{
	$('a.mailto').click(function()
	{
		var mailto = $(this).attr('href');
		mailto = mailto.replace('/','@');
		mailto = mailto.replace('/','.');
		$(location).attr('href','mailto:'+mailto);
		return false;
	});
});
