//  Copyright © 1999-2001 Red Hen Systems, Inc.
//              All Rights Reserved

// Javascript for placing images at specific locations
var image = new Array;
var ns = (document.layers);
var ie = (document.all);

function initImage()
{
  initializeImage(1, "scripts/images/highLight.gif", 343, 298);
}

function initializeImage(imageNo, source, width, height)
{
  var sString = ""
  var imageID = "imageID" + imageNo;
  if (ie)
    sString = "<IMG SRC=\"" + source + "\" ID=\"" + imageID + "\" STYLE=\"position:absolute; visibility:visible;\">";
  if (ns)
    sString = "<layer name=\"" + imageID + "\"><img src=\"" + source + "\" border=0></layer>";
  document.writeln(sString);
  if (ie)
    image[imageNo] = document.all(imageID);
  if (ns)
    image[imageNo] = document.layers(imageID);
  putImage1(imageNo, -5000, 0);
}

function putImage1(imageNo, aX, aY)
{
  var imageID = "imageID" + imageNo;
  if (ie)
  {
    image[imageNo].style.pixelLeft = aX;
    image[imageNo].style.pixelTop = aY;
  }
  if (ns)
  {
    document.layers[imageID].left = aX;
    document.layers[imageID].top = aY;
  }
}

