Animate Function
animate() must advance the frame
counter, update the image and
schedule the next timer …
var frame=0, timeID;
function animate(){
   frame=(frame+1)%4; //advance
   document.images[0].src
     = prefetch[frame].src; //update
   timerID=setTimeout("animate()",30);
}