/* Inside jqherbaria_fo */ function jumpTo(thePosition) { theCapturedPosition = thePosition; if(thePosition == "#top") { $("html, body").animate({ scrollTop: 0 }, "slow"); } else { var aTag = $("a[name='" + thePosition + "']"); $('html,body').animate({scrollTop: aTag.offset().top}, "slow", function() { scrolledDown = true; }); } } /* Exit jqherbaria_fo */