Photo gallery tutorial

Hello All,
I have a question about customizing the photo gallery tutorial. As well as having the user being able to scroll through the pictures, I would like them to be able to click on a thumb nail version of the picture below. The back and forwards buttons use:
on (release) {
so I imagine I would use similar code on each on the thumb nail buttons to go to a specific picture.

Thanks in advance.