.click to trigger 2 different functions

.click to trigger 2 different functions

Hi, 

with 1 click i would like to trigger 2 different funcions that affect different divs/images .. first it's lsupposed to oad some images into a div, and then resizing them ...
I can only get the first function to work, the height resizing does not work.

Could someone have a look at the code and help me out please ?


$(document).ready(function() {

var height = $(window).height(); 


$("#comercial").click(function() {
$("#navcontainer").hide().load("gallery.html #comercial").fadeIn('slow').scrollTo( {top:'0px', left:'0px'}, 800);
$('div#navcontainer img').each(function(){
                $(this).height(height - 105);
});
});
});