// JavaScript Document

/// recherche rapide
etat = 0;
function affiche() {
	document.getElementById('rechrapon').style.display = 'block';
	etat = 1;
}
function affiche2() {
	if (etat == 1) {
		document.getElementById('rechrapon').style.display = 'block';
	}
}
function masque() {
	if (etat == 1) {
		document.getElementById('rechrapon').style.display = 'none';
		etat = 0;
	}
}

// mail
function Mailto( domaine, adresse )
{
	var Mailtoemail = 'mailto:' ;
	Mailtoemail += adresse ;
	Mailtoemail += '@' ;
	Mailtoemail += domaine ;

	window.location = Mailtoemail ;
	
	return false ;
}

/// credits footer
 SignCach="YES";
 function showHideCredits() {
 	if (SignCach=="NO") {
	   document.getElementById('signatureTxt').style.display='none';
	   SignCach="YES";
    } else if (SignCach=="YES") {
       document.getElementById('signatureTxt').style.display='block';
	   SignCach="NO";
	}
 }
 
 //code gg analytics
 var _gaq = _gaq || [];
 _gaq.push(['_setAccount', 'UA-15060949-1']);
 _gaq.push(['_trackPageview']);
(function() {
  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
