
/*
var NS4 = (document.layers) ? 1 : 0;
var IE4 = (document.all) ? 1 : 0;
var ver4 = (NS4 || IE4) ? 1 : 0;
var DomYes=(document.getElementById)?1:0;
var useMenu = (IE4 || DomYes) ? 1:0;
*/

var useMenu = (navigator.appName.indexOf("Microsoft")>-1) ? 1:0;
useMenu = true;

document.write("<STYLE TYPE='text/css'><!--");
document.write(".parent { display:block;}");
if (useMenu)
	document.write(".child { display:none;}");
else
	document.write(".child { display:block;}");
document.write("--></STYLE>");

//give netscape 4 & ie 4 a document.getElementById function!
if (!document.getElementById) {
  document.getElementById = function(strID) {
    if (document.layers) return document[strID];
    if (document.all) return document.all[strID];
    return null;    // expect the unexpected
  }
}

function expandAllPanels( nbr, status )
{
   for( i=1; i<=nbr; i++ )
   {
      var el = "div"+i;
      var imgName = 'imEx'+el;
	   var elName = el+'Child';

      var whichEl = document.getElementById(elName);
	   var whichIm = document.getElementById(imgName);

      if( status ) {
         whichEl.style.display = "block";
         whichIm.src = "../img/farrow_down.gif";
      } else {
         whichEl.style.display = "none";
         whichIm.src = "../img/arrow_up.gif";
      }
   }

   return false;
}

function expandIt(el)
{
   if (!useMenu) return;

	var imgName = 'imEx'+el;
	var elName = el+'Child';
	var whichEl = document.getElementById(elName);
	var whichIm = document.getElementById(imgName);

   if(whichEl.style.display != "block") {
      whichEl.style.display = "block";
      whichIm.src = "../img/arrow_down.gif";
   } else {
      whichEl.style.display = "none";
      whichIm.src = "../img/arrow_up.gif";
   }
}
