// 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
	AC_FL_RunContent(
				"src", "swf/top",
				"width", "100%",
				"height", "510px",
				"align", "middle",
				"id", "swf/top",
				"quality", "high",
				"wmode","opaque",
				"bgcolor", "#ffffff",
				"name", "swf/top",
				"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 alternateContent = '<img src="images/flash_error.jpg" alt="トップページをお楽しみいただくにはFlashプラグイン8以上が必要です。この画面が表示された方は、下のバナーからダウンロードしてご覧下さい。" width="859" height="510" border="0" usemap="#Map" /><map name="Map"><area shape="rect" coords="549,219,651,238" href="contact.html"><area shape="rect" coords="558,193,660,212" href="careers.html"><area shape="rect" coords="564,167,666,186" href="business.html"><area shape="rect" coords="567,141,669,160" href="company.html"><area shape="rect" coords="763,469,863,510" href="http://www.adobe.com/go/getflash/" target="_blank"><area shape="rect" coords="570,116,672,135" href="about.html"></map>';
	document.write(alternateContent);  // insert non-flash content
}
