function1(){
bla bla bla
setTimeout('function2()',5000);
}
function2(){
bla bla bla
setTimeout('function3()',5000);
}
...
...
function5(){
bla bla bla
setTimeout('function1()',5000);
}