jQuery(function($){

	// hide project titles on load
	$('.project h2').hide();
	
	// fade images on hover
	$('.project').hover(function() {
		$(this).find('img').fadeTo(200, 0);
	}, function() {
		$(this).find('img').fadeTo(100, 1);
	});
	
	// show title on hover
	$('.project').hover(function() {
		$(this).children('h2').fadeIn(600);
	}, function() {
		$(this).children('h2').hide();
	});
	
	
	// filter dropdown
	
	//Hide (Collapse) the quick links drop down on load
	$("#dropdown ul").hide(); 
	
	//Remove the down arrow from the toggle button
	$("#dropdown h5").click(function(){
		if ($(this).parent().hasClass('open')) {
			$(this).parent().removeClass("open");
		} else {
			$(this).parent().addClass("open");
		}
	});
	
	//Slide the dropdown up and down on click
	$("#dropdown h5").click(function(){
		$(this).next().slideToggle(100);
	});
	
});
