delay = 50;
imageNum = 1;
stopflag=false;
// Preload animation images
theImages = new Array();
for(i = 1; i < 42; i++) 
{
theImages[i] = new Image();
theImages[i].src = "enzframes/f" + i + ".gif";
}

function animate() 
{
document.animation.src = theImages[imageNum].src;
if (stopflag==false)
imageNum++;
if(imageNum > 41) 
{
imageNum = 1;
}
}
function stop() 
{
stopflag=true;
}
function startagain(timegap) 
{
stopflag=false;
delay = timegap;

}
function stepon() 
{
stopflag=true;
imageNum++;
if(imageNum > 41) 
{
imageNum = 1;
}
}
function backone() 
{
stopflag=true;
imageNum--;
if(imageNum < 1) 
{
imageNum = 41;
}
}

function slower() 
{
stopflag=false;
delay+=50;
if(delay > 4000) delay = 4000;
}
function faster() 
{
stopflag=false;
delay-=25;
if(delay < 0) 
{
delay = 0;

}
}

