
//Check if Flash can play
function Check_Fplay(){
	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]; }
		flag_Fplay = 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('flag_Fplay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & chk_contentVersion)))\n');
		document.write('</SCR' + 'IPT\> \n');
	}	
}
// second flash menu
function load_sec_Menu(pageID){
	Check_Fplay();
		if ( flag_Fplay ) {
		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="491" width="183">');
		document.write('<param name="movie" value="dmp_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="dmp_menu.swf" FlashVars="pageID='+pageID+'" height="491" width="183" 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/menu.jpg" width="183" height="592" border="0" usemap="#Map_menu">\n');
		document.write('<map name="Map_menu">\n');
		document.write('<area shape="RECT" coords="18,569,162,588" href="recruit_how.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,545,162,564" href="recruit_jobs.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,485,163,504" href="service.html" target="_self">\n');
		document.write('<area shape="RECT" coords="17,425,161,444" href="technologydemo.html" target="_self">\n');
		document.write('<area shape="RECT" coords="17,401,161,420" href="maestrotechnology.html" target="_self">\n');
		document.write('<area shape="RECT" coords="17,341,161,360" href="product_software.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,317,162,336" href="product_reflection.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,292,162,311" href="product_graphicsipcore.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,267,162,286" href="product_visualprocessor.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,242,163,261" href="product_productsoverview.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,186,162,205" href="contact_us.html" target="_self">\n');
		document.write('<area shape="RECT" coords="18,162,162,181" href="whatsnew_2005.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,137,163,156" href="company_partner.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,111,163,130" href="company_history.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,86,163,105" href="access_map.html" target="_self">\n');
		document.write('<area shape="RECT" coords="19,61,163,80" href="company_profile.html" target="_self">\n');
		document.write('<area shape="RECT" coords="20,36,164,55" href="company_vision.html" target="_self">\n');
		document.write('</map>\n');
	}
}