

$(document).ready(function()
{

	$('input[name="seasons"]').click(function (event)
	{
		var season = $(event.target).attr('id');

		if (season == 'lowseason')
		{
			$('#room1 span.price').html('79');
			$('#studio2 span.price').html('79');
			$('#studio3 span.price').html('59');
			$('#apt5 span.price').html('79');
			$('#room6 span.price').html('59');
			$('#apt7 span.price').html('79');
			$('#room8 span.price').html('59');

			$('.currentseason span.low').show();
			$('.currentseason span.high').hide();
			$('.currentseason span.holiday').hide();
		}

		if (season == 'highseason')
		{
			$('#room1 span.price').html('99');
			$('#studio2 span.price').html('99');
			$('#studio3 span.price').html('79');
			$('#apt5 span.price').html('99');
			$('#room6 span.price').html('79');
			$('#apt7 span.price').html('99');
			$('#room8 span.price').html('79');

			$('.currentseason span.low').hide();
			$('.currentseason span.high').show();
			$('.currentseason span.holiday').hide();
		}

		if (season == 'holidayseason')
		{
			$('#room1 span.price').html('130');
			$('#studio2 span.price').html('130');
			$('#studio3 span.price').html('110');
			$('#apt5 span.price').html('130');
			$('#room6 span.price').html('110');
			$('#apt7 span.price').html('130');
			$('#room8 span.price').html('110');

			$('.currentseason span.low').hide();
			$('.currentseason span.high').hide();
			$('.currentseason span.holiday').show();
		}
	});

	$.get("/server/getSeason.php", function(data)
	{
		$('input[name="seasons"][id="'+data+'"]').click();
	});

});
