// JavaScript Document

// This function expects two arguments, one is the image name and the other is the image source.
// The function is called from onmouseover and onmouseout event handlers and the two parameters are passed to it.
function roll(img_name, img_src)
   {
   document[img_name].src = "/images/" + img_src;
   }

// Example:

// simplePreload( '01.gif', '02.gif' ); 

function simplePreload()

{ 

  var args = simplePreload.arguments;

  document.imageArray = new Array(args.length);

  for(var i=0; i<args.length; i++)

  {

    document.imageArray[i] = new Image;

    document.imageArray[i].src = args[i];

  }

}


