////////////////////////////////////////////////
//
// swapImg.js
//
////////////////////////////////////////////////

$(function(){
  $(".hover").hover(function(){
	var cont = $(this).attr("src");
	if ((/\d\.[jpg|jpeg|png|gif]/).test(cont)){
	cont = cont.replace(/(\.)(jpg|jpeg|png|gif)/,"hover$1$2");	
	}else{
	cont = cont.replace(/(\.)(jpg|jpeg|png|gif)/,"Hover$1$2");
	}
	$(this).attr("src",cont)
}, function(){
	var cont = $(this).attr("src");
	cont = cont.replace(/(Hover|hover)\./,".");
	$(this).attr("src",cont)
}); 
});
