hs.graphicsDir = '/images/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;
hs.numberPosition = 'caption';
hs.preserveContent = false;
hs.showCredits = false;
// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
  slideshowGroup: 'group3',
  interval: 5000,
  repeat: false,
  useControls: true,
  fixedControls: true,
  overlayOptions: {
    opacity: 1,
    position: 'top center',
  }
});

/**
* Function to submit a HTML form into a Highslide iframe popup.
*/
function submitToHighslide(form) {

	// identify the submit button to start the animation from
	var anchor;
	for (var i = 0; i < form.elements.length; i++) {
		if (form.elements[i].type == 'submit') {
		anchor = form.elements[i];
		break;
	}
}

// open an expander and submit our form when the iframe is ready
hs.overrides.push('onAfterExpand');
hs.htmlExpand(anchor, {
	objectType: 'iframe',
	src: 'about:blank',
	width: 800,
	height: 600,
	onAfterExpand: function(expander) {
		form.target = expander.iframe.name;
		form.submit();
	}
});

// return false to delay the sumbit until the iframe is ready
return false;
}
