  hs.graphicsDir = '/web-support/highslide/graphics/';
  hs.showCredits = false;
  hs.padToMinWidth = false;
  hs.outlineType = 'rounded-white';
  hs.wrapperClassName = 'draggable-header';
  hs.fadeInOut = true;
  hs.allowSizeReduction = false;
  hs.preserveContent = false;
  hs.transitions = ['expand', 'crossfade'];
  //   hs.headingEval = 'this.a.title';

if (hs.registerOverlay) {
	// The white controlbar overlay
	hs.registerOverlay({
		thumbnailId: 'thumb3',
    	overlayId: 'controlbar',
    	position: 'top right',
    	hideOnMouseOut: true
	});
}

// The gallery example on the front page
var gallerySample = {
	slideshowGroup: 'gallery',
	wrapperClassName: 'rounded-white',
	dimmingOpacity: 0,
	align: 'center',
	transitions: ['expand', 'crossfade'],
        numberPosition: 'caption'
};
var galleryFacility = {
	slideshowGroup: 'gallery',
	wrapperClassName: 'rounded-white',
	dimmingOpacity: 0,
	align: 'center',
	transitions: ['expand', 'crossfade'],
        numberPosition: 'caption'
};



if (hs.addSlideshow) hs.addSlideshow({
    slideshowGroup: 'gallery',
    interval: 5000,
    repeat: false,
    useControls: true,
	fixedControls: 'fit',
    overlayOptions: {
        opacity: .75,
        position: 'top right',
        hideOnMouseOut: true
	}
});

// focus the contact field
hs.Expander.prototype.onAfterExpand = function() {
	if (this.a.id == 'contactAnchor') {
		var iframe = window.frames[this.iframe.name],
			doc = iframe.document;
    	if (doc.getElementById("theForm")) {
        	doc.getElementById("theForm").elements["name"].focus();
    	}

	}
}

