 var h;
 var w;
 var l;
 var t;
 var topMar = 3;
 var leftMar = -18;
 var space = 2;
 var isvisible;
 var MENU_SHADOW_COLOR='#d0c6bb';
 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 design= ' <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/101/index.htm\">家庭装修</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/103/index.htm\">别墅装修</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/105/index.htm\">装修常识</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/107/index.htm\">酒店装修</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/102/index.htm\">办公室装修</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/104/index.htm\">装修案例</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/106/index.htm\">装饰快讯</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/108/index.htm\">行业政策</a> '
var huihua= ' <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2010/index.htm\">起居室</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2020/index.htm\">卧 室</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2030/index.htm\">书 房</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2040/index.htm\">儿童房</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2050/index.htm\">厨 房</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2060/index.htm\">浴 室</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2070/index.htm\">餐 厅</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2080/index.htm\">阳 台</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/2090/index.htm\">过 道</a> '
var sheying= ' <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/401/index.htm\">板 材 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/402/index.htm\">粉 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/403/index.htm\">塑 料 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/404/index.htm\">涂 料 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/405/index.htm\">五 金 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/406/index.htm\">油 漆 类</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/407/index.htm\">橱 柜</a><br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/408/index.htm\">铜 管</a> '
var gongyi= ' <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/301/index.htm\">成品门</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/302/index.htm\">整体橱柜</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/303/index.htm\">步入式衣帽间</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/304/index.htm\">强化木地板</a> '
var shufa= ' <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/501/index.htm\">办公家具</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/502/index.htm\">卧室家具</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/503/index.htm\">成套家具</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/504/index.htm\">餐厅家具</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/505/index.htm\">客厅家具</a> <br> <a class="glow" style=font-size:9pt;line-height:14pt; href=\"/506/index.htm\">酒店家具</a> '
