I have a problem handling IDs with a colon in jquery. If there is a colon in an ID the smooth scroll doesn't work.
The HTML
<a href="#fn:1">Go to Footnote 1</a>
<div id="fn:1>Lorem ipsum Bla Bla</div>
JS
var $root = $('html, body');
$('a').click(function() {
var href = $.attr(this, 'href');
$root.animate({
scrollTop: $(href).offset().top
}, 400, function () {
window.location.hash = href;
});
return false;
});