var sHonor,sExample,sService,sProduct,sNewProduct;

sHonor = '';
sHonor = sHonor + '<DIV ID="MenuContent">';
sHonor = sHonor + '<UL>';
sHonor = sHonor + '	<LI><A HREF="Honor.asp">荣誉证书</A>';
sHonor = sHonor + '	<LI><A HREF="OtherHonor.asp">其他荣誉</A>';
sHonor = sHonor + '	</LI>';
sHonor = sHonor + '</UL>';
sHonor = sHonor + '</DIV>';


sExample = '';
sExample = sExample + '<DIV ID="MenuContent">';
sExample = sExample + '<UL>';
sExample = sExample + '	<LI><A HREF="CustomerList.asp">客户目录</A>';
sExample = sExample + '	<LI><A HREF="Example.asp">工程案例</A>';
sExample = sExample + '	</LI>';
sExample = sExample + '</UL>';
sExample = sExample + '</DIV>';


sService = '';
sService = sService + '<DIV ID="MenuContent">';
sService = sService + '<UL>';
sService = sService + '	<LI><A HREF="Feedback.asp">客户反馈</A>';
sService = sService + '	<LI><A HREF="Questionary.asp">用户满意度调查表</A>';
sService = sService + '	</LI>';
sService = sService + '</UL>';
sService = sService + '</DIV>';

sProduct = ''
sProduct = sProduct + '<DIV ID="MenuContent">';
sProduct = sProduct + '<UL>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=1">GP1型金属板可拆卸式屏蔽室</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=2">GPQ.GPB型板体组装式屏蔽室</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=3">GP6型金属板焊接式屏蔽室</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=4">GPR型铜板焊接式屏蔽室</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=5">暗室系统工程</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=6">屏蔽门系列</A>';
sProduct = sProduct + '	<LI><A HREF="Product.asp?ID=7">系列配件 </A>';
sProduct = sProduct + '	</LI>';
sProduct = sProduct + '</UL>';
sProduct = sProduct + '</DIV>';

sNewProduct = ''
sNewProduct = sNewProduct + '<DIV ID="MenuContent">';
sNewProduct = sNewProduct + '<UL>';
sNewProduct = sNewProduct + '	<LI><A HREF="NewProduct.asp?ID=1">ZP系列装饰型屏蔽室</A>';
sNewProduct = sNewProduct + '	<LI><A HREF="NewProduct.asp?ID=2">XP系列电磁屏蔽箱</A>';
sNewProduct = sNewProduct + '	<LI><A HREF="NewProduct.asp?ID=3">XYS系列电话消音室</A>';
sNewProduct = sNewProduct + '	<LI><A HREF="NewProduct.asp?ID=4">BZ-1型网络屏蔽桌</A>';
sNewProduct = sNewProduct + '	</LI>';
sNewProduct = sNewProduct + '</UL>';
sNewProduct = sNewProduct + '</DIV>';



var h;
var w;
var l;
var t;
var topMar = 1;
var leftMar = -2;
var space = 1;
var isvisible;
var MENU_SHADOW_COLOR='#999999';//定义下拉菜单阴影色
var global = window.document
global.fo_currentMenu = null
global.fo_shadows = new Array
var ControlPanel;

document.write('<DIV id=menuDiv style="Z-INDEX: 100; VISIBILITY: hidden; WIDTH: 1px; POSITION: absolute; HEIGHT: 1px; BACKGROUND-COLOR: #8CBE8C"></DIV>');


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=0 CELLPADDING=0 STYLE='WIDTH:"+tWidth+"' OnMouseOut='HideMenu()'><TR HEIGHT=23><TD NoWrap ALIGN=LEFT STYLE='BACKGROUND-COLOR:#FFFFFF; LINE-HEIGHT:18px;'>" + vMnuCode + "</TD></TR></TABLE>";

	h = vSrc.offsetHeight;
	w = vSrc.offsetWidth;
	l = vSrc.offsetLeft + leftMar - 11;
	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;
	}
}

function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
  }
}

