for (int i = 0; i < galleries.getSize(); i++) { Gallery g = (Gallery) galleries.getElementAt(i);  preloadThumbnails(g.getAllPictures().iterator()); }
	public void flushMemory() {		thumbnailCache.flushMemory();		previewFrame.flushMemory();	}