/*
* 	affiche une fenêtre popup d'erreur (quand on appuie sur ok dans l'espace client)			
*
**********************/
function  verifUser ()
{
alert ("Authentification incorrecte.");

document.login.pseudo.value = "";

document.login.password.value = "";
}
 

/*
* 	charge la liste des vignettes à la suite			
*
********************************/
function  loadListPhoto (nbPhoto)
{
var  i = 0;
var  numPhoto = 0;
var  htmlResult = "";
var  cible = document.getElementById ("listePhotos");
var  cible2 = document.getElementById ("photo");
	
if (cible == null)
	return;
			
for (i = 0 ; i < nbPhoto ; ++i)
	{	
	if (i == 0)
	   cible2.innerHTML = "<img src='images_communes/documation_2007/Medium/jlb-1.jpg'/>";
		   	
	if ( (i%4 == 0) && (i != 0) )	
	    htmlResult += "<br><br><br>";
			
	numPhoto = Math.abs (i) + 1;  
		
	htmlResult += "<img src='images_communes/documation_2007/Small/jlb-" + numPhoto + ".jpg' onMouseOver='growPhoto ("+ numPhoto +")' style='margin-right: 3px'/>";
	}
	
cible.innerHTML = htmlResult + "<br><br><br>";
}

	

/*
*  	permet d'agrandir l'image
*
*****************************/
function  growPhoto (numPhoto)
{ 
var  cible = document.getElementById ("photo");

if (cible == null)
    {
    alert ("photo est nul !!!");	
    return;
	}	   
			
cible.innerHTML = "<img src='images_communes/documation_2007/Medium/jlb-" + numPhoto + ".jpg'/>";

}
   

/*
* 	charge le plan d'accès à jlb			
*
*******************/
function  plan (img) 
{
var  szImgPath = img.src; 

lienZoomPlan2 (img);	

if (szImgPath.indexOf ("Acces_fichiers/plan-1.jpg", 0) >= 0)
   img.src = "Acces_fichiers/plan-2.jpg";		  
else	 
   img.src = "Acces_fichiers/plan-1.jpg";

}


/*
* 	rajoute un lien sous le plan 2 pour l'agrandir		
*
****************************/
function  lienZoomPlan2 (map) 
{
var  cible = document.getElementById ("lienZoomPlan2");
var  szMapPath = map.src;

if (szMapPath.indexOf ("Acces_fichiers/plan-1.jpg", 0) >= 0)
   	cible.innerHTML = "<A href='Acces_fichiers/plan-2grand.jpg' target='_blank'><font style='color: #FF7501; font-size: 11px;'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Cliquez ici pour agrandir le plan dans une nouvelle fenêtre</font></A> <br>";		   
else
	cible.innerHTML = "";   
}


/*
* 	ouvre une popup	pour dire que le mail est envoyé (dans nous_contacter.htm)
*
*************************/
function  pop_MailEnvoye() 
{
NewWin = window.open('Mail_Envoye.html','pop_MailEnvoye','width=400, height=240, toolbar=no, status=no, directories=no, menubar=no, resizable=no');
}