var mmenus = new Array(); var misShow = new Boolean(); misShow=false; var misdown = new Boolean(); misdown=false; var musestatus=false; var mpopTimer = 0; mmenucolor='#55ABB5';mfontcolor='#FFFFFF';mmenuoutcolor='';mmenuincolor='';mmenuoutbordercolor='';mmenuinbordercolor='#55ABB5';mmidoutcolor='#54ABB4';mmidincolor='#54ABB4';mmenuovercolor='#FF0000';mitemedge='1';msubedge='0';mmenuunitwidth=80;mmenuitemwidth=120;mmenuheight=30;mmenuwidth='800';mmenuadjust=10;mmenuadjustV=0;mfonts='font-family: Verdana; font-size: 13px; color: #FFFFFF; ';mcursor='default'; function stoperror(){ return true; } window.onerror=stoperror; function mpopOut() { mpopTimer = setTimeout('mallhide()', 500); } function getReal(el, type, value) { temp = el; while ((temp != null) && (temp.tagName != "BODY")) { if (eval("temp." + type) == value) { el = temp; return el; } temp = temp.parentElement; } return el; } function mMenuRegister(menu) { mmenus[mmenus.length] = menu return (mmenus.length - 1) } function mMenuItem(caption,command,target,isline,statustxt,img,sizex,sizey,pos){ this.caption=caption; this.command=command; this.target=target; this.isline=isline; this.statustxt=statustxt; this.img=img; this.sizex=sizex; this.sizey=sizey; this.pos=pos; } function mMenu(caption,command,target,img,sizex,sizey,pos){ this.items = new Array(); this.caption=caption; this.command=command; this.target=target; this.img=img; this.sizex=sizex; this.sizey=sizey; this.pos=pos; this.id=mMenuRegister(this); } function mMenuAddItem(item) { this.items[this.items.length] = item item.parent = this.id; this.children=true; } mMenu.prototype.addItem = mMenuAddItem; function mtoout(src){ src.style.borderLeftColor=mmenuoutbordercolor; src.style.borderRightColor=mmenuinbordercolor; src.style.borderTopColor=mmenuoutbordercolor; src.style.borderBottomColor=mmenuinbordercolor; src.style.backgroundColor=mmenuoutcolor; src.style.color=mmenuovercolor; } function mtoin(src){ src.style.borderLeftColor=mmenuinbordercolor; src.style.borderRightColor=mmenuoutbordercolor; src.style.borderTopColor=mmenuinbordercolor; src.style.borderBottomColor=mmenuoutbordercolor; src.style.backgroundColor=mmenuincolor; src.style.color=mmenuovercolor; } function mnochange(src){ src.style.borderLeftColor=mmenucolor; src.style.borderRightColor=mmenucolor; src.style.borderTopColor=mmenucolor; src.style.borderBottomColor=mmenucolor; src.style.backgroundColor=''; src.style.color=mfontcolor; } function mallhide(){ for(var nummenu=0;nummenudocument.body.clientWidth+document.body.scrollLeft) menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth; menuid.style.visibility='visible'; misShow=true; } function mmenu_over(menuid,x){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; if(x<0){ misShow = false; mallhide(); mtoout(eval("mMenu"+x)); }else{ mallhide(); mtoin(eval("mMenu"+x)); mmenushow(menuid,eval("mMenu"+x)); } clearTimeout(mpopTimer); } function mmenu_out(x){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; if (misShow){ mtoin(eval("mMenu"+x)); }else{ mnochange(eval("mMenu"+x)); } mpopOut() } function mmenu_down(menuid,x){ if(misShow){ mmenuhide(menuid); mtoout(eval("mMenu"+x)); } else{ mtoin(eval("mMenu"+x)); mmenushow(menuid,eval("mMenu"+x)); misdown=true; } } function mmenu_up(){ misdown=false; } function mmenuitem_over(x,i){ srcel = getReal(window.event.srcElement, "className", "coolButton"); if(misdown){ mtoin(srcel); } else{ mtoout(srcel); } mthestatus = mmenus[x].items[i].statustxt; if(mthestatus!=""){ musestatus=true; window.status=mthestatus; } clearTimeout(mpopTimer); } function mmenuitem_out(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mnochange(srcel); if(musestatus)window.status=""; mpopOut() } function mmenuitem_down(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mtoin(srcel) misdown=true; } function mmenuitem_up(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mtoout(srcel) misdown=false; } function mexec2(x){ var cmd; if(mmenus[x].target=="blank"){ cmd = "window.open('"+mmenus[x].command+"')"; }else{ cmd = mmenus[x].target+".location=\""+mmenus[x].command+"\""; } eval(cmd); } function mexec(x,i){ var cmd; if(mmenus[x].items[i].target=="blank"){ cmd = "window.open('"+mmenus[x].items[i].command+"')"; }else{ cmd = mmenus[x].items[i].target+".location=\""+mmenus[x].items[i].command+"\""; } eval(cmd); } function mbody_click(){ if (misShow){ srcel = getReal(window.event.srcElement, "className", "coolButton"); for(var x=0;x<=mmenus.length;x++){ if(srcel.id=="mMenu"+x) return; } mallhide(); } } document.onclick=mbody_click; function mwritetodocument(){ var mwb=1; var stringx='
' for(var x=0;x"+ifspace+thismenu.caption+""; }else if(thismenu.pos=="1"){ stringx += " align=center>"+thismenu.caption+ifspace+""; }else if(thismenu.pos=="2"){ stringx += " align=center background='"+thismenu.img+"'> "+thismenu.caption+" "; }else{ stringx += " align=center> "+thismenu.caption+" "; } stringx += ""; } stringx+=""; for(var x=0;x'; }else{ stringx+='' } } document.write("
"+stringx+"
"); } mpmenu1=new mMenu('首页','index.asp','self','','','',''); mpmenu2=new mMenu('关于明佳','body.asp?pg=2','self','','','',''); mpmenu2.addItem(new mMenuItem('公司简介','body.asp?pg=2','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('明佳文化','body.asp?pg=2007711110049','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('荣誉及历程','body.asp?pg=2007711110050','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('销售网络','net.asp','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('工程案例','body.asp?pg=7','self',false,'','','','','')); mpmenu3=new mMenu('新闻动态','news.asp','self','','','',''); mpmenu10=new mMenu('产品中心','products.asp','self','','','',''); mpmenu28=new mMenu('产品优势','body.asp?pg=2007717145756','self','','','',''); mpmenu28.addItem(new mMenuItem('产品特点','body.asp?pg=2007717145756','self',false,'','','','','')); mpmenu28.addItem(new mMenuItem('专利结构','body.asp?pg=200772194636','self',false,'','','','','')); mpmenu28.addItem(new mMenuItem('技术优势','body.asp?pg=200772194739','self',false,'','','','','')); mpmenu28.addItem(new mMenuItem('关键部件','body.asp?pg=200772194912','self',false,'','','','','')); mpmenu28.addItem(new mMenuItem('节能优势','body.asp?pg=2007731135311','self',false,'','','','','')); mpmenu27=new mMenu('代理专区','member.asp','self','','','',''); mpmenu6=new mMenu('服务中心','body.asp?pg=6','self','','','',''); mpmenu6.addItem(new mMenuItem('服务承诺','body.asp?pg=6','self',false,'','','','','')); mpmenu6.addItem(new mMenuItem('安装指南','body.asp?pg=200772194947','self',false,'','','','','')); mpmenu6.addItem(new mMenuItem('技术答疑','xgjs.asp','self',false,'','','','','')); mpmenu9=new mMenu('人力资源','body.asp?pg=9','self','','','',''); mpmenu9.addItem(new mMenuItem('人才策略','body.asp?pg=9','self',false,'','','','','')); mpmenu9.addItem(new mMenuItem('招聘信息','zhaoping.asp','self',false,'','','','','')); mpmenu8=new mMenu('联系我们','body.asp?pg=8','self','','','',''); mpmenu8.addItem(new mMenuItem('联系方式','body.asp?pg=8','self',false,'','','','','')); mpmenu8.addItem(new mMenuItem('在线反馈','feedback.asp','self',false,'','','','','')); mwritetodocument();