var Hover = Class.create({
	initialize: function (aClass, aHoverClass) {
		this.hover = aHoverClass;
		$$(aClass).each(this.setEvents.bind(this));
	},
	setEvents: function(aObj) {
		aObj.observe('mouseover', this.enter.bind(this, aObj));
		aObj.observe('mouseout', this.out.bind(this, aObj));
	},
	enter: function(aObj){
		aObj.addClassName(this.hover);
	},
	out: function(aObj){
		aObj.removeClassName(this.hover);
	}
});
