process_keypress = function() { 
			if (window.event.type == "keypress" & window.event.keyCode == 13) 
				verif_mail();
			return !(window.event.type == "keypress" & window.event.keyCode == 13); } 
				window.onkeypress = process_keypress; 

///////////
galImgClicked = function(n,gal,etat){
				document.getElementById('imgGal').src=''; 
			if (etat=='on'){
				var recuoHuteurDivCorps=document.getElementById('divCorps').offsetHeight;
				document.getElementById('divGalCach').style.height=recuoHuteurDivCorps+220+'px';
				document.getElementById('divGalCach').style.display='block';
				document.getElementById('divGal').style.display='block';
				document.getElementById('imgGal').src='imgs/galerie/'+gal+'/'+n+'.jpg';
				document.getElementById('divChargement').style.display='block';
				document.all.getElementsByTagName('object').style.zIndex='0';
				}
				
			else{
				document.getElementById('divChargement').style.display='none';
				document.getElementById('divGalCach').style.display='none';
				document.getElementById('divGal').style.display='none';
				document.getElementById('divQuitGal').style.display='none';
				document.getElementById('imgGal').src=''; 
				}
		}
imgGalF = function(etat,croix){
	if (etat=='over'){
		document.getElementById('divQuitGal').style.display='block';
		document.getElementById('imgCroix').src='imgs/'+croix+'.png';
	}
	else{
		document.getElementById('divQuitGal').style.display='none';
		}
	}

//btnJavascript
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
  
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}
//-->

//recup contact
	function recupEnvoieCh(){
		var chCivilite=document.FormContact.chCivilite.value;
		var chNom=document.FormContact.chNom.value;
		var chPrenom=document.FormContact.chPrenom.value;
		var chAdr=document.FormContact.chAdr.value;
		var chCodePostal=document.FormContact.chCodePostal.value;
		var chVille=document.FormContact.chVille.value;
		var chTel=document.FormContact.chTel.value;
		var chFax=document.FormContact.chFax.value;
		var chGsm=document.FormContact.chGsm.value;
		var chEmail=document.FormContact.chEmail.value;
		var chSite=document.FormContact.chSite.value;
		var chDmd=document.FormContact.chDmd.value;
		var chMessage=document.FormContact.chMessage.value;
		
		var page='php/contact.php?chCivilite='+chCivilite+'&chNom='+chNom+'&chPrenom='+chPrenom+'&chAdr='+chAdr+'&chCodePostal='+chCodePostal+'&chVille='+chVille+'&chTel='+chTel+'&chFax='+chFax+'&chGsm='+chGsm+'&chEmail='+chEmail+'&chSite='+chSite+'&chDmd='+chDmd+'&chMessage='+chMessage;
		silenceDesJustes_page(page,'divCorps');
	}

//verif newsLetter
function verif_mail(){
	var chaine=document.formMail.chmail.value;
	var arobas=chaine.indexOf('@');
if(arobas==-1){
	alert("il vous faut @");
	return false;
}else{
	var coup=chaine.substring(arobas+1,chaine.length);
	var point=coup.indexOf('.');
	if(point==-1){
		alert('il vous faut un point');
		return false;}}
		
		var adresse='php/recup_newsLetter.php?mail='+chaine;
		silenceDesJustes_page(adresse,'divNewsLetter');}
		
//pagination
var pageActu=1;

function colorPress(index,n,sens,url,div){
var nA=n;
var urlA=url;
var divA=div;
if (sens==''){
for (iG=0;iG<2;iG++){
for (i=1;i<n;i++){
	if (i!=index){
		document.getElementsByName("H"+i)[iG].style.backgroundColor='#fff';}
	else {
		document.getElementsByName("H"+index)[iG].style.backgroundColor='#E1F1FF';
		silenceDesJustes_page('contenu/'+urlA+'/page'+index+'.html',divA);
		pageActu=index;
	}}}}	
	
	
else if (sens=='prec'){
		pageActu--;
	for (iG=0;iG<2;iG++){
	for (i=1;i<n;i++){
		document.getElementsByName("H"+i)[iG].style.backgroundColor='#fff';}
		document.getElementsByName("H"+pageActu)[iG].style.backgroundColor='#E1F1FF';
		silenceDesJustes_page('contenu/'+urlA+'/page'+pageActu+'.html',divA);
		}}
	
else if (sens=='suiv') {
		pageActu++;
	for (iG=0;iG<2;iG++){
	for (i=1;i<n;i++){
		document.getElementsByName("H"+i)[iG].style.backgroundColor='#fff';}
		document.getElementsByName("H"+pageActu)[iG].style.backgroundColor='#E1F1FF';
		silenceDesJustes_page('contenu/'+urlA+'/page'+pageActu+'.html',divA);
	}}
	
	if (pageActu==1){
	for (iG=0;iG<2;iG++){
		document.getElementsByName('prec')[iG].innerHTML='Pr&eacute;c&eacute;dent';
		document.getElementsByName('suiv')[iG].innerHTML = "<a href=\"#\" onclick=\"colorPress('',"+nA+",'suiv','"+urlA+"','"+divA+"');\">Suivent</a>";}}
		
	else if (pageActu==nA-1){
	for (iG=0;iG<2;iG++){
		document.getElementsByName('suiv')[iG].innerHTML='Suivent';
		document.getElementsByName('prec')[iG].innerHTML = "<a href=\"#\" onclick=\"colorPress('',"+nA+",'prec','"+urlA+"','"+divA+"');\">Pr&eacute;c&eacute;dent</a>";}}
		
	else {
	for (iG=0;iG<2;iG++){
		document.getElementsByName('suiv')[iG].innerHTML = "<a href=\"#\" onclick=\"colorPress('',"+nA+",'suiv','"+urlA+"','"+divA+"');\">Suivent</a>";
		document.getElementsByName('prec')[iG].innerHTML = "<a href=\"#\" onclick=\"colorPress('',"+nA+",'prec','"+urlA+"','"+divA+"');\">Pr&eacute;c&eacute;dent</a>";}}
		
}
