I saw a (much better) version of this on here some time ago, and thought I might try it. It's harder than it looks, but this is the best one I got.
Copyright(c) 2000-9 Richard Chapman