// JavaScript Document
		hs.graphicsDir = '/highslide/graphics/';
		hs.align = 'center';
		hs.transitions = ['expand', 'crossfade'];
		hs.outlineType = 'rounded-white';
		hs.fadeInOut = true;
		hs.numberPosition = 'caption';
		hs.dimmingOpacity = 0.75;
		 
		// Add the controlbar
		if (hs.addSlideshow) hs.addSlideshow({
			//slideshowGroup: 'group1',
			interval: 5000,
			repeat: false,
			useControls: true,
			fixedControls: 'fit',
			overlayOptions: {
				opacity: .75,
				position: 'bottom center',
				hideOnMouseOut: true
			}
		});

		// Apply the Highslide settings
		hs.graphicsDir = '/highslide/graphics/';
		hs.outlineType = 'rounded-white';
		hs.outlineWhileAnimating = true;
		hs.allowSizeReduction = false;
		// always use this with flash, else the movie will be stopped on close:
		hs.preserveContent = false;
		hs.showCredits = false;
		hs.wrapperClassName = 'draggable-header no-footer';
		 
		 
		// 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: 480, 
				objectHeight: 385, 
				width: 480, 
				swfOptions: { 
					params: { 
						allowfullscreen: 'true' 
					}
				}, 
				maincontentText: 'You need to upgrade your Flash player' 
			});
			
			return returnValue;
		}  
