﻿/* Swaps images to n alternate image on mouse over using jQuery */

$(document).ready(function(){
    $(".swap img")
	.mouseover(function() {
	    var src = $(this).attr("src").match(/[^\.]+/) + "_over.jpg";
	    $(this).attr("src", src);
	})
	.mouseout(function() {
	    var src = $(this).attr("src").replace("_over", "");
	    $(this).attr("src", src);
	});
});

