/**
*	Site-specific configuration settings for Highslide JS
*/
hs.expandCursor = null; // null disables
hs.restoreCursor = null; // null disables
hs.graphicsDir = 'js/highslide/graphics/';
hs.numberOfImagesToPreload = 10000;
hs.fadeInOut = true;
hs.showCredits = false;
hs.dimmingOpacity = 0.7;
hs.dimmingDuration = 300;
hs.outlineType = 'custom';
hs.align = 'center';
hs.allowMultipleInstances = false;
hs.transitions = ['expand', 'crossfade'];
hs.registerOverlay({
	html: '<div class="highslide-caption"></div>',
	position: 'top right',
	offsetY: '-5',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.registerOverlay({
	html: '<div class="closebutton" onclick="return hs.close(this)" title="Close"></div>',
	position: 'top right',
	offsetY: '-5',
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.registerOverlay({
  html: '<div class="highslide-controls"><div class="highslide-next" onclick="return hs.next(this)" title="Next"><a href="javascript:null;"></a></div></div>',
	position: 'middle right',
  	hideOnMouseOut: true,
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});
hs.registerOverlay({
  html: '<div class="highslide-controls"><div class="highslide-previous" onclick="return hs.previous(this)" title="Previous"><a href="javascript:null;"></a></div></div>',
	position: 'middle left',
  	hideOnMouseOut: true,
	useOnHtml: true,
	fade: 2 // fading the semi-transparent overlay looks bad in IE
});



function createOverlay(id){	
	// Add the slideshow controller
	hs.addSlideshow({
		slideshowGroup: id,
		interval: 3000,
		repeat: false,
    autoplay: false/*,
		useControls: false,
		fixedControls: 'fit',
		overlayOptions: {
			//className: 'controls-in-heading',
			opacity: '0.75',
			position: 'bottom center',
			offsetX: '0',
			offsetY: '25',
			hideOnMouseOut: false
		}*/
	});
}


