The popup plugin has the following methods:
open(x, y)
$('.selector').popup('open', x, y);
If x or y is missing, the middle of the window will be used.
x
y
close
$('.selector').popup('close');