/*  HIGHSLIDE stuff  */
hs.graphicsDir = '/images/imagesHighslide/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';

hs.fadeInOut = true;
hs.allowMultipleInstances = false;
hs.captionEval = 'this.a.title';
hs.dimmingOpacity = 0.75;
hs.numberPosition = 'caption';

hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)"></div>',
	position: 'top right',
	relativeTo: 'expander',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});

hs.captionOverlay.useOnHtml = false;

var config = new Array();
/*  adds a slideshow with a unique number to a page  */
function addShow(n) {
	// Add the controlbar
	var showNum = 'group'+n.toString();
	hs.addSlideshow({
		slideshowGroup: showNum,
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: 'fit',
		overlayOptions: {
			className: 'controls-in-heading',
			opacity: .75,
			position: 'above',
			offsetX: '0',
			offsetY: '-10',
			hideOnMouseOut: false
		}
	});
	// gallery config object
	config[n] = {
		slideshowGroup: showNum,
		transitions: ['expand', 'crossfade']
	};
}


