$(function() {

	$('a.portfolio img').animate({"opacity" : 0.5},1000);

	

	$('a.portfolio').hover(function() {

		$(this).children('img').stop().animate({"opacity" : 1},1000);							

									

	}, function() {

		$(this).children('img').stop().animate({"opacity" : 0.5},1000);		

		

	});

	

	$('a.portfolio').click(function() {

									

		$(this).children('img').stop().animate({"opacity" : 1},1000);

		

		var ReferencePage = $(this).attr('href');

		

		$('#response').fadeOut(500, function() {

			$('#response').remove();
			
			$('<div id="response" />').load(ReferencePage + '?' +  Math.random()*99999 +' #response',function() {

			$(this).hide()

				   .appendTo('.right .inner').

				   fadeIn(500);

			});

		});
	

		return false;	

		

	});

		

});//document ready
