/*
	EXPANDABLE HEADINGS
	Give an element a class of 'expandable' and the next element will be hidden and toggled when clicked.
	Best used on <h2>'s
*/

$(function(){
	$(".expandable").addClass("toggle").next().hide();
	$(".expandable").click(function(){
		$h = $(this);
		$el = $h.next();
		if ($el.is(":visible")){
			$h.removeClass("alt");
			$el.slideUp();
		}
		else {
			$h.addClass("alt");
			$el.slideDown();
		}
	});
});