// JavaScript Document

function createFlashPlayer(player, w, h, id, file, wmode, storyImage, storyHeading, story, storyLink){

// 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
		
		AC_FL_RunContent(
				"src", player,
				"width", w,
				"height", h,
				"align", "center",
				"id", id,
				"quality", "high",
				"bgcolor", "444444",
				"name", "slideshow",
				"allowScriptAccess","sameDomain",
				"allowFullScreen", "true",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"base", ".",
				"scale", "default",
				"wmode", wmode,
				"FlashVars", file,
 "class", "video-embed"
	);

	
	} else {  // flash is too old or we can't detect the plugin
	
	    
		var alternateContent = '<div id="flashLeft"><img src="'+storyImage+'" width="520" height="350" alt="'+storyHeading+'" /> </div><div id="flashRight"><div class="heading">'+storyHeading+'</div><div class="text">'+story+'</div><div class="link"><a href="'+storyLink+'">More...</a></div></div>'
document.write(alternateContent);  // insert non-flash content
	}
}



