jQuery(document).ready(function() {
	
	if(jQuery(window).height() > 740) {
		
		jQuery('#landing_footer').css({position: 'fixed', bottom: '0px'});
		
	}
	
	jQuery(window).resize(function() {
	
		if(jQuery(window).height() > 740) {
		
			jQuery('#landing_footer').css({position: 'fixed', bottom: '0px'});
		
		} else {
		
			jQuery('#landing_footer').css({position: 'static'});			
		
		}
	
	});	

	jQuery('.button_1, .button_2, .button_3').hover(function() {
	
		jQuery(this).find('.button_hover').stop(true, true).animate({opacity: '1'}, 200);

	}, function() {

		jQuery(this).find('.button_hover').animate({opacity: '0'}, 200);

	});

	jQuery('nav a').hover(function() {
	
		jQuery(this).find('.nav_hover').stop(true, true).animate({opacity: '1'}, 200);

	}, function() {

		jQuery(this).find('.nav_hover').animate({opacity: '0'}, 200);

	});

	jQuery('.ext_link').hover(function() {
	
		jQuery(this).stop(true, true).animate({opacity: '1'}, 200);

	}, function() {

		jQuery(this).animate({opacity: '0'}, 200);

	});

	jQuery('#reserve').hover(function() {
	
		jQuery(this).find('.reserve_hover').show();

	}, function() {

		jQuery(this).find('.reserve_hover').hide();

	});
	
	jQuery('nav a:last-child').css('margin', '0px');
	
	jQuery('#panel .block:not(:first)').hide();
	
	jQuery('.glow').click(function(e) {
	
		jQuery('#panel .block').hide();
	
		jQuery('.glow').removeClass("current");
	
		jQuery(this).addClass('current');
	
		var clicked = jQuery(this).attr('href');
	
		jQuery(clicked).stop().fadeIn(1000);
		
		jQuery('#reserve').stop().fadeIn(1000);					
	
		e.preventDefault();
		
	});

	jQuery('.legal_click a').click(function(e) {
	
		jQuery('#panel .block').hide();

		jQuery('#reserve').hide();		
	
		jQuery('.glow').removeClass("current");
		
		var clicked = jQuery(this).attr('href');
	
		jQuery(clicked).stop().fadeIn(1000);
	
		e.preventDefault();
		
	});

	jQuery('#legal').click(function(e) {
	
		jQuery('#panel .block').hide();
	
		jQuery('.glow').removeClass("current");
			
		jQuery('#welcome').stop().fadeIn(1000);
		
		jQuery('#reserve').stop().fadeIn(1000);			
	
		e.preventDefault();
		
	});
	
	jQuery('.reserve_now').click(function(e) {
	
		jQuery('#panel .block').hide();
	
		jQuery('#reserve').hide();				
	
		jQuery('.glow').removeClass("current");

		var clicked = jQuery(this).attr('href');
			
		jQuery(clicked).stop().fadeIn(1000);			
	
		e.preventDefault();
		
	});	

	jQuery('.return_home').click(function(e) {
	
		jQuery('#panel .block').hide();
		
		jQuery('.glow').removeClass("current");

		jQuery('#welcome').stop().fadeIn(1000);		
	
		e.preventDefault();
		
	});	
	
});
