The popup plugin has the following methods:
open(x, y)
$('.selector').popup('open', x, y);
close
$('.selector').popup('close');