browserName = navigator.appName;
browserVer=parseInt(navigator.appVersion);
  if ((browserName=="Netscape" && browserVer>=3)||(browserName=="Microsoft Internet Explorer" && browserVer>=4))version="n3";
     else version="n2";
     
  if (version=="n3")
	window.OnError = null;

   var IE;          // 1 if browser is Internet Explorer
   var NETSCAPE;    // 2 if browser is NetScrape
   var NETSCAPE6;   // 1 if browser is NetScape 6
   var showing;     // Current popup showing, if any
   var on_link;     // 1 if pointer is on a nav link
   var the_time;    // Keeps track of a temporary "time"
   var out_time;    // The "time" the last mouseout occured

   if(document.all)    { IE=1; }
   if(document.layers) { NETSCAPE=1; }
   if(document.getElementById) { NETSCAPE6=1;}

   showing  = "";//"mainx";
   the_time = 1;
   out_time = 1;
   on_link  = 0;

   setTimeout("time_out()", 1000);

   function show(id_name) 
   {
      window.OnError = null;
      hide();
      showing = id_name;
      set_on_link(1);
      if(id_name == "") 
      {
         return null;
      }
      if(IE) 
      {
         document.all[id_name].style.visibility = "visible";
//         document.write = "Internet Explorer"
//         document.all["home"].style.visibility = "hidden";
      }
      if(NETSCAPE) 
      {
         document.layers[id_name].visibility = "show";
//         document.layers['home'].style.visibility = "hide";
      }
      if(NETSCAPE6) 
      {
       // var obj = document.getElementById(showing);
       // obj.style.visibility = "visible";
         document.getElementById(showing).style.visibility = "visible";
      }
      return null;
   }

   function hide() 
   {
      window.OnError = null;
      if(showing != "") 
      {
         if(IE) 
         {
            document.all[showing].style.visibility = "hidden";
//            document.all["main"].style.visibility = "visible";
         }
         if(NETSCAPE) 
         {
            document.layers[showing].visibility = "hide";
         }
         if(NETSCAPE6) 
         {
//            var obj = document.getElementById(showing);
//            obj.style.visibility = "hidden";
            document.getElementById(showing).style.visibility = "hidden";
         }
      }
      showing = "";
   }

   function time_out() 
   {
      window.OnError = null;
      the_time ++;
      if(on_link == 0 && showing != "" && the_time >= out_time + 1) 
      {
         hide();
      }
      if(the_time >= 30000) 
      {
         the_time = 0;
         out_time = 0;
      }
      setTimeout("time_out()", 2500);
   }

   function set_on_link(flag) 
   {
      window.OnError = null;
      on_link = flag;
      out_time = the_time;
   }

   function reset_on_exit() 
   {
      window.OnError = null;
      showing = "";
      the_time = 1;
      out_time = 1;
      on_link = 0;
   }