 var h;
 var w;
 var l;
 var t;
 var topMar = 0;
 var leftMar = -5;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#FFFFFF';
 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 bgColor=#eeeeee cellpadding=0 style='width:96' class=tableborder1 onmouseout='HideMenu()'>" + vMnuCode + "</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=' + (1 * opacity) + ')';
		el.insertAdjacentElement('afterEnd', rect);
		global.fo_shadows[global.fo_shadows.length] = rect;
	}
}
var zsyz= '<tr height=28><td nowrap align=center bgcolor=#D3ECF0><a  href=yqfz.asp class="menuB">园区发展</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a  href=xmtj.asp class="menuB">项目推荐</a></td></tr><tr height=28><td nowrap align=center  bgcolor=#D3ECF0><a href=zdqy.asp class="menuB">重点企业</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=zsfw.asp class="menuB">招商服务</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=rczp.asp class="menuB">人才招聘</a></td></tr>'
//var gzfw= '<tr height=28><td nowrap align=center bgcolor=#D3ECF0><a  href=http://www.jnhn.gov.cn/gysy.asp target=_blank class="menuB">公用事业</a></td></tr><tr height=28><td nowrap align=center  bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/shbz.asp target=_blank class="menuB">社会保障</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/zfjy.asp target=_blank class="menuB">住房就业</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/wsbj.asp target=_blank class="menuB">卫生保健</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/whjy.asp target=_blank class="menuB">文化教育</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/hjgl.asp target=_blank class="menuB">户籍管理</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/jhsy.asp target=_blank class="menuB">计划生育</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=http://www.jnhn.gov.cn/hydj.asp target=_blank class="menuB">婚姻登记</a></td></tr>'
//var wygk= '<tr height=28><td nowrap align=center bgcolor=#D3ECF0><a  href=3ji1.asp class="menuB">王因概貌</a></td></tr><tr height=28><td nowrap align=center  bgcolor=#D3ECF0><a href=3ji2.asp class="menuB">镇区领导</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=3ji3.asp class="menuB">国民经济</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=3ji4.asp class="menuB">基础建设</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=3ji5.asp class="menuB">社会事业</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=3ji6.asp class="menuB">人民生活</a></td></tr>'
var wygk= '<tr height=28><td nowrap align=center bgcolor=#D3ECF0><a  href=3ji1.asp class="menuB">王因简介</a></td></tr><tr height=28><td nowrap align=center  bgcolor=#D3ECF0><a href=spwy.asp class="menuB">视频王因</a></td></tr><tr height=28><td nowrap align=center bgcolor=#D3ECF0><a href=zjwy.asp class="menuB">图片王因</a></td></tr>'
