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){ this.imageThumbAttr = paramNames.imageThumbAttr; }  var complete = function(items, request){ _this._addData(items); _this.init(); _this.request.onComplete = null;   _this.slideShow.setDataStore(dataStore, _this.request, paramNames); };  this.imageStore = dataStore; this.maxItems = -1;  this.request.onComplete = complete; this.request.count = this.pageSize; this.request.start = 0; this.imageStore.fetch(this.request); 
this.thumbPicker.setDataStore(dataStore, request, paramNames); this.slideShow.setDataStore(dataStore, request, paramNames); 
  	setDataStore: function(dataStore, request, /*optional*/paramNames){  		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){     			this.imageThumbAttr = paramNames.imageThumbAttr;   		}			var complete = function(items, request){	  		_this._addData(items);	  		_this.init();	  		_this.request.onComplete = null;	  	  		//Tell the slide show widget to show some pics. 	  		_this.slideShow.setDataStore(dataStore, _this.request, paramNames);		};			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/7c816adf9cb73f6b46a8f561565960dcb68d732c/Gallery.js/clean/image/Gallery.js