$(document).ready(function() {
	
	//if submit button is clicked
	$('#contact').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "contact-us.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.content').fadeOut('slow');
		$('.content').html(html);
		$('.content').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//contact click
$('#sponsors').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "sponsors.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.content').fadeOut('slow');
		$('.content').html(html);
		$('.content').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//golf click	
	
	$('#golf').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "golf-courses.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.content').fadeOut('slow');
		$('.content').html(html);
		$('.content').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//golf click
	
	
	
	$('#history').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "program.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.content').fadeOut('slow');
		$('.content').html(html);
		$('.content').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//golf click
	
	$('#program').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "program.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.content').fadeOut('slow');
		$('.content').html(html);
		$('.content').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//golf click
	
	
	$('.AvHighlights').click(function (){		

$.ajax({
			   
		//this is the php file that processes the data and send mail
		url: "highlights.php",	
		
		//Do not cache the page
		cache: true,
		
		//success
		success: function (html) {				
	
		$('.event').fadeOut('slow');
		$('.event').html(html);
		$('.event').fadeIn('slow');
		
								}		
	  }); //ajax
	//cancel the submit button default behaviours
		return false;
								});	//golf click
	
	
	
});	