drawers = function(_event) {
	$('.drawers').each(function(_index) {
		$('ul', $(this)).each(function(_index) {
			if (!$(this).parent('li').hasClass('open')) { $(this).hide(); }
		});
		$('.drawer > h3', $(this)).click(function(_evt) {
			if ( $(this).parent('li').hasClass('open') ) { return; }
			$('.open ul', $(this).parent().parent()).slideUp();
			$('.drawer', $(this).parent().parent()).removeClass('open');
			$(this).parent('li').addClass('open');
			$(this).next('ul').slideDown();
		});
	});
};

$(document).ready(function() { drawers('.drawers'); });
