$(document).ready(function () {
	
	$("img.a").hover(function() {
	   $('#'+this.name).attr('src', this.alt).attr('alt', 'newattribute');
	});

});
