
function toggleHelp () {
  if ($(this).text() == "Show Help")
    $(this).text("Hide Help");
  else
    $(this).text("Show Help");
  $(this).next().toggle(300);
}

function setUpHelp () {
  function helper () {
    var e = $("<a class='help_link'>Show Help</a>");
    e.click(toggleHelp);
    $(this).hide().before(e);
  }
  $(".field_help").map(helper);
}

$(document).ready(setUpHelp);

