if(document.images)
{
  var image_array = new Array();

  // path to the directory with images
  var path = '/videos/';

  // enumeration of the "active" images
    image_array[0] = path + "001_thmb.jpg";
    image_array[2] = path + "002_thmb.jpg";
    image_array[3] = path + "003_thmb.jpg";
    image_array[4] = path + "004_thmb.jpg";
    image_array[5] = path + "005_thmb.jpg";
    image_array[6] = path + "006_thmb.jpg";
    image_array[7] = path + "007_thmb.jpg";
    image_array[8] = path + "008_thmb.jpg";
    image_array[9] = path + "009_thmb.jpg";
    image_array[10] = path + "010_thmb.jpg";
    image_array[11] = path + "011_thmb.jpg";
    image_array[12] = path + "012_thmb.jpg";
    image_array[13] = path + "001_thmb_on.jpg";
    image_array[14] = path + "002_thmb_on.jpg";
    image_array[15] = path + "003_thmb_on.jpg";
    image_array[16] = path + "004_thmb_on.jpg";
    image_array[17] = path + "005_thmb_on.jpg";
    image_array[18] = path + "006_thmb_on.jpg";
    image_array[19] = path + "007_thmb_on.jpg";
    image_array[20] = path + "008_thmb_on.jpg";
    image_array[21] = path + "009_thmb_on.jpg";
    image_array[22] = path + "010_thmb_on.jpg";
    image_array[23] = path + "011_thmb_on.jpg";
    image_array[24] = path + "012_thmb_on.jpg";

  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 = '/videos/' + filename;
  document.images[name].src = fullpath;
}
