﻿// Version check based upon the values entered above in "Globals"
var hf = DetectFlashVer(7, 0, 0);

// Check to see if the version meets the requirements for playback
if (hf) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", "assets/flash/FC_flashelement_2",
				"width", "583",
				"height", "157",
				"align", "middle",
				"id", "flash",
				"quality", "high",
				"bgcolor", "#FFFFFF",
				"name", "flash",
				"allowScriptAccess", "sameDomain",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
} else {  // flash is too old or we can't detect the plugin
	var alt = '<a href="why-furness/"><img src="assets/images/flash_replacement.gif" alt="" /></a>'
	+ '<p>This content requires the Adobe Flash Player.'
	+ '<a href="http://www.adobe.com/go/getflash/" rel="external">Get Flash</a></p>';
	document.write(alt);  // insert non-flash content
}