// Nav.js
// algemene navigatie routines

var active="";
var bLoaded=false;
var gotoPage="";


function setVariables(){
 if (navigator.appName == "Netscape") {
  horz=".left";
  vert=".top";
  visShow="'show'";
  visHide="'hide'";
  docStyle="document.";
  styleDoc="";
 }else{
  horz=".pixelLeft";
  vert=".pixelTop";
  visHide="'hidden'";
  visShow="'visible'";
  docStyle="";
  styleDoc=".style";
 }
}
setVariables();

function showLayer(sName) {
  if (sName!='') {
    eval(docStyle+ sName + styleDoc + '.visibility=' + visShow);
  }
}
function hideLayer(sName) {
  if (sName!='') {
    eval(docStyle+ sName + styleDoc + '.visibility=' + visHide);
  }
}
function isVisible(sName) {
return (active == sName);
}

function Go(s) {
  if (bLoaded==false) {
    gotoPage=s;
  } else {
    if (s!=active) {
      showLayer(s);
      hideLayer(active);
      active=s;
    }
    gotoPage='';
  }
}
function init() {
// bug IE 4 > layer zijn niet geladen bij uitvoeren script
  bLoaded = true;
  window.parent.NavLoaded();
  if (gotoPage!='') {
    Go(gotoPage);
    gotoPage="";
  }
}

