Man, I would love to get the source for that and re-implement it in XSLT. And make it into a web service or something. Maybe I could scrape and reverse-engineer it (but copyright, copyright...).

LINK