// JavaScript Document
 
 var h;
 var w;
 var l;
 var t;
 var topMar = 4;
 var leftMar = -10;
 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 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  href=\"aboutus.asp?id=1\"><font color="#eeeeee"> 品 牌 物 語 </font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=2\"><font color="#eeeeee"> 品 牌 文 化 </font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=3\"><font color="#eeeeee"> 品 牌 信 念 </font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=4\"><font color="#eeeeee"> 品 牌 香 薰 </font></a>&nbsp;'
var News= '&nbsp;<a  href=\"newA.asp?id=1\"><font color="#eeeeee"> 最 新 公 告 </font></a>&nbsp;<br>&nbsp;<a  href=\"newA.asp?id=2\"><font color="#eeeeee"> 佰 度 动 态 </font></a>&nbsp;<br>&nbsp;<a  href=\"newA.asp?id=3\"><font color="#eeeeee"> 行 業 聚 焦</font></a>&nbsp;'

var chanpin= '&nbsp;<a  href=\"aboutus.asp?id=12\"><font color="#eeeeee">按产品系列</font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=13\"><font color="#eeeeee">按皮肤性质</font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=13\"><font color="#eeeeee">按功能查找</font></a>&nbsp;<br>&nbsp;<a  href=\"aboutus.asp?id=13\"><font color="#eeeeee">按护理程序</font></a>&nbsp;'

var huiyuan= '&nbsp;<a  href=\"huiyuanxz.asp\"><font color="#eeeeee"> 会 员 须 知 </font></a>&nbsp;<br>&nbsp;<a  href=\"huiyuanyouhui.asp\"><font color="#eeeeee"> 会 员 优 惠 </font></a>&nbsp;<br>&nbsp;<a  href=\"UserReg.asp\"><font color="#eeeeee"> 会 员 注 册 </font></a>&nbsp;<br>&nbsp;<a  href=\"gift.asp\"><font color="#eeeeee">  礼 品 查 询 </font></a>&nbsp;<br>&nbsp;<a  href=\"login.asp\"><font color="#eeeeee"> 会 员 登 陆 </font></a>&nbsp;<br>&nbsp;<a  href=\"wallpaper.asp\"><font color="#eeeeee"> 壁 纸 下 载 </font></a>&nbsp;'

var xueyuan= '&nbsp;<a  href=\"xuetang.asp\"><font color="#eeeeee"> 养 生 修 养 学 堂 </font></a>&nbsp;<br>&nbsp;<a  href=\"Oxuetang.asp\"><font color="#eeeeee"> 殴 仕 曼 大 学 堂 </font></a>&nbsp;'

var gbook= '&nbsp;<a  href=\"FeedbackList.asp\"><font color="#eeeeee"> 佰 度 留 言 </font></a>&nbsp;<br>&nbsp;<a  href=\"diaocha.asp\"><font color="#eeeeee"> 佰 度 调 查 </font></a>&nbsp;<br>&nbsp;<a  href=\"qita.asp?id=4\"><font color="#eeeeee"> 佰 度 征 文 </font></a>&nbsp;<br>&nbsp;<a  href=\"qita.asp?id=2\"><font color="#eeeeee"> 联 系 我 们 </font></a>&nbsp;'
 

document.write('<DIV id=menuDiv ');
document.write('style=\"Z-INDEX: 2; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #9cc5f8\"><\/DIV>');
