/* allonnes-scripts.js
Fichier javascript associé à (allonnes) article.html */
function montre(nomFichier) {
		x = document.getElementsByName("fullview");  /* retourne un tableau de valeurs*/
		x[0].src = nomFichier;
		x = document.getElementById("content-fullview");  /* affiche le container*/
		x.style.zIndex = 1;
}

function cache() {
		x = document.getElementsByName("fullview");  /* retourne un tableau de valeurs*/
		x[0].src = "IMG/transparent.gif";
		x = document.getElementById("content-fullview");     /* masque le container*/
/*		x.style.zIndex = 1;*/
}

function mail2(cod)
{
	car=""
	z=cod.toUpperCase();
	for (i=0;i<z.length;i+=2)
	{
		a=z.charCodeAt(i);
		a-=48;
		b=z.charCodeAt(i+1);
		if (b<64)
			b-=48;
		else
			b-=55;
		a=a*16+b;
		car += String.fromCharCode(a);
	}
	car="mailto:" + car+"?subject=A propos du site d'Allonnes";
	window.location.href= car;
}

