With a few improvements markup we can greatly simplify your code, for example, even if these elements hover <div>will also have a generic class, for example:
<div class="boxgrid boxgrid1">
, :
$('.boxgrid .cover').css({ top: '247px' });
$('.boxgrid').hover(function() {
$(".cover", this).stop().animate({ top: '0px' }, 300);
}, function() {
$(".cover", this).stop().animate({ top: '247px' }, 300);
});
$("#shop_buttons_table tr:nth-child(2)").delegate("td", "mouseenter mouseleave", function(e) {
$("#shop_buttons_table tr:nth-child(1) .boxgrid").eq($(this).index()).trigger(e);
});
, , , "" .boxgrid , ( .stop(), ) .