// JavaScript Document
(function($) {
	

$(document).ready(function(){
	


		
/* prices table */
	
$(".prices ul li").each(function(){
	
	$(this).click(function(){
		$(this).siblings().removeClass("active");
		$(this).addClass("active");
		var type = $(this).attr("id");
		$(this).parent().parent().find(".table table").hide();
		$(this).parent().parent().find(".table table."+type).show();
	});
});

$(".services ul li").each(function() {
			
			var IMG = $(this).find("a");
			var LI  = $(this);
			var TBL = $(this).find("table");
			var PH =  LI.height();
			var TH = PH + TBL.height();
			
			IMG.click(function(){
				if(!LI.hasClass("open"))
				{	
				LI.animate({height : TH}, 'fast').addClass('open');
				}
				else
				{
				LI.animate({height : PH}, 'fast').removeClass('open');
				}
			});
});




/* contact form */

$('#check').change(function(){
	var A = $('#check').prop("checked");	
	if (A == false) 
	{
	$('div.reservation table').fadeOut('fast');
	} 
	else 
	{
	$('div.reservation table input, div.reservation table select').prop("disabled", false);
	$('div.reservation table').fadeIn('fast');	
	}
});

$('#privacy').change(function(){
	var B = $(this).prop("checked");
	if (B == false)
	{
	$('#submit').fadeOut("fast");
	} 
	else
	{
	$('#submit').fadeIn('slow');
	} 

});



});

	
})( jQuery );
