function marq(txt) {
   window.status = txt;
   return true;
}

function togglesearch() {
   if(window.navigator.vendor == "KDE") {
      window.location = "search.shtml";
      return;
   }

   if(document.getElementById("searchbox").className == "hidden") {
      document.getElementById("searchbox").className = "visible";
      if(document.isearch && document.isearch.words) {
         document.isearch.words.focus();
         document.isearch.words.select();
      }
   }

   else if(document.getElementById("searchbox").className == "visible")
      document.getElementById("searchbox").className = "hidden";
}

var oldElem;
var oldId;

function doswitch(id) {
   if(id != "1" && window.navigator.vendor != "KDE") {
      if(document.isearch && document.isearch.words)
         document.isearch.words.blur();
      document.getElementById("searchbox").className = "hidden";
   }

   if(id == "0") {
      if(oldId && (oldId != id) && (oldId != "0")) {
         oldElem = document.getElementById("menuslice"+oldId);
         oldElem.src = "images/menuslice" +oldId+ ".jpg";
         for(i = 1; oldElem = document.getElementById("interslice"+oldId+"-"+i); i++)
            oldElem.className = 'hidden';
      }
   }

   if(id != "0" ) {
      var newElem = document.getElementById("menuslice"+id);
      newElem.src = "images/menuslice" +id+ "-2.jpg";
   }

   if(oldId && (oldId != id) && (oldId != "0")) {
      oldElem = document.getElementById("menuslice"+oldId);
      oldElem.src = "images/menuslice" +oldId+ ".jpg";
   }

   for(var i = 1; newElem = document.getElementById("interslice"+id+"-"+i); i++) {
      newElem.className = 'visible'; }

   if(oldId && (oldId != id) && (oldId != "0")) {
      for(i = 1; oldElem = document.getElementById("interslice"+oldId+"-"+i); i++)
         oldElem.className = 'hidden';
   }

   if(id != "0")
   oldId = id;
   oldElem = document.getElementById("interslice"+id+"-1");
}

