hs.graphicsDir = 'http://www.djontheroad.com/dj/wp-content/plugins/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.dimmingOpacity = 0.8;
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'controls-in-heading';
hs.fadeInOut = true;
hs.marginBottom = 0; // make room for the thumbstrip and the controls
hs.numberPosition = 'caption';
 
// This line will put the title of the pictures (from nextgen) into the caption field in highslide.
//hs.captionEval = 'this.a.title';//Is the description of the image taken from NextGen
//hs.headingText = 'this.thumb.title';//Will be show for every image (Ex: your website, slogan, etc)

hs.captionOverlay.position = 'below';

hs.Expander.prototype.onAfterGetCaption = function (sender) {
   if (sender.caption) {
		if (this.thumb.title.length) { // this.a.title is the description
			sender.caption.innerHTML += "<strong>" + this.thumb.title + "</strong>";
		}
		if (this.a.title.length) { // this.a.title is the description
			if (this.thumb.title.length) { sender.caption.innerHTML += ": ";}
			sender.caption.innerHTML += this.a.title;
		}
   }
};

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
//slideshowGroup: 'group1',
interval: 5000,
repeat: true,
useControls: true,
fixedControls: 'fix',
overlayOptions: {
	opacity: 1,
	position: 'bottom right',
	hideOnMouseOut: false,
	offsetY: 23
},
thumbstrip: {
position: 'right',
mode: 'vertical',
relativeTo: 'viewport'
}
});

