$(function(){
  /* To show more:
   * Hide the link.  
   * Show the "Close" link, which is next in the DOM.
   * Slide the div, which is next to the element that contains the link.
   * Reverse for hiding.
   */         
  function showMore(e) {
    $(this).hide().next().show().parent().next('div.moreDemos').show();
    return false;
  }
  
  function hideMore(e) {
    $(this).hide().prev().show().parent().next('div.moreDemos').hide();
    return false;
  }
  
  $(".moreDemos").hide();
  $(".hideMore").hide();
  $(".showMore").click(showMore);
  $(".hideMore").click(hideMore);
});
