Race For Your Life, Mac & Bloo. It was a season 6 episode. Mac and Bloo race each other across town to see who arrives at Foster's first.
It was a special episode and had the same concept as SpongeBob's Shanghaied - the fans vote what the ending would be. The voting was done by choosing a character via the online Foster's game Big Shot Checkers.