$(document).ready(function(){
			
// nav resorts hover

		$("li.resorts").hover(function() {
		$("#navMapHolder").stop(true, true).animate({opacity: "show", top: "173"}, "slow")
		},
	    	function(){ $("#navMapHolder").animate({opacity: "hide", top: "183"}, "normal");	    	
	    	}
	    );
	    
		$("#header ul li a").hover(function() {
		$(this).stop(true, true).animate({opacity: 0}, "normal")
		},
	    	function(){ $(this).stop(true, true).animate({opacity: 0.8}, "slow");	    	
	    	}
	    );
		
		
// request form		
		
		$("#ajax-contact-form").submit(function(){

		var str = $(this).serialize();
		
		   $.ajax({
		   type: "POST",
		   url: "/2009/contact-form/contact.php",
		   data: str,
		   success: function(msg){
		    
		$("#note").ajaxComplete(function(event, request, settings){
		
		if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
		{
		result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
		$("#fields").hide();
		}
		else
		{
		result = msg;
		}
		
		$(this).html(result);
		
		});
		
		}
		
		 });
		
		return false;
		
		});
		
		
		
// member form		
		
		$("#ajax-member-form").submit(function(){

		var str = $(this).serialize();
		
		   $.ajax({
		   type: "POST",
		   url: "/2009/member-form/contact.php",
		   data: str,
		   success: function(msg){
		    
		$("#note").ajaxComplete(function(event, request, settings){
		
		if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
		{
		result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
		$("#fields").hide();
		}
		else
		{
		result = msg;
		}
		
		$(this).html(result);
		
		});
		
		}
		
		 });
		
		return false;
		
		});
		
		
		
// corners

	$(function(){
		$('.featureBox').corner("3px");
		$('.box').corner("3px");
		$('.input').corner("3px");
		$('.input').corner("3px");
		$('.notification_error').corner("3px");
		$('.notification_ok').corner("3px");
		$('.button').corner("3px");
		$('select').corner("3px");
	});


		 
}); 
	    


	
	
	
