/**
*	Site-specific configuration settings for Highslide JS
*/
hs.graphicsDir = '/images/highslide/';
hs.showCredits = false;
hs.outlineType = 'custom';
hs.fadeInOut = true;
hs.allowMultipleInstances = false;
hs.align = 'center';
hs.captionEval = 'this.thumb.alt';

// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		className: 'large-dark',
		opacity: '0.75',
		position: 'top right',
		offsetX: '-10',
		offsetY: '-15',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'vertical',
		position: 'right',
		relativeTo: 'viewport'
	}

});

// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	transitions: ['expand', 'crossfade']
};

// adds onclicks to class=highslide
hs.isUnobtrusiveAnchor = function(el) {
	if (el.className == 'highslide') return 'image';
}

// adds "config1" to the onclick event
hs.onSetClickEvent = function ( sender, e ) {
   e.element.onclick = function () {
      return hs.expand(this, config1 );
   }
   // return false to prevent the onclick being set once again
   return false;
}


