﻿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=10,0,2,0',
		'width', '460',
		'height', '300',
		'src', 'videos/Training',
		'quality', 'high',
		'pluginspage', 'http://www.adobe.com/go/getflashplayer',
		'align', 'top',
		'play', 'false',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', 'Training',
		'bgcolor', '#ffffff',
		'name', 'Training',
		'menu', 'true',
		'allowFullScreen', 'true',
		'allowScriptAccess','sameDomain',
		'movie', 'videos/Training',
		'salign', 'center'
		); //end AC code
} else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/oHcPLh3rXhA&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/oHcPLh3rXhA&hl=en_US&fs=1&rel=0&color1=0xe1600f&color2=0xfebd01" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object><p>&nbsp;</p>'
		+ '<div align="center">This content requires the Adobe Flash Player.'
		+ '<a href="http://www.adobe.com/go/getflashplayer/">Get Flash</a></div>';
	document.write(alternateContent);  // insert non-flash content
}