 var _this = this; dojo.connect(this.thumbCells[0], "onclick", function(evt){ _this.showThumbs(_this._thumbIndex - _this.numberThumbs); }); dojo.connect(this.thumbCells[this.numberThumbs + 1], "onclick", function(evt){ _this.showThumbs(_this._thumbIndex + _this.numberThumbs); }); 
 var _this = this; dojo.addClass(this.navPrev, "prev" + classExt); dojo.addClass(this.navNext, "next" + classExt); dojo.addClass(this.thumbsNode, "thumb"+classExt); dojo.addClass(this.outerNode, "thumb"+classExt); 
	init: function(){		// summary: Creates DOM nodes for thumbnail images and initializes their listeners 		if(this.isInitialized || this._maxPhotos < 1) {return;}		if(!this.thumbCells){			dojo.style(this.hiddenNode,"position","absolute");			dojo.style(this.hiddenNode,"left","-10000px");			this.thumbCells = [];			this._thumbIndex = 0;			this.numberThumbs = Number(this.numberThumbs);						var row;						var tb = this.thumbsTable.tBodies[0];			if(this.isHorizontal){				row = document.createElement('tr');				tb.appendChild(row);			}						var classExt = this.isHorizontal ? "Horiz" : "Vert";							for(var i = 0; i < this.numberThumbs + 2; i++){				var cell = document.createElement("td");				cell.setAttribute("id","img_cell_"+this.widgetid+"_"+i);				this.thumbCells[this.thumbCells.length] = cell;				if(i > 0 && i < this.numberThumbs + 1){					dojo.addClass(cell, "thumbPlaceholder");					if(this.useHyperlink || this.isClickable){						dojo.addClass(cell, "thumbClickable");					}				}else{					dojo.addClass(cell, "thumbNav");					dojo.addClass(cell, "thumbClickable");					dojo.addClass(cell, "nav");					if(i == 0){						dojo.addClass(cell, "prev" + classExt);					}else{						dojo.addClass(cell, "next" + classExt);      					}				}				cell.innerHTML = "<img src='"+this.tempImgPath+"' class='imageGalleryThumb'/>";								if(!this.isHorizontal) {					row = document.createElement('tr');					tb.appendChild(row);				}								row.appendChild(cell);			}			// FIXME: can we setup a listener around the whole element and determine based on e.target?			var _this = this;			dojo.connect(this.thumbCells[0], "onclick", function(evt){				_this.showThumbs(_this._thumbIndex - _this.numberThumbs);			});			dojo.connect(this.thumbCells[this.numberThumbs + 1], "onclick", function(evt){				_this.showThumbs(_this._thumbIndex + _this.numberThumbs);			});		}		this.isInitialized = true;		this._updateNavControls();	  		this._loadNextThumbnail();	},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/f4d82f4eedc281ff5de06d9cdf63e56bfc4eeb2b/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js