/*
Milonic DHTML Menu - JavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
*******  PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE  ******* 
*/

_menuCloseDelay=0             // The time delay for menus to remain visible on mouse out
_menuOpenDelay=0              // The time delay before menus open on mouse over
_subOffsetTop=0              // Sub menu top offset
_subOffsetLeft=0            // Sub menu left offset


// menu check
m_path=window.location.pathname;
m_path=m_path.toLowerCase();


m_home="images/mnu-home.gif"
m_prod="images/mnu-products.gif"
m_serv="images/mnu-service.gif"
m_corp="images/mnu-corporate.gif"
m_pres="images/mnu-press.gif"
m_srch="images/mnu-search2.gif"
//m_blank="images/mnu-blank.gif"

if (m_path.substring(0,5)=="/home")       m_home=m_home.replace (/.gif/gi, "-over.gif");
if (m_prod.substring(0,9)=="/products")   m_prod=m_prod.replace (/.gif/gi, "-over.gif");
if (m_serv.substring(0,9)=="/service")       m_serv=m_serv.replace (/.gif/gi, "-over.gif");
if (m_path.substring(0,10)=="/corporate") m_corp=m_corp.replace (/.gif/gi, "-over.gif");
if (m_path.substring(0,6)=="/press")      m_pres=m_pres.replace (/.gif/gi, "-over.gif");
if (m_path.substring(0,7)=="/search")     m_srch=m_srch.replace (/.gif/gi, "-over.gif");
//if (m_blank.substring(0,6)=="/blank")     m_srch=m_srch.replace (/.gif/gi, ".gif");


with(menuStyle=new mm_style()){
onbgcolor="#458B00";    //鼠标在上背景时的颜色
oncolor="white";     //鼠标在上时字体的颜色
offbgcolor="#8CB200";//子菜单背景颜色
offcolor="white";   //文本字体颜色
bordercolor="#aaaaaa";
borderstyle="solid";
borderwidth=0;
separatorcolor="#404040";
separatorsize="0";
padding=8;
fontsize="13px";
fontstyle="normal";
fontweight="bold";
fontfamily="Arial,Helvetica";
pagecolor="white";  //已经访问过的文本的颜色

pagebgcolor="#9CC308";
headercolor="white";

headerbgcolor="#ffffff";
subimage="images/warrow.gif";
subimagepadding="2";
}

with(oldmenuStyle=new mm_style()){
onbgcolor="#ed1c24";
oncolor="#ffffff";
offbgcolor="pink";
offcolor="#ffffff";
bordercolor="#8A867A";
borderstyle="solid";
borderwidth=1;
separatorcolor="#8A867A";
separatorsize="1";
padding=3;
fontsize="100%";
fontstyle="normal";
fontweight="normal";
fontfamily="Arial,Helvetica";
subimage="images/arrow.gif";
}


with(AllImagesStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
padding=0;
fontstyle="normal";
fontweight="normal";
}


with(SmallerMenuStyle=new mm_style()){
onbgcolor="gray";
oncolor="#ffffff";
offbgcolor="#ffffff";
offcolor="#ffffff";
bordercolor="#aaaaaa";
borderstyle="solid";
borderwidth=0;
separatorcolor="#404040";
separatorsize="0";
padding=4;
fontsize="13px";
fontstyle="normal";
fontweight="bold";
fontfamily="Arial,Helvetica";
pagecolor="#ed1c24";
pagebgcolor="#000000";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="images/warrow.gif";
subimagepadding="2";
}


with(milonic=new menuname("Main Menu")){

style=AllImagesStyle;
top=81;

//alert(screen.availWidth);

if (screen.availWidth==1024){
	  left=375;
}else if (screen.availWidth==800)
{
	   left=250;
}else if (screen.availWidth==1280)
{
	   left=490;   
}else if (screen.availWidth==1152)
{
	   left=216;
}else if (screen.availWidth==1280)
{
	   left=280;
}else{
	  left=152;
}


alwaysvisible=1;
orientation="horizontal";
aI("image="+ m_home +";overimage=images/mnu-home-over.gif;showmenu=Home;url=/index.asp;");
aI("image="+ m_prod +";overimage=images/mnu-products-over.gif;showmenu=myPro;url=/aboutme.asp;");
aI("image="+ m_serv +";overimage=images/mnu-service-over.gif;showmenu=Service;");
aI("image="+ m_corp +";overimage=images/mnu-corporate-over.gif;showmenu=Support;");
aI("image="+ m_pres +";overimage=images/mnu-press-over.gif;showmenu=zhaopin;url=/contactus.asp;");
//aI("image="+ m_srch +";overimage=images/mnu-search2-over.gif;showmenu=Press;");
//aI("image="+ m_blank +";overimage=images/m_blank.gif;");
}

with(milonic=new menuname("Home")){

style=menuStyle;
//aI("text=Homepage;url=/index.asp;");
//aI("text=Search;url=/search/index.htm;;");
//aI("text=Search;url=/search/index.htm;;");
}


with(milonic=new menuname("myPro")){
	style=menuStyle;
	/*
	aI("text=【益健膳食管理系统】;showmenu=zzwsolution;");
	aI("text=【疾病与营养智能分析软件】;showmenu=lyxsolution;");
	aI("text=【待售产品货物架】;url=/ssgl_hwj.asp;");
	*/
	}

//赃证物 子菜单
with(milonic=new menuname("zzwsolution")){
style=menuStyle;
//aI("image=images/bluetooth2.gif;text=;url=/jcy_byx.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统】介绍;url=/ssgl_js.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统】宣传资料;url=/ssgl_xczl.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食下载中心】;url=/ssgl_dowload.asp;");
//aI("image=images/porta.gif;text=问与答(Q/A);url=/jcy_aq.asp;");
}

//赃证物 子菜单
with(milonic=new menuname("lyxsolution")){
style=menuStyle;
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】介绍;url=/jbyy_js.asp;");
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】宣传资料;url=/jbyy_xczl.asp;");
//aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】试用版下载;url=/jbyy_dowload.asp;");
//aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】视频操作下载;url=/jbyy_dowload.asp;");
aI("image=images/bluetooth2.gif;text=【疾病与营养下载中心】;url=/jbyy_dowload.asp;");

}


with(milonic=new menuname("service")){
style=menuStyle;
overflow="scroll";
aI("text=【益健膳食管理系统】;showmenu=ProductsSolutions_pc;");
aI("text=【疾病与营养智能分析软件】;showmenu=ProductsSolutions;");
}


//子菜单
with(milonic=new menuname("ProductsSolutions_pc")){
style=menuStyle;
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统】介绍;url=/ssgl_js.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统】宣传资料;url=/ssgl_xc.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统】下载中心;url=/ssgl_xz.asp;");
aI("image=images/bluetooth2.gif;text=【益健膳食管理系统如何升级】;url=/ssgl_update.asp;");
}



//子菜单
with(milonic=new menuname("ProductsSolutions")){
style=menuStyle;
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】介绍;url=/jb_js.asp;");
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】宣传资料;url=/jb_xc.asp;");
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件】下载中心;url=/jb_xz.asp;");
aI("image=images/bluetooth2.gif;text=【疾病与营养智能分析软件如何升级】;url=/jb_update.asp;");
}


with(milonic=new menuname("Support")){

style=menuStyle;
overflow="scroll";
aI("text=营养专栏;url=/more.asp?type=营养专栏;");
aI("text=营养软件;url=/more.asp?type=营养软件;");
aI("text=熊苗风采;url=/more.asp?type=熊苗风采;");
aI("text=最新资讯;url=/more.asp?type=最新资讯;");

}

with(milonic=new menuname("zhaopin")){

style=menuStyle;
overflow="scroll";
}


with(milonic=new menuname("Press")){
style=menuStyle;
overflow="scroll";
aI("text=联系我们;url=/contactus.asp;");
aI("text=快速支付;url=/howpay.asp;");
//aI("text=cc;url=/search/index.htm;");
}



drawMenus();


