$(document).ready(function(){
  jQuery('a[rel*=facebox]').facebox();

  $('img.thumb').hover(function() {
    var highlitedId = $(this).attr('id'); 
    $(this).stop();
    $(this).fadeTo('normal', 1);
    $('img.thumb').each(function(index, link) { 
      if(highlitedId != $(link).attr('id') ){ 
        $(link).stop();
        $(link).fadeTo('slow', 0.5); };
      }); 
    });

    $('img.thumb').mouseout(function() {
      $('img.thumb').each(function(index, link) {
        $(link).stop();
        $(link).fadeTo('slow', 1);
      });
    });

  });
