if(paramNames && paramNames.imageThumbAttr){ var attrNames = ["imageThumbAttr", "imageLargeAttr", "linkAttr", "titleAttr"]; for(var i = 0; i< attrNames.length; i++){ if(paramNames[attrNames[i]]){this[attrNames[i]] = paramNames[attrNames[i]];} } }  var complete = function(items, request){ _this._addData(items); _this.init(); _this.request.onComplete = null; };  this.imageStore = dataStore; this.maxItems = -1;  this.request.onComplete = complete; this.request.count = this.pageSize; this.request.start = 0; this.imageStore.fetch(this.request); }, 
if(request.query){ dojo.mixin(this.request.query, request.query); }  if(paramNames && paramNames.imageThumbAttr){ var attrNames = ["imageThumbAttr", "imageLargeAttr", "linkAttr", "titleAttr"]; for(var i = 0; i< attrNames.length; i++){ if(paramNames[attrNames[i]]){this[attrNames[i]] = paramNames[attrNames[i]];} } }  this.request.start = 0; this.request.count = this.pageSize; this.imageStore = dataStore;  if(!this.init()){ this._loadNextPage(); } }, 
  	setDataStore: function(dataStore, request, /*optional*/paramNames){		// summary: Sets the data store and request objects to read data from.		// dataStore:		//	An implementation of the dojo.data.api.Read API. This accesses the image		//	data.		// request:		//	An implementation of the dojo.data.api.Request API. This specifies the		//	query and paging information to be used by the data store		// paramNames:		//	An object defining the names of the item attributes to fetch from the		//	data store.  The four attributes allowed are 'linkAttr', 'imageLargeAttr',		//	'imageThumbAttr' and 'titleAttr'  		this.reset();		var _this = this;		this.request = {			query: {},			start: request.start ? request.start : 0,			count: request.count ? request.count : 10,			onBegin: function(total) {				_this._maxPhotos = total;			}   		};   		if(request.query){   			dojo.mixin(this.request.query, request.query);		}   		if(paramNames && paramNames.imageThumbAttr){			var attrNames = ["imageThumbAttr", "imageLargeAttr", "linkAttr", "titleAttr"];			for(var i = 0; i< attrNames.length; i++){				if(paramNames[attrNames[i]]){this[attrNames[i]] = paramNames[attrNames[i]];}				}   		}			var complete = function(items, request){	  		_this._addData(items);	  		_this.init();	  		_this.request.onComplete = null;		};			this.imageStore = dataStore;		this.maxItems = -1;			this.request.onComplete = complete;		this.request.count = this.pageSize;		this.request.start = 0;		this.imageStore.fetch(this.request);  	},
5168	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5168/f4d82f4eedc281ff5de06d9cdf63e56bfc4eeb2b/ThumbnailPicker.js/buggy/image/ThumbnailPicker.js