Problems with FadeIn and FadeOut images
<p>I have a fade script, but the images ar not fading nicely. 
First of all the first image fade out and than the next image fade in. Between the fading you see nothing. I want that the images fade-out and fade-in at the same time.</p>

<p>Does anybody knows how to fix it?
I think i have to edit some lines below.</p>

<pre><code>for (var i = 0; i &lt; slider.num; i++) {
   if(i == slider.cur || i == pos) continue;
   jQuery('#' + d[i].id).hide();
}

if(slider.cur != -1){
   jQuery('#' + d[slider.cur].id).stop(false,true);
   jQuery('#' + d[slider.cur].id).fadeOut(slider.fade_speed ,function(){
      jQuery('#' + d[pos].id).fadeIn(slider.fade_speed);
   });
}
else
{
   jQuery('#' + d[pos].id).fadeIn(slider.fade_speed);
}
</code></pre>
