$('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();
});
$('a[href^="#"]').click(function (e) {
e.preventDefault();
elementClick = $(this).attr("href");
destination = $(elementClick).offset().top;
$('html, body').animate( { scrollTop: destination }, 1000 );
});