//<!--
function DoLoad ()
{
 
  if (document.getElementById("Boule2"))
  {
    n = 0;
    InitMovingBoule();
  }

  if (document.getElementById("ZopMap"))
  {
    DoLoadZopMap();
  }
  
  if (document.getElementById("ZopVideoPlayer"))
  {
    DoLoadZopVideoPlayer();
  }
  
}

function DoUnLoad ()
{
  if (document.getElementById("ZopMap"))
  {
    DoUnLoadZopMap();
  }
}

function x (n)
{
  return screen.width * n / 1024;
}

function y (n)
{
  return screen.height * n / 768;
}

function InitMovingBoule ()
{
  x0 = -130;
  timer = setTimeout ("Move ()", 100);
}

function AddMove ()
{
  if (x0 < 140)
  {
    return 6;
  }
  if (x0 < 290)
  {
    return 5;
  }
  if (x0 < 370)
  {
    return 4;
  }
  if (x0 < 430)
  {
    return 3;
  }
  if (x0 < 470)
  {
    return 2;
  }
  if (x0 < 490)
  {
    return 1;
  }
  return 0;
}



function Move () 
{
  x0 += AddMove ();
  
  if (x0 > 490)
  {
    document.getElementById("Boule2").style.left = x0 + "px";
    clearTimeout (timer);
  }
  else
  {
    document.getElementById("Boule2").style.left = x0 + "px";
    timer = setTimeout ("Move ()", 1);
  }
}

//-->
