Taconite timeout question

Taconite timeout question

Hi,

I'm really green in JQuery but I've implemented a slideshow using some of the great JQuery features but currently I'm stucked and can't find the way to make the following to work properly as I wanted. Thanks in advance for any help or suggestion.

What I need is, instead of running this all at the same time, I would like to run each of the $.get cmd after a 4 seconds timeout.

$(function () {
for(i=5;i<9;i++){
$.get('<?php echo $this->baseurl ;?>/modules/mod_jsplashes/extend.php?nextimg='+i+'&ts='+new Date().getTime());
}
});


I've tried to put the timeout function but probably in the wrong format and/or place and it generates a script error.

Thanks for any help