//// ---------------- animated rollover code ------------------

var index=0;    // global declaration
var speed=100;  // speed of animation frame delay in milliseconds
var max=11;      // number of images in animation


	
function MakeImageArray(n) // creates the image array from 0 to n
		{
	    if (document.images)
		   {
			  this.length = n;
			  for (var i = 0;i<=n;i++)
			       {
			       this[i]=new Image();  
			       }
			  return this
			 }
 		}
 		


function MakeArray(n) 
     {
		this.length = n
            for (var i = 0; i<=n; i++) 
				{
                 this[i] = false;
            }
         return this
     }
 
 
function runfwd() // runs through frames 1 to 11
 	{
 	index=1;
	speed=100;
 		for (i=0;i<=max;i++)
 			{
			time=setTimeout('forward()',speed*i);
 			}
 			clearTimeout(time);
			
	 }
	 
	 

	 
	 
 
function forward()
	{
	if(document.images)
		{
		if(index>0&&index<=max)
			{
			document.images['pic'].src=pic[index].src;
			index++;
			}
		}
	}
	
	
	
function runback()  // runs through frames 11 to 1
 	{
 	index=max;
	speed=100;
 	for (i=0;i<=max;i++)
 		{
		time=setTimeout('back()',speed*i);
 		}
 		clearTimeout(time);
	 }
	 
	 
function back()
	{
	if(document.images)
		{
		if(index>0&&index<=max)
			{
			document.images['pic'].src=pic[index].src
			index--;
			}
		}
	}
	  
	
function nowhere() // dummy URL because we aren't going anywhere
 	{
 	}
 
 
	 
//// -----------------------------------------------------
// -->
