
//menus_status_array = new Array ();	// global array, remembers if msg is collapsed or expanded ('show_replies' == expand, else == collapse)

function showHideSwitch (post_id) {
  if (document.getElementById) {
    var switch_id = document.getElementById(post_id);

    if (switch_id.className == 'hideSwitch') {
      switch_id.className = 'showSwitch';
    } else {
      switch_id.className = 'hideSwitch';
    }
  }
}

function showHideSwitchFolder (post_id) {
  if (document.getElementById) {
    var switch_id = document.getElementById(post_id);
    var folder_id = document.getElementById('folder' + post_id);

    if (switch_id.className == 'hideSwitch') {
      switch_id.className = 'showSwitch';
      folder_id.className = 'collapsefolderopen';		
    } else {
      switch_id.className = 'hideSwitch';
      folder_id.className = 'collapsefolderclosed';		
    }
  }
}

function destroyBlock( destroy_id ) {
	if (document.getElementById) {
	  var switch_id = document.getElementById(destroy_id);

	  switch_id.className = 'hideSwitch';
	}
}