/* Specialized script for studio2d portfolio */
$(document).ready(function(){
	$('.thumbnail').click(function(e){
		//We get the path to the portfolio image by tinkering with the thumbnail path
		var path = $(this).children('img').attr('src');
		var newPath = path.replace('thumb','portfolio');
		
		//Get the portfolio img
		var img = $('.portfolio img');
		
		//hide it first
		img.hide();
		
		//set the new src
		img.attr('src',newPath);
		
		//fade it in
		img.fadeIn(500);
	});
});
