$(document).ready(function() {
	
	// Start by hiding the unneeded fields
	$('tr#saw_player_name').hide();
	$('tr#publication_print_name').hide();
	$('tr#publication_web_name').hide();
	$('tr#saw_tournament_name').hide();
	
	// Set up the appropriate checkboxes to show the right fields when checked
	$('#id_saw_player').change(function(){
		$('tr#saw_player_name').toggle();
	});
	$('#id_publication_print').change(function(){
		$('tr#publication_print_name').toggle();
	});
	$('#id_publication_web').change(function(){
		$('tr#publication_web_name').toggle();
	});
	$('#id_saw_tournament').change(function(){
		$('tr#saw_tournament_name').toggle();
	});
	
});

