// Flash Player Version Detection - Rev 1.5
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var requiredMajorVersion = 6;
var requiredMinorVersion = 0;
var requiredRevision = 0;


function executeFlashPlayer(swfHeight, swfWidth, movieUrl) {
	if (parent.document.getElementById('templateframe'))
		return;
	// 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(
					"src", "/efincludes/efplayer",
					"width", swfWidth,
					"height", swfHeight,
					"FlashVars", "myVariable=" + movieUrl,
					"align", "middle",
					"allowfullscreen", true,
					"quality", "high",
					"bgcolor", "#000000",
					"allowScriptAccess","sameDomain",
					"type", "application/x-shockwave-flash",
					"codebase", "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab",
					"pluginspage", "http://www.macromedia.com/go/getflashplayer"
		);
		
	}
}