$(document).ready(function(){

	var faded = 0.2; // opacity
	var fadeslow = 800; // milliseconds
	var fadefast = 100;  // milliseconds
	$('#featureprojects a').hover(
		function(){
			var thisImg = $('img',this);
			// fade out all feature images (after stopping all current animations)
			// but keep this one at full strength
			$('#featureprojects img').stop(true, false).not(thisImg).animate( {opacity:faded}, fadeslow );
			$(thisImg).stop(true,false).animate( {opacity:1}, fadefast);			
		}, 
		function(){
			// return all feature images to normal
			$('#featureprojects img').stop(true, false).animate( {opacity:1}, fadeslow );
		}
	);

});

