HELP!

HELP!

I am very new to this, reasonably competent in HTML and CSS.

I need to change this from an 'on click' function, to automatically move every 4-5 seconds.
Whats more, if possible, I would like to change it further by having each object move back slightly then to accelerate off the screen instead of leave at a fixed rate of speed.

Is this possible?

  1.   $('.box').click(function() {
  2.     $('.box').animate( function() {
  3.         if ($(this).offset().left < 0) {
  4.             $(this).css("left", "150%");
  5.         }
  6.     });

  7.     $(this).animate({
  8.          left: '-50%'
  9.      }, 500);
  10.  
  11.      if ($(this).next().size() > 0) {
  12.          $(this).next().animate({
  13.              left: '50%'
  14.          }, 500);
  15.      } else {
  16.          $(this).prevAll().last().animate({
  17.              left: '50%'
  18.          }, 500);
  19.      }
  20. });