﻿$(function(){
	$("img.rollover").mouseover(function(){
		$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1on$2"));
		}).mouseout(function(){
		$(this).attr("src",$(this).attr("src").replace(/^(.+)on(\.[a-z]+)$/, "$1$2"));
		}).each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1on$2"));
	});

});

