// Custon JavaScript Document
<!--
// Display an SSP slideshow

	// Major version of Flash required
	var requiredMajorVersion = 9;
	// Minor version of Flash required
	var requiredMinorVersion = 0;
	// Revision of Flash required
	var requiredRevision = 124;

	function displaySSP(filePath) {
		displaySSPObject(filePath, 650, 454, 'slideshow');
	}
	
	function displaySSPObject(filePath,  width, height, sourceFile) {
		var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
		if(hasRightVersion) {  // if we've detected an acceptable version
			// embed the flash movie
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0',
				'width', width,
				'height', height,
				'src', sourceFile,
				'quality', 'high',
				'pluginspage', 'http://www.adobe.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', 'slideshow',
				'bgcolor', '#303030',
				'name', sourceFile,
				'menu', 'true',
				'allowFullScreen', 'true',
				'allowScriptAccess','sameDomain',
				'movie', sourceFile,
				'salign', '',
				'FlashVars','xmlfile='+filePath
				); //end AC code
		} else {  // flash is too old or we can't detect the plugin
			var alternateContent = 'This content requires the Adobe Flash Player.'
				+ '<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a>';
			document.write(alternateContent);  // insert non-flash content
		}
	}
// -->