// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(function() {

// Display title <span> on hover	
	$("#project_grid a .description").css({"opacity" : 0});
	$("#project_grid a").hover(function() {
		$(this).children('.description').stop().animate({"opacity" : 0.85}, 200);
	}, function() {
		$(this).children('.description').stop().animate({"opacity" : 0}, 500);
	});
	
// Toggle description block
	$("p#description_toggle a").click(function() {
		$("div#description").toggle();
	});

});