// JavaScript Document

jQuery(document).ready(function() {
	//simple slider for application form						

	//this does the lightbox init
	$('a.gallery').lightBox();
	
	//hides event dates for the social event listings
	$("div.event h3 a").click(function() {
	$(this).parent().next(".event-details").slideDown('slow');
	return false;
	});
	
	//hides event dates for the sailing event listings
	$("div.course-details h4 a").click(function() {
	$(this).parent().next(".courseDates").slideDown('slow');
	return false;
	});
	
	$("a.show-results-linkxxx").click(function() {
	var divUrl = $(this).attr('href');
	$('#' + divUrl ).slideDown('slow');
	
	return false;
	});
	
	
	$("div.race-results-container table tr td:nth-child(2)").css("display", "none");
	$("div.race-results-container table th:nth-child(2)").css("display", "none");
	$("div.race-results-container table th:nth-child(6)").hide();
	$("div.race-results-container table td:nth-child(6)").hide();
	$("div.race-results-container table th:nth-child(4)").hide();
	$("div.race-results-container table td:nth-child(4)").hide();
	$("div.race-results-container table th:nth-child(5)").hide();
	$("div.race-results-container table td:nth-child(5)").hide();

	
	
								
});


 






