  var cells = []; var change = function(node, add) { var fn = add ? "addClass" : "removeClass"; dojo[fn](node,"enabled"); dojo[fn](node,"thumbClickable"); };  var pos = this.isHorizontal ? "scrollLeft" : "scrollTop"; var size = this.isHorizontal ? "offsetWidth" : "offsetHeight"; change(this.navPrev, (this.thumbScroller[pos] > 0));  var last = this._thumbs[this._thumbs.length - 1]; var addClass = (this.thumbScroller[pos] + this._scrollerSize < this.thumbsNode[size]); change(this.navNext, addClass); } 
  var cells = []; var change = function(node, add) { var fn = add ? "addClass" : "removeClass"; dojo[fn](node,"enabled"); dojo[fn](node,"thumbClickable"); };  var pos = this.isHorizontal ? "scrollLeft" : "scrollTop"; var size = this.isHorizontal ? "offsetWidth" : "offsetHeight"; change(this.navPrev, (this.thumbScroller[pos] > 0));  var last = this._thumbs[this._thumbs.length - 1]; var addClass = (this.thumbScroller[pos] + this._scrollerSize < this.thumbsNode[size]); change(this.navNext, addClass); } 
  _updateNavControls: function(){    // summary: Updates the navigation controls to hide/show them when at    //	the first or last images.    var cells = [];    var change = function(node, add) {      var fn = add ? "addClass" : "removeClass";      dojo[fn](node,"enabled");      dojo[fn](node,"thumbClickable");    };        var pos = this.isHorizontal ? "scrollLeft" : "scrollTop";    var size = this.isHorizontal ? "offsetWidth" : "offsetHeight";    change(this.navPrev, (this.thumbScroller[pos] > 0));        var last = this._thumbs[this._thumbs.length - 1];    var addClass = (this.thumbScroller[pos] + this._scrollerSize < this.thumbsNode[size]);    change(this.navNext, addClass);  }
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/fd0905f7d5e660c20fd78d43589db96a2c5f07bd/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js