/*
 * --------------------------------------------------------------------
 * Beginning jQuery animations
 * by Siddharth S, www.ssiddharth.com, hello@ssiddharth.com
 * for Net Tuts, www.net.tutsplus.com
 * Version: 1.0, 06.01.2010 	
 * --------------------------------------------------------------------
 */

/*$(document).ready(function() 
{

	$(".item").children("div.desc").animate({bottom: -60}, 300);
	
	$(".item").hover(
			function()
			{
							
				$(this).children("div.desc").stop().animate({bottom: 0}, 700, "easeOutBounce");
			},
			function(){
								
				$(this).children("div.desc").stop().animate({bottom: -60}, 400);
			}
			);
	
	$(".desc").hover(
			function()
			{
				$(this).stop().animate({backgroundColor: "#E7E8E0"}, 700, "easeOutSine");
			},
			function(){
				$(this).stop().animate({backgroundColor: "#E7E8E0"}, 700);
			}
			);

}); 
(function($) {
 $(function() {
 						$(".desc").hide();
            $("#destacados h2").mouseover(function() {
                $(this).closest('.content').find(".desc").show("fast");
            });
            $("#destacados h2").mouseout(function() {
                $(this).closest('.content').find(".desc").hide("fast");
            });
           
        });
})(jQuery);*/

(function($) {
$(document).ready(function() 
{

	$(".desc").hide();
	
	//$(".desc").animate({bottom: -60}, 300);
	
	$("#destacados h2").mouseover(function() {
			var desc = $(this).closest('.content').find(".desc");
        desc.show().css('visibility', 'hidden');
				
				var h = -(desc.height());
				desc.css({bottom: h, visibility: 'visible'});
				
				desc.animate({bottom: h}, 300);
							
				desc.stop().animate({bottom: 0}, 700, "easeOutBounce");
  });
  
  $("#destacados h2").mouseout(function() {
	var desc = $(this).closest('.content').find(".desc");
  	var h = -(desc.height());
  	
    desc.stop().animate({bottom: h}, 400);
    desc.stop().animate({bottom: h}, 700, "easeOutBounce", function() {
    	$(this).hide()
    });
		
  });

});
})(jQuery);