var actif;
	var direction;
	var pas;
	function defilements(direction)
	{
		pas=0;

		if (direction=="haut")
		{
			
			var maxi=(-1 * parseInt(document.getElementById("bas_du_block").offsetTop))+ parseInt(document.getElementById("bas_du_block").style.top)+ parseInt(document.getElementById("bas_du_block").style.top) ;
			if (((parseInt(document.getElementById("defilement").style.top))) > maxi)
			{
				pas= -4;
			} 
			
		}
		if (direction=="bas")
		{
			if ((parseInt(document.getElementById("defilement").offsetTop)) < 0)
			{
				pas= 10;
			}
		}

		var position=parseInt(document.getElementById("defilement").style.top);
		var deplacement=position + pas ;
		deplacement += "px";
		document.getElementById("defilement").style.top=deplacement;

	}
	function haut()
	{
		actif = window.setInterval("defilements('haut')",30);
	}
	function bas()
	{
		actif = window.setInterval("defilements('bas')",30);
	}
	function stop()
	{
		window.clearInterval(actif);
	}
