
// images.js --  David A. Kodama

   var frame= 0;			// current frame no.
	var framecount= 1;    // init total number of frames to default
	
   function init(frames) {
		framecount= frames;
//      images= new Array(frames)
      for (var i=0; i<frames; i++) {
         images[i]= new Image()
      }
   }
	
   function Labels(i) {
      document.pic1.src= images[i].src;
		frame= i;
   }
	
   function Animate() {
		Labels(frame);
		frame++;
		if (frame>=framecount) {
			frame= 0;
		}
   }
	var AnimationTimer
	function StartAnimation() {
		AnimationTimer= self.setInterval("Animate()",5000);
	}
	function StopAnimation() {
		AnimationTimer= self.clearInterval(AnimationTimer);
	}
	
	Labels(0);
	StartAnimation();
