var bV=parseInt(navigator.appVersion);
NS4=(document.layers) ? true : false;
IE4=((document.all)&&(bV>=4)) ? true : false;
DOM=(!document.layers && !document.all && bV>=4) ? true : false;
capable = (NS4 || IE4 || DOM) ? true : false;


function expandIt(el,expand_type) {
  if (IE4) {
    expandIE(el,expand_type);
  } else if(NS4) {
    expandNS(el,expand_type);
  } else if(DOM) {
    expandDOM(el,expand_type);
  }
}

function expandIE(el,expand_type) {

  whichEl = eval(el + "_options");
     
  if (whichEl.style.display=="none") {
     whichEl.style.display="block";
  } else {
     whichEl.style.display="none";
  }
	
}

function expandNS(el,expand_type) {
    
  whichEl = eval("document." + el + "_options");

  if (whichEl.visibility == "hidden") {
    whichEl.visibility = "show";
  } else {
    whichEl.visibility = "hidden";
  }

}

function expandDOM(el,expand_type) {

  whichEl = document.getElementById(el + "_options");

  if (whichEl.style.display=="none") {
     whichEl.style.display="block"; 
  } else {
     whichEl.style.display="none";
  }

}