if(!AV)
	var AV = {};
AV.modules = new Class({
	Implements: [Options, Events],
	options: {
		'classHover': 'av-mod-hover'
	},
	initialize: function(elems){
		this.elements = $$(elems);
		this.elements.each(function(item){
			item.addEvents({
				'mouseover': function(e){
					this.$enter.call(this, e);
				}.bind(this),
				'mouseout': function(e){
					this.$leave.call(this, e);
				}.bind(this)
			});
		}, this);
	},
	$enter: function(e){
		document.id(e.target).addClass(this.options.classHover);
		this.fireEvent('mouseover', [e.target, this.elements]);						
	},
	$leave: function(e){
		document.id(e.target).removeClass(this.options.classHover);
		this.fireEvent('mouseout', [e.target, this.elements]);
	}
});

