$('.overview').css('opacity',0);
$('.albumInfo, .album img').click(function() {
    $(this).parent('.album').find('.overview').slideToggleWidth();
});
 
jQuery.fn.extend({
  slideRight: function() {
    return this.each(function() {
      jQuery(this).animate({left: '0', opacity: 1});
    });
  },
  slideLeft: function() {
    return this.each(function() {
      jQuery(this).animate({left: '-230px', opacity: 0});
    });
  },
  slideToggleWidth: function() {
    return this.each(function() {
      var el = jQuery(this);
      if (el.css('left') == '-230px') {
        el.slideRight();
      } else {
        el.slideLeft();
      }
    });
  }
});
