<!--



browserVer = false;


// browser test:
if (document.images) {

 browserVer = true;

 // preload universal images:

 bookR1 = new Image(90,45);
 bookR1.src = "gifs/bookr.gif";
 bookR2 = new Image(90,45);
 bookR2.src = "gifs/bookrani.gif";

 bookL1 = new Image(90,45);
 bookL1.src = "gifs/bookl.gif";
 bookL2 = new Image(90,45);
 bookL2.src = "gifs/booklani.gif";

 hideStar = new Image(68,77);
 hideStar.src = "gifs/wings-disc.gif";
 showStar = new Image(68,77);
 showStar.src = "gifs/star.gif";

 coverOpen = new Image(457,342);
 coverOpen.src = "book/jpgs/bookopen.jpg";
 coverClosed = new Image(457,342);
 coverClosed.src = "book/gifs/bookcover.gif";

}


// 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.cover.filters) {
  document.images.cover.filters[0].Stop();
  document.images.cover.style.filter = "blendTrans(duration=" + time;
  document.images.cover.filters[0].Apply();
 }
 document.images[imgDocID].src = eval(imgObjName + ".src");
 if (document.images.cover.filters)
  document.images.cover.filters[0].Play();

}





// -->
