$('tr').click(function() {
var tr = $(this);
var data = [];
$('td', tr).each(function() {
data.push($(this).text());
});
alert(data.join(', '));
});
$('.nav a').click(function(e) {
var anchor = $(this);
$('html, body').stop().animate({
scrollTop: $(anchor.attr('href')).offset().top - (высота шапки)
}, 1000);
e.preventDefault();
});