if(document.images)
{
  var image_array = new Array();
	
  // path to the directory with img
  var path = '/img/';

  // enumeration of the "active" img
  image_array[0] = path + "home_on.gif";
  image_array[1] = path + "info_on.gif";
  image_array[2] = path + "registration_on.gif";
  image_array[3] = path + "race_schedule_on.gif";
  image_array[4] = path + "sponsor_on.gif";
  image_array[5] = path + "history_on.gif";
  image_array[6] = path + "volunteer_on.gif";
  image_array[7] = path + "contact_on.gif";

  var preload_image = new Array ();
 
  for(var i=0; i<image_array.length; i++)
  {
    preload_image[i]= new Image();
    preload_image[i].src = image_array[i];
  }
}


function rollover(name, filename)
{
  var fullpath = '/img/' + filename;
  document.images[name].src = fullpath;
}
