[jQuery] jQuery show(), hide() problems

[jQuery] jQuery show(), hide() problems


Hi,
I would like some help to understand why this code works perfectly
fine the first time I open the window and close it, after this I
cannot open the window any more, unless I reload the page.
Thanks for any ideas!
    function openWindow(messageText) {
            $("#appendRow").TransferTo(
                {
                    to:'window',
                    className:'transferer2',
                    duration: 400,
                    complete: function()
                    {
                        jQuery('#window').show();
                    }
                }
            );
        $('#window').blur();
        return false;
    }
    function closeWindow(){
        $('#window').TransferTo(
            {
                to:'appendRow',
                className:'transferer2',
                duration: 400
            }
        ).hide();
    }