View my Source and you'll see how it's all done in Javascript.