// JavaScript Document

function createFlashPlayer(player, w, h, id, file, wmode, altContent, imageSource, imageAlt, button1Title, button1Text, button1Link, button2Title, button2Text, button2Link, button3Title, button3Text, button3Link){

// 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",
				"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", ".",
				"wmode", wmode,
				"FlashVars", file,
 "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."

		
		var alternateContent ='<div id="flashContent"><a href="'+button1Link+'"><img alt="'+imageAlt+'" src="'+imageSource+'"/></a><div id="flashButton"><div class="selected" id="button"><div class="heading"><a href="'+button1Link+'">'+button1Title+'</a></div><div class="text"><a href="'+button1Link+'">'+button1Text+'</a></div></div><div id="button"><div class="heading"><a href="'+button2Link+'">'+button2Title+'</a></div><div class="text"><a href="'+button2Link+'">'+button2Text+'</a></div></div><div id="button"><div class="heading"><a href="'+button3Link+'">'+button3Title+'</a></div><div class="text"><a href="'+button3Link+'">'+button3Text+'</a></div></div></div></div>'
		
		document.write(alternateContent);  // insert non-flash content
	}
}
xmlUrl: "path/to/xml/filename.xml"


function createFlashPlayerHome(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", "ffffff",
				"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", "IMAGE_PATH=/global/flash/images/&amp;VIDEO_PATH=/global/flash/videos/&amp;DATA_PATH=/global/flash/data/",
 "class", "video-embed"
	);

	
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="/global/flash/images/home-page-default.png" alt="home page flash" />'
		document.write(alternateContent);  // insert non-flash content
	}
}
altContentFeatured = 'You must have flash to view this video.';
