function lochref(OBJ){
	var n =OBJ.selectedIndex;
	document.location.href = OBJ.options[n].value;
}

function projectview(swfname){

document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
document.write(' WIDTH="315" HEIGHT="450" ALIGN="middle">');
document.write(' <PARAM NAME=movie VALUE="/common/project/'+ swfname +'/work.swf"> <PARAM NAME="menu" VALUE="false"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#ffffff"><PARAM NAME=FlashVars VALUE="swf_path=%2Fcommon%2Fproject%2F'+ swfname +'%2F"'+'>');
	document.write(' <EMBED src="/common/project/'+ swfname +'/work.swf" menu="false" quality="high" bgcolor="#ffffff"  ');
	document.write(' swLiveConnect="FALSE" WIDTH="315" HEIGHT="450" NAME="works" ALIGN="middle" allowScriptAccess="sameDomain"');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" FlashVars="swf_path=%2Fcommon%2Fproject%2F'+ swfname +'%2F"'+'>');
	document.write(' <'+'/EMBED>');
	document.write(' <'+'/OBJECT>');
}

function newsview(swfname){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write('	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
document.write(' WIDTH="315" HEIGHT="450" ALIGN="middle">');
document.write(' <PARAM NAME=movie VALUE="/common/report/'+ swfname +'/news.swf"> <PARAM NAME="menu" VALUE="false"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE ="#ffffff"><PARAM NAME=FlashVars VALUE="color_R=249&color_G=66&color_B=135&swf_path=%2Fcommon%2Fnews%2F'+ swfname +'%2F"'+ '>');
        document.write(' <EMBED src="/common/report/'+ swfname +'/news.swf" menu="false" quality="high" bgcolor="#ffffff"  ');
        document.write(' swLiveConnect="FALSE" WIDTH="315" HEIGHT="450" NAME="news" ALIGN ="middle" allowScriptAccess="sameDomain"');
        document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" FlashVars="color_R=249&color_G=66&color_B=135&swf_path=%2Fcommon%2Freport%2F'+ swfname +'%2F"' +'>');
        document.write(' <'+'/EMBED>');
	document.write(' <'+'/OBJECT>');
}

function seminarview(swfname){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
document.write(' width="315" height="450" ALIGN="middle"><PARAM NAME=movie VALUE="/common/seminar/'+ swfname +'/seminar.swf"> <PARAM NAME="menu" VALUE="false"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE ="#ffffff"><PARAM NAME=FlashVars VALUE="color_R=189&color_G=8&color_B=157&swf_path=%2Fcommon%2Fseminar%2F'+ swfname +'%2F"'+ '>');
        document.write(' <EMBED src="/common/seminar/'+ swfname +'/seminar.swf" menu="false" quality="high" bgcolor="#ffffff" swLiveConnect="FALSE" width="315" height="450" NAME="seminar" ALIGN ="middle" allowScriptAccess="sameDomain" ');
        document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" FlashVars="color_R=189&color_G=8&color_B=157&swf_path=%2Fcommon%2Fseminar%2F'+ swfname +'%2F"' +'><'+'/EMBED>');
document.write(' <'+'/OBJECT>');
}


function profileview(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="2000" height="1510" align="left"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/common/company/profile/profile_xlarge.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><PARAM NAME=FlashVars VALUE="swf_path=%2Fcommon%2Fcompany%2Fprofile%2F"><embed src="/common/company/profile/profile_xlarge.swf" quality="high" bgcolor="#ffffff" width="2000" height="1510" name="profile" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="swf_path=%2Fcommon%2Fcompany%2Fprofile%2F"> </object>');
}


function profile_en_view(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="2000" height="1510" align="left" > <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/common/company/profile_en/profile_xlarge.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><PARAM NAME=FlashVars VALUE="swf_path=%2Fcommon%2Fcompany%2Fprofile_en%2F"><embed src="/common/company/profile_en/profile_xlarge.swf" quality="high" bgcolor="#ffffff" width="2000" height="1510" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="swf_path=%2Fcommon%2Fcompany%2Fprofile_en%2F"> </object>');
}

function companyview(){
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="315" height="450" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="/common/company/philosophy/company.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><PARAM NAME=FlashVars VALUE="color_R=240&color_G=198&color_B=0&swf_path=%2Fcommon%2Fcompany%2Fphilosophy%2F"><embed src="/common/company/philosophy/company.swf" quality="high" bgcolor="#ffffff" width="315" height="450" name="profile" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="color_R=255&color_G=115&color_B=0&swf_path=%2Fcommon%2Fcompany%2Fphilosophy%2F"> </object>');
}


function menu_select(pos){
pos=getmenu();
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="630" height="180" id="/common/menu/main_menu.swf" align="middle">');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="/common/menu/main_menu.swf?'+Math.random()+'" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="bgcolor" value="#ffffff" />');
document.write('<PARAM NAME=FlashVars VALUE="Ep1=%2Fen%2Fcompany&Ep2=%2Fen%2Freport &Ep3=%2Fen%2Fservices&Ep4=%2Fen%2Fproject&Ep5=%2Fen%2Fseminar&Jp1=%2Fcompany&Jp2=%2Freport&Jp3=%2Fservices&Jp4=%2Fproject&Jp5=%2Fseminar&pos_Fl='+pos+'" />');
document.write('<embed src="/common/menu/main_menu.swf?'+pos+' quality="high" bgcolor="#ffffff" width="630" height="180" name="/common/menu/main_menu.swf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="Ep1=%2Fen%2Fcompany&Ep2=%2Fen%2Freport &Ep3=%2Fen%2Fservices&Ep4=%2Fen%2Fproject&Ep5=%2Fen%2Fseminar&Jp1=%2Fcompany&Jp2=%2Freport&Jp3=%2Fservices&Jp4=%2Fproject&Jp5=%2Fseminar&pos_Fl='+pos+'" /></embed></object>');


}

function go_head() {
	var nametag;
	myY=0;
	myZ =document.anchors[0].offsetTop;
	myScroll();	
}   
function myScroll(){
  window.scrollBy(0,10);
  myY=myY+10;
  if (myY >=myZ) return;
  setTimeout("myScroll()",10)
}  

function getmenu(){
var uri=document.location.href;
match_pattern_1 =/\/en\/company\//;
match_pattern_2 =/\/en\/report\//;
match_pattern_3 =/\/en\/services\//;
match_pattern_4 =/\/en\/project\//;
match_pattern_5 =/\/en\/seminar\//;
match_pattern_41 =/\/en\/ajinomoto_company_limited\//;
match_pattern_42 =/\/en\/aktio_corporation\//;
match_pattern_43 =/\/en\/amo_incorporated\//;
match_pattern_44 =/\/en\/amway_japan_limited\//;
match_pattern_45 =/\/en\/at-loan_company_limited\//;
match_pattern_46 =/\/en\/automotive_and_transport\//;
match_pattern_47 =/\/en\/beljapon_k_k\//;
match_pattern_48 =/\/en\/beverages\//;
match_pattern_49 =/\/en\/bitcash_incorporated\//;
match_pattern_50 =/\/en\/brand_strategy\//;
match_pattern_11 =/\/company\//;
match_pattern_12 =/\/report\//;
match_pattern_13 =/\/services\//;
match_pattern_14 =/\/project\//;
match_pattern_15 =/\/seminar\//;
match_pattern_141 =/\/ajinomoto_company_limited\//;
match_pattern_142 =/\/aktio_corporation\//;
match_pattern_143 =/\/amo_incorporated\//;
match_pattern_144 =/\/amway_japan_limited\//;
match_pattern_145 =/\/at-loan_company_limited\//;
match_pattern_146 =/\/automotive_and_transport\//;
match_pattern_147 =/\/beljapon_k_k\//;
match_pattern_148 =/\/beverages\//;
match_pattern_149 =/\/bitcash_incorporated\//;
match_pattern_150 =/\/brand_strategy\//;
if(uri.match(match_pattern_1)){return 1;
}else if(uri.match(match_pattern_2)){ return 2;
}else if(uri.match(match_pattern_3)){ return 3;
}else if(uri.match(match_pattern_4)){ return 4;
}else if(uri.match(match_pattern_41)){ return 4;
}else if(uri.match(match_pattern_42)){ return 4;
}else if(uri.match(match_pattern_43)){ return 4;
}else if(uri.match(match_pattern_44)){ return 4;
}else if(uri.match(match_pattern_45)){ return 4;
}else if(uri.match(match_pattern_46)){ return 4;
}else if(uri.match(match_pattern_47)){ return 4;
}else if(uri.match(match_pattern_48)){ return 4;
}else if(uri.match(match_pattern_49)){ return 4;
}else if(uri.match(match_pattern_50)){ return 4;
}else if(uri.match(match_pattern_5)){ return 5;
}else if(uri.match(match_pattern_11)){ return 11;
}else if(uri.match(match_pattern_12)){ return 12;
}else if(uri.match(match_pattern_13)){ return 13;
}else if(uri.match(match_pattern_14)){ return 14;
}else if(uri.match(match_pattern_15)){ return 15;
}else if(uri.match(match_pattern_141)){ return 14;
}else if(uri.match(match_pattern_142)){ return 14;
}else if(uri.match(match_pattern_143)){ return 14;
}else if(uri.match(match_pattern_144)){ return 14;
}else if(uri.match(match_pattern_145)){ return 14;
}else if(uri.match(match_pattern_146)){ return 14;
}else if(uri.match(match_pattern_147)){ return 14;
}else if(uri.match(match_pattern_148)){ return 14;
}else if(uri.match(match_pattern_149)){ return 14;
}else if(uri.match(match_pattern_150)){ return 14;
}else{ return 0;}
}

