  var cells = []; if(this._thumbIndex < 1){cells.push({node: this.thumbCells[0]});} else {cells.push({node:this.thumbCells[0], add: true});}  var lastCell = this.thumbCells[this.thumbCells.length -1]; if(this._thumbIndex + this.numberThumbs >= this._maxPhotos){cells.push({node: lastCell});} else {cells.push({node:lastCell, add: true});} for(var i = 0; i<cells.length; i++){ var fn = cells[i]["add"] ? "addClass" : "removeClass"; dojo[fn](cells[i].node,"enabled"); dojo[fn](cells[i].node,"thumbClickable"); } } 
  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 = [];		if(this._thumbIndex < 1){cells.push({node: this.thumbCells[0]});}		else {cells.push({node:this.thumbCells[0], add: true});}		var lastCell = this.thumbCells[this.thumbCells.length -1];		if(this._thumbIndex + this.numberThumbs >= this._maxPhotos){cells.push({node: lastCell});}		else {cells.push({node:lastCell, add: true});}		for(var i = 0; i<cells.length; i++){			var fn = cells[i]["add"] ? "addClass" : "removeClass";			dojo[fn](cells[i].node,"enabled");			dojo[fn](cells[i].node,"thumbClickable");		}  	}
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/f4d82f4eedc281ff5de06d9cdf63e56bfc4eeb2b/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js