$(document).ready(function() {

//buttons
var img;
$('a.opacity').hover(function(){
 	$(this).addClass("hovered");
 		$('a.opacity:not(.hovered)').children('img').stop().animate({'opacity': 0.5});
		img = $(this).children('img').attr("src");
		var temp = img.split('.');
 		$(this).children('img').attr("src", temp[0]+"_big."+temp[1]); 
 	}, function(){
		
 	$(this).removeClass("hovered");
 		$('a.opacity:not(.hovered)').children('img').stop().animate({'opacity': 1});
 		$(this).children('img').attr("src", img); 

 	}); 
});
