 var h;
 var w;
 var l;
 var t;
 var topMar = 0;
 var leftMar = -2;
 var space = 1;
 var isvisible;
 var MENU_SHADOW_COLOR='';//下拉菜单阴影
 var global = window.document
 global.fo_currentMenu = null
 global.fo_shadows = new Array
document.write ("<div id='menuDiv' style='Z-INDEX: 0; VISIBILITY: hidden;WIDTH: 1px;  POSITION: absolute; height: 1px;'></div>");
document.write ("<iframe name='runat' width='0' height='0'></iframe>");
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  class='div2' bgcolor=#ffffff id='submenu' border=1 bordercolor=#ffffff cellspacing=0 cellpadding=0 style='width:"+tWidth+"' onmouseout='HideMenu()'>" + vMnuCode + "</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, 3)
}

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 xswl='<TBODY>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"xswl/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">网络地图</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"xswl/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">代理查询</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"http://shop.zssm.com.cn/\" style="font-size:12px" class="menulink" TARGET=\"_self\">网上订购</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"xswl/dankehudg.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">团体订购</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"xswl/jiamengzc.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">加盟政策</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"xswl/jiameng.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">加盟申请</a></TD></TR>'+
'</TBODY>'

var shfw='<TBODY>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"shfw/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">暖气知识</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"shfw/cjwt.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">使用常识</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"shfw/yhfk.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">用户反馈</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5><a href=\"bbs/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">在线交流</a></TD></TR>'+
'</TBODY>'

var gykj='<TBODY>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"gykj/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">新闻动态</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"gykj/biaozun.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">企业标准</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"gykj/rongyu.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">凯捷荣誉</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"gykj/zhaopin.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">招聘信息</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"gykj/lianxi.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">联系我们</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"dailis/default.asp\" style="font-size:12px" class="menulink" TARGET=\"_self\">分销商登陆</a></TD></TR>'+
'<TR><TD height=25 align=center ALIGN=center bordercolor=#D5D5D5 ><a href=\"http://home.focus.cn/group/house_group.php?group_id=3869\" style="font-size:12px" class="menulink" TARGET=\"_blank\">网络互动</a></TD></TR>'+
'</TBODY>'


