/**
*	Site-specific configuration settings for Highslide JS
*/
//hs.graphicsDir = '/wp-content/themes/chiro/highslide/graphics/';
if  (typeof graphicsDir != "undefined")
{
	hs.graphicsDir = graphicsDir;
}
else
{
	hs.graphicsDir = '/wp-content/themes/chiro/highslide/graphics/';
}
hs.outlineType = 'custom';
hs.dimmingOpacity = 0.75;
hs.fadeInOut = true;
hs.align = 'center';
hs.marginBottom = 105;
hs.captionEval = 'this.a.title';
//hs.wrapperClassName = 'draggable-header no-footer';
hs.allowSizeReduction = false;
hs.preserveContent = false;
	
// Add the slideshow controller
hs.addSlideshow({
	slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: false,
	overlayOptions: {
		className: 'text-controls',
		opacity: '1',
		position: 'bottom center',
		offsetX: '0',
		offsetY: '-60',
		relativeTo: 'viewport',
		hideOnMouseOut: false
	},
	thumbstrip: {
		mode: 'horizontal',
		position: 'bottom center',
		relativeTo: 'viewport'
	}

});

// gallery config object
var config1 = {
	slideshowGroup: 'group1',
	numberPosition: 'caption',
	transitions: ['expand', 'crossfade']
};

// 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)/.test(navigator.userAgent)) returnValue = true;
	else returnValue = hs.htmlExpand(opener, { 
		objectType: 'swf', 
		objectWidth: 580, 
		objectHeight: 385, 
		width: 580, 
		swfOptions: { 
			params: { 
				allowfullscreen: 'true' 
			}
		}, 
		maincontentText: 'You need to upgrade your Flash player' 
	});
	
	return returnValue;
};

