// Image Functions
// changeImage() and preload() functions for rollovers and GIF animation
// 19990326

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function PreLoad(ImgObj, ImgSrc)
{
  if(document.images)
  {
    eval(ImgObj+' = new Image()')
    eval(ImgObj+'.src = "'+ImgSrc+'"')
  }
}

function ChangeImage(Layer, ImgName, ImgObj)
{
  if(document.images)
  {
    if(document.layers && Layer != null) eval('document.layers["'+Layer+'"].document.images["'+ImgName+'"].src = '+ImgObj+'.src')
    else document.images[ImgName].src = eval(ImgObj+".src")
  }
}

