$(function() {
	packets();
	showPacket();
});

function packets() {
	$('.packets .title').click(function() {
		var next = $(this).next();
		if (next.is(':hidden')) {
			next.slideDown(200);
		} else {
			next.slideUp(200);
		}

		return false;
	});
}

function showPacket() {
	var hash = window.location.hash;
	
	if (hash.length != 0 && $(hash).length) {
		$(hash).trigger('click');
	}
}
