<!--



browserVer = false;


// browser test:
function initialize() {

 if (document.images) {

  // preload universal images:

  crystalAqua = new Image(116, 116);
  crystalAqua.src = "images/jpg/crystal-aqua.jpg";

  crystalBlue = new Image(116, 116);
  crystalBlue.src = "images/jpg/crystal-blue.jpg";

  crystalGreen = new Image(116, 116);
  crystalGreen.src = "images/jpg/crystal-green.jpg";

  crystalPurple = new Image(116, 116);
  crystalPurple.src = "images/jpg/crystal-purple.jpg";

  crystalRed = new Image(116, 116);
  crystalRed.src = "images/jpg/crystal-red.jpg";

  crystalYellow = new Image(116, 116);
  crystalYellow.src = "images/jpg/crystal-yellow.jpg";

  crystalDorje = new Image(116, 116);
  crystalDorje.src = "images/jpg/crystal-dorje.jpg";

  browserVer = true;

 }

}


// hiLite does an instantaneous swap of the image
function hiLite(imgDocID,imgObjName) {

 // manages mouseOver animations
 // imgDocID - the name or number of the document image to be replaced
 // imgObjName - the name of the image object to be swapped in

 if (browserVer) {
  document.images[imgDocID].src = eval(imgObjName + ".src");
 }

}


// showImage uses a blend transition when swapping images and can be set
// for a specific duration
function showImage(imgDocID,imgObjName, time) {
 // manages mouseOver animations
 // imgDocID: the name or number of the document image to be replaced
 // imgObjName: the name of the image object to be swapped in
 // time: the duration in seconds of the filter transition

 if (!browserVer) return;

 if (document.images.crystal.filters) {
  document.images.crystal.filters[0].Stop();
  document.images.crystal.style.filter = "blendTrans(duration=" + time + ")";
  document.images.crystal.filters[0].Apply();
 }
 document.images[imgDocID].src = eval(imgObjName + ".src");
 if (document.images.crystal.filters)
  document.images.crystal.filters[0].Play();

}





// -->
