<!--
var rollgondoleWait    = 5;
var rollgondole        = 0;
var currentgondole     = 1;
var RollGondoleEnabled = true;

/* on effecue la rotation des gondoles */
function hidegondole(aGondole){
  var d = document.getElementById('gondole_overlay_' + aGondole);
  d.style.display='none';
}

function viewgondole(aGondole){
  var d = document.getElementById('gondole_overlay_' + aGondole);
  d.style.display='block';
}

function hidegondolebtn(aGondole){
  var d = document.getElementById('gondole_btn_' + aGondole);
  d.className='gondole_btn gondole_btn_' + aGondole + '_off';
}

function viewgondolebtn(aGondole){
  var d = document.getElementById('gondole_btn_' + aGondole);
  d.className='gondole_btn gondole_btn_' + aGondole + '_on';
}

function SwitchGondole(aGondole, aAuto){
  if (aAuto == null)
   aAuto = true;

  if (aAuto == false) {
    StopRollGondole();
//    HidePlayGondoleVideo();
  }

  for(i=1;i<6;i++)  {
    if (i!=aGondole) {
      hidegondole(i);
    } else {
      viewgondole(aGondole);
    }
  }

  viewgondolebtn(aGondole);
  for(i=1;i<6;i++)  {
    if (i!=aGondole) {
      hidegondolebtn(i);
    } else {
      viewgondolebtn(aGondole);
    }
  }

}

function checkrollgondole(){
  rollgondole ++;

  if (RollGondoleEnabled==true)
    window.setTimeout("checkrollgondole()",1000)

  if (rollgondole>rollgondoleWait) {
    rollgondole = 0;
    currentgondole ++;
    if (currentgondole>5) currentgondole = 1;
    SwitchGondole(currentgondole);
  }
}

function refreshrollgondole(){
  currentgondole = 0;
}

function StopRollGondole(){
  RollGondoleEnabled = false;
}

function StartRollGondole(){
  RollGondoleEnabled = true;
  rollgondole        = 0;
  checkrollgondole();
}
// -->
