var cache = {
	scrollX:	null,
	
	photos:		new Array(),
	results:	new Array(),
	mapResults:	new Array(),
	
	getPhotos: function(mls){
		for(var i=0; i<cache.photos.length; i++){
			if(cache.photos[i].id == mls)
				return cache.photos[i].photos;
		}
		return util.NULL;
	},
	
	/**
	  * get all results for a particular search
	  */
	getResults: function(id){
		for(var i=0; i<cache.results.length; i++){
			if(cache.results[i].id == id)
				return cache.results[i];
		}
		return util.NULL;
	},
	
	/**
	  * get a single result from a list of search results
	  */
	getResult: function(id, cacheId){
		var results = cache.getResults(cacheId);
		for(var i in results){
			if(results[i][169] == id)
				return result = results[i];
		}
		return util.NULL;
	}
}