function act(){
$('.ops .lay').css('opacity',0.1).load($(this).attr('href'), function(){ $('.ops .lay').css('opacity',1) });
$(this).parent().parent().find('a').removeClass('active'); $(this).addClass('active');
return false
};
$('.ops .menu .panel a').on('click', act);
use act
method somewhere else too :)