Sorry for the late reply.
You need to keep all images in the gallery in the hidden-container – including the first image – and call the first image using document.getElementById() from the onclick.
Please see this demo: http://roadrash.no/hs-support/image-map ... eries.html
Study the source code thoroughly.
Note: You need to add the autoplay