/**
*	Site-specific configuration settings for Highslide JS
*/
hs.graphicsDir = 'highslide/graphics/';
hs.showCredits = false;
hs.outlineType = null;
hs.dimmingOpacity = 0.75;
hs.fadeInOut = true;
hs.transitionDuration = 150;
hs.align = 'center';
hs.marginBottom = 40;
hs.marginLeft = 120;
hs.allowMultipleInstances = false;
hs.expandCursor = null;
hs.restoreCursor = null;


// Add the slideshow controller
hs.addSlideshow({
//	slideshowGroup: 'group2',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false, //'fit',
	overlayOptions: {
		className: 'text-controls',
		opacity: '1',
		position: 'bottom center',
		offsetX: '50',
		offsetY: '-10',
		relativeTo: 'viewport',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'vertical',
		position: 'middle left',
		relativeTo: 'viewport'

	}

});

// gallery config object
// FA
var config1 = {
	slideshowGroup: 'group1',
	transitions: ['expand', 'crossfade'],
    thumbnailId: 'thumb1'                  // expand from location
};
var config2 = {
	slideshowGroup: 'group2',
	transitions: ['expand', 'crossfade'],
    thumbnailId: 'thumb2'
};
var config3 = {
	slideshowGroup: 'group3',
	transitions: ['expand', 'crossfade'],
    thumbnailId: 'thumb3'
};


// scripts ...


function openLink(id,conf) {
    return hs.expand(
    document.getElementById(id),conf);
}


hs.Expander.prototype.onBeforeExpand = function (sender) {
   var el = document.getElementById('infotext');
   if (el.style.visibility != 'hidden') {
     el.style.visibility = 'hidden';
    }
   el = document.getElementById('footer');
   if (el.style.visibility != 'hidden') {
     el.style.visibility = 'hidden';
   }
}

hs.Expander.prototype.onBeforeClose = function (sender) {

   var el = document.getElementById('infotext');
   if (el.style.visibility != 'visible') {
     el.style.visibility = 'visible';
    }
   el = document.getElementById('footer');
   if (el.style.visibility != 'visible') {
     el.style.visibility = 'visible';
   }
    return true;
}

