$(document).ready(function(){
	$("#venues").reveal({ loadFirst: true });
	
	meetingSettings();
	
	$("#booking-form form #event-type").change(function(){
		var meetingType = $(this).val();
		if(meetingType == "Meeting") {
			meetingSettings();
		}
		else
		{
			otherSettings();
		}
	});
	
	$("#booking-form form #event-type").change(function(){
		var meetingType = $(this).val();
		if(meetingType == "Other") {
			$(".other-event-type").show();
		}
		else
		{
			$(".other-event-type").hide();
		}
	});
	
	$("#booking-form form #event-time").change(function(){
		var meetingTime = $(this).val();
		if(meetingTime == "Specific") {
			$(".specific-event-time").show();
		}
		else
		{
			$(".specific-event-time").hide();
		}
	});
	$("#booking-form form .catering").change(function(){
		var catering = $(this).val();
		if(catering == "yes") {
			$(".catering-specifics").show();
		}
		else
		{
			$(".catering-specifics").hide();
		}
	});
});

function meetingSettings() {
	$("#booking-form form .other").hide();
	$("booking-form form .meeting").show();
};

function otherSettings() {
	$("#booking-form form .other").show();
	$("#booking-form form .meeting").hide();
};
