Possible Duplicate:
Testing if jQueryUI has loaded
How to check if the jQuery UI extension library to jQuery is loaded on the page?
Possible Duplicate:
Testing if jQueryUI has loaded
How to check if the jQuery UI extension library to jQuery is loaded on the page?
Just make sure you put any code that calls it in $(document).ready(). At that point, everything should be loaded on the page.