I think I understand your problem. The CSS z-index for the jQuery UI dialog is not high enough to always show above your content. Here’s a quick fix:
/* A class used by the jQuery UI CSS framework for their dialogs. */
.ui-front {
z-index:1000000 !important; /* The default is 100. !important overrides the default. */
}