I have a simple animated menu here that does what it needs to. But I know (in an embarrassing newbie way) the code could be much smarter. I have tried using $(this) and then trying to find the other elements, but I can't get anything else working. Here's the snippet of the first few menu items:

$(function() {
var $btn = $('.button');
$btn.click(function() {
// Remove and add the "active" class
$btn.removeClass('active');
$(this).addClass('active');
// Get the id we need to open the group box for this selection
var ele = $(this).attr('id').split('-');
// Hide any group box that is currently open
$('.group').stop().animate({
left : '-130px'
}, 500);
// Open the menu associated with the current selection
$('#' + ele[0]).stop().animate({
left : '130px'
}, 500);
});
});