// JavaScript Document
$(window).load(function() 
	{
	
	var priorCard = "#start";
	
	$(".clipped").each(function(){
		 		$(this).hide();
		});
	
	$("#cafe").animate({top:"-5px"}, 
	
		{duration:2150, easing:"easeOutBounce"}).animate({top:"-29px"}, {duration: 1400, easing:"easeInBack"});
		
	//$("#cafe").animate({top:"-35px"},
		
		//{duration: 1300, easing:"easeInBack"});
		
	$("#boutique").animate({top:"-3px"}, 
	
		{duration:2500, easing:"easeOutBounce"}).animate({top:"-30px"}, {duration: 1300, easing:"easeInBack"});
		
	$("#bakery").animate({top:"-4px"}, 
	
		{duration:3000, easing:"easeOutBounce"}).animate({top:"-35px"}, {duration: 1300, easing:"easeInBack"});
		
	$("#catering").animate({top:"-3px"}, 
	
		{duration:2120, easing:"easeOutBounce"}).animate({top:"-35px"}, {duration: 1300, easing:"easeInBack"});
	
	$("#contactUs").animate({top:"-3px"}, 
	
		{duration:2752, easing:"easeOutBounce"}).animate({top:"-25px"}, {duration: 1300, easing:"easeInBack"});
						 
	
	
	
		
		$("#start").show().animate({marginTop:"190"},{duration:1800, easing:"easeOutBack"});
						 
	$("#nav div a").each(function(){
		 		$(this).bind("click", function()
						{
							$(priorCard).animate({marginTop:"680"},{duration:1800, easing:"easeOutBack"})//.hide();
							
							var cardName = $(this).attr("title");	
							$("#"+cardName).show().animate({marginTop:"148"},{duration:1800, easing:"easeOutBack"});
							priorCard = "#"+cardName;
							
							
						});
								
		});
			
		//{duration:1000, easing:"easeIn"});
	/*$("#cafe").click(function() 
						{
							$("#cafeCard").animate({bottom:"-10"},{duration:1500, easing:"easeOutBack"});
					});
	
			//$(this).slideToggle("medium");
	
	$("#boutique").click(function() {
			$("#boutiqueCard").animate({bottom:"-10"},
				{duration:1000, easing:"easeInBack"});
			});*/
	/*
	$("#bakery").click(function() {
			$("#bakeryCard").animate({bottom:"-8"},
				{duration:1500, easing:"easeOutBack"});*/
	
	/*$("#catering").click(function() {
			$("#cateringCard").animate({bottom:"-10"},
				{duration:1000, easing:"easeInBack"});*/
	
	//$("#contactUs").click(function() {
		//$("#contact").animate({bottom:"-9"},
			//	{duration:1500, easing:"easeOutBack"});		
		
		//});

	
		
});	
