var load     = 0;
var MenuName = new Array('menu_english','menu_chinese','menu_request','menu_regist','menu_home','menu_exhibit','menu_report','menu_list','menu_net','menu_contact',
                         'menu_seminar','submenu_keynote','submenu_conference','submenu_presentation','submenu_technology','submenu_product','submenu_analysis','submenu_presentation',
                         'submenu_cphi','submenu_icse','submenu_pmec','submenu_sponsor','submenu_merit','submenu_charge','submenu_search','submenu_contact','submenu_request');
var OnMenu   = new Array();
var OffMenu  = new Array();

for(i in MenuName){
   var Name = MenuName[i];
   OnMenu[Name]  = new Image();
   OffMenu[Name] = new Image();
   OnMenu[Name].src  = "/jpn/shared/" + Name + "_on.gif"; 
   OffMenu[Name].src = "/jpn/shared/" + Name + ".gif";
}

function ChgImage(name,flag,layer){
   if(load){
      var img = (layer && document.layers) ? document.layers[layer].document.images[name] : document.images[name];
      img.src = (flag) ? OnMenu[name].src : OffMenu[name].src;
   }
}
function showLayer(num){
   if(load){
      var layType = (document.layers) ? document.layers['L' + num] : document.getElementById('L' + num).style;
      layType.visibility = 'visible';
   }
}
function hideLayer(num){
   if(load){
      var hideType = (document.layers) ? 'hide' : 'hidden';
      var layType  = (document.layers) ? document.layers['L' + num] : document.getElementById('L' + num).style;
      layType.visibility = hideType;
   }
}

function dropDownMenu(){
	document.write('<div class="sub_exhibit" id="L1">');
	document.write('<a href="http://www.cphijapan.com/jpn/exhibit/index.html" onMouseOver="ChgImage(\'submenu_merit\',1,\'L1\')" onMouseOut="ChgImage(\'submenu_merit\',0,\'L1\')" target="_blank"><img src="/jpn/shared/submenu_merit.gif" alt="出展のメリット・プロモーション計画" width="212" height="17" name="submenu_merit"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/exhibit/charge.html" onMouseOver="ChgImage(\'submenu_charge\',1,\'L1\')" onMouseOut="ChgImage(\'submenu_charge\',0,\'L1\')" target="_blank"><img src="/jpn/shared/submenu_charge.gif" alt="出展料金" width="212" height="17" name="submenu_charge"></a><br>');
	document.write('</div>');
	document.write('<div class="sub_contact" id="L2">');
	document.write('<a href="http://www.cphijapan.com/jpn/contact/index.html" onMouseOver="ChgImage(\'submenu_contact\',1,\'L2\')" onMouseOut="ChgImage(\'submenu_contact\',0,\'L2\')" target="_blank"><img src="/jpn/shared/submenu_contact.gif" alt="お問い合わせ先" width="212" height="17" name="submenu_contact"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/contact/request.php" onMouseOver="ChgImage(\'submenu_request\',1,\'L2\')" onMouseOut="ChgImage(\'submenu_request\',0,\'L2\')" onClick="wopen(this.href,790,650);return false" target="_blank"><img src="/jpn/shared/submenu_request.gif" alt="出展社資料請求" width="212" height="17" name="submenu_request"></a><br>');
	document.write('</div>');
	document.write('<div class="sub_list" id="L3">');
	document.write('<a href="http://www.cphijapan.com/jpn/list/search.php" onMouseOver="ChgImage(\'submenu_search\',1,\'L3\')" onMouseOut="ChgImage(\'submenu_search\',0,\'L3\')" target="_blank"><img src="/jpn/shared/submenu_search.gif" alt="出展社検索" width="212" height="17" name="submenu_search"></a><br>');
	document.write('</div>');
	document.write('<div class="sub_seminar" id="L4">');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/keynote.html" onMouseOver="ChgImage(\'submenu_keynote\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_keynote\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_keynote.gif" alt="基調講演・特別講演" width="212" height="17" name="submenu_keynote"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/conference.html" onMouseOver="ChgImage(\'submenu_conference\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_conference\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_conference.gif" alt="コンファレンス" width="212" height="17" name="submenu_conference"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/technology.php" onMouseOver="ChgImage(\'submenu_technology\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_technology\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_technology.gif" alt="P-MEC テクノロジーセミナー" width="212" height="17" name="submenu_technology"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/product.php" onMouseOver="ChgImage(\'submenu_product\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_product\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_product.gif" alt="製剤技術セミナー" width="212" height="17" name="submenu_product"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/analysis.php" onMouseOver="ChgImage(\'submenu_analysis\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_analysis\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_analysis.gif" alt="分析技術 実践研修講座" width="212" height="17" name="submenu_analysis"></a><br>');
	document.write('<img src="/shared/sp.gif" width="1" height="2" alt=""><br>');
	document.write('<a href="http://www.cphijapan.com/jpn/seminar/presentation.html" onMouseOver="ChgImage(\'submenu_presentation\',1,\'L4\')" onMouseOut="ChgImage(\'submenu_presentation\',0,\'L4\')" target="_blank"><img src="/jpn/shared/submenu_presentation.gif" alt="出展社プレゼンテーション" width="212" height="17" name="submenu_presentation"></a><br>');
	document.write('</div>');
}

function init(){
	load = 1;
	function showL1(){showLayer(1);hideLayer(2);hideLayer(3);hideLayer(4);}
	function hideL1(){hideLayer(1);}
	function showL2(){hideLayer(1);showLayer(2);hideLayer(3);hideLayer(4);}
	function hideL2(){hideLayer(2);}
	function showL3(){hideLayer(1);hideLayer(2);showLayer(3);hideLayer(4);}
	function hideL3(){hideLayer(3);}
	function showL4(){hideLayer(1);hideLayer(2);hideLayer(3);showLayer(4);}
	function hideL4(){hideLayer(4);}
	if(document.layers){
		document.layers['L1'].onmouseover = showL1;
		document.layers['L1'].onmouseout  = hideL1;
		document.layers['L2'].onmouseover = showL2;
		document.layers['L2'].onmouseout  = hideL2;
		document.layers['L3'].onmouseover = showL3;
		document.layers['L3'].onmouseout  = hideL3;
		document.layers['L4'].onmouseover = showL4;
		document.layers['L4'].onmouseout  = hideL4;
	}else{
		document.getElementById('L1').onmouseover = showL1;
		document.getElementById('L1').onmouseout  = hideL1;
		document.getElementById('L2').onmouseover = showL2;
		document.getElementById('L2').onmouseout  = hideL2;
		document.getElementById('L3').onmouseover = showL3;
		document.getElementById('L3').onmouseout  = hideL3;
		document.getElementById('L4').onmouseover = showL4;
		document.getElementById('L4').onmouseout  = hideL4;
	}
}