 var h;
 var w;
 var l;
 var t;
 var topMar = 3;
 var leftMar = -10;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#CCCCCC';
 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' bgcolor='#FFFFFF' cellspacing=1 cellpadding=3 style='width:"+tWidth+"; border-style:ridge; border-color:#FFFFFF; border-width:1px' class=tableborder1 onmouseout='HideMenu()'><tr height=23><td nowrap align=center>" + vMnuCode + "</td></tr></table>";
	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar+5;
	t = vSrc.offsetTop + topMar + h + space-15;
	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 jlhz= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/showme.aspx\" target=\"_blank\"><font color="#000000">单位展示</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/93_1.html\" target=\"_blank\"><font color="#000000">网点加盟</font></a>&nbsp;'
var zcfg= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/84_1.html\" target=\"_blank\"><font color="#000000">国家境外就业政策</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/85_1.html\" target=\"_blank\"><font color="#000000">就业国当地法规</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/88_1.html\" target=\"_blank\"><font color="#000000">权益保护</font></a>&nbsp;'
var fwjg= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/99_1.html\" target=\"_blank\"><font color="#000000">境外就业机构</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/100_1.html\" target=\"_blank\"><font color="#000000">企业风采</font></a>&nbsp;'
var zxfw= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/2_1.html\" target=\"_blank\"><font color="#000000">办理流程</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/35_1.html\" target=\"_blank\"><font color="#000000">政策咨询</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/guestbook.aspx\" target=\"_blank\"><font color="#000000">在线留言</font></a>&nbsp;'
var hwzn= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/164_1.html\" target=\"_blank\"><font color="#000000">驻外经商机构</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/5_1.html\" target=\"_blank\"><font color="#000000">异域风情</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/90_1.html\" target=\"_blank\"><font color="#000000">国外社团组织</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/91_1.html\" target=\"_blank\"><font color="#000000">各国驻华使领馆</font></a>&nbsp;'
var zpxx= '&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/zhaopin_more.aspx?type=1\" target=\"_blank\"><font color="#000000">国内就业</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/zhaopin_more.aspx?type=2\" target=\"_blank\"><font color="#000000">境外就业</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/Article/Class/102_1.html\" target=\"_blank\"><font color="#000000">就业培训</font></a>&nbsp;'
var qzxx='&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/yingpin_more.aspx?hopecountry=国内\" target=\"_blank\"><font color="#000000">国内就业</font></a>&nbsp;<br>&nbsp;<a style=font-size:9pt;line-height:14pt; href=\"/yingpin_more.aspx?hopecountry=境外\" target=\"_blank\"><font color="#000000">境外就业</font></a>&nbsp;'
