﻿
var ImageRollOverer = new Class({
	initialize: function(options, context) {
		context = context || document;
		$$('img.Over').each(function(el) {
			el.addEvent('mouseenter', function(e) {
				var extPos = this.src.lastIndexOf('.');
				if (this.src.substr(extPos - 4, 4) != "Over")
					this.src = this.src.substr(0, extPos) + 'Over' + this.src.substr(extPos);
			});
			el.addEvent('mouseleave', function(e) {
				if (this.src.indexOf('Over.') > -1) {
					this.src = this.src.replace('Over.', '.');
				}
			});
		});
	}
});

if (!SiteUtil.isIE6) window.addEvent('domready', function() { new ImageRollOverer(); });