function scrollToToId(id)
{
	var id = id;
	$('html,body').animate({scrollTop: $(comment_id).offset().top}, 1000); 
}


function scrollTo(element,navheight){
	var offset = element.offset();
	var offsetTop = offset.top;
	var totalScroll = offsetTop-navheight;
			 
	$('body,html').animate({
		scrollTop: totalScroll
	}, 500);
}
scrollTo(jQuery('#ololo'), 40)