// JavaScript Document
// Version check based upon the values entered above in "Globals"
var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

// Check to see if the version meets the requirements for playback
if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	document.write('<object type="application/x-shockwave-flash" data="flash/menu.swf" width="652" height="231">');
	document.write('<param name="movie" value="flash/menu.swf" />');
	document.write('<param name="wmode" value="transparent">');
	document.write('</object>');
} 
else {  // flash is too old or we can't detect the plugin
	var alternateContentHeader = '<div style="margin:10px 10px 0px 10px" align="left">'
	+ '<a href="http://www.americanfast.com"><img src="images/logoAFFDC.gif" alt="American Fast Freight home page" border="0" /></a></div>';
	document.write(alternateContentHeader);  // insert non-flash content
}