var mmenus = new Array(); var misShow = new Boolean(); misShow=false; var misdown = new Boolean(); misdown=false; var musestatus=false; var mpopTimer = 0; mmenucolor='';mfontcolor='white';mmenuoutcolor='';mmenuincolor='';mmenuoutbordercolor='#cccccc';mmenuinbordercolor='#EB2E2E';mmidoutcolor='#CF1414';mmidincolor='#A00202';mmenuovercolor='#cccccc';mitemedge='0';msubedge='1';mmenuunitwidth=100;mmenuitemwidth=86;mmenuheight=25;mmenuwidth=60;mmenuadjust=2;mmenuadjustV=73;mfonts='font-family: 黑体; font-size: 15pt; color: white; ';mcursor='hand'; var fadeSteps = 100; var fademsec = 30; var fadeArray = new Array(); function fade(el, fadeIn, steps, msec) { if (steps == null) steps = fadeSteps; if (msec == null) msec = fademsec; if (el.fadeIndex == null) el.fadeIndex = fadeArray.length; fadeArray[el.fadeIndex] = el; if (el.fadeStepNumber == null) { if (el.style.visibility == "hidden") el.fadeStepNumber = 0; else el.fadeStepNumber = steps; if (fadeIn) el.style.filter = "Alpha(Opacity=80)"; else el.style.filter = "Alpha(Opacity=100)"; } window.setTimeout("repeatFade(" + fadeIn + "," + el.fadeIndex + "," + steps + "," + msec + ")", msec); } function repeatFade(fadeIn, index, steps, msec) { el = fadeArray[index]; c = el.fadeStepNumber; if (el.fadeTimer != null) window.clearTimeout(el.fadeTimer); if ((c == 0) && (!fadeIn)) { el.style.visibility = "hidden"; return; } else if ((c==steps) && (fadeIn)) { el.style.filter = "Alpha(Opacity=100);"; el.style.visibility = "visible"; return; } else { (fadeIn) ? c++ : c--; el.style.visibility = "visible"; el.style.filter = "Alpha(Opacity=" + 80*c/steps + ")"; el.fadeStepNumber = c; el.fadeTimer = window.setTimeout("repeatFade(" + fadeIn + "," + index + "," + steps + "," + msec + ")", msec); } } 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=mmenucolor; 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; fade(menuid,true,6); 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=0; 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+"
"); } function mcheckLocation(){ if(isNaN(mmenuwidth))mmenuwidth=document.body.clientWidth*parseInt(mmenuwidth.substring(0,3))/100;ym=eval(document.body.scrollTop)+0;xm=eval(document.body.scrollLeft)+0;y=mmenutable.style.pixelTop;x=mmenutable.style.pixelLeft;if(Math.abs(ym-y)>1)mmenutable.style.pixelTop=y+=(ym-y)/5;else mmenutable.style.pixelTop=y=ym;if(Math.abs(xm-x)>1)mmenutable.style.pixelLeft=x+=(xm-x)/5;else mmenutable.style.pixelLeft=x=xm;setTimeout("mcheckLocation()",10);} mpmenu6=new mMenu('首页 ','/default.jsp','self','','','',''); mpmenu7=new mMenu('| 关于正元','/jsp/aboutzy/aboutzy.jsp','self','','','',''); mpmenu7.addItem(new mMenuItem('   正元简介','/jsp/aboutzy/aboutzy.jsp','self',false,'正元简介','','','','')); mpmenu7.addItem(new mMenuItem('   公司目标','/jsp/aboutzy/zygoal.jsp','self',false,'公司目标','','','','')); mpmenu7.addItem(new mMenuItem('   公司战略','/jsp/aboutzy/zyzl.jsp','self',false,'公司战略','','','','')); mpmenu7.addItem(new mMenuItem('   合作伙伴','/jsp/aboutzy/hzhb.jsp','self',false,'合作伙伴','','','','')); mpmenu8=new mMenu('| 产品信息','/jsp/product/zyzj0.jsp','self','','','',''); mpmenu8.addItem(new mMenuItem('   正元造价','/jsp/product/zyzj0.jsp','self',false,'正元造价','','','','')); mpmenu8.addItem(new mMenuItem(' 正元施工资料','/jsp/product/ziliao.jsp','self',false,'正元施工资料','','','','')); mpmenu8.addItem(new mMenuItem(' 正元安全管理','/jsp/product/anquan.jsp','self',false,'正元安全管理','','','','')); mpmenu8.addItem(new mMenuItem('   钢筋翻样','/jsp/product/gjfy.jsp','self',false,'钢筋翻样','','','','')); mpmenu8.addItem(new mMenuItem('  工程量计算','/jsp/product/gcljs.jsp','self',false,'工程量计算','','','','')); mpmenu8.addItem(new mMenuItem('   标书编制','/jsp/product/bsbz.jsp','self',false,'标书编制','','','','')); mpmenu8.addItem(new mMenuItem('   项目管理','/jsp/product/xmgl.jsp','self',false,'项目管理','','','','')); mpmenu9=new mMenu('| 服务中心','/jsp/service/baseservice.jsp','self','','','',''); mpmenu9.addItem(new mMenuItem('   正元服务','/jsp/service/baseservice.jsp','self',false,'技术服务,安装调试,升级,等等...','','','','')); mpmenu9.addItem(new mMenuItem('   服务宗旨','/jsp/service/ServiceGoal.jsp','self',false,'服务宗旨','','','','')); mpmenu9.addItem(new mMenuItem('   软件下载','/jsp/service/downloads.jsp','self',false,'应用程序 定额数据 相关下载','','','','')); mpmenu9.addItem(new mMenuItem('  信息价下载','/service/downloadSearch.do?searchMethod=4&category=3&key=常州&site=1','self',false,'各地最新信息价下载','','','','')); mpmenu9.addItem(new mMenuItem(' 常见问题解答','/jsp/service/qa.jsp','self',false,'常见问题解答','','','','')); mpmenu9.addItem(new mMenuItem(' 客户服务网点','/jsp/service/ServiceNet.jsp','self',false,'客户服务网点','','','','')); mpmenu9.addItem(new mMenuItem(' 申请上门演示','/jsp/service/askExplain.jsp','self',false,'申请上门演示','','','','')); mpmenu9.addItem(new mMenuItem(' 申请上门服务','/jsp/service/applyForService.jsp','self',false,'申请上门服务','','','','')); mpmenu10=new mMenu('| 信息中心','/jsp/newscenter/viewNews.jsp','self','','','',''); mpmenu10.addItem(new mMenuItem('   正元新闻','/jsp/newscenter/zynews.jsp','self',false,'正元新闻','','','','')); mpmenu10.addItem(new mMenuItem('   行业信息','/jsp/newscenter/tradeInfo.jsp','self',false,'行业信息','','','','')); mpmenu10.addItem(new mMenuItem('   政策法规','/jsp/newscenter/policyNrule.jsp','self',false,'政策法规','','','','')); mpmenu10.addItem(new mMenuItem('   计价程序','/jsp/newscenter/procedure.jsp','self',false,'计价程序','','','','')); mpmenu10.addItem(new mMenuItem('   勘误信息','/jsp/newscenter/correction.jsp','self',false,'勘误信息','','','','')); mpmenu11=new mMenu('| 人才中心','/jsp/career/careergoal.jsp','self','','','',''); mpmenu11.addItem(new mMenuItem('   人才战略','/jsp/career/careergoal.jsp','self',false,'人才战略','','','','')); mpmenu11.addItem(new mMenuItem('   人才招聘','/jsp/career/job.jsp','self',false,'人才招聘','','','','')); mpmenu11.addItem(new mMenuItem('   自我推荐','/jsp/career/askjob.jsp','self',false,'自我推荐','','','','')); //mpmenu12=new mMenu('| 正元俱乐部 ','','blank','','','',''); //mpmenu12.addItem(new mMenuItem('   留言薄','','self',false,'用户俱乐部','','','','')); //mpmenu12.addItem(new mMenuItem('   客户调查','/jsp/club/investigate.jsp','self',false,'客户调查','','','','')); //mpmenu12.addItem(new mMenuItem('   常用链接','/jsp/club/link.jsp','self',false,'常用链接','','','','')); mpmenu12=new mMenu('| 正版用户下载通道 ','http://down.zy-soft.com','blank','','','',''); mwritetodocument(); mcheckLocation();