
 var h;
 var w;
 var l;
 var t;
 var topMar = 3;
 var leftMar = -10;
 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-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;
		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.htm\"><font color="#000000">科 学 院 简 介</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt;target="_blank"　 href=\"http://www.catcm.ac.cn/Html/yiliaofuwu/index.html \"><font color="#000000">医 疗 服 务</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt;target="_blank"　 href=\"http://www.catcm.ac.cn/Html/yiliaofuwu/xunyidaohang/143939113.html \"><font color="#000000">出诊专家介绍</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Contact.htm\"><font color="#000000">联 系 我 们</font></a>&nbsp;'
var img= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"News.asp\"><font color="#000000">新 闻 资 讯</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"zjtxNews.asp\"><font color="#000000">专 家 提 醒</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"zjtsNews.asp\"><font color="#000000">专 家 提 示</font></a>&nbsp;'
var Product= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"menu.htm\"><font color="#000000">成 果 展 示</font></a>&nbsp;'
var server= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Contact.htm\"><font color="#000000">联 系 我 们</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"Server.asp\"><font color="#000000">会 员 中 心</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"liuyan/web.asp\"><font color="#000000">留 言 中 心</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"E_shop.asp\"><font color="#000000">订 单 查 询</font></a>&nbsp;'
var index= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"index.htm\"><font color="#000000">网 站 首 页</font></a>&nbsp;'
var News= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"yigan.asp\"><font color="#000000">乙 肝 专 题</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"bg.asp\"><font color="#000000">丙 肝 专 题</font></font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"zfg.asp\"><font color="#000000">脂 肪 肝 专 题</font></font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"jjg.asp\"><font color="#000000">酒 精 肝 专 题</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"gyh.asp\"><font color="#000000">肝 硬 化 专 题</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"ga.asp\"><font color="#000000">肝 癌 专 题</font></a>&nbsp;'
var liuyan= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"http://bbs.cnyuyi.com/ltShow.asp?lcID=3&lsID=6\"><font color="#000000">医 患 论 坛</font></a>&nbsp;'
