Topic: Triggering a refresh on page per image click?

I may not be explaining myself correctly as I'm not terribly good at HTML - but what I'm looking to do is integrate the SimpleViewer image gallery with a module that I'm creating that will rotate between other galleries that I want to spotlight.  Think of it as advertising for my other content. 

What I'd like to do is, when a user clicks an image, refresh that module calling a random ad for a gallery.  I have the script set up for calling the different galleries, I just don't know how to tell Simpleviewer that, on mouse click, to refresh that area of the page.  Any ideas? Is this beyond modifying the HTML or XML?