
if (document.getElementById) setM = function setM(name, y)
 { document.getElementById(name).style.marginTop  = y;}
else setM = function setM(){};

function timerInt()
{
  sheep ++;
  if (jE > 8)
  {
    logoY = (Math.sin((sheep/3) % Math.PI)*jE);
    setM('logopic', 0 - logoY);
    if ( ((sheep/3) % (Math.PI)) < ((sheep-1)/3) % (Math.PI)) jE = (jE / 2);
  }
}

var sheep = (Math.PI / 2)*3; // start on max. amplitude
var jE = 70;  // initial jumping energy
var logoY = 0;

function logojump()
{
  interrupt = window.setInterval('timerInt()',150)
}
