jQuery Slideshow won't Loop
<p>I know that similar questions have been asked before, but I am very much a rookie with my jQuery, and I cannot seem to get any of the solutions to work, so please forgive my naivety. I have created a very simple slideshow, but when the last slide is shown, it does not loop back to the beginning, it simply fades out. How can I make it loop continuously?</p>

<pre><code>$(document).ready(function(){
  $(".featured &gt; div:gt(0)").hide();

  setInterval(function() {
    $('.featured &gt; div:first')
    .fadeOut(2000)
    .next()
    .fadeIn(2000)
    .end()
    .replaceWith();
  }, 4000);

});
</code></pre>
