﻿// Handle list items that show/hide
$(document).ready(function() {
	// Lists that show/hide an interior div
	$('ul.toggle li > a').click(function() {
		$(this).siblings("div:first").slideToggle('fast');
		return false;
	});

	// Display the inbound requested list item
	var elem = window.location.href.split('#');
	if (elem.length > 1) {
		$('#item' + elem[1] + " div:first").slideDown('fast');
	}

	// If two or less list items in a tab, expand all in that tab
	$('div.tabbertab ul.toggle').each(function() {
		var items = $(this).children("li");
		if (items.size() < 3) {
			items.each(function() {
				$(this).children("div:first").slideDown('fast');
			});
		}
	});
});