$(document).ready(function() {
   
	
	//this function handles the garage door opening with out easing
	$('.navBtn a').click(function() {
		$(this).parent().animate({ marginTop: "0px" }, {duration: 600, easing: 'easeInBack'});
		return false;
	});
	
	
	//This function handles the mouse out closing of the garage door
	$('.navList').mouseleave(function() {
		$(this).siblings().animate({ marginTop: "190px" }, {duration: 500, easing: 'easeOutBounce'});
	});

});


//This handles the portfolio ajax functions
$(document).ready(function() {

	$("ul.portfolioItems a").click(function(){
		var urlVar = $(this).attr("href");
		
		//console.log("I have been clicked" + urlVar);

		$(".portfolioViewer img").fadeOut("fast", function(){
			$(this).attr("src", urlVar, function(){
				
			}).fadeIn("slow");
		});


		return false;
	});
});