menus_status_array = new Array ();

function showHideSwitch (theid) {
  if (document.getElementById) {
    var switch_id = document.getElementById(theid);
    if (menus_status_array[theid] != 'show') {
      switch_id.className = 'subcatmenu';
	  menus_status_array[theid] = 'show';
	  document.cookie = theid+'=show';
    }else{
      switch_id.className = 'hideSwitch';
	  menus_status_array[theid] = 'hide';
    }
  }
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}