/////////gallery
var galleryOptions = {
  graphicsDir: 'images/graphics/',
  slideshowGroup: 'gallery',
  align: 'center',
  transitions: ['expand', 'crossfade'],
  outlineType: 'rounded-white',
  showCredits: false,
  wrapperClassName: 'controls-in-heading',
  fadeInOut: true
};

if (hs.addSlideshow) hs.addSlideshow({
  slideshowGroup: 'gallery',
  interval: 5000,
  repeat: false,
  useControls: true,
  fixedControls: false,
  overlayOptions: {
    opacity: 1,
    position: 'top right',
    hideOnMouseOut: false
  }
});

//////////html
var htmlOptions = {
  graphicsDir: 'images/graphics/',
  outlineType: 'rounded-white',
  showCredits: false,
  wrapperClassName: 'draggable-header',
  align: 'center'
};

//////////youtube
function openYouTube(opener) {
	var returnValue;
	
	// Safari Mobile doesn't have Flash, so we just let the device use the built-in 
	// YouTube viewer.
	if (/(iPhone|iPod|iPad)/.test(navigator.userAgent)) returnValue = true;

	else returnValue = hs.htmlExpand(opener, { 
		objectType: 'swf', 
		objectWidth: 640, 
		objectHeight: 385, 
		transitions: ['fade'],
		width: 640,
		graphicsDir: 'images/graphics/',
		outlineType: 'rounded-white',
        align: 'center',
		outlineWhileAnimating: true,
		allowSizeReduction: false,
		showCredits: false,
		headingText: '',

		// always use this with flash, else the movie will be stopped on close:
		preserveContent: false,
		wrapperClassName: 'draggable-header no-footer',
		swfOptions: { 
			params: { 
				allowfullscreen: 'true' 
			}
		}, 
		maincontentText: 'You need to upgrade your Flash player' 
	});
	
	return returnValue;
}  

