I can't get $(target) to work.
If I click on a link with href=#top, alert(target) displays #top, but $(target).offset returns null.
$("[href^='#']").click( function() {
var target = $(this).attr('href');
alert(target);
$("#body-wrapper").animate( {scrollTop: $(target).offset().top} ,300);
return false
})
};