$ef(document).ready(function(){

	// Add quick-links button to page
	var quickLinksHTML = "<button id=\"quickLinks-button\" type=\"button\" value=\"Quick-Links\">Quick-Links</button>";
	$ef("#pageHeader h1").after(quickLinksHTML);

	// Move site map element to top of page
	$ef("#topSitemap").insertBefore($ef("#pageContainer"));

	// Add close link by site map heading
	var closeButton = "<button id=\"siteMap_close\" type=\"button\" value=\"Close\">Close</button>";
	$ef("#topSitemap h1").after(closeButton);

	// Toggle site map when close button is clicked
	$ef("#siteMap_close").click(function() {
		$ef("#pageContainer").unbind();
		$ef("#topSitemap").slideToggle("slow");
	});

	// Toggle site map when quick-links button is clicked
	$ef("#quickLinks-button").click(function() {
		$ef("#pageContainer").unbind();
		$ef("#topSitemap").slideToggle("slow", function() {
			// Close site map when #pageContainer is clicked
			$ef("#pageContainer").click(function() {
				$ef("#topSitemap").slideUp("slow", function() {
					$ef("#pageContainer").unbind();
				});
			});
		});
	});

});

