
//菜单
var menuOffX=0	//菜单距连接文字最左端距离
var menuOffY=20	//菜单距连接文字顶端距离

var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
function ShowMenu(e,vmenu,mod){
	which=vmenu
	menuobj=document.getElementById("popmenu")
	menuobj.thestyle=menuobj.style
	menuobj.innerHTML=which
	menuobj.contentwidth=menuobj.offsetWidth
	eventX=e.clientX
	eventY=e.clientY
	var rightedge=document.body.clientWidth-eventX
	var bottomedge=document.body.clientHeight-eventY

		if (rightedge<menuobj.contentwidth)
			menuobj.thestyle.left=document.body.scrollLeft+eventX-menuobj.contentwidth+menuOffX
		else
			menuobj.thestyle.left=ie4? ie_x(event.srcElement)+menuOffX : ns6? window.pageXOffset+eventX : eventX
		
		if (bottomedge<menuobj.contentheight&&mod!=0)
			menuobj.thestyle.top=document.body.scrollTop+eventY-menuobj.contentheight-event.offsetY+menuOffY-23
		else
			menuobj.thestyle.top=ie4? ie_y(event.srcElement)+menuOffY : ns6? window.pageYOffset+eventY+10 : eventY

	menuobj.thestyle.visibility="visible"
}


function ie_y(e){  
	var t=e.offsetTop;  
	while(e=e.offsetParent){  
		t+=e.offsetTop;
	}  
	return t;  
}  
function ie_x(e){  
	var l=e.offsetLeft;  
	while(e=e.offsetParent){  
		l+=e.offsetLeft;  
	}  
	return l;  
}

function highlightmenu(e,state){
	if (document.all)
		source_el=event.srcElement
		while(source_el.id!="popmenu"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement
			if (source_el.className=="menuitems"){
				source_el.id=(state=="on")? "mouseoverstyle" : ""
		}
	}
}
function hidemenu(){if (window.menuobj)menuobj.thestyle.visibility="hidden"}
function dynamichide(e){if ((ie4||ns6)&&!menuobj.contains(e.toElement))hidemenu()}
document.onclick=hidemenu
document.write("<div class=menuskin id=popmenu onmouseover=highlightmenu(event,'on') onmouseout=highlightmenu(event,'off');dynamichide(event)></div>");
//菜单END

//cn
var index ='<div class=menuitems><a href=\"index.asp\">网 站 首 页</a></div>'
		index+='<div class=menuitems><a href=\"../Default.asp\">公司形象页</a></div>'
var CoProfile ='<div class=menuitems><a href=\"CoProfile.asp?Action=Profile\">公 司 介 绍</a></div>'
                CoProfile+='<div class=menuitems><a href=\"CoProfile.asp?Action=Principle\">工程中心简介</a></div>'
		CoProfile+='<div class=menuitems><a href=\"CoProfile.asp?Action=Bsh\">博士后工作站</a></div>'
		CoProfile+='<div class=menuitems><a href=\"http://www.riyue.com.cn/flash/phylogeny.swf\" target="blank">企 业 历 程</a></div>'
		CoProfile+='<div class=menuitems><a href=\"http://www.riyue.com.cn/flash/techn.swf\" target="blank">技 术 中 心</a></div>'
		CoProfile+='<div class=menuitems><a href=\"CoProfile.asp?Action=Contact\">联 系 我 们</a></div>'

		
var Product ='<div class=menuitems><a href=\"Product.asp\">产 品 展 示</a></div>'
		Product+='<div class=menuitems><a href=\"Products.asp\">产 品 分 类</a></div>'
		Product+='<div class=menuitems><a href=\"Search.asp\">产 品 搜 索</a></div>'
var Honor ='<div class=menuitems><a href=\"Honor.asp?Action=Honor\">荣 誉 证 书</a></div>'
		Honor+='<div class=menuitems><a href=\"Honor.asp?Action=ccc\">CCC 证 书</a></div>'
                Honor+='<div class=menuitems><a href=\"Honor.asp?Action=ce\">CE 证 书</a></div>'
                Honor+='<div class=menuitems><a href=\"Honor.asp?Action=cqc\">CQC 证 书</a></div>'
                Honor+='<div class=menuitems><a href=\"Honor.asp?Action=pccc\">PCCC 证 书</a></div>'
                Honor+='<div class=menuitems><a href=\"Honor.asp?Action=dqhz\">检 验 报 告</a></div>'
var Sale ='<div class=menuitems><a href=\"http://www.riyue.com.cn/flash/map.html\" target="blank">国 内 市 场</a></div>'
		Sale+='<div class=menuitems><a href=\"Sale.asp?Action=Salea\">售 后 服 务</a></div>'

//var Download='<div class=menuitems><a href=\"Job.asp\">下 载 中 心</a></div>'
var Server ='<div class=menuitems><a href=\"Faq.asp\">问 题 解 答</a></div>'
		Server+='<div class=menuitems><a href=\"Server.asp\">会 员 中 心</a></div>'
		Server+='<div class=menuitems><a href=\"Went.asp\">信 息 反 馈</a></div>'
		Server+='<div class=menuitems><a href=\"NetBook.asp\">留 言 中 心</a></div>'
		
var dzsw ='<div class=menuitems><a href=\"http://218.4.48.253/chinese/xtxs/logon.asp\" target="blank">协 同 销 售</a></div>'
              dzsw+='<div class=menuitems><a href=\"http://218.4.48.253/chinese/xtsc/logon.asp\" target="blank">协 同 生 产 </a></div>'
dzsw+='<div class=menuitems><a href=\"http://218.4.48.253/chinese/xtsf/logon.asp\" target="blank">协 同 售 服 </a></div>'
//En
var En_index ='<div class=menuitems><a href=\"index.asp\">HomePage</a></div>'
		En_index+='<div class=menuitems><a href=\"../Default.asp\">Home image</a></div>'
var En_CoProfile ='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Profile\">Co,introduction</a></div>'
		
		
		En_CoProfile+='<div class=menuitems><a href=\"En_CoProfile.asp?Action=Contact\">Contact us</a></div>'

var En_Product ='<div class=menuitems><a href=\"En_Product.asp\">Product show</a></div>'
		En_Product+='<div class=menuitems><a href=\"En_Products.asp\">Product class</a></div>'
		En_Product+='<div class=menuitems><a href=\"En_search.asp\">Product Search</a></div>'
var En_Honor ='<div class=menuitems><a href=\"En_Honor.asp?Action=Honor\">Company honor</a></div>'
		
var En_Sale ='<div class=menuitems><a href=\"En_Sale.asp?Action=Salea\">International</a></div>'
		

var En_Server ='<div class=menuitems><a href=\"En_Server.asp\">Member centre</a></div>'
		En_Server+='<div class=menuitems><a href=\"En_NetBook.asp\">Leave word</a></div>'
		


var IMG1="<IMG height=20 src=../Skin/"
var IMG2="/bgmenu_m.gif width=1 align=absMiddle>"
//顶边的中文菜单
function CnTopMenu(JsSkins){
document.write ('<DIV align="center">');
document.write ('<TABLE cellPadding=0 cellSpacing=0 class="TopMenu">');
document.write ('<TR><TD class="TopMenu_Td1"><IMG src="../img/1x1_pix.gif" width=3 height=1></TD></TR>');
document.write ('<TR><TD class="TopMenu_Td2"><IMG src="../img/1x1_pix.gif" width=3 height=1></TD></TR>');
document.write ('<TR>');
document.write ('<TD class="TopMenu_Td3">');
document.write ('<TABLE width="100%" cellSpacing=0 cellPadding=0 border=0>');
document.write ('<TR>'); 
document.write ('<TD width="98%" valign="bottom" align="center">　');
document.write ('<a class="Top" href="index.asp" onMouseOver=\'ShowMenu(event,index)\'>首 页</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="CoProfile.asp?Action=Profile" onMouseOver=\'ShowMenu(event,CoProfile)\'>公司简介</a>　'+IMG1+JsSkins+IMG2+'　');

document.write ('<a class="Top" href="Product.asp" onMouseOver=\'ShowMenu(event,Product)\'>产品展示</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Honor.asp?Action=Honor" onMouseOver=\'ShowMenu(event,Honor)\'>公司证书</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="../flash/map.html" onMouseOver=\'ShowMenu(event,Sale)\'>营销网络</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top"  onMouseOver=\'ShowMenu(event,dzsw)\'>电子商务</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Download.asp">下载中心</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Faq.asp" onMouseOver=\'ShowMenu(event,Server)\'>服务支持</a>　'+IMG1+JsSkins+IMG2+'　');

document.write ('&nbsp;&nbsp;</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</DIV>');
}
//顶边的英文菜单
function EnTopMenu(JsSkins){
document.write ('<DIV align="center">');
document.write ('<TABLE cellPadding=0 cellSpacing=0 class="TopMenu">');
document.write ('<TR><TD class="TopMenu_Td1"><IMG src="../img/1x1_pix.gif" width=3 height=1></TD></TR>');
document.write ('<TR><TD class="TopMenu_Td2"><IMG src="../img/1x1_pix.gif" width=3 height=1></TD></TR>');
document.write ('<TR>');
document.write ('<TD class="TopMenu_Td3">');
document.write ('<TABLE width="100%" cellSpacing=0 cellPadding=0 border=0>');
document.write ('<TR>'); 
document.write ('<TD width="98%" valign="bottom" align="center">　');
document.write ('<a class="Top" href=\"index.asp\" onMouseOver=\'ShowMenu(event,En_index)\'>Home</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_CoProfile.asp?Action=Profile\" onMouseOver=\'ShowMenu(event,En_CoProfile)\'>Co,Profile</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_Product.asp\" onMouseOver=\'ShowMenu(event,En_Product)\'>Products</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_Honor.asp?Action=Honor\" onMouseOver=\'ShowMenu(event,En_Honor)\'>Co,Honor</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_Sale.asp?Action=Salea\" onMouseOver=\'ShowMenu(event,En_Sale)\'>Market</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_download.asp\">Download</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href=\"En_Server.asp\" onMouseOver=\'ShowMenu(event,En_Server)\'>Services</a>　'+IMG1+JsSkins+IMG2+'　');

document.write ('&nbsp;&nbsp;</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</DIV>');
}

