$(function() {
  var box  = $('#message_box');
  var size = null;
  var time = 7000;

  setInterval(function() {
    size = $('div.fukidashi', box).last().outerHeight(true);
    box.animate({
      marginTop : size + 'px'
    }, "slow", function(){
      box.css('margin-top', 0);
      $('div.fukidashi', box).last().hide().prependTo(box).fadeIn();
    });
  }, time);
});

