    $(document).ready(function() {
       			
				//info div rollovers
				$("#info_course").mouseenter(function () { 
      				$("#info_head_course").fadeIn("fast"); 
    			}).mouseleave(function () {
					$("#info_head_course").fadeOut();
				});
				$("#info_equipment").mouseenter(function () { 
      				$("#info_head_equipment").fadeIn("fast"); 
    			}).mouseleave(function () {
					$("#info_head_equipment").fadeOut();
				});
				$("#info_teetime").mouseenter(function () { 
      				$("#info_head_teetime").fadeIn("fast"); 
    			}).mouseleave(function () {
					$("#info_head_teetime").fadeOut();
				});
				
				//emailer display
				$("#email").click(function () {
					$(".emailer").fadeIn();
				});
				$("#email2").click(function () {
					$(".emailer").fadeIn();
				});
				$("#close_modal").click(function () {
					$(".emailer").hide();
				});
				
				//form stuff
   				$("#reset_form").click(function() {
      				$("#myform")[0].reset();
    			});
				$("#submit").click(function () {
					$("myform").submit();
					//alert("Your email has been sent.");
					$(".emailer").hide();
				});
				
				//course.php thumbnail gallery
				$("#thumb_1").click(function () { 
      				$(".gallery_content").hide();
					$("#gallery_content_1").fadeIn("slow"); 
    			});
				$("#thumb_2").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_2").fadeIn("slow"); 
    			});
				$("#thumb_3").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_3").fadeIn("slow"); 
    			});
				$("#thumb_4").click(function () { 
      				$(".gallery_content").hide();
					$("#gallery_content_4").fadeIn("slow"); 
    			});
				$("#thumb_5").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_5").fadeIn("slow"); 
    			});
				$("#thumb_6").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_6").fadeIn("slow"); 
    			});
				$("#thumb_7").click(function () { 
      				$(".gallery_content").hide();
					$("#gallery_content_7").fadeIn("slow"); 
    			});
				$("#thumb_8").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_8").fadeIn("slow"); 
    			});
				$("#thumb_9").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_9").fadeIn("slow"); 
    			});
				$("#thumb_10").click(function () { 
      				$(".gallery_content").hide();
					$("#gallery_content_10").fadeIn("slow"); 
    			});
				$("#thumb_11").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_11").fadeIn("slow"); 
    			});
				$("#thumb_12").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_12").fadeIn("slow"); 
    			});
				$("#thumb_13").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_13").fadeIn("slow"); 
    			});
				$("#thumb_14").click(function () { 
      				$(".gallery_content").hide();
					$("#gallery_content_14").fadeIn("slow"); 
    			});
				$("#thumb_15").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_15").fadeIn("slow"); 
    			});
				$("#thumb_16").click(function () {
					$(".gallery_content").hide(); 
      				$("#gallery_content_16").fadeIn("slow"); 
    			});
				
				//scroll to the bottom
				
				$('.scrollPage').click(function() {
   					var elementClicked = $(this).attr("href");
   					var destination = $(elementClicked).offset().top;
   					$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination-20}, 1000 );
   					return false;
				});
				
    }); // end document.ready
