[jQuery] Event callback question

[jQuery] Event callback question

Hey,
function closeMainPanels(){
    jQuery("div.mainLiner div.panel").each(function(){
        jQuery(this).slideUp(750);
    });
}
How can I tell when all panels have finished animation?
As I need to call another function when all have finished.
Cheers,
Cam