var ImageMouseover = Class.create();
ImageMouseover.prototype = {
	initialize: function(obj,target,content) {
		this.object = obj;
		this.target = $(target);
		
		this.old_src = $(target).src;
		this.target.src = content;
		
		this.destroyObserver = this.destroy.bind(this);
		Event.observe(this.object,'mouseout',this.destroyObserver);
	},

	destroy: function() {
		this.target.src = this.old_src;
		Event.stopObserving(this.object,'mouseout',this.destroyObserver);
	}
}
