Use "jQuery.fn.mtDialog" instead of "ed.windowManager".