
		$(function() {
			//Click functions added to the thumbnail images.
			$("#productThumbs img").click( function() {
			//Remove the old image div
			$('.jqzoom').remove();
			$('#productHolder').html('<a class="jqzoom" href="" ><img src="" style="border:1px solid #d0d0d0;"></a><p class="instructions">Hover over the image above to view in more detail.</p>');
			//Store the thumbnails path
			var changeSrc = $(this).attr("src");
			//Swap the current productImage img src with the clicked thumbnails src.
			$("#productHolder img").attr("src", changeSrc);
			//Same as above only it's applied to the link tag and replaces the small image for the large.
			$(".jqzoom").attr("href", "");
			$(".jqzoom").attr("href", $(this).attr("src").replace(/sm.jpg/, "lg.jpg"));
			
			//Reset the zoom tool.
			$(".jqzoom").jqzoom();
				return false;
			})
		});

