hs.graphicsDir = '/wp-content/themes/typebased/highslide/graphics/';
hs.align = 'center';
//hs.transitions = ['expand', 'crossfade'];
hs.transitions = ['fade'];
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'controls-in-heading';
hs.fadeInOut = true;
//hs.dimmingOpacity = 0.5;
hs.showCredits = false;
hs.maxWidth = 1024;
hs.maxHeight = 1024;
hs.captionEval = 'this.thumb.title';
hs.headingText = 'Diaporama';

// Add the controlbar
if (hs.addSlideshow) {
	hs.addSlideshow({
			interval: 5000,
			repeat: false,
			useControls: true,
			fixedControls: false,
			overlayOptions: {
				opacity: 1,
				position: 'top right',
				hideOnMouseOut: false
			}
	});
}

hs.onSetClickEvent = function ( sender, e ) {
   // set the onclick for the element, output the group name to the caption for debugging
   e.element.onclick = function () {
	  return hs.expand(this, {
			slideshowGroup: this.parentNode.className
		});
   }
   // return false to prevent the onclick being set once again
   return false;
};

hs.isUnobtrusiveAnchor = function(el) {
	if (el.href && /(\.jpg|\.jpeg|\.gif|\.png|\.bmp)$/i.test(el.href)) {
		el.className = 'highslide';
		return 'image';
	}
};