function MM_swapImgRestore_Job() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
  //return set_menu();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage_Job() { //v3.0
 	
  var i,j=0,x,a=MM_swapImage_Job.arguments; 
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
  return change_bgcolor(a[4]);
}

function change_bgcolor(par){
	var bgcolors = new Array(5);
	bgcolors[0] = "#D01B38";
	bgcolors[1] = "#0072BC";
	bgcolors[2] = "#4054B9";
	bgcolors[3] = "#9F55B8";
	bgcolors[4] = "#FF981D";
	bgcolors[5] = "#62C40F";
	document.all("top_sub").style.backgroundColor  = bgcolors[par];
	return change_submenu(par);
}

function change_submenu(par){
	var innerstr = new Array(5)
	innerstr[0] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:35px;padding-top:2px background=images/blue.gif class=blue><a href=/about class=white>管理站简介</a> | <a href=/about/jgzn.php class=white>机构职能</a> | <a href=/about/bszn.php class=white>办事指南</a> | <a href=/about/ldzc.php class=white>领导致辞</a> | <a href=/about/cgzs.php class=white>成果展示</a></td></tr></table>"

        innerstr[1] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:105px;padding-top:2px background=images/blue.gif class=blue> <a href=/news/index.php?func=listAll&catalog=02&lb=0005 class=white>新闻速递</a> | <a href=/news/index.php?func=listAll&catalog=06&lb=0005 class=white>通知公告</a> | <a href=/news/index.php?func=listAll&catalog=04&lb=0005 class=white>地方新闻</a> </td></tr></table>"

        innerstr[2] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:177px;padding-top:2px background=images/blue.gif class=blue><a href=/policy/index.php?func=listAll&catalog=01&lb=1101 class=white>定额管理</a> | <a href=/policy/index.php?func=listAll&catalog=03&lb=1101 class=white>价格费用</a> | <a href=/policy/index.php?func=listAll&catalog=04&lb=1101 class=white>资质资格</a> | <a href=/policy/index.php?func=listAll&catalog=05&lb=1101 class=white>地方法规</a> | <a href=/policy/index.php?func=listAll&catalog=02&lb=1101 class=white>法律法规</a></td></tr></table>"

        innerstr[3] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:235px;padding-top:2px background=images/blue.gif class=blue><a href=/price.php class=white>材料价格信息</a> | <a href=/price.php?lb=02 class=white>设备信息</a></td></tr></table>"

        innerstr[4] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:320px;padding-top:2px background=images/blue.gif class=blue><a href=/quota/index.php?func=listAll&catalog=01&lb=0009 class=white>建筑</a> | <a href=/quota/index.php?func=listAll&catalog=02&lb=0009 class=white>安装</a> | <a href=/quota/index.php?func=listAll&catalog=03&lb=0009 class=white>市政</a> | <a href=/quota/index.php?func=listAll&catalog=04&lb=0009 class=white>费用</a></td></tr></table>"

        innerstr[5] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:380px;padding-top:2px background=images/blue.gif class=blue><a href=/toubiao/index.php?func=listAll&catalog=04&lb=0010 class=white>工程报建</a> | <a href=/toubiao/index.php?func=listAll&catalog=01&lb=0010 class=white>工程招投标</a> | <a href=/toubiao/index.php?func=listAll&catalog=03&lb=0010 class=white>中标信息</a> | <a href=/toubiao/index.php?func=listAll&catalog=02&lb=0010 class=white>造价指标</a></td></tr></table>"

		innerstr[6] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-left:440px;padding-top:2px background=images/blue.gif class=blue><a href=/agency/index.php?func=listAll class=white>中介机构</a> | <a href=/zjs/index.php?func=listAll class=white>造价师</a> | <a href=/gysry/index.php?func=listAll class=white>概预算人员</a></td></tr></table>"

		innerstr[7] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-right:40px;padding-top:2px align=right background=images/blue.gif class=blue><a href=/business/index.php?func=search&catalog=01&lb=0002&type=0 class=white>供求信息</a> | <a href=/membership/index.php?func=listAll class=white>会员企业</a> | <a href=/business/index.php?func=Add&catalog=01&lb=0002 class=white>发布供求信息</a></td></tr></table>"

		innerstr[8] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD style=padding-right:10px;padding-top:2px align=right background=images/blue.gif class=blue><a href=/soft/about.php class=white>广达软件</a> | <a href=/train/index.php?func=listAll&catalog=01&lb=0008 class=white>考试培训</a> | <a href=/train/index.php?func=listAll&catalog=04&lb=0008 class=white>专题信息</a> | <a href=/train/index.php?func=listAll&catalog=03&lb=0008 class=white>论文交流</a> | <a href=/train/index.php?func=listAll&catalog=02&lb=0008 class=white>网上书讯</a> | <a href=http://www.zjzj.net/gotoPHPBB.php class=white>造价论坛</a></td></tr></table>"

		innerstr[9] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=100% height=23><TR><TD  style=padding-right:0px;padding-top:2px align=right background=images/blue.gif class=white>欢迎进入“我的办公室”</td></tr></table>"

		innerstr[11] = "<TABLE cellpadding=0 cellspacing=0 border=0 width=363 height=23><TR><TD background=/images/blue.gif align=right></TD></TR></TABLE>"
        document.all("sub_menu").innerHTML  = innerstr[par];
}

function set_menu(){
	
	change_bgcolor(0);
}