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>");

document.write ('<DIV align="center">');
document.write ('<TABLE cellSpacing=0 cellPadding=0 class="TopMenu2">');
document.write ('<TR><TD>');
document.write ('<TABLE cellSpacing=0 cellPadding=0 class="TopMenu2A">');
document.write ('<TR><TD align="center"');
document.write ('><A onmouseover="javascript:id1.src=\'Images/bu1.jpg\';setmenu(1);" onmouseout="id1.src=\'Images/b1.jpg\'" href="1/1.htm"');
document.write ('><IMG id=id1 src="Images/b1.jpg" width=101 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id2.src=\'Images/bu2.jpg\';setmenu(2);" onmouseout="id2.src=\'Images/b2.jpg\'" href="2/1.htm"');
document.write ('><IMG id=id2 src="Images/b2.jpg" width=95 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id3.src=\'Images/bu3.jpg\';setmenu(3);" onmouseout="id3.src=\'Images/b3.jpg\'" href="3/1.htm"');
document.write ('><IMG id=id3 src="Images/b3.jpg" width=97 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id4.src=\'Images/bu4.jpg\';setmenu(4);" onmouseout="id4.src=\'Images/b4.jpg\'" href="4/1.htm"');
document.write ('><IMG id=id4 src="Images/b4.jpg" width=97 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id5.src=\'Images/bu5.jpg\';setmenu(5);" onmouseout="id5.src=\'Images/b5.jpg\'" href="5/1.htm"');
document.write ('><IMG id=id5 src="Images/b5.jpg" width=95 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id6.src=\'Images/bu6.jpg\';setmenu(6);" onmouseout="id6.src=\'Images/b6.jpg\'" href="6/1.htm"');
document.write ('><IMG id=id6 src="Images/b6.jpg" width=94 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id7.src=\'Images/bu7.jpg\';setmenu(7);" onmouseout="id7.src=\'Images/b7.jpg\'" href="guest/index.asp"');
document.write ('><IMG id=id7 src="Images/b7.jpg" width=100 height=36 border=0></A');
document.write ('></td><td><A onmouseover="javascript:id8.src=\'Images/bu8.jpg\';setmenu(8);" onmouseout="id8.src=\'Images/b8.jpg\'" href="bbs/index.asp"');
document.write ('><IMG id=id8 src="Images/b8.jpg" width=99 height=36 border=0></A');
document.write ('></TD></TR></TABLE>');
document.write ('</TD></TR>');

function setmenu(id)
{
	var str;
	switch (id)
	{
		case 1:  //棣?椤?
			str='<div align="left" valign="top">';
			str+='&nbsp;&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/2.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/3.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/4.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/5.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"1/6.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 2:  //鍏?鍙?浠?缁?
			str='<div align="left" valign="top">';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='<a class="Top" href=\"2/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"2/2.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 3: //鍏?鍙?鏂?闂?
			str='<div align="center" valign="top">';
			str+='<IMG src="../images/1x1_pix.gif" width=66 height=1>';
			str+='<a class="Top" href=\"3/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"3/2.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 4: //浜?鍝?灞?绀?
			str='<div align="right" valign="top">';
			str+='<IMG src="../images/1x1_pix.gif" width=142 height=1>';
			str+='<a class="Top" href=\"4/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"4/2.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"4/3.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 5: //鍏?鍙?鑽?瑾?
			str='<div align="right" valign="top">';
			str+='<IMG src="../images/1x1_pix.gif" width=223 height=1>';
			str+='<a class="Top" href=\"5/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"5/2.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 6: //浜?鎵?鎷?鑱?
			str='<div align="right" valign="top">';
			str+='<a class="Top" href=\"6/1.htm\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"6/2.asp\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<a class="Top" href=\"6/3.htm\">公司简介</a>&nbsp;&nbsp;';
			str+='</div>';
			break;
		case 7: //浜?鎵?鎷?鑱?
			str='<div align="right" valign="top">';
			//str+='<a class="Top" href=\"Bs_Job.asp\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			//str+='<a class="Top" href=\"Bs_Jobs.asp\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
			str+='<IMG src="images/1x1_pix.gif" width=212 height=1>';
			str+='</div>';
			break;
		case 8: //涓?杞?涓?蹇?
			str='<div align="right">';
			//str+='<a class="Top" href=\"Bs_Download.asp\">公司简介</a>&nbsp;&nbsp;|&nbsp;&nbsp;'
			str+='</div>';
			break;
	}	
	window.menu.innerHTML=str;
}

/////////////////////////////////鏄剧ず褰撳墠椤甸潰鐨勮彍鍗?////////////////////////////////////////////
window.onload=function()
{
	var curPage=escape(location.href);//褰撳墠椤垫枃浠跺悕
	setmenu(1);
}
document.write ('<TR><TD>');
document.write ('<TABLE cellSpacing=0 cellPadding=0 class="TopMenu2B">');
document.write ('<TR>');
document.write ('<TD id=menu class="TopMenu2B_Td1"  height="31" valign="middle"></TD>');
document.write ('</TR></TABLE>');
document.write ('</TD></TR></TABLE>');
document.write ('</DIV>');
