var ns = (navigator.appName == 'Netscape');
var gen3 = (parseInt(navigator.appVersion) >= 3 && parseInt(navigator.appVersion) < 4);
var ns4 = (ns && parseInt(navigator.appVersion) >= 4 && parseInt(navigator.appVersion) < 5);
var ns5 = (ns && parseInt(navigator.appVersion) >= 5 && parseInt(navigator.appVersion) < 6);
var ie = (navigator.appName == 'Microsoft Internet Explorer')
var show="visible";
var hide="hidden";
var xoxo1 = "";
var xoxo2 = "";

if (ie) {
  xoxo1 = "all.";
  xoxo2 = "style.";
}

if (ns4) {
  show="show";
  hide = "hide";
}

window.openDiv = 0;

function nextMenu(divNum) {
  nextDiv = divNum+1;
  if ( (ns4) || (ie))
    eval ('document.'+xoxo1+'pulldown'+divNum+'.'+xoxo2+'visibility=\"'+hide+'\"');
  else
    eval ('document.getElementById("pulldown'+divNum+'").style.visibility =\"'+hide+'\"');

  window.openDiv = 0;
  if (window.maxNum >= nextDiv) {
    window.openDiv = nextDiv;
  if ( (ns4) || (ie))
      eval ('document.'+xoxo1+'pulldown'+nextDiv+'.'+xoxo2+'visibility=\"'+show+'\"');
  else
      eval ('document.getElementById("pulldown'+nextDiv+'").style.visibility =\"'+show+'\"');
  }
}
  
function showMenu() {
  if (window.openDiv > 0) {
    hideMenu();
  } else {
   if ( (ns4) || (ie))
     eval ('document.'+xoxo1+'pulldown1.'+xoxo2+'visibility=\"'+show+'\"');
   else
     eval ('document.getElementById("pulldown1").style.visibility =\"'+show+'\"');
   window.openDiv = 1;
   }
}

function hideMenu() {
  if (window.openDiv > 0) {
    if ( (ns4) || (ie))
      eval  ('document.'+xoxo1+'pulldown'+window.openDiv+'.'+xoxo2+'visibility=\"'+hide+'\"');
    else
	  eval ('document.getElementById("pulldown'+window.openDiv+'").style.visibility =\"'+hide+'\"');
	  window.openDiv = 0;
  }
}

function open_win(some_url,widthxo,heightxo) {
if (!window.mod_subject)
  eval ("window.open(some_url,'mod_subject','width="+widthxo+",height="+heightxo+"')");
}