// browser test:
browserName =navigator.appName;
browserVer =parseInt(navigator.appVersion);
version = "looser";
if (browserName=="Netscape" && browserVer>=3) {
  version ="gut";
  }
if (browserName=="Microsoft Internet Explorer" && browserVer>=4) {
  version ="gut";
  }
// preload images with status monitoring;
if (version == "gut") {

n1 = new Image;
n1.src = "../gfx/button/akt_ausstellung_off.gif";
n1h = new Image;
n1h.src = "../gfx/button/akt_ausstellung_on.gif";

n2 = new Image;
n2.src = "../gfx/button/verg_ausstellung_off.gif";
n2h = new Image;
n2h.src = "../gfx/button/verg_ausstellung_on.gif";

n3 = new Image;
n3.src = "../gfx/button/galerie_off.gif";
n3h = new Image;
n3h.src = "../gfx/button/galerie_on.gif";

n4 = new Image;
n4.src = "../gfx/button/depot_off.gif";
n4h = new Image;
n4h.src = "../gfx/button/depot_on.gif";

n5 = new Image;
n5.src = "../gfx/button/wegbeschreibung_off.gif";
n5h = new Image;
n5h.src = "../gfx/button/wegbeschreibung_on.gif";

}
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 (version == "gut") {
    if (imgDocID != locked) {
      document [imgDocID].src = eval(imgObjName + ".src")
    }
    }
  }

// locks the pic, which was last clicked
locked = '';
lastimgDocID='';
lastImg='';

function lock(imgDocID,imgObjName) {
  locked = imgDocID;
  if ((lastimgDocID)&&(lastimgDocID != imgDocID)) {
    document[lastimgDocID].src = eval(lastImg+".src");
  }
  lastimgDocID = imgDocID;
  lastImg = imgObjName;
}
