// 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/home-off.gif";
n1h = new Image;
n1h.src = "../gfx/button/home-on.gif";

n2 = new Image;
n2.src = "../gfx/button/uns-off.gif";
n2h = new Image;
n2h.src = "../gfx/button/uns-on.gif";

n3 = new Image;
n3.src = "../gfx/button/unternehmen-off.gif";
n3h = new Image;
n3h.src = "../gfx/button/unternehmen-on.gif";

n4 = new Image;
n4.src = "../gfx/button/agenturen-off.gif";
n4h = new Image;
n4h.src = "../gfx/button/agenturen-on.gif";

n5 = new Image;
n5.src = "../gfx/button/aktuelles-off.gif";
n5h = new Image;
n5h.src = "../gfx/button/aktuelles-on.gif";

n6 = new Image;
n6.src = "../gfx/button/kontakt-off.gif";
n6h = new Image;
n6h.src = "../gfx/button/kontakt-on.gif";

n7 = new Image;
n7.src = "../gfx/button/presse-off.gif";
n7h = new Image;
n7h.src = "../gfx/button/presse-on.gif";

n8 = new Image;
n8.src = "../gfx/button/sitemap-off.gif";
n8h = new Image;
n8h.src = "../gfx/button/sitemap-on.gif";

n9 = new Image;
n9.src = "../gfx/button/impressum-off.gif";
n9h = new Image;
n9h.src = "../gfx/button/impressum-on.gif";

n10 = new Image;
n10.src = "../gfx/button/glossar-off.gif";
n10h = new Image;
n10h.src = "../gfx/button/glossar-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;
}