Displays the next page of images
var pos = this.isHorizontal ? "offsetLeft" : "offsetTop"; var size = this.isHorizontal ? "offsetWidth" : "offsetHeight"; var baseOffset = this.thumbsNode[pos]; var firstThumb = this._thumbs[this._thumbIndex]; var origOffset = firstThumb[pos] - baseOffset; var index = -1, img; for(var i = this._thumbIndex + 1; i < this._thumbs.length; i++){ img = this._thumbs[i]; if(img[pos] - baseOffset + img[size] - origOffset > this._scrollerSize){ this._showThumbs(i); return; } }