// JavaScript Document

function createFlashPlayer(player, w, h, id, file){

// Check to see if the version meets the requirements for playback -- 
	//hasReqestedVersion = true;
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		document.write("<div id='video'>"); 
		AC_FL_RunContent(
				"src", player,
				"width", w,
				"height", h,
				"align", "left",
				"id", id,
				"quality", "high",
				"bgcolor", "ffffff",
				"name", "slideshow",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"base", ".",
				"wmode", "transparent",
				"FlashVars", file
	);
	document.write("</div>"); 
	
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/images/global/header.jpg" width="760" height="118" alt="Federation of American Scientists"/>'
		document.write(alternateContent);  // insert non-flash content
	}
}
