Charlie, good solution to this problem - more elegant than mine!
blackjack
flooble's webmaster puzzle