
var MouseOver = Class.create({
	initialize: function (image, src, opts) {

		// Variables
		this.image = $(image);
		this.src_out = $(image).src;
		this.src_over = src;
		this.opts = opts;

		// Preload
		var preload = new Image;
		preload.src = this.src_over;

		// Assign events
		Event.observe(this.image, 'mouseover', function () {
			this.image.src = this.src_over;
		}.bind(this));
		Event.observe(this.image, 'mouseout', function () {
			this.image.src = this.src_out;
		}.bind(this));
	},
	image: null,
	src_out: null,
	src_over: null
});
