Since my last post, I've made some significant progress on this
problem, but am still stuck with some non-workable code. Have a look:
http://p.caboo.se/16721 Thanks everyone!