What about using just a single loop, rules? Output the title/message/anchor for everything and then a field to tell the template when to create ul tags to nest them.