Enjoy! 

Please e-mail me any changes/revisions you make to the code :-). I tried to comment as much as I could, so it should be pretty easy to follow.

- Davey, davey@loopware.com