// JavaScript Document
//apply to all image tags that have class=”hoverswap” 
$(function() {
	$(".hoverswap").hover(
		function () {
			var ext1 = $(this).attr("src").split('.').pop(); 
			$(this).attr("src", $(this).attr("src").replace("." + ext1, "-over." + ext1));
		},
		function () {
			var ext1 = $(this).attr("src").split('.').pop();
			$(this).attr("src", $(this).attr("src").replace("-over." + ext1, "." + ext1));
		}
	);
});




