Lock To Center On Release

Hello,

I was wondering if anyone can get this to lock to center when you click on it and then restart rotation after you click on it again. Thanks for any help you can provide.

http://www.levitated.net/daily/levCylinderImageDisplay.html

Thanks,
Brian First