// A reverse() method for jQuery collection similar to Array.reverse()
$.fn.reverse = [].reverse;

// Define default Fancybox using custom configuration
(function($) {

  $.fn.defaultFancybox = function(options) {
    var defaults = {
      hideOnContentClick: false,
      hideOnOverlayClick: false,
      enableEscapeButton: true,
      showCloseButton: true
    };

    var opts = $.extend({}, defaults, options);
    this.fancybox(opts);

    return this;
  };

})(jQuery);

