// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 10;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------
// 
// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
		'width', '710',
		'height', '500',
		'src', '/videos/specialty-school-podcasts/open',
		'quality', 'high',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', 'open',
		'bgcolor', '#000000',
		'name', 'open',
		'menu', 'true',
		'allowFullScreen', 'true',
		'allowScriptAccess','sameDomain',
		'movie', '/videos/specialty-school-podcasts/open',
		'salign', '',
        	'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
		); //end AC code
} else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<p>To view the London Deanery\'s specialty school podcasts you need to have Adobe flash player 10 installed.'
        + ' <a href=http://www.adobe.com/go/getflash/>Visit Adobe\'s website</a> for free and easy installation '
        + 'or go to <a href=http://get.adobe.com/flashplayer/>http://get.adobe.com/flashplayer/</a></p>'
        + '<p>London Deanery is not responsible for the content of external websites.</p>';
	document.write(alternateContent);  // insert non-flash content
}

