//alert('mediaLoader loaded');


// -------------------------------------------------------  Highslide Stuff  ------------------------------------------------------- //
//	2 Optionally override the settings defined at the top of the highslide.js file. The parameter hs.graphicsDir is important!
// Apply the Highslide settings
hs.graphicsDir = globalPath + 'common/highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header no-footer';
hs.allowSizeReduction = false;
hs.align = 'center';
// always use this with flash, else the movie will be stopped on close:
hs.preserveContent = false;
//hs.captionEval = 'this.thumb.alt';
hs.dimmingDuration = 200;
hs.dimmingOpacity = 0.60;



// 3 Optionally set the swfOptions. See http://highslide.com/ref/hs.swfOptions for full documentation
 hs.swfOptions = {
	version:"9",
	expressInstallSwfurl: null,
	flashvars:{
		xmlSource: 'http://www.risk.utah.gov/media/videos.xml',
		//showDebugger: false, 
		theDomainSuffix: 'utah.gov'
	},
	params:{},
	attributes:{}
};


		// -------------------------------------------------------  Red5's Stuff  ------------------------------------------------------- //
		function setFlashVars(theSection, qualitySelector, chapterSelector, displayDebugger) {
			hs.swfOptions.flashvars.whatSection = theSection;
			hs.swfOptions.flashvars.showQuality = qualitySelector;
			hs.swfOptions.flashvars.showChapter = chapterSelector;
			hs.swfOptions.flashvars.showDebugger = displayDebugger;
		}