 $(document).ready(function() {
    $('#images td').hover(function() {
      var $fade = $(this).find('.clr');
      var $fadebw = $(this).find('.bw');
      if ($fade.is(':animated')){
        $fade.stop().fadeTo(200, '0');
      } else {
        $fade.fadeOut(200);
      }
	  
	  var section = $(this).attr('id')
	  $('#menu ul li').removeClass('selected');
	  $('#menu ul li:nth-child('+section+')').addClass('selected')
    }, function() {
	  $('#menu ul li').removeClass('selected');
      var $fade = $(this).find('.clr');
      var $fadebw = $(this).find('.bw');
      if ($fade.is(':animated')){
        $fade.stop().fadeTo(200,'1');
      } else {
        $fade.fadeIn(200);
      }
    });
	
	$('.image_grid a').lightBox();
	
/*
	$("#thumbnails a").each(function(){
		$(this).attr('rel','prettyPhoto[gallery1]');
	});

	$("#thumbnails a[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
*/
});
