$(function(){
<!-- IMAGE 1 -->
$("img.b1").stop().animate({"opacity": "0"}, "slow");
$("img.a1").hover(
function() {
$("img.a1").stop().animate({"opacity": "0"}, "slow");
$("img.b1").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a1").stop().animate({"opacity": "1"}, "slow");
$("img.b1").stop().animate({"opacity": "0"}, "slow");
});

<!-- IMAGE 2 -->
$("img.b2").stop().animate({"opacity": "0"}, "slow");
$("img.a2").hover(
function() {
$("img.a2").stop().animate({"opacity": "0"}, "slow");
$("img.b2").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a2").stop().animate({"opacity": "1"}, "slow");
$("img.b2").stop().animate({"opacity": "0"}, "slow");
});

<!-- IMAGE 3 -->
$("img.b3").stop().animate({"opacity": "0"}, "slow");
$("img.a3").hover(
function() {
$("img.a3").stop().animate({"opacity": "0"}, "slow");
$("img.b3").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a3").stop().animate({"opacity": "1"}, "slow");
$("img.b3").stop().animate({"opacity": "0"}, "slow");
});

<!-- IMAGE 4 -->
$("img.b4").stop().animate({"opacity": "0"}, "slow");
$("img.a4").hover(
function() {
$("img.a4").stop().animate({"opacity": "0"}, "slow");
$("img.b4").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a4").stop().animate({"opacity": "1"}, "slow");
$("img.b4").stop().animate({"opacity": "0"}, "slow");
});

<!-- IMAGE 5 -->
$("img.b5").stop().animate({"opacity": "0"}, "slow");
$("img.a5").hover(
function() {
$("img.a5").stop().animate({"opacity": "0"}, "slow");
$("img.b5").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a5").stop().animate({"opacity": "1"}, "slow");
$("img.b5").stop().animate({"opacity": "0"}, "slow");
});

<!-- IMAGE 6 -->
$("img.b6").stop().animate({"opacity": "0"}, "slow");
$("img.a6").hover(
function() {
$("img.a6").stop().animate({"opacity": "0"}, "slow");
$("img.b6").stop().animate({"opacity": "1"}, "slow");
},
function() {
$("img.a6").stop().animate({"opacity": "1"}, "slow");
$("img.b6").stop().animate({"opacity": "0"}, "slow");
}); 
 
});
