// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

//swf information
var swf_src = 'top';
var swf_width = '800';
var swf_height = '622';
var swf_bgcolor ='#FFFFFF';
var checkB='Nintendo Wii';
//var checkB='Windows';
var indexB = navigator.userAgent.indexOf(checkB);
var swf_vars = "wiiFlg="+indexB;

// 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_src,
				"width", swf_width,
				"height", swf_height,
				"menu", "false",
				"BGCOLOR",swf_bgcolor,
				"FlashVars",swf_vars,
				"quality", "high",
				"allowScriptAccess","always",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer",
				"wmode", "opaque",
				"movie", swf_src
	);
	
} else {  // flash is too old or we can't detect the plugin
	var alternateContent = '<img src="image/no_flash_top.jpg" width="800" height="622" border="0" usemap="#Map"><br>'
+	'<map name="Map">'
+	'<area shape="rect" coords="458,535,550,567" href="http://www.adobe.com/go/getflashplayer_jp" target="_blank">'
+	'<area shape="rect" coords="18,348,270,505" href="info/index.htm">'
+	'<area shape="rect" coords="279,344,528,508" href="howto/index.htm">'
+	'<area shape="rect" coords="539,346,789,511" href="chara/index.htm">'
+	'</map>';
	document.write(alternateContent);  // insert non-flash content
}

