How to use more than one jQuery function/action?

How to use more than one jQuery function/action?

Hello,

I think my problem is just the way I am writing these two jQuery functions that is the issue, because my first one worked on its own until I tried adding in the second one - now neither will work. I don't necessarily want these events to happen at the same time, but want them both to happen, if that makes sense. Can anyone help me with how I am formatting this?

  1.   <script>
  2.                 $(document).ready(function() {
  3.                     var bodyHeight = $('body').height();
  4.                     var footerOffsetTop = $('#moving').offset().top;
  5.                     var topToBottom = bodyHeight - footerOffsetTop - $('#moving').outerHeight();

  6.                     $("#moving").delay(2000).animate({top: topToBottom,
  7.                     }, 800);
  8.                 }

  9.                 function () {
  10.                     $("#enter").fadeIn(10000);
  11.                 }
  12.                 }):
  13.             </script>