Having problems with the UI dialog box.

Having problems with the UI dialog box.


Hi
I am trying to make it everytime you go over any of the controls with
the css class "popout" the dialog box will popout.
So I wrote this code.
$('.popout').live("mouseover",function()
{
$('#dialog').dialog();
});
When I go over one of the items that has the class the popout pops
out. I close it by hitting the "X". I then try to go over it again or
any of the other items that have that class but the dialog box never
shows up anymore.
What am I doing wrong?