$(function() {  
    $('.rollover').hover(function() {  
        var currentImg = $(this).attr('src');  
        $(this).attr('src', $(this).attr('name'));  
        $(this).attr('name', currentImg);  
    }, function() {  
        var currentImg = $(this).attr('src');  
        $(this).attr('src', $(this).attr('name'));  
        $(this).attr('name', currentImg);  
    });  
}); 
