<!--

menus_status_array = new Array ();// remembers state of switches
//img_close = 'images/btn-open.gif';
//img_open = 'images/btn-closed.gif';

function showHideSwitch (theid) {
  if (document.getElementById) {
    var switch_id = document.getElementById(theid);
    var imgid = theid+'_button';
    //var button_id = document.getElementById(imgid);
    if (menus_status_array[theid] != 'show') {
      //button_id.setAttribute ('src', img_close);
      switch_id.className = 'showSwitch';
	  menus_status_array[theid] = 'show';
    }else{
      //button_id.setAttribute ('src', img_open);
      switch_id.className = 'hideSwitch';
	  menus_status_array[theid] = 'hide';
    }
  }
}

function showHideSwitch_sub (theid) {
  if (document.getElementById) {
    var switch_id = document.getElementById(theid);
    var imgid = theid+'_button';
    //var button_id = document.getElementById(imgid);
    if (menus_status_array[theid] != 'show') {
      //button_id.setAttribute ('src', img_close);
      switch_id.className = 'subcats';
	  menus_status_array[theid] = 'show';
    }else{
      //button_id.setAttribute ('src', img_open);
      switch_id.className = 'subcats_hidden';
	  menus_status_array[theid] = 'hide';
    }
  }
}
//-->