$(document).ready(function (){
	// Snag the anchor text from the URL if one exists.
	var matchResults = window.location.toString().match(/#(.*)/);
	if (typeof matchResults == 'undefined' || !matchResults || !matchResults.length) {
		return;
	}
	anchorText = matchResults[1];
	if (typeof anchorText == 'undefined' || !anchorText) {
		return;
	}
	
	// Use the anchor text to find the appropriate header for the anchor.
	var sectionHeader = $('a[name="'+anchorText+'"]').next('h1, h2, h3, h4, h5, h6');
	
	// Highlight the section header.
	sectionHeader.css('background-color', '#FDFAAD');
	sectionHeader.css('padding', '3px');	
});
