// define menu look and feel 
//fontFamily				= "arial, helvetica, sans-serif"
fontFamily				= "宋体"
fontSize					= 12
fontWeight				= "bold"
fontColor				= "white"
fontHighlightColor	= "#FFCC33"
bgColor					= "#284C86"
bgHighlightColor		= "#8698B5"
hAlign					= "left"
vAlign					= "middle"
itemPadding				= 5
itemSpacing				= 0
itemIndent				= 0
itemHeight				= 20
menuLightBorderColor	= "white"
menuDarkBorderColor	= ""
menuLineColor		= "white"
menuBorder		= 0 			// 1=yes, 0=no
menuLeft		= 5			// from left of mouse over element
menuTop			= 1			// from bottom of mouse over element
hideMenuTime			= 1000		// time until menu disappears when not in use; in milliseconds
showMenus				= true		// determines whether the menus should be rendered and usable
nfgStyle				= "font-weight:"+fontWeight+";font-size:"+fontSize+";"	// override nfg style sheet

if (showMenus) {
	// define protocol, server, etc. for menu item links 
	SiteBaseUrl				= "http://" + location.host
	SiteBaseSSLUrl			= "https://" + location.host
}
// required functionality
function setMenu(width){this.width=width;this.height=itemHeight}
function formatMenu(menu){menu.fontWeight=fontWeight;menu.hideOnMouseOut=true;menu.menuBorder=menuBorder;menu.menuLiteBgColor=menuLightBorderColor;menu.menuBorderBgColor=menuDarkBorderColor;menu.bgColor=menuLineColor}
function itemProps(text,href){this.text=text;this.href=href}
function createItems(menu,items){for(i=0;i<items.length;i++){menu.addMenuItem(items[i].text,"location='"+items[i].href+"'")}}

// menu items; function called at bottom of NfgShell.ascx
function loadMenus() {
	if (showMenus) {
		// news
		menuDonate = new setMenu(120)
		window.menuDonate = new Menu(menuDonate.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrDonate = new Array();
		arrDonate[0] = new itemProps("业界新闻","news.asp")
		arrDonate[1] = new itemProps("促销信息","http://www.siemens-sbcs.com.cn/cn/p_41.asp")
		arrDonate[2] = new itemProps("企业动态","http://www.siemens-sbcs.com.cn/cn/p_42.asp")
		//arrDonate[5] = new itemProps("项目活动",SiteBaseUrl + "#")
		//arrDonate[6] = new itemProps("公益新闻",SiteBaseUrl + "#")
		createItems(menuDonate,arrDonate)
		formatMenu(menuDonate)
		

		// structure 
		menuVolunteer = new setMenu(120)
		window.menuVolunteer = new Menu(menuVolunteer.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrVolunteer = new Array();
		arrVolunteer[0] = new itemProps("公司概要","overview.asp")
		arrVolunteer[1] = new itemProps("公司荣誉","honour.asp")
		//arrVolunteer[2] = new itemProps("飞雄通讯大事记",SiteBaseUrl + "#")
		//arrVolunteer[3] = new itemProps("飞雄通讯荣誉",SiteBaseUrl + "#")
		//arrVolunteer[4] = new itemProps("飞雄通讯信誉",SiteBaseUrl + "#")
		createItems(menuVolunteer,arrVolunteer)
		formatMenu(menuVolunteer)

		// MY Volunteer
		menuMyProfile = new setMenu(140)
		window.menuMyProfile = new Menu(menuMyProfile.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrMyProfile = new Array();
		arrMyProfile[0] = new itemProps("Hipath 3000系列","HiPath3000_1.asp")
		arrMyProfile[1] = new itemProps("Hipath 4000系列","HiPath4000_1.asp")
		arrMyProfile[2] = new itemProps("产品市场价一览表","product.asp")
		//arrMyProfile[3] = new itemProps("A1",SiteBaseSSLUrl + "#")
		//arrMyProfile[4] = new itemProps("A2",SiteBaseSSLUrl + "#")
		//arrMyProfile[5] = new itemProps("A3",SiteBaseSSLUrl + "#")
		createItems(menuMyProfile,arrMyProfile)
		formatMenu(menuMyProfile)

		// Fwxm
		menuFwxm = new setMenu(120)
		window.menuFwxm = new Menu(menuFwxm.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrFwxm = new Array();
		arrFwxm[0] = new itemProps("客户名单","Customer.asp")
		arrFwxm[1] = new itemProps("FAQ常见问题","FAQ.asp")
		arrFwxm[2] = new itemProps("售后承诺","AfterService.asp")
		createItems(menuFwxm,arrFwxm)
		formatMenu(menuFwxm)

// Axjz
	menuAxjz = new setMenu(120)
		window.menuAxjz = new Menu(menuAxjz.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrAxjz = new Array();
		arrAxjz[0] = new itemProps("联络信息","about.asp")
		//arrAxjz[1] = new itemProps("合作伙伴信息",SiteBaseSSLUrl + "#")
		createItems(menuAxjz,arrAxjz)
		formatMenu(menuAxjz)


		// WmLdd
		menuWmldd = new setMenu(120)
		window.menuWmldd = new Menu(menuWmldd.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrWmldd = new Array();
		//arrWmldd[0] = new itemProps("中文",SiteBaseSSLUrl + "/profile/login.aspx")
		arrWmldd[0] = new itemProps("English","#")
		createItems(menuWmldd,arrWmldd)
		formatMenu(menuWmldd)


// Sbzt
		menuSbzt = new setMenu(120)
		window.menuSbzt = new Menu(menuSbzt.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrSbzt = new Array();
		arrSbzt[0] = new itemProps("动态",SiteBaseSSLUrl + "#")
		arrSbzt[1] = new itemProps("纵览",SiteBaseSSLUrl + "#")
		arrSbzt[2] = new itemProps("科技",SiteBaseSSLUrl + "#")
		arrSbzt[3] = new itemProps("刊物",SiteBaseSSLUrl + "#")
		createItems(menuSbzt,arrSbzt)
		formatMenu(menuSbzt)


// xzq
		menuXzq = new setMenu(120)
		window.menuXzq = new Menu(menuXzq.width,itemHeight,fontFamily,fontSize,fontColor,fontHighlightColor,bgColor,bgHighlightColor,hAlign,vAlign,itemPadding,itemSpacing,hideMenuTime,true,true,itemIndent,0,0,true,"root",nfgStyle)
		var arrXzq = new Array();
		arrXzq[0] = new itemProps("资料",SiteBaseSSLUrl + "#")
		arrXzq[1] = new itemProps("下载",SiteBaseSSLUrl + "#")
		arrXzq[2] = new itemProps("下载",SiteBaseSSLUrl + "#")
		arrXzq[3] = new itemProps("活动",SiteBaseSSLUrl + "#")		
		createItems(menuXzq,arrXzq)
		formatMenu(menuXzq)




		// write menus
		menuDonate.writeMenus()
	}
}


