<script type="text/javascript">
// Make jQuery WP friendly
(function ($) {
// Initiate after document loads
$( document ).ready(function() {
// Custom function
jQuery('#content a').click(function(){
jQuery('html, body').animate({
scrollTop: jQuery( jQuery(this).attr('href') ).offset().top
}, 400);
return false;
});
});
})(jQuery);
</script>