Need help on my jquery code: fade in and out to new image
<p>I need help on fading in and out 3 images. Once the third image fades out the page will redirect.</p>

<pre><code>&lt;img src="images/slide1.jpg" alt="Example" id="slideshow" /&gt;
&lt;script&gt;
$(function() {

$('#slideshow').fadeIn(3000, function() {
$(this).delay(1000).fadeOut(2000, function() { window.location = 'http://google.com/'; });
});

});
&lt;/script&gt;
</code></pre>
