// La fonction qui fait défiler le menu vers la gauche
cpt1=0;
increment = 1
function deroule(texte)
{
	a=document.getElementById(texte).style;

	
	b=texte;
			
	if (a.pixelLeft<-540)
		increment = 1;
	if (a.pixelLeft>3)
		increment = -1;

	a.pixelLeft = a.pixelLeft + increment
	
	setTimeout('deroule(b)', 1);

	
}
function deroule_vertical(texte,maxi)
{
	a=document.getElementById(texte).style;

	
	b=texte;
	c=maxi;
			
	if (a.pixelTop<-maxi)
		increment = 1;
	if (a.pixelTop>340)
		increment = -1;

	a.pixelTop = a.pixelTop + increment
	
	setTimeout('deroule_vertical(b,c)', 20);

	
}

function SL(texte)
	{
	a=document.getElementById(texte).style;
	if (a.pixelLeft>=-540)
		a.pixelLeft--;
	if (a.pixelLeft<-540)
		return;
	if (cpt1>20)
		{
		cpt1=0;
		return;
		}
	cpt1++;
	b=texte;
	setTimeout('SL(b)', 1);
	}
// La fonction qui fait défiler le menu vers la droite
cpt2=0;
function SR(texte)
	{
	a=document.getElementById(texte).style;
	if (a.pixelLeft<=3)
		a.pixelLeft++;
	if (a.pixelLeft>3)
		return;
	if (cpt2>20)
		{
		cpt2=0;
		return;
		}
	cpt2++;
	b=texte;
	setTimeout('SR(b)', 1);
	}
	
	
	
// le fade des images	
function Fadein()
{
if (cur.filters.alpha.opacity<35) 
	cur.filters.alpha.opacity =35;
if (cur.filters.alpha.opacity>100) 
	cur.filters.alpha.opacity =100;
cur.filters.alpha.opacity=cur.filters.alpha.opacity+which;
vitessedefil = setTimeout("Fadein()", 50);
}

function Fadeout(arg1,arg2)
{
which=arg1;
cur=arg2;
}

var new_win;
new_win=true;

// ouverture de la fenêtre pr afficher les images : on y passe en paramètres le chemin, la hauteur et la largeur de l'image
function Aff(lg, ht, nom)
 {
 lg=lg+20;
 ht=ht+40;
 test(new_win)
 new_win=open("images.asp?NOM="+nom,"ot_fen","location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=no,width="+lg+",height="+ht+",left=200,top=200");
 new_win.focus();
 }
 
 function Aff100V(nom)
  {
  test(new_win)
  new_win=open("images100V.asp?NOM="+nom,"ot_fen","location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=no,width=800,height=600,left=0,top=0");
  new_win.focus();
 }
  function Aff100H(nom)
   {
   test(new_win)
   new_win=open("images100H.asp?NOM="+nom,"ot_fen","location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=no,width=800,height=600,left=0,top=0");
   new_win.focus();
 }
 function Presente(nom)
 {
 document.location=nom;
 }
function test(fenetre)
 {
 if (fenetre.open)
  {
  parent.focus ();
  fenetre.close();
  }
 }
