You can find a cleaned-up, commented version of the code behind Google Smackdown
in the recently released Google Hacks
. It's Hack #66 in the Web Services section: Running a Google Popularity Contest
. Here's a list of all the hacks
in the book. It looks like very useful stuff to know.
And speaking of me coding, I've set up a separate website for business-related information: pbcoding.com