$(function(){
	$("img[@ref=on]")
		.mouseover(function () {
			this.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_on$2");
		})
		.mouseout(function () {
			this.src = this.src.replace(/^(.+)_on(\.[a-z]+)$/, "$1$2");
		})
		.each(function () {
			this.preloaded = new Image;
			this.preloaded.src = this.src.replace(/^(.+)(\.[a-z]+)$/, "$1_on$2");
	});
});
