Recognize current element on mouseover when other elements share the same class name.
$( ".thumbnail" ).hover(
function() {
$( this ).addClass( "current" );
$( ".current .overlay" ).fadeIn( 300 );
}, function() {
$( ".current .overlay" ).fadeOut( 200 );
$( this ).removeClass( "current" );
}
);