ns4 = (document.layers)? true:false
ie = (document.all)? true:false
ns6 = (document.getElementById)? true:false
function init() {
 if (ns4) {
  l1 = document.menu1;
  l2 = document.menu2;
  l3 = document.menu3;
 
  bl1 = document.button1;
  bl2 = document.button2;
  bl3 = document.button3;
 }
 if (ie)  {
  l1 = menu1.style;
  l2 = menu2.style;
  l3 = menu3.style;
  bl1 = button1.style;
  bl2 = button2.style;
  bl3 = button3.style;
 }
 if (ns6)  {
  l1 = document.getElementById("menu1").style;
  l2 = document.getElementById("menu2").style;
  l3 = document.getElementById("menu3").style;
  bl1 = document.getElementById("button1").style;
  bl2 = document.getElementById("button2").style;
  bl3 = document.getElementById("button3").style;
 }
}
function showObject(obj) {
 if (ns4) obj.visibility = "show"
 else obj.visibility = "visible"
}
function hideObject(lay) {
 but = eval('b'+lay);
 lay = eval(lay);
 hideIt(but);
 hideIt(lay)
}
function hideIt(obj) {
 if (ns4) {
   obj.visibility = "hide";
 } else {
  obj.visibility = "hidden";
 }
}
function showMetamenu(theLayer) {
 if (ns4) theOne = eval("document."+ theLayer);
 if (ie) theOne = eval(theLayer+".style");
 if (ns6) theOne = eval("document.getElementById(\""+ theLayer +"\").style");
 if (ns4) {
  theOne.visibility = "show";
 } else {
  theOne.visibility = "visible";
 }
}
function hideMetamenu(theLayer) {
 if (ns4) theOne = eval("document."+ theLayer);
 if (ie) theOne = eval(theLayer+".style");
 if (ns6) theOne = eval("document.getElementById(\""+ theLayer +"\").style");
 if (ns4) {
  theOne.visibility = "hide";
 } else {
  theOne.visibility = "hidden";
 }
}