Image display & rotation

I found this, which is truly inspired and a lovely smooth rotation ‘thing’ for a set of images.

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

Can any one help me out as I want to modify it so that when you click an image to enlarge it, it stops the rotation and keeps the image central to the frame/scene until you click to reduce … and then the rotation begins again??

Thanks, in advance.