hs.graphicsDir = 'js/libs/highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'glossy-dark';
hs.wrapperClassName = 'dark';
hs.fadeInOut = true;
hs.blockRightClick = true;
hs.showCredits = false;
//hs.dimmingOpacity = 0.75;

// Add the controlbar
if (hs.addSlideshow) hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: .6,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});

$(function() {
	// Disable right-click on thumbnails
	$('img.GalleryThumbnail').each(function(index, element){
		element.oncontextmenu = function(){
			return false;
		}
	});
	
	// Enable highslide on links
	$('a.gallery').each(function() {
		this.onclick = function() {
			hs.expand(this);
			return false;
		};
	});
});

