function show_and_hide(id) {
  var tag = $(id);
  if(tag.css("display") == "none") {
    tag.show('slow');
  } else {
    tag.hide('slow');
  }
}
