var affiche = false; // La variable i nous dit si le bloc est visible ou non
var w3c=document.getElementById && !document.all;
var ie=document.all;

// placement de l'infobulle


if (ie||w3c) {
  var laBulle
  var Carte_
  var Menus_
}

///////////////////// RESUME DES ACTUALITES ////////////////////////////////

function resumActus(url){
	document.write("<strong>Soirée Moules Frites !</strong><br />Samedi 12 avril 2008, choix de moules préparées à la provençale, à la crème, au curry, au bleu ou simplement nature...");  
	document.write("<a href=\""+url+"actualites-soirees-thematiques.php\" title=\"lire la suite\" >[ ... ]</a><br /><br /><br />");
}

///////////////////// VALIDATION DU FORMULAIRE ////////////////////////////////

function Validator(theForm)
{
  if (theForm.Nom.value == "")
  {
    alert("Veuillez préciser votre nom.\nMerci");
    theForm.Nom.focus();
    return (false);
  }
  if (theForm.Prenom.value == "")
  {
    alert("Veuillez préciser votre prénom.\nMerci");
    theForm.Prenom.focus();
    return (false);
  }
  if (theForm.Telephone.value == "")
  {
    alert("Veuillez préciser votre n° de téléphone.\nMerci");
    theForm.Telephone.focus();
    return (false);
  }
  var ok=0;
  //if (theForm.Email.value == ""){ok=1;} 	
  var a=theForm.Email.value;
  var test="" + a;
  for(var k=0; k < test.length-3;k++){
 	var c = test.substring(k,k+1);
		if(c == "@"){
			for(var l=k; l<test.length-2;l++){
				var c = test.substring(l,l+1);
				if(c == "."){
					ok=1;
				}
			}
		}
  }
  if (ok == 0){
	alert("Saisissez une adresse E-mail correcte.\nMerci.");
	theForm.Email.focus();
	return (false);
  }
  return (true);
}


///////////////////// AFFICHAGE DE LA CARTE / MENUS ////////////////////////////////

function affCarte(){
  if (w3c||ie){
  	lacarte = document.all ? document.all["Carte_"] : document.getElementById ? document.getElementById("Carte_") : ""
   	affiche = true
    lacarte.style.visibility = "visible";
		}
	}

function cachCarte() {
  if (w3c||ie){
    affiche = false
    lacarte.style.visibility="hidden" // avoid the IE6 cache optimisation with hidden blocks
    /*lacarte.style.top = '-1000px'
    lacarte.style.backgroundColor = ''
    lacarte.style.width = ''*/
  }
}


function affMenus(){
  if (w3c||ie){
  	lesmenus = document.all ? document.all["Menus_"] : document.getElementById ? document.getElementById("Menus_") : ""
   	affiche = true
    lesmenus.style.visibility = "visible";
		}
	}

function cachMenus() {
  if (w3c||ie){
    affiche = false
    lesmenus.style.visibility="hidden" // avoid the IE6 cache optimisation with hidden blocks
    /*lesmenus.style.top = '-1000px'
    lesmenus.style.backgroundColor = ''
    lesmenus.style.width = ''*/
  }
}