var dateList = new Array();dateList.push("20091114");dateList.push("20091123");dateList.push("20091126");dateList.push("20091127");dateList.push("20091128");dateList.push("20091219");dateList.push("20091224");dateList.push("20091225");dateList.push("20091226");dateList.push("20091227");dateList.push("20091228");dateList.push("20091229");dateList.push("20091230");dateList.push("20091231");dateList.push("20100101");dateList.push("20100102");dateList.push("20100103");dateList.push("20100104");dateList.push("20100109");dateList.push("20100118");dateList.push("20100123");dateList.push("20100219");dateList.push("20100220");dateList.push("20100306");dateList.push("20100313");dateList.push("20100320");dateList.push("20100402");dateList.push("20100403");dateList.push("20100404");dateList.push("20100410");dateList.push("20100410");var lastDate=new Date();lastDate.setFullYear(2010,3,30);$(document).ready(function() {	$('.datepicker').datepicker({  	minDate: +3,  	maxDate: lastDate,	  buttonImage: '/images/datepickerIcon.gif',	  buttonImageOnly: true,	  showOn: "both",	  buttonText: "Choose",		beforeShow: function (i, e) {			e.dpDiv.css('z-index', '20');			e.dpDiv.css('font-size', '90%');    },    beforeShowDay: function(dateToShow){    	if (dateToShow.getDay() == 0) {    		return false;    	} else {       	return [($.inArray($.datepicker.formatDate('yymmdd', dateToShow),dateList) == -1), ""];    	}  	}	});	$(".datepicker").keydown(function(event){		return false;	});	$("#academicInterest").change(function() {		if ($("#academicInterest").val() == "Mathematics - Actuarial Science Application"			|| $("#academicInterest").val() == "Mathematics - Mathmatics"			|| $("#academicInterest").val() == "Mathematics - Pre-doctoral") {			$("#mathSection").slideDown();		} else {			$("#mathSection").slideUp();		}		if ($("#academicInterest").val() == "Psychology") {			$("#psychologySection").slideDown();		} else {			$("#psychologySection").slideUp();		}		if ($("#academicInterest").val() == "Undeclared") {			$("#undecidedInterestsSection").slideDown();		} else {			$("#undecidedInterestsSection").slideUp();		}		if ($("#academicInterest").val() == "Music - Education"			|| $("#academicInterest").val() == "Music - Management"			|| $("#academicInterest").val() == "Music - Performance"			|| $("#academicInterest").val() == "Music - Therapy"			|| $("#academicInterest").val() == "Music - Undecided") {			$("#instrumentSection").slideDown();		} else {			$("#instrumentSection").slideUp();		}	});	$("#overnight").click(function() {		if ($("#overnight").attr('checked')) {			$("#overnightDateSection").slideDown();		} else {			$("#overnightDateSection").slideUp();		}	});	$("#meetCoach").click(function() {		if ($("#meetCoach").attr('checked')) {			$("#sportInterestSection").slideDown();		} else {			$("#sportInterestSection").slideUp();		}	});});