 var h;
 var w;
 var l;
 var t;
 var topMar = 12;
 var leftMar = -20;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#999999';
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array

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) {
	vSrc = window.event.srcElement;
	vMnuCode = "<table id='submenu' cellspacing=1 cellpadding=3 style='width:"+tWidth+"' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=left class=tablebody1>" + vMnuCode + "</td></tr></table>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+4;
	t = vSrc.offsetTop + topMar + h + space-10;
	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;
		rs.backgroundColor = color;
		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 About= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../about/"><font color="#000000">公 司 简 介</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../about/index1.htm"><font color="#000000">企 业 文 化</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../about/index2.htm"><font color="#000000">分 支 机 构</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../about/index3.htm"><font color="#000000">资 质 证 书</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../about/index4.htm"><font color="#000000">联 系 我 们</font></a>&nbsp;'
var News= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../news/?ClassId=02"><font color="#000000">怡 成 新 闻</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../news/?ClassId=03"><font color="#000000">健 康 资 讯</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../news/?ClassId=04"><font color="#000000">糖尿病新闻资讯</font></a>&nbsp;'
var jccp= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5.htm"><font color="#000000">超越JPS-5型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/6.htm"><font color="#000000">超越JPS-6型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/7.htm"><font color="#000000">超越JPS-7型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5miao.htm"><font color="#000000">5D-1型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5D2.htm"><font color="#000000">5D-2型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5D3.html"><font color="#000000">5D-3型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5D6.html"><font color="#000000">5D-6型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/5D7.html"><font color="#000000">5D-7型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/jpst-5.html"><font color="#000000">JPST-5型血糖仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/tongti.htm"><font color="#000000">T-1型血酮体测试仪</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/bdbcsk.htm"><font color="#000000">肾损伤检测卡</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jccp/jcxl.htm"><font color="#000000">快速检测产品系列</font></a>&nbsp;<br>'
var bjcp= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../bjcp/cccp.htm"><font color="#000000">虫 草 产 品</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../bjcp/ccbj.htm"><font color="#000000">虫 草 保 健</font></a>&nbsp;'
var jkgl= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../jkgl/tnbjkgl.htm"><font color="#000000">糖 尿 病 健 康 管 理</font></a>&nbsp;'
var sale= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../show/productionshow.htm"><font color="#000000">产 品 秀</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../show/buyway.htm"><font color="#000000">购 买 方 式</font></a>&nbsp;'
var Job= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../cpyc/rczp.htm"><font color="#000000">人 才 招 聘</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"../cpyc/rccl.htm"><font color="#000000">人 才 策 略</font></a>&nbsp;'


