function MenuItem(item){
    this.root = $(item);
    this.link = this.root.find('a');
    this.attachEvents();
};

MenuItem.prototype = {
attachEvents: function(){
		var me = this;

		var fover = function(){
			return me.over();
		};
        var fout = function(){
			return me.out();
		};

		this.link.hover(fover,fout);
	},
over: function(){

		var me = this; //для вызовов функций-членов класса
		var obj=$(this);
        this.root.find('.marker img').animate({
  width: '18px', left: '0'
}, "slow");

	},
out: function(){

		var me = this; //для вызовов функций-членов класса
		var obj=$(this);
        this.root.find('.marker img').animate({
  width: '0', left: '9px'
}, "slow");
	}
};

$(function(){
	$('.menu li').each(function(){
        var me=$(this);
		new MenuItem(me);
	})
});