In this demo, I'm using DHTMLSuite.mediaCollection to create the data source for the gallery, I'm using DHTMLSuite.floatingGallery to display the gallery, and I have hooked on a DHTMLSuite.imageSelection object which makes it possible to drag and drop images.