toc.js - Table of Contents Injector
toc.js will scour your page for heading tags and build a table of contents for you. All you have to do is create an empty ordered list and give it a specific ID that the script will look for. toc.js will then automatically construct the table of contents and set up anchor-links for your users to use to quickly navigate to specific sections of your page.
Download it!
You can download toc.js from here. (Contains toc.css and a readme file in addition to the JavaScript)
I should probably turn this into a proper jQuery plugin eventually, but I wanted to get it out there.