// JavaScript Document



if (! document.getElementById)
	{
	if (document.all)
		document.getElementById = function (id) { return (typeof (document.all[id]) != "undefined") ? document.all[id] : null; };
	else if (document.layers)
		document.getElementById = function (id) { return (typeof (document[id]) != "undefined") ? document[id] : null; };
	}

function Gonavcontent(rubrique,refermer)
	{
	afficher("activites",rubrique=="activites");
	afficher("clients",rubrique=="clients");
	
	if (refermer==true) afficher("menu_expo",false);
	}
	
function Gocontent(rubrique)
	{
	afficher("accueil",rubrique=="accueil");
	afficher("qui",rubrique=="qui");
	afficher("contact",rubrique=="contact");
	}


function isEmail (email)
	{
	if (email == "") return true;
	var regexp = new RegExp ("^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$");
	return regexp.test (email);
	}

function deroule(x)
	{
	afficher(x,! isaffiche(x));
	}

function afficher(x,visible)
	{
	document.getElementById(x).style.display=(visible) ? "block" : "none";
	}

function isaffiche(x)
	{
	return document.getElementById(x).style.display!="none";
	}
