	hs.graphicsDir = server_url+'/images/graphics/';
	hs.align = 'center';
	hs.transitions = ['expand', 'crossfade'];
	hs.outlineType = 'rounded-white';
	hs.fadeInOut = true;
	hs.outlineWhileAnimating = true;
	hs.dimmingOpacity = .75;
	
	// always use this with flash, else the movie will be stopped on close:
	hs.preserveContent = false;

	// 3) Optionally set the swfOptions. See http://highslide.com/ref/hs.swfOptions for full documentation
	/* hs.swfOptions = {
		version:			  "7",
		expressInstallSwfurl: null,
		flashvars:			{},
		params:			   {},
		attributes:		   {}
	}; */
	
	// 4) Add the controlbar for the gallery.
	//    Set slideshowGroup to the controlbar for the gallery for avoiding controlbar appearing at the flash expanders.
	//    Add the same slideshowGroup to each of the expanders in the gallery - see mark up for the gallery 
	if (hs.addSlideshow) hs.addSlideshow({
		slideshowGroup: 'group1',
		interval: 5000,
		repeat: false,
		useControls: true,
		fixedControls: true,
		overlayOptions: {
		opacity: .75,
		position: 'bottom center',
		hideOnMouseOut: true
		}
	});

// create a shorthand function so we don't need to put all this in the opener's onclick
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)) {
		opener.href = opener.href.replace('/v/', '/watch?v=');
		returnValue = true;		
	}

	else returnValue = hs.htmlExpand(opener, { 
		objectType: 'swf', 
		objectWidth: 600, 
		objectHeight: 400, 
		width: 600, 
		swfOptions: { 
			params: { 
				allowfullscreen: 'true' 
			}
		}, 
		maincontentText: 'You need to upgrade your Flash player' 
	});
	
	return returnValue;
}  
