(function($) {
  $.fn.gallery = function(options) {

    // Set the default options
    var defaults = {
  };

  // Merge the default options with the user's ones  
  var options = $.extend(defaults, options);

  // Add the plug-in
  return this.each(function() {
    // Bind the Click on the Track List
    jQuery(this).find('li > span').bind('click', function() {
      // Get the Selected Track
      track = jQuery('#' + this.id + '_DETAILS');

      // Check if the Track is not already selected
      if (!track.hasClass('visible')) {
        // Hide all the Tracks
        jQuery('div.Album').removeClass('visible').hide();

        // Fade In of the selected Track
        track.addClass('visible').fadeIn('normal');
      }
    });

    // Display the default first Track
    jQuery(this).find('li > span:first').click();
  });
};
})(jQuery);

