
 var h;
 var w;
 var l;
 var t;
 var topMar =4;
 var leftMar =8;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR;//定义下拉菜单阴影色
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

document.writeln("<div id=menuDiv style='Z-INDEX: 1000; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px;'></div>");
//document.writeln("<OBJECT id=menuDivO style='Z-INDEX: 1000; VISIBILITY: hidden;' type=\"text/x-scriptlet\" data='about:<div id=menuDiv style='Z-INDEX: 1000; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #FFFFFF'></div>></OBJECT>");

function HideMenu() 
{
 var mX;
 var mY;
 var vDiv;
 var mDiv;
	if (isvisible == true)
{
		vDiv = document.all("menuDiv");
		mX = window.event.clientX + document.body.scrollLeft;
		mY = window.event.clientY + document.body.scrollTop;
		if ((mX < parseInt(vDiv.style.left)) || (mX > parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-h) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)){
			vDiv.style.visibility = "hidden";
			isvisible = false;
		}
}
}

function ShowMenu(vMnuCode,tWidth,bgcolor) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=0 cellpadding=0 style='border:0 solid #DDDDDD;width:"+tWidth+"' onmouseout='HideMenu()' bgcolor:#006699><tr height=23><td nowrap align=left>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+0;
	t = vSrc.offsetTop + topMar + h + space-2;
	vParent = vSrc.offsetParent;
	while (vParent.tagName.toUpperCase() != "BODY")
	{
		l += vParent.offsetLeft;
		t += vParent.offsetTop;
		vParent = vParent.offsetParent;
	}

	menuDiv.innerHTML = vMnuCode;
	menuDiv.style.top = t;
	menuDiv.style.left = l;
	menuDiv.style.visibility = "visible";
	isvisible = true;
    makeRectangularDropShadow(submenu, MENU_SHADOW_COLOR, 4)

}

function makeRectangularDropShadow(el, color, size)
{
	var i;
	for (i=size; i>0; i--)
	{
		var rect = document.createElement('div');
		var rs = rect.style
		rs.position = 'absolute';
		rs.left = (el.style.posLeft + i) + 'px';
		rs.top = (el.style.posTop + i) + 'px';
		rs.width = el.offsetWidth + 'px';
		rs.height = el.offsetHeight + 'px';
		rs.zIndex = el.style.zIndex - i;
		
		var opacity = 1 - i / (i + 1);
		rs.filter = 'alpha(opacity=' + (100 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
var m0= '<table width=10px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A> </A></td></tr></table>'
var m1= '<table width=180px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A href=company.htm>公司简介</A></td><td nowrap height=20  align=center><A href=company1.htm>管理体系</A></td><td nowrap height=20  align=center><A href=company2.htm>工作流程</A></td></tr></table>'
//解决方案
var m2 = '<table  width=430px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A href=cpzt.asp?pid=46>汽车配件系列</A></td><td nowrap height=20  align=center><A href=cpzt.asp?pid=47>摩托车配件系列</A></td><td nowrap height=20  align=center><A href=cpzt.asp?pid=48>电动工具系列</A></td><td nowrap height=20  align=center><A href=cpzt.asp?pid=49>汽油机系列</A></td><td nowrap height=20  align=center><A href=cpzt.asp?pid=50>其它配件系列</A></td></tr></table>'
//客户服务
var m3= '<table  width=120px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A href=shebei.htm>生产设备</A></td><td nowrap height=20  align=center><A href=sheji.htm>设计中心</A></td></tr></table>'
var m4 = '<table  width=180px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A href=/products/index.asp>客服咨询</A></td><td nowrap height=20  align=center><A href=/products/index.asp>技术支持</A></td><td nowrap height=20  align=center><A href=/products/index.asp>业务渠道</A></td></tr></table>'
//客户服务
var m5= '<table  width=80px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><A href=/Service/index.asp>服务网络</A></td></tr><tr><td nowrap height=20  align=center><a href=/Service/Technology.asp>技术问答</a></td></tr><tr><td nowrap height=20  align=center><a href=/Service/download.asp>下载中心</a></td><tr><td nowrap height=20  align=center><a href=/Service/contect.asp>联系我们</a></td></tr></table>'
var m6= '<table width=80px border=0 cellspacing=0 cellpadding=0><tr><td nowrap height=20  align=center><a href=/home/index.asp>活动乐园</a></td></tr><tr><td nowrap height=20  align=center><a href=/home/maga.asp>企业报刊</a></td></tr><tr><td nowrap height=20  align=center><a href=/bbs>员工论坛</a></td></tr></table>'

var menutext="<div align=center><font color=#FFFFFF><a href=/index.asp style=\"font-size:10pt\">首 "+
            "  页</a> | <a href=/about/index.asp onMouseOver=\"ShowMenu(m1,80,bgcolor);\" style=\"font-size:10pt\">走进华朔</a> | <a href=\"/new/index.asp\" onMouseOver=\"ShowMenu(m2,80,bgcolor);\" style=\"font-size:10pt\">新闻中心</a> "+
            "  | <a href=\"/products/index.asp\" onMouseOver=\"ShowMenu(m3,80,bgcolor);\" style=\"font-size:10pt\">产品展厅</a> | <a href=\"/Service/index.asp\" onMouseOver=\"ShowMenu(m5,80,bgcolor);\" style=\"font-size:10pt\">客户服务</a> | <a href=\"/YD%20hr/More.asp\" onMouseOver=\"ShowMenu(m4,80,bgcolor);\" style=\"font-size:10pt\">人力资源</a> "+
           "   | <a href=\"/home/index.asp\" onMouseOver=\"ShowMenu(m6,80,bgcolor);\" style=\"font-size:10pt\">员工之家</a> "+
           "   | <a href=\"/map/index.asp\" style=\"font-size:10pt\">网站地图</a></font></div>";