var Nbr = 1;

function Roll()
{
  Product_Print(Nbr);
  t = setTimeout("Roll()",3000);
  Nbr = Nbr + 1;
  if (Nbr == 5) { Nbr = 1; }
}

function Nbr_Set(Num)
{
  Nbr = Num;
  Product_Print(Nbr);
}
function Product_Print(Num)
{
  if(Num > 4) { Num = 1; }
  for(var X=1;X<=4;X++)
  {
    if(Num == X)
    { 
      document.getElementById('Prod_'+X).style.display = 'block';
      document.getElementById('Show_'+X).style.border = '1px solid black';
      document.getElementById('Show_'+X).style.backgroundColor = '#1cb5db';
      document.getElementById('Show_'+X).style.width = '385px';
      document.getElementById('Show_'+X).style.fontWeight = 'bold';
      document.getElementById('Prix_'+X).style.display = 'block'; 
    }
    else
    {
      document.getElementById('Prod_'+X).style.display = 'none';
      document.getElementById('Show_'+X).style.border = '0px';
      document.getElementById('Show_'+X).style.backgroundColor = 'lightgrey';
      document.getElementById('Show_'+X).style.width = '387px';
      document.getElementById('Show_'+X).style.fontWeight = 'normal';
      document.getElementById('Prix_'+X).style.display = 'none';
    }
  }
}
