996,1006d995 < if (settings.h) { < photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px'; < } < < if ($related[1] && (settings.get('loop') || $related[index + 1])) { < photo.style.cursor = 'pointer'; < photo.onclick = function () { < publicMethod.next(); < }; < } < 1008a998,1000 > var vertpadding = (settings.h - photo.height) / 2; > var horizpadding = (settings.w - photo.width) / 2; > photo.style.padding = vertpadding + 'px ' + horizpadding + 'px';