if(items && items.length) { var itemCounter = 0; function loadNext() { if(itemCounter >= items.length){ _this._loadInProgress = false; return; } var counter = itemCounter++; console.log("Loading image " + counter + " using index " + pos + " + " + counter);  loadImage(items[counter], pos + counter, loadNext); } loadNext();     _this._updateNavControls(); } else {_this._loadInProgress = false;} }; 
if(items && items.length) { var itemCounter = 0; function loadNext() { if(itemCounter >= items.length){ _this._loadInProgress = false; return; } var counter = itemCounter++;  loadImage(items[counter], pos + counter, loadNext); } loadNext();     _this._updateNavControls(); } else {_this._loadInProgress = false;} }; 
    var complete = function(items, request){      if(items && items.length) {        var itemCounter = 0;        function loadNext() {            if(itemCounter >= items.length){                _this._loadInProgress = false;                return;            }            var counter = itemCounter++;            console.log("Loading image " + counter + " using index " + pos + " + " + counter);                        loadImage(items[counter], pos + counter, loadNext);        }        loadNext();                //Show or hide the navigation arrows on the thumbnails,         //depending on whether or not the widget is at the start,        //end, or middle of the list of images.         _this._updateNavControls();      } else {_this._loadInProgress = false;}    };
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/fd0905f7d5e660c20fd78d43589db96a2c5f07bd/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js