Take a look at the Multiblink example in the Playground - it lets you set up the patterns in a table and you should be able to modify it to do what you need.
There was also an updated version here http://arduino.cc/forum/index.php/topic,120100.0.html that was more flexible, but you probably don't need the flexibility.