//   var galleryOptions = {
//   captionOverlay: { position: 'rightpanel'},
//   slideshowGroup: 'gallery',
//   wrapperClassName: 'dark',
//   outlineType: 'glossy-dark',
//   dimmingOpacity: 0.8,
//   align: 'center',
//   transitions: ['expand', 'crossfade'],
//   fadeInOut: true,
//   wrapperClassName: 'borderless floating-caption',
//   marginLeft: 100,
//   marginBottom: 80,
//   numberPosition: 'caption'
// };

function hsConfig(ref) {
        
  hs.graphicsDir = ref; 
  hs.showCredits = true;
  hs.expandCursor = null;
  hs.restoreCursor = null;
  hs.align = 'center';
  hs.transitions = ['expand', 'crossfade'];
  hs.outlineType = 'drop-shadow';
  hs.fadeInOut = true;
  //hs.numberPosition = 'caption';
  hs.dimmingOpacity = 0.75;

  // Add the controlbar
  hs.addSlideshow({
    interval: 5000,
    repeat: false,
    useControls: true,
    fixedControls: 'fit',
    overlayOptions: {
      opacity: .75,
      position: 'bottom center',
      hideOnMouseOut: true
    }
  });
}
