$(document).ready(function() {
	$('ul#filtrePortfolio a').click(function() {
		$('ul#filtrePortfolio .current').removeClass('current');  
		$(this).parent().addClass('current');
		var filterVal = "portfolioCat-"+$(this).text().toLowerCase().replace('é','e');
		if(filterVal == 'portfolioCat-tous') {
		    $('ul#contenuPortfolio li.hidden').fadeIn('slow').removeClass('hidden');
		}
		else {  
		    $('ul#contenuPortfolio li').each(function() {  
		        if(!$(this).hasClass(filterVal)) {  
		            $(this).fadeOut('normal').addClass('hidden');  
		        } else {  
		            $(this).fadeIn('slow').removeClass('hidden');  
		        }  
		    });  
		}
	    return false;
	});
	
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Full Caption Sliding (Hidden to Visible)
	$('.portfolioVig').hover(function(){
	$(".portfolioLabel", this).stop().animate({top:'79px'},{queue:false,duration:160});
	$(".portfolioLabel", this).addClass('portfolioLabelHover'); 
	}, function() {
	$(".portfolioLabel", this).stop().animate({top:'125px'},{queue:false,duration:160});
	$(".portfolioLabel", this).removeClass('portfolioLabelHover'); 
	});
});