// JavaScript Document
$(document).ready(function() {
	
	$(".roll").each(function() {
		rollsrc = $(this).attr("src");
		rollON = rollsrc.replace(/.jpg$/ig, "_s.jpg");
		$("<img>").attr("src", rollON);
	});
	
	$(".roll").mouseover(function() {
		imgsrc = $(this).attr("src");
		matches = imgsrc.match(/_over/);
		if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig, "_s.jpg"); 
			$(this).attr("src", imgsrcON);
		}
	});
	
	$(".roll").mouseout(function() {
		$(this).attr("src", imgsrc);	
	});
	
});


