/* ***********************************************************
** ROLLOVER.JS - JS Image Rollover library
** =======================================
** This library contains functions to perform image rollovers. 
** It's yours for free, but please maintain this header!
**
** To load this library in an HTML doc, put the following
** line in the doc's HEAD (before any other SCRIPT tags):
**
** <SCRIPT SRC="rollover.js" LANGUAGE="JavaScript"></SCRIPT>
**
** Author      Ver  Date    Comments
** ======      ===  ====    ========
** Rick Scott  1.0  1/1/00  First release
**
** Copyright 2000, Rick Scott, all rights reserved.
*********************************************************** */

/* ***********************************************************
** Functions
** =========
** preloadImg(imgObjName, imgURL)
**   loads imgURL into the browser's cache
**   imgObjName - name of Image object
**   imgURL - URL (absolute or relative) of image file
** displayImg(imgObjName, imgTagName)
**   display imgObjName image in imgTagName <IMG> tag
**   imgObjName - name of Image object
**   imgTagName - NAME attribute of <IMG> tag
*********************************************************** */

function preloadImg(imgObjName, imgURL)  // load imgURL into browser's cache
  {
  if (document.images)
    {
    eval(imgObjName + " = new Image()");
    eval(imgObjName + ".src = imgURL");
    }
  }

function displayImg(imgObjName, imgTagName)  // disp imgObjName in imgTagName
  {
  if (document.images)
    document[imgTagName].src = eval(imgObjName + ".src");
  }

