$(document).ready(function(){
	$("a.fadeCollection").hover(								
			function () {
				t="hovering over "+$(this).attr('class');
				$(this).removeClass('fadeCollection');
				$(this).addClass('fadeCollectionHover');
				$(this).stop(true).animate({'backgroundColor':'rgba(50,50,50,0.2)','opacity':1},'fast','linear');
				$("a.fadeCollection").each(function(index){
					/* para ver a qué objetos afecta, en caso de encontrar problemas
					var r= Math.floor(Math.random()*255);
					var g= Math.floor(Math.random()*255);
					var b= Math.floor(Math.random()*255);					
					$(this).css({border:'1px solid rgb('+r+','+g+','+b+')'});
					*/
					$(this).stop(true).animate(
						{
							'opacity':0.5,
							'backgroundColor':'rgba(0,0,0,0.5)'
						},
						'fast',
						'linear'
						);
				
				});
			},					
		   
		  function () {
			$(this).removeClass('fadeCollectionHover'); 
			$(this).addClass('fadeCollection');	
			$("a.fadeCollection").delay(400).stop(true,true).animate({'opacity':1,'backgroundColor':'rgba(50,50,50,0)'},'fast','linear');
	});
	
	

});
