Some sort of function after click?

Some sort of function after click?

I am trying to run a function after a click event function. The click event itself has a lot going on (using the scrollto plugin) and I want to have something run after it completes. If i just put it at the end it slows down the movement and makes it chug.

Any ideas/help is much appreciated. Here's the code (sorry, not a JS wizard :/ )
$('#navigation ul li a').click(function () {
$('#container').scrollTo($(this).attr('href'), 800);
setPosition($(this).attr('href'), '#x', '0px', '200px', '400px');
setPosition($(this).attr('href'), '#y', '0px', '300px', '600px');
return false;
}).onComplete(function(){
var href = $(this).attr('href');
var num = href.replace('#div','');
render_table(num);
});

Obviously onComplete doesn't exist for this, so if anyone could lead me in the right direction that would be awesome. I am on a short time frame