Looping a photo slideshow

Looping a photo slideshow

Hi all,

Very new to J query. I am trying to put together a very simple slideshow. So far i have five images, all i want them to do it fadeIn, delay, then fadeOut. The code i used is below

$(document).ready(function() { 
    $('#image_1').fadeIn(1500).delay(3500).fadeOut(2000);
    $('#image_2').delay(5000).fadeIn(2000).delay(3000).fadeOut(2000);
$('#image_3').delay(9500).fadeIn(2000).delay(3000).fadeOut(2000);
$('#image_4').delay(14000).fadeIn(2000).delay(3000).fadeOut(2000);
$('#image_5').delay(18500).fadeIn(2000);
});

All the images are position inside one Div and stacked using Z-index.

All i wish to do is infinitely loop the above. I am not sure if i have gone about the whole thing correctly.

Thanks in advance.