function putImageList(data) { window.curGallery.imageList = JSON.parse(data).images; window.curGallery.controls.position.innerHTML = window.curGallery.Position + " - " + (window.curGallery.Position + 5) + " / " + window.curGallery.imageList.length; ImageListSelection(0); }