Hi I am wondering how to repeat a pattern until 5 seconds pass.  In

Hi I am wondering how to repeat a pattern until 5 seconds pass. In this example, I have colorwipes being counted until the condition is met and then it goes on. The problem is the various colorwipes and other functions will have different durations. This code strobes two colors for a few hundred times and then changes to a different strobe. I have looked at various examples of millis but cant figure it out.
http://pastebin.com/VMNvmSC5

Have you looked at these examples? They each demonstrate a different way of sequencing patterns:

Yes I played around with them. That way complicates it quite a bit. It takes flexibility away. I want to mix various colors into strobes and make a variety of sequences without having to make new voids defining each one. A simpler time based switch would be best. Like while time is < 5000, do two colorwipes fast, then move on to the next time counter with a rainbowfade for 5 seconds.