Dialogs and show/hide effects

Dialogs and show/hide effects

Hi Everyone. I am new to JS, and ive been on it for days now without figureing out how to do this:

I open a dialog box with a click on a link. Now, i want the dialog box to "open" up with an effect, for example blind.

I can get the box to blind up/down when its already open, but i cant figure out where add the effect for it to do the effect each time i open/close a Dialog.
I have tryed to put it in the ui.dialog.js under:
destroy: function() {


to get it to blind each time i destroy the Dialog, but no luck.

Could anyone be kind and give me a push in the right direction?
Thanks!