Image Changed Then Changes Back – JavaScript Issue?

I'm quite stuck with this and would appreciate some help!

So I have a product setup using Magento (this is not a Magento specific issue) and it displays the gallery thumbnails below it for the different types of this product. When a thumbnail is clicked the main product image changes as I want it to but a second or two later it changes back to the original image. I am almost certain this is a JavaScript issue. It's like an extra onclick event is fired that is not required. I have opened the…

Image Changed Then Changes Back – JavaScript Issue?