var boucle;



function defile(sens,position)
{

		document.getElementById('haut').style.backgroundPosition = position+"px 0px";
		
		//+ = droite       - = gauche
		
		if(position < (screen.width-1664) && sens == "-")
		{
		
		    sens = "+";
		
		}
		
		if(position >= 0 && sens == "+")
		{
		
		    sens = "-";
		
		}
		
		if(sens == "+")
		{
		
		    boucle = setTimeout("defile('+',"+(position+1)+")",100);
		
		}
		else
		{
		
		    boucle = setTimeout("defile('-',"+(position-1)+")",100);
		
		}

}


if(screen.width < 1600)
{

    defile("-",0);

}

function AfficheAutre(option)
{

    if(option.options[option.selectedIndex].value == 0)
		{
		
		    document.getElementById("autre").style.display="inline";
			
		}
		else
		{
		
		    document.getElementById("autre").style.display="none";
		
		}

}

function OuvreGrand(photo)
{

		var photo = window.open("page/affichephoto.php?photo="+photo,"photo"," width=200, height=200, toolbar=no, menubar=no, scrollbars=no, adressbar=no, resizable=no, location=no, directories=no, status=yes");
    photo.focus();

}
