/*
title:		site-specific configuration settings for highslide js
author:     campbell@scdny.com
*/

hs.graphicsDir = 'highslide/graphics/';
hs.dimmingOpacity = .85;
hs.transitionDuration = 250;
hs.align = 'center';
hs.allowMultipleInstances = false;
hs.transitions = ['expand', 'crossfade'];
hs.wrapperClassName = 'borderless floating-caption';
hs.marginTop = 70;
hs.marginBottom = 90;
hs.easing = 'easeOutBack';
hs.fadeInOut = false;
hs.expandDuration = 200;

// text overlays, captions and numbering

hs.showCredits = false;
hs.loadingText = '';
hs.loadingTitle = '';
hs.previousTitle = '';
hs.nextTitle = '';
hs.numberPosition = 'caption';
hs.lang.number = 'Image %1 of %2 | ';
hs.restoreTitle = 'Close (click) or (esc)';

// close button in upper right corner

hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	useOnHtml: true,
	fade: 2
});

// slideshow controller

hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 3500,
	repeat: true,
	useControls: true,
	overlayOptions: {
		position: 'middle',
		relativeTo: 'expander',
		width: '100%',
		offsetY: -25,
		hideOnMouseOut: false
	}
});
	
// Spread controls mod: reposition the lower buttons
	
hs.Expander.prototype.onAfterExpand = function() {
	if (this.slideshow && this.slideshow.btn) {
		var btn = this.slideshow.btn;
		btn.previous.style.top = (this.y.size - btn.previous.offsetHeight) +'px';
		btn.next.style.top = (this.y.size - btn.next.offsetHeight) +'px';
	}
}

