$(function() {
  //More Button
  $('.more').live("click",function() 
  {
    var ID = $(this).attr("name");
    if(ID)
    {
      $("#morebox"+ID).html('<img src="load.gif" />');

      $.ajax({
        type: "POST",
        url: "more.php",
        data: "lastmsg="+ ID, 
        cache: false,
        success: function(html){
          $("div#updates").append(html);
          $("#morebox"+ID).remove();
          }
      });
    }
    else
    {
      $(".morebox").html('No more bleats!');
    }
    return false;
    });
});