Whoaw!
Why doing it complicated when you can have it in just ~150 KBs?

I added my solution basing on your sample pic in this thread:
http://www.coniserver.net/ubbthreads/sho...vc=1#Post685733