/** * FONCTION geo_decode * Modification de http://www.alistapart.com/articles/gracefulemailobfuscation * * @package		egzakt * @author		Simon * @param		anchor		string (lien courriel) * @return		-			bool * @version		SVN: $Id: fonctions.js 3335 2008-01-21 00:00:00Z Simon $ */function geo_decode(anchor,domaine) {	var href = $(anchor).attr('href');		var adresse = "";	if (!domaine)		domaine = 's'+'o'+'m'+'.'+'ca';	if (langue == "fr")		var code = href.replace(/.*entreprise\/equipe\/courriel\/([a-z0-9._%-]+)/i, '$1');	else		var code = href.replace(/.*company\/team\/email\/([a-z0-9._%-]+)/i, '$1');		if (href != code) {		var code_params = code.split('-');		for (i=0;i<(code_params.length-1);i++) {			adresse += code_params[i].substring(0,1);		}		adresse += code_params.pop()+'@'+domaine;		$(anchor).attr('href','mail'+'to'+':'+adresse);		$(anchor).html(adresse);	}}$(function(){		// 2008-01-21 Simon	// Proteger les adresses courriels	// geo_decode() dans fonctions.js	$('a').not("[@href='']").each(function()  {		geo_decode(this);	});			//Génerer le lien pour l'impression	$("#printBox a").click(function(){		window.print();		return false;	});});