agent = navigator.userAgent;
browserVer = 2;
if (agent.substring(0,7) == "Mozilla")
{
  if (parseInt(agent.substring(8,9)) >= 3) {browserVer = 1;}
}
 if (browserVer == 1) 
{
        //Define the new images
  Off = new Image();
  On = new Image();
        //Load the images
  Off.src = "../Graphics/NoBall.gif";
  On.src = "../Graphics/Ball.gif";
}

function animBut(imgBase,imgLit) {
  if (browserVer == 1) 
  {
    document.images[imgBase].src = eval(imgLit + ".src")
  }
}
