﻿// if JavaScript is enabled, hide the 'no-script' list of links, and show the ajax-driven menu
// these two lines MUST be below the elements they reference in the DOM (towards the bottom of the page)
$(".no-script").hide();
$(".sections").show();

// section hover behavior
$(document).ready(function() {
	var s = "fast";
	// fixes some occasional visual glitches when user moves mouse over/out of the section
	function resetHeight() { $(this).height('auto'); }
	$(".section").hover(function() {
		$(this)
			.find('h2').stop().slideUp(s, resetHeight).end()
			.find('.contents').stop().slideDown(s, resetHeight);
	}, function() {
		$(this)
			.find('h2').stop().slideDown(s, resetHeight).end()
			.find('.contents').stop().slideUp(s, resetHeight);
	});
});

