Fading slideshow Javascript
<p>There are tons of fading slideshows to copy and paste.. but I want to understand how it all works... So I have this working slideshow in JavaScript. How do I add a fade effect to it? Can it be done by adding the jquery fadeOut() method? 
Thanks in advance!</p>

<pre><code>var counter = 0;

function slideShow() {
var pics = [6];

pics[0] = "bilder/1.jpg";
pics[1] = "bilder/2.jpg";
pics[2] = "bilder/3.jpg";
pics[3] = "bilder/4.jpg";
pics[4] = "bilder/5.jpg";
pics[5] = "bilder/6.jpg";

document.getElementById('bildspelsrc').src = pics[counter];

counter++;
if (counter % 6 == 0) counter = 0;
}

setInterval(slideShow,1000);
</code></pre>
