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.htmlStudy the source code thoroughly.