jQuery(document).ready(function($){
	$(".dropdown .current-menu-item a:first").addClass("on");
	$(".dropdown .menu-item-773 a").css('border-right', '0');
    
});




function validateReservationData(){
		var s = "";
		with (document.frmReservation) {
			if (txtFirstName.value.length == 0) {
				s += "\nPlease tell us your first name."
			}
			if (txtLastName.value.length == 0) {
				s += "\nPlease tell us your last name."
			}
			if (txtEmail.value.length == 0) {
				s += "\nPlease make sure you tell us your email address."
			}
			if (selCheckInMonth1.value.length == 0) {
				s += "\nPlease select the month of your reservation."
			}
			if (selCheckInDay1.value.length == 0) {
				s += "\nPlease select the day of your reservation."
			}
			if (selCheckInYear1.value.length == 0) {
				s += "\nPlease select the year of your reservation."
			}
			if (selCheckOutMonth1.value.length == 0) {
				s += "\nPlease select the month of your reservation."
			}
			if (selCheckOutDay1.value.length == 0) {
				s += "\nPlease select the day of your reservation."
			}
			if (selCheckOutYear1.value.length == 0) {
				s += "\nPlease select the year of your reservation."
			}

			if (selRoom1.value.length == 0) {
				s += "\nPlease select a room type."
			} else {
				if (selRoom1.value == "Standard Single" && selGuests1.value > 1) {
					s += "\nOnly 1 guest can stay in the standard single room."
				}
				if (selRoom1.value == "Standard Double (Queen Size Bed)" && selGuests1.value > 2) {
					s += "\nOnly 2 guests can stay in the standard double room."
				}
				if (selRoom1.value == "Club Suite (1 King and 1 Twin Size Bed)" && selGuests1.value > 3) {
					s += "\nOnly up to 3 guests can stay in the Club Suite."
				}
				if (selRoom1.value == "Rooms with mezzanini 3-person (2 Queen Size Beds)" && selGuests1.value > 3) {
					s += "\nOnly up to 3 guests can stay in this room."
				}
			}

			if (selGuests1.value.length == 0) {
				s += "\nPlease tell us how many guests will be staying with us."
			}

			var checkindate1 = new Date()
			checkindate1.setFullYear(selCheckInYear1.value,selCheckInMonth1.value - 1, selCheckInDay1.value)
			var checkoutdate1 = new Date()
			checkoutdate1.setFullYear(selCheckOutYear1.value,selCheckOutMonth1.value - 1, selCheckOutDay1.value)
			if (checkoutdate1 < checkindate1 ) {
				s += "\nPlease make sure your checkout date is before the checkin date."
			}

		if (s.length==0) {
			with (document.frmReservation) {
	
			}
			return true;
		}
		else {
			alert("The form could not be submitted for the following reason(s):\n" + s);
			return false;
		}
	}
	}
