$(function() {
	$("#admin .toggle").hide();
	$("#admin .header").click(function() {
		$(this).next().toggle();
	});

	$("#newPass form").submit(function() {
		$in = $("input", this);
		if ( $in.get(1).value != $in.get(2).value )
		{
			alert('New passwords do not match.');
			return false;
		}
	});

	$("#moreFiles").click(function() {
		$("#files").append("<li><input type=\"file\" name=\"pictures[]\" /></li>");
	});
});
