$(document).ready(function () {
	//Set the height of the block
	$('#menuanime .block').height($('#menuanime li').height());

	//go to the default selected item
	topval = $('#menuanime .selected').position()['top'];
	$('#menuanime .block').stop().animate({top: topval}, {easing: '', duration:500});

	$('#menuanime li').hover(
		function() {
			//get the top position
			topval = $(this).position()['top'];
			//animate the block
			//you can add easing to it
			$('#menuanime .block').stop().animate({top: topval}, {easing: '', duration:500});
			//add the hover effect to menuanime item
			$(this).addClass('hover');	
		},

		function() {
			//remove the hover effect
			$(this).removeClass('hover');	
		}
	);
});
