override context in jquery-ui?

override context in jquery-ui?


hi!
i posted yesterday, and have looked a bit further, perhaps i can be
more clear today.
i'd like to specify the context in which jquery-ui will live. for
example, i can init jquery:
new jQuery.fn.init (selector,context||example.doc);
where example.doc is the page (document).
this is important, because i'm calling jquery from a firefox
extension, such that the browser.xul file would be the default
document, otherwise.
is there any way to do this in jquery-ui, or has anyone successfully
done something like this, either embedding jquery-ui in a firefox
extension or for some other reason overriding the default document?
thanks!
- martin.