Problem with loop function

Problem with loop function

Hi,

I'm a bit of a jquery newbie but I'm having a problem with something. I have some effects being run on html tags which fade them in, delay, fade out, typewriter text, etc. What I'm trying to do is once the last effect is finished for everything to fade out for a couple of seconds, fade back in again and begin over again, having it keep looping. Any ideas would be much appreciated...

  1. $(document).ready(function(){

    $('.flashline1 span').fadeIn(400).delay(500).fadeOut(400).delay(500).fadeIn(400).delay(500).fadeOut(400).delay(500).fadeIn(400);
    $('.flashline2 span').delay(3700).fadeIn(1);
    setTimeout( "$('.flashline2 span').jTypeWriter({duration:0.7,loop:true,loopDelay:5,type:'word'});", 3700);
    $('.flashline3 span').delay(5000).fadeIn(400);
    $('.flashline4 span').delay(5700).fadeIn(1);
    setTimeout( "$('.flashline4 span').jTypeWriter({duration:0.7,loop:true,loopDelay:5});", 5700);

    })