(function($){
	$.fn.extend({ 

		neoAnimateMenu: function(options) {

			// Dat cac gia tri mac dinh
			var defaults = {
				animatePadding: 0
			};
			
			var options = $.extend(defaults, options);
		
    		return this.each(function() {
				var opts ='0px 0px';
				
				// Dat ten bien cho element (ul)
				var obj = $(this);				
				
				// Lay tat ca the li trong ul
				var items = $("a", obj);
			  
				// Them su kien mouseover và mouseout vao the a
				items.mouseover(function() {
                	// luc nay this chinh la the a
					$(this).animate({backgroundPosition: opts.animatePadding}, 500);
				}).mouseout(function() {
					$(this).animate({backgroundPosition: '-9px 0px'}, 500);
				});
    		});
    	}
	});
})(jQuery);
