dojo.connect(img, "onload", function(){ 
var loadImage = dojo.hitch(this, function(data, index, callback){ var url = this.imageStore.getValue(data,this.imageThumbAttr); var img = document.createElement("img"); var imgContainer = document.createElement("div"); imgContainer.setAttribute("id","img_" + this.widgetid+"_"+index); imgContainer.appendChild(img); img._index = index; img._data = data;  this._thumbs[index] = imgContainer; var loadingDiv; if(this.useLoadNotifier){ loadingDiv = document.createElement("div"); loadingDiv.innerHTML = "<!-- -->"; loadingDiv.setAttribute("id","loadingDiv_" + this.widgetid+"_"+index);    this._setThumbClass(loadingDiv, this._loadedImages[index] ? "thumbLoaded":"thumbNotifier");  imgContainer.appendChild(loadingDiv); } var size = dojo.marginBox(this.thumbsNode); var defaultSize; var sizeParam; if(this.isHorizontal){ defaultSize = this.thumbWidth; sizeParam = 'w'; } else{ defaultSize = this.thumbHeight; sizeParam = 'h'; } size = size[sizeParam]; var sl = this.thumbScroller.scrollLeft, st = this.thumbScroller.scrollTop; dojo.style(this.thumbsNode, this._sizeProperty, (size + defaultSize + 20) + "px");  this.thumbScroller.scrollLeft = sl; this.thumbScroller.scrollTop = st; this.thumbsNode.appendChild(imgContainer);  dojo.connect(img, "onload", this, function(){ 
			dojo.connect(img, "onload", function(){				var realSize = dojo.marginBox(img)[sizeParam];				_this._totalSize += (Number(realSize) + 4);				dojo.style(_this.thumbsNode, _this._sizeProperty, _this._totalSize + "px");						if(_this.useLoadNotifier){dojo.style(loadingDiv, "width", (img.width - 4) + "px"); }				callback();				return false;			});
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/91b6caaa38393137306e8a7b72adae5e58342e2f/ThumbnailPicker.js/clean/image/ThumbnailPicker.js