
//菜单
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>'
var CoProfile ='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Profile\">公 司 简 介</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Organize\">组 织 机 构</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Ceo\">领 导 致 辞</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Principle\">领 导 关 怀</a></div>'
		//CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Organize\">组 织 机 构</a></div>'
		CoProfile+='<div class=menuitems><a href=\"Bs_CoProfile.asp?Action=Contact\">联 系 方 式</a></div>'

var Honor='<div class=menuitems><a href=\"Bs_Honor.asp?Action=Honor\">资 质 证 书</a></div>'
		Honor+='<div class=menuitems><a href=\"Bs_Imgs.asp\">经 营 范 围</a></div>'

var Ry='<div class=menuitems><a href=\"Bs_Ry.asp?Action=Honor\">荣 誉 证 书</a></div>'
		
var News ='<div class=menuitems><a href=\"Bs_News.asp?Action=公司新闻\">公 司 新 闻</a></div>'
		News+='<div class=menuitems><a href=\"Bs_News.asp?Action=业内新闻\">业 内 新 闻</a></div>'
		News+='<div class=menuitems><a href=\"Bs_News.asp?Action=公司通知\">公 司 通 知</a></div>'
		
var Product ='<div class=menuitems><a href=\"Bs_Products.asp\">工 程 分 类</a></div>'

var SOnline='<div class=menuitems><a href=\"Bs_NetBook.asp\">在 线 留 言</a></div>'

var SMesg='<div class=menuitems><a href=\"Bs_Norms_Technic.asp?Action=gszd\">公 司 制 度</a></div>'
		SMesg+='<div class=menuitems><a href=\"Bs_Norms_Technic.asp?Action=hygf\">行 业 规 范</a></div>'
		SMesg+='<div class=menuitems><a href=\"Bs_Norms_Technic.asp?Action=gjzc\">国 家 政 策</a></div>'
		SMesg+='<div class=menuitems><a href=\"Bs_Norms_Technic.asp?Action=jszl\">技 术 资 料</a></div>'

var Job ='<div class=menuitems><a href=\"Bs_Job.asp\">人 才 招 聘</a></div>'
		Job+='<div class=menuitems><a href=\"Bs_Jobs.asp\">人 才 策 略</a></div>'

//var Server='<div class=menuitems><a href=\"Bs_Server.asp\">职 员 登 陆</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="2%" valign="bottom" align="left"></td>');
document.write ('<TD width="98%" valign="bottom" align="left">');
document.write ('<a class="Top" href="index.asp" onMouseOver=\'ShowMenu(event,index)\'>首 页</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_CoProfile.asp?Action=Profile" onMouseOver=\'ShowMenu(event,CoProfile)\'>公司概况</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_News.asp?Action=行业新闻" onMouseOver=\'ShowMenu(event,News)\'>新闻动态</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_Honor.asp?Action=Honor" onMouseOver=\'ShowMenu(event,Honor)\'>资质平台</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_Ry.asp?Action=Honor" onMouseOver=\'ShowMenu(event,Ry)\'>企业荣誉</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_Product.asp" onMouseOver=\'ShowMenu(event,Product)\'>工程业绩</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_Norms_Technic.asp?Action=gszd" onMouseOver=\'ShowMenu(event,SMesg)\'>规范技术</a>　'+IMG1+JsSkins+IMG2+'　');
document.write ('<a class="Top" href="Bs_Job.asp" onMouseOver=\'ShowMenu(event,Job)\'>人力资源</a>　'+IMG1+JsSkins+IMG2+'　');
//document.write ('<a class="Top" href="Bs_Faq.asp" onMouseOver=\'ShowMenu(event,Server)\'>工程管理</a>　'+IMG1+JsSkins+IMG2+'　');  
document.write((new Date().toLocaleString()))
document.write ('</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</TD>');
document.write ('</TR>');
document.write ('</TABLE>');
document.write ('</DIV>');
}
