   var _this = this; var idx = arguments.length == 0 ? this._thumbIndex : arguments[0]; idx = Math.min(Math.max(idx, 0), this._maxPhotos);  if(idx >= this._maxPhotos) {return;}  var img = _this._thumbs[idx]; if(!img){return;}  var left = img.offsetLeft - this.thumbsNode.offsetLeft; var top = img.offsetTop - this.thumbsNode.offsetTop; var offset = this.isHorizontal ? left : top;  if(offset >= this.thumbScroller[this._scrollAttr] && offset + img[this._sizeAttr] <= this.thumbScroller[this._scrollAttr] + this._scrollerSize){return;}  function checkLoad() { dojo.publish(_this.getShowTopicName(), [{index:idx}]); _this._updateNavControls(); _this._loadingImages = {};  _this._thumbIndex = idx;   if(_this.thumbsNode.offsetWidth - img.offsetLeft < (_this._scrollerSize * 2)) { _this._loadNextPage(); } }  if(this.isScrollable){ var target = this.isHorizontal ? {x: left, y: 0} : { x:0, y:top}; dojox.fx.smoothScroll({target: target, window: this.thumbScroller, duration:1000, easing:dojox.fx.easing.easeOut, onEnd: checkLoad}).play(); } else{ if(this.isHorizontal){this.thumbScroller.scrollLeft = left;} else{this.thumbScroller.scrollTop = top;} checkLoad(); } }, 
   var _this = this; var idx = arguments.length == 0 ? this._thumbIndex : arguments[0]; idx = Math.min(Math.max(idx, 0), this._maxPhotos);  if(idx >= this._maxPhotos) {return;}  var img = _this._thumbs[idx]; if(!img){return;}  var left = img.offsetLeft - this.thumbsNode.offsetLeft; var top = img.offsetTop - this.thumbsNode.offsetTop; var offset = this.isHorizontal ? left : top;  if(offset >= this.thumbScroller[this._scrollAttr] && offset + img[this._sizeAttr] <= this.thumbScroller[this._scrollAttr] + this._scrollerSize){return;}  function checkLoad() { dojo.publish(_this.getShowTopicName(), [{index:idx}]); _this._updateNavControls(); _this._loadingImages = {};  _this._thumbIndex = idx;   if(_this.thumbsNode.offsetWidth - img.offsetLeft < (_this._scrollerSize * 2)) { _this._loadNextPage(); } }  if(this.isScrollable){ var target = this.isHorizontal ? {x: left, y: 0} : { x:0, y:top}; dojox.fx.smoothScroll({target: target, window: this.thumbScroller, duration:1000, easing:dojox.fx.easing.easeOut, onEnd: checkLoad}).play(); } else{ if(this.isHorizontal){this.thumbScroller.scrollLeft = left;} else{this.thumbScroller.scrollTop = top;} checkLoad(); } }, 
  _showThumbs: function(idx){    // summary: Displays thumbnail images, starting at position 'idx'    // idx: Number    //	The index of the first thumbnail    var _this = this;    var idx = arguments.length == 0 ? this._thumbIndex : arguments[0];    idx = Math.min(Math.max(idx, 0), this._maxPhotos);      if(idx >= this._maxPhotos) {return;}      var img = _this._thumbs[idx];    if(!img){return;}        var left = img.offsetLeft - this.thumbsNode.offsetLeft;    var top = img.offsetTop - this.thumbsNode.offsetTop;    var offset = this.isHorizontal ? left : top;                if(offset >= this.thumbScroller[this._scrollAttr]        && offset + img[this._sizeAttr] <= this.thumbScroller[this._scrollAttr] + this._scrollerSize){return;}      function checkLoad() {      dojo.publish(_this.getShowTopicName(), [{index:idx}]);      _this._updateNavControls();      _this._loadingImages = {};        _this._thumbIndex = idx;        //If we have not already requested the data from the store, do so.       if(_this.thumbsNode.offsetWidth - img.offsetLeft < (_this._scrollerSize * 2)) {          _this._loadNextPage();      }    }            if(this.isScrollable){      var target = this.isHorizontal ?        {x: left, y: 0} :        { x:0, y:top};      dojox.fx.smoothScroll({target: target, window: this.thumbScroller,      duration:1000, easing:dojox.fx.easing.easeOut,      onEnd: checkLoad}).play();    } else{      if(this.isHorizontal){this.thumbScroller.scrollLeft = left;}      else{this.thumbScroller.scrollTop = top;}      checkLoad();    }	  },
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/fd0905f7d5e660c20fd78d43589db96a2c5f07bd/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js