// JavaScript Document

function createFlashPlayer(player, w, h, id, file, wmode, altContent){

// 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", "ffffff",
				"name", "slideshow",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"base", ".",
				"wmode", wmode,
				"FlashVars", file+'&'+'previewimage=/images/small-flash-intro.jpg',
				"autoplay", "no",
				 "allowFullScreen", "true",
				 
 "class", "video-embed"
	);

	
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = "You must enable flash to view the "+altContent+" video."
		document.write(alternateContent);  // insert non-flash content
	}
}



function createFlashPlayerPage(player, w, h, id, file, wmode, altContent){

// 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", "locator",
				"quality", "high",
				"bgcolor", "000000",
				"name", "locator",
				"allowScriptAccess","sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"base", ".",
				"wmode", wmode,
				"FlashVars", file+'&'+'previewimage=/images/large-flash-intro.jpg',
				"allowFullScreen", "true",
 "class", "video-embed"
	);

	
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = 'You must enable flash to view the "+altContent+" video.'
		document.write(alternateContent);  // insert non-flash content
	}
}
altContentFeatured = 'You must have flash to view this video.';
