// JavaScript Document
<!--
function montre(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {
			document.getElementById('smenu'+i).style.display='none';
		}
	}
	if (d) {
		d.style.display='block';
	}
}


function montreg(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenug'+i)){
			document.getElementById('smenug'+i).style.display='none';
		}
	}
if (d) {
	d.style.display='block';}
}


<!-------------------------------------------------------------------------->
/*DIAPORAMA AUTOMATIQUE*/
/*temps entre 2 photos (en ms)*/
timing=3000;
nomimg="diapo";
i=0;
/*fonction pour faire défiler les photos automatiquement*/
function diapoauto(){
	 if(i<imgdiapo.length){
		 document.images[nomimg].src=imgdiapo[i];
		 setTimeout("diapoauto()",timing);
		 i++;
		 if(i==imgdiapo.length){
			 i=0;
		 }
	 }
}
/*diapo legende1*/
timinglegende=3000;
nomimglegende="diapolegende";
ilegende=0;
/*fonction pour faire défiler les légendes du diaporama 1 automatiquement*/
function diapoautolegende(){
	 if(ilegende<imgdiapolegende.length){
		 document.images[nomimglegende].src=imgdiapolegende[ilegende];
		 setTimeout("diapoautolegende()",timinglegende);
		 ilegende++;
		 if(ilegende==imgdiapolegende.length){
				ilegende=0;
		 }
	 }
}
/*temps entre 2 photos (en ms)*/
timing2=3000;
nomimg2="diapo2";
j=0;
/*fonction pour faire défiler les photos automatiquement*/
function diapoauto2(){
	 if(j<imgdiapo2.length){
		 document.images[nomimg2].src=imgdiapo2[j];
		 setTimeout("diapoauto2()",timing2);
		 j++;
		 if(j==imgdiapo2.length){
			 j=0;
		 }
	 }
}
/*diapo legende2*/
timinglegende2=3000;
nomimglegende2="diapolegende2";
ilegende2=0;
/*fonction pour faire défiler les légendes du diaporama 1 automatiquement*/
function diapoautolegende2(){
	 if(ilegende2<imgdiapolegende2.length){
		 document.images[nomimglegende2].src=imgdiapolegende2[ilegende2];
		 setTimeout("diapoautolegende2()",timinglegende2);
		 ilegende2++;
		 if(ilegende2==imgdiapolegende2.length){
				ilegende2=0;
		 }
	 }
}
/*temps entre 2 photos (en ms)*/
timingclignote=800;
nomimgclignote="diapoclignote";
iclignote=0;
/*fonction pour faire défiler les photos automatiquement*/
function diapoautoclignote(){
	 if(iclignote<imgdiapoclignote.length){
		 document.images[nomimgclignote].src=imgdiapoclignote[iclignote];
		 setTimeout("diapoautoclignote()",timingclignote);
		 iclignote++;
		 if(iclignote==imgdiapoclignote.length){
			 iclignote=0;
		 }
	 }
}

/*fonction pour charger les photos (diminution du temps de chargement des photos)*/
function preload(){
imgload=new Array();
for(var j=0;j<preload.arguments.length;j++){
		imgload[j]=new Image();
		imgload[j].src=preload.arguments[j];
	}
}




/*nomimg2="diapo2";
compt=-1;
function diapobouton(sens){
	if(sens==1 && compt<(imgdiapo2.length-1)){
		compt+=sens;
		document.images[nomimg2].src=imgdiapo2[compt];
	}
	else if(sens==-1 && compt!=0){
		compt+=sens;
		document.images[nomimg2].src=imgdiapo2[compt];
	}
}*/
<!-------------------------------------------------------------------------->




/*Vérification du formulaire de contact*/
function verif_fromulaire(){
err=0;
if (language==null || language=='') {language='en';}
erreur=eval('var_'+language+'_contact_alert');
if (document.envoi.val2.value=='')
{
err=1;
erreur=erreur+'\n  - Votre adresse e-mail';
}
if (document.envoi.val3.value=='')
{
err=1;
erreur=erreur+'\n  - Votre message';
}
if (err==1) {alert (erreur)} else {document.envoi.submit()}
}

<!-------------------------------------------------------------------------->
function recherche(){
	var x = new String(document.recherche.texterecherche.value);
	alert(x);
}

<!-------------------------------------------------------------------------->
/*texte clignote*/
/*function cacher_montrer() { 
	if(document.getElementById('clignote').style.visibility = 'hidden') { 
		setTimeout("document.getElementById('clignote').style.visibility = 'visible';",1000); 
	} 
	else { 
		setTimeout("document.getElementById('clignote').style.visibility = 'hidden';",1000); 
	} 
} 
setInterval("cacher_montrer();",1500)
*/

<!-------------------------------------------------------------------------->


	/*
	SCRIPT DE L'EDITEUR JAVASCRIPT
	http://www.editeurjavascript.com
	*/
	go_visibility = new Array;
	
	function goblink()
		{
		if(document.getElementById && document.all)
			{
			blink_tab = document.getElementsByTagName('blink');
			for(a=0;a<blink_tab.length;a++)
				{
				if(go_visibility[a] != "visible")
					go_visibility[a] = "visible";
				else
					go_visibility[a] = "hidden";
				blink_tab[a].style.visibility=go_visibility[a];
				}
			}
		setTimeout("goblink()", 500);
		}
	window.onload = goblink;

//-->


/* Effet sur vos liens
SCRIPT EDITE SUR L'EDITEUR JAVASCRIPT
http://www.editeurjavascript.com 
*/
function A.menulink {
width: 118px;
text-decoration: none;
font-family:Verdana;
font-size:11px;
color: #FF9900;
BORDER: none;
border: solid 1px #FFFFFF;
}

A.menulink:hover {
border: solid 1px #000000;
background-color:#FFFF00;
}


