hs.addEventListener(window, "load", function() {
var autoload = /[?&]autoload=([^&#]*)/.exec(window.location.href);
if (autoload) document.getElementById(autoload[1]).onclick();
});
hs.addEventListener(document, "ready", function() {
var autoload = /[?&]autoload=([^&#]*)/.exec(window.location.href);
if (autoload) document.getElementById(autoload[1]).focus();
});
hs.graphicsDir = '../res/graphics/';
hs.marginBottom = 45;
hs.marginTop = 15;
hs.marginLeft = 15;
hs.marginRight = 15;
hs.minWidth = 100;
hs.dragByHeading = false;
hs.preserveContent = false;
hs.outlineType = '';
hs.lang.loadingTitle = 'Click to cancel';
hs.lang.previousTitle = 'Previous (left arrow key)';
hs.lang.playTitle = 'Play slideshow (spacebar)';
hs.lang.pauseTitle = 'Pause slideshow (spacebar)';
hs.lang.nextTitle = 'Next (right arrow key)';
hs.lang.moveTitle = 'Click and drag to move';
hs.lang.fullExpandTitle = 'Expand to actual size (up arrow)';
hs.lang.closeTitle = 'Close';
hs.lang.previousText = 'Prev';
hs.lang.playText = 'Play';
hs.lang.pauseText = 'Pause';
hs.lang.nextText = 'Next';
hs.lang.fullExpandText = '1:1';
hs.lang.closeText = 'Close';
hs.lang.loadingText = 'Loading...';
hs.lang.restoreTitle = 'Click to close';
hs.lang.focusTitle = 'Click to bring to front';
hs.lang.resizeTitle = 'Resize';
hs.align = 'center';
hs.expandDuration = 500;
hs.restoreDuration = 500;
hs.showCredits = false;
hs.objectLoadTime = 'after';
hs.allowSizeReduction = true;
hs.dimmingOpacity = 0.8;
hs.dimmingDuration = 100;
hs.transitionDuration = 500;
hs.allowMultipleInstances = true;
hs.allowWidthReduction = true;
hs.blockRightClick = true;
hs.flushImgSize = false;
hs.numberOfImagesToPreload = 5;
hs.transitions = ['expand', 'crossfade'];
hs.easing = 'easeInBack';
hs.easingClose = 'easeOutBack';
hs.onKeyDown = function(sender, e) {
	if(e.keyCode == 40 || e.keyCode == 70) return false;
	if(e.keyCode == 38) return false;
}
hs.addSlideshow({
	interval: 10000,
	repeat: false,
	overlayOptions: {
		className: 'text-controls',
		position: 'bottom center',
		relativeTo: 'viewport',
		offsetY: -10,
		offsetX: 0
	},
	useControls: true
});
