Dialog destroy()

Hi there,

Does anyone know how to use jquery dialog destroy? I have a gallery and I need to maximize a picture in a modal dialog and then close the dialog and have the picture return to its original DOM position?

I have to use dialog(), lightbox plugin is not an option here.

Could anyone amend this code to do this:


$item.dialog({modal:true, width:"440px", draggable: false})