/**
*	Site-specific configuration settings for Highslide JS
*/
hs.graphicsDir = '/wp-content/plugins/highslide/graphics/';
hs.transitions = ['expand', 'crossfade']
hs.showCredits = false;
hs.outlineType = null;
hs.dimmingOpacity = 0.85;
hs.fadeInOut = true;
hs.align = 'center';
hs.allowMultipleInstances = false;
hs.blockRightClick = true;
hs.enableKeyListener = false;
hs.captionEval = 'this.thumb.alt';
hs.captionOverlay.position = 'below';
hs.Expander.prototype.onAfterGetCaption = function (sender) {
   if (sender.caption) {
      sender.caption.innerHTML += '<br />' + this.a.title;  // this.a.title is the description
   }
};

// Add the slideshow controller
hs.addSlideshow({
//	slideshowGroup: 'group1',
	interval: 4000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		className: 'text-controls',
		opacity: '0.75',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '30',
		hideOnMouseOut: false

	}
	
});

// gallery config object
//var config1 = {
//	slideshowGroup: 'group1',
//	transitions: ['expand', 'crossfade']
//};
hs.onSetClickEvent = function ( sender, e ) {
   e.element.onclick = function () {
      return hs.expand(this, { wrapperClassName: 'no-controls' });
   }
   return false;
};
