
// Flash control
var flash_Flag;
function load_Flash(tArSrc,wId,hEi){
	Check_Flash();
	if ( flash_Flag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="');
		document.write('http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="' + hEi + '" width="' + wId + '">');
		document.write('<param name="movie" value="' + tArSrc + '.swf">');
		document.write('<param name="quality" value="best">');
		document.write('<param name="play" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<embed height="' + hEi + '" pluginspage="http://www.macromedia.com/go/getflashplayer" src="');
		document.write(tArSrc + '.swf" menu="false" type="application/x-shockwave-flash" width="' + wId +'" quality="best" play="true">');
		document.write('</object>');
	} else{
		document.write('<span class="px_12"><br><br><br><br><br><br><br><br><br><br>当サイトをお楽しみ頂くためには、Macromedia Flash Player 最新版が必要になります。<br><br><br><br><a href="http://www.macromedia.com/shockwave/download/download.cgi?P5_Language=Japanese&Lang=Japanese&P1_Prod_Version=ShockwaveFlash&Lang=Japanese" target="_blank"><img src="image/get_flash_player.gif" alt="Skip" width="88" height="31" border="0"></a></span>');
	}
}

// second flash menu
function load_sec_Menu(pageID){
	Check_Flash();
	if ( flash_Flag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="246" width="776">');
		document.write('<param name="movie" value="sec_menu.swf">');
		document.write('<param name="FlashVars" value="pageID='+pageID+'">');
		document.write('<param name="quality" value="best">');
		document.write('<param name="play" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<embed src="sec_menu.swf" FlashVars="pageID='+pageID+'" height="246" width="776" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" type="application/x-shockwave-flash" quality="best" play="true">');
		document.write('</object>');
	} else{
		document.write('<img src="images/sec_menu.gif" alt="" width="776" height="246" usemap="#menu" border="0">\n');
		document.write('<map name="menu">\n');
		document.write('<area shape="rect" coords="2,117,144,140" href="ser_overseas.html">\n');
		document.write('<area shape="rect" coords="1,140,144,170" href="ser_program.html">\n');
		document.write('<area shape="rect" coords="1,169,144,193" href="ser_group.html">\n');
		document.write('<area SHAPE="RECT" COORDS="153,119,292,139" href="vision_vandp.html">\n');
		document.write('<area shape="rect" coords="583,117,728,140" href="recru_mess.html">\n');
		document.write('<area shape="rect" coords="582,140,730,161" href="recru_newco.html">\n');
		document.write('<area shape="rect" coords="583,161,730,183" href="recru_hir.html">\n');
		document.write('<area shape="rect" coords="582,182,729,203" href="recru_fore.html">\n');
		document.write('<area shape="rect" coords="437,140,583,162" href="com_team.html">\n');
		document.write('<area shape="rect" coords="438,118,584,140" href="com_profile.html">\n');
		document.write('<area shape="rect" coords="436,182,583,202" href="com_net.html">\n');
		document.write('<area shape="rect" coords="586,37,638,54" href="top.html">\n');
		document.write('<area shape="rect" coords="649,37,726,55" href="sitemap.html">\n');
		document.write('<area SHAPE="RECT" COORDS="298,120,437,140" HREF="achieve_achi.html">\n');
		document.write('</map>\n');
	}
}
function en_load_sec_Menu(pageID){
	Check_Flash();
	if ( flash_Flag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="246" width="776">');
		document.write('<param name="movie" value="sec_menu_en.swf">');
		document.write('<param name="FlashVars" value="pageID='+pageID+'">');
		document.write('<param name="quality" value="best">');
		document.write('<param name="play" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<embed src="sec_menu_en.swf" FlashVars="pageID='+pageID+'" height="246" width="776" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" type="application/x-shockwave-flash" quality="best" play="true">');
		document.write('</object>');
	} else{
		document.write('<img src="images/en_sec_menu.gif" alt="" width="776" height="246" usemap="#menu" border="0">\n');
		document.write('<map name="menu">\n');
		document.write('<area shape="rect" coords="2,117,144,140" href="en_ser_overseas.html">\n');
		document.write('<area shape="rect" coords="1,140,144,170" href="en_ser_program.html">\n');
		document.write('<area shape="rect" coords="1,169,144,193" href="en_ser_group.html">\n');
		document.write('<area SHAPE="RECT" COORDS="153,119,292,139" HREF="en_vision_vandp.html">\n');
		document.write('<area shape="rect" coords="583,117,728,140" href="en_recru_mess.html">\n');
		document.write('<area shape="rect" coords="582,140,730,161" href="en_recru_newco.html">\n');
		document.write('<area shape="rect" coords="583,161,730,183" href="en_recru_hir.html">\n');
		document.write('<area shape="rect" coords="582,182,729,203" href="en_recru_fore.html">\n');
		document.write('<area shape="rect" coords="437,140,583,162" href="en_com_team.html">\n');
		document.write('<area shape="rect" coords="438,118,584,140" href="en_com_profile.html">\n');
		document.write('<area shape="rect" coords="436,182,583,202" href="en_com_net.html">\n');
		document.write('<area shape="rect" coords="586,37,638,54" href="en_top.html">\n');
		document.write('<area shape="rect" coords="649,37,726,55" href="en_sitemap.html">\n');
		document.write('<area SHAPE="RECT" COORDS="298,120,437,140" HREF="en_achieve_achi.html">\n');
		document.write('</map>\n');
	}
}
function load_ir_Menu(pageIR){
	Check_Flash();
	if ( flash_Flag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="600" width="191">');
		document.write('<param name="movie" value="ir_menu.swf">');
		document.write('<param name="FlashVars" value="pageIR='+pageIR+'">');
		document.write('<param name="quality" value="best">');
		document.write('<param name="play" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<embed src="ir_menu.swf" FlashVars="pageIR='+pageIR+'" height="600" width="191" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" type="application/x-shockwave-flash" quality="best" play="true">');
		document.write('</object>');
	} else{
		document.write('最新のFlashPlayerが必要です\n');
	}
}
function load_ir_en_Menu(pageIR){
	Check_Flash();
	if ( flash_Flag ) {
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="600" width="191">');
		document.write('<param name="movie" value="ir_menu_en.swf">');
		document.write('<param name="FlashVars" value="pageIR='+pageIR+'">');
		document.write('<param name="quality" value="best">');
		document.write('<param name="play" value="true">');
		document.write('<param name="menu" value="false">');
		document.write('<embed src="ir_menu_en.swf" FlashVars="pageIR='+pageIR+'" height="600" width="191" pluginspage="http://www.macromedia.com/go/getflashplayer" menu="false" type="application/x-shockwave-flash" quality="best" play="true">');
		document.write('</object>');
	} else{
		document.write('FlashPlayer required.\n');
	}
}
//Check if Flash can play
function Check_Flash(){
	chk_contentVersion = 6;
	plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i){if (isNaN(parseInt(words[i])))continue; chk_PluginVersion = words[i]; }
		flash_Flag = chk_PluginVersion >= chk_contentVersion;
	}
	else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
	   && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); 
		document.write('on error resume next \n');
		document.write('flash_Flag = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & chk_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}	
}
