ref_int=null;
topvar=140;
rect_up=0;
rect_down=355;
scroll_amount=5;

with(document.getElementById('conteneur'))
   {
   style.overflow="hidden";
   style.position="absolute";
   style.left="0";
   style.top="140px";
   style.width="450px";
   style.height="5000px";
   style.clip="rect(0px, 450px, 355px, 0px)";
   }
   
with(document.getElementById('defilant'))
   {
   style.width="440px";
   }
   
with(document.getElementById('blocscroll'))
   {
   style.visibility="visible";
   }
   
function scrollh()
   {
   if(ref_int==null)
      {
      ref_int=setInterval("int_up()", 75)
      }
   }
   
function int_down(minvar)
   {
   if(parseInt(document.getElementById('conteneur').style.top)<=minvar)
      {
      stop_it();
      }
   else
      {
	  rect_up+=scroll_amount;
      rect_down+=scroll_amount;
      document.getElementById('conteneur').style.clip="rect("+String(rect_up)+"px, 450px,"+String(rect_down)+"px, 0px)";
      document.getElementById('conteneur').style.top=String(parseInt(document.getElementById('conteneur').style.top)-scroll_amount)+"px";
      }
   }
   
function scrollb(minvar)
   {
   if(ref_int==null)
      {
      ref_int=setInterval("int_down("+minvar+")", 75)
      }
   }
   
function int_up()
   {
   if(parseInt(document.getElementById('conteneur').style.top)>=topvar)
      {
      stop_it();
      }
   else
      {
	  rect_up-=scroll_amount;
      rect_down-=scroll_amount;
      document.getElementById('conteneur').style.clip="rect("+String(rect_up)+"px, 450px,"+String(rect_down)+"px, 0px)";
      document.getElementById('conteneur').style.top=String(parseInt(document.getElementById('conteneur').style.top)+scroll_amount)+"px";
      }
   }
   
function scrollhh()
	{
	document.getElementById('conteneur').style.clip="rect(0px, 450px,355px, 0px)";
    document.getElementById('conteneur').style.top="140px";
    rect_up=0;
    rect_down=355;
	}
	
function scrollbb(minvar)
	{
	rect_up=String(parseInt(140-minvar));
    rect_down=String(parseInt(495-minvar));
	document.getElementById('conteneur').style.clip="rect("+rect_up+"px, 450px,"+rect_down+"px, 0px)";
    document.getElementById('conteneur').style.top=minvar+"px";
	}

function stop_it()
   {
   clearInterval(ref_int);
   ref_int=null;
   }
