function loadNewShutter(gallery, imgList){

	var container = document.getElementById("gallery");

	if ( container.hasChildNodes() )
    	while ( container.childNodes.length >= 1 )
        	container.removeChild( container.firstChild );       

	
	for (i=0; i<imgList.length; ++i)
	{
		var thumb_box = document.createElement("div");
		thumb_box.setAttribute("class","ngg-gallery-thumbnail-box");

		var thumbnail = document.createElement("div");
		thumbnail.setAttribute("class", "ngg-gallery-thumbnail");
		thumb_box.appendChild(thumbnail);

		var anc = document.createElement("a");
		anc.setAttribute("href", "http://archipop.org/wp-content/gallery/"+gallery+"/"+imgList[i]);
		anc.setAttribute("class", "shutterset_set_5");
		thumbnail.appendChild(anc);

		var image = document.createElement("img");
		image.setAttribute("src", "http://archipop.org/wp-content/gallery/"+gallery+"/thumbs/thumbs_"+imgList[i]);
		image.setAttribute("width", "100");
		image.setAttribute("height", "100");
		anc.appendChild(image);
		
		container.appendChild(thumb_box);	
	}
	
	var clear_ngg = document.createElement("div");
	clear_ngg.setAttribute("class", "ngg-clear");
	container.appendChild(clear_ngg);
	
	shutterReloaded.init('sh');	
}
