loop start quicker
<p>I would like this function to begin quicker once it ends. Thanks.</p>

<p>demo: <a href="http://jsfiddle.net/RuX5d/5/" rel="nofollow">http://jsfiddle.net/RuX5d/5/</a></p>

<p>Here is an actual timing I am currently using: <a href="http://jsfiddle.net/RuX5d/51/" rel="nofollow">http://jsfiddle.net/RuX5d/51/</a></p>

<pre><code>$(document).ready(function() {
var i = 1, dir = 1, curFx = 'fadeIn';
var interval = setInterval(function () {
    if (i == 6 &amp;&amp; $('#slide1').is(':visible')) {
        $('#slide1').fadeOut(2000);             
        return;
    }

    $('#slide'+ i)[curFx](500);

    i = i + 1*dir;

    if (i == 10 || i == -1) {
        dir = (dir == 1)?-1:1;
        curFx = (curFx == 'fadeIn')?'fadeOut':'fadeIn';
    }        
}, 1000);
});
</code></pre>
