// MAIN FLASH
function Run_MainFlash() {
	var swfFileName = "wp-content/themes/otome/swf/Main_Flash.swf";//?nocash=random()
	var swfWidth = 700;
	var swfHeight = 590;
	var swfBgcolor = '';
	var requiredMajorVersion = 8;
	var requiredMinorVersion = 0;
	var requiredRevision = 45;

	// 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
	    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	    + 'width=' + swfWidth + ' height=' + swfHeight
	    + ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" id="flash" name="flash">'
	    + '<param name="movie" value=' + swfFileName + ' /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="allways" /><param name="quality" value="high" />'
	    + '<embed src=' + swfFileName + ' quality="high" '
	    + 'width=' + swfWidth + ' height=' + swfHeight + ' bgcolor=' + swfBgcolor + ' name="flash" align="middle"'
	    + ' play="true"'
	    + ' loop="false"'
        + ' wmode="transparent"'
	    + ' quality="high"'
	    + ' allowScriptAccess="allways"'
	    + ' type="application/x-shockwave-flash"'
	    + ' pluginspage="http://www.macromedia.com/go/getflashplayer">'
	    + '<\/embed>'
	    + '<\/object>';
	    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<div id="flaLink">'
			+ '<a href="http://get.adobe.com/jp/flashplayer/" title="「Adobe Flash Player」ダウンロードページへ" target="_blank">'
            + '<img src="wp-content/themes/otome/swf/get_flash_player.gif" width="108" height="28" alt="「Adobe Flash Player」ダウンロードページへ" />'
			+ '</a></div>'
			+ '<div>'
			+ '<img src="wp-content/themes/otome/swf/main_noflash.jpg" width="700" height="590" alt="" usemap="#Map" />'
			+ '<map name="Map" id="Map">'
			+ '<area shape="rect" coords="550,13,689,71" href="http://otomekai.cocolog-nifty.com/" alt="おとめ会公式ブログへ" title="おとめ会公式ブログへ" target="_blank" />'
			+ '</map>'
			+ '</div>';
		document.write(alternateContent);  // Flash 以外のコンテンツを挿入する
	  }
}