//--------------- 主导航条内容 ------------//
var mainLayer=new Array("<a href=/Article/school1/Index.html>学校概况</a>","<a href=/Article/school16/Index.html>教师之窗</a>","<a href=/Article/school12/Index.html>高考专栏</a>","<a href=/Article/school31/index.html>德育专栏</a>","<a href=/Article/school20/Index.html>科研专栏</a>","<a href=/Article/activity/Index.html>活动专栏</a>","<a href=/Article/school8/Index.html>学生频道</a>","<a href=/Article/rxly/Index.html>容县之窗</a>");//主导航栏目

//--------------- 次导航条内容 ------------//
var subLayer0=new Array("学校历史","学校机构","教育成果","校园建设"); //导航栏目一下的次级栏目
var subLayerHttp0=new Array("/Article/school1/school2/Index.html","/Article/school1/school3/Index.html","/Article/school1/school6/Index.html","/Article/school1/school7/Index.html");//主导航栏目一下的次级栏目连接地址
var subLayer1=new Array("教师风采","教案交流","教师论文");//导航栏目二的次级栏目
var subLayerHttp1=new Array("/Article/school16/school17/Index.html","/Article/school16/school18/Index.html","/Article/school16/school19/Index.html");//主导航栏目二的次级栏目连接地址
var subLayer2=new Array("高考快讯","高考准备","高校招生");//导航栏目二的次级栏目
var subLayerHttp2=new Array("/Article/school12/school13/Index.html","/Article/school12/school14/Index.html","/Article/school12/school15/Index.html");//主导航栏目二的次级栏目连接地址
var subLayer3="";//导航栏目二的次级栏目
var subLayerHttp3=new Array("#","#");//主导航栏目二的次级栏目连接地址

var subLayer4=new Array("机构设置","管理制度","课题管理","科研动态","研究性学习");//导航栏目二的次级栏目
var subLayerHttp4=new Array("/Article/school20/school21/Index.html","/Article/school20/school22/Index.html","/Article/school20/school23/Index.html","/Article/school20/school24/Index.html","/Article/school20/school26/Index.html");//主导航栏目二的次级栏目连接地址
var subLayer5=new Array("党建工作示范点","八荣八耻","党的先进性教育","廉政建设","源头工程");//导航栏目二的次级栏目
var subLayerHttp5=new Array("/Article/activity/dangjiang/Index.html","/Article/activity/rongchi/Index.html","/Article/xianjinxing","/lianzheng2/default.htm","/Article/activity/dangjiang/yuantou/Index.html");//主导航栏目二的次级栏目连接地址
var subLayer6=new Array("社团活动","学生作品");//导航栏目二的次级栏目
var subLayerHttp6=new Array("/Article/school8/school9/Index.html","/Article/school8/school10//Index.html");//主导航栏目二的次级栏目连接地址
var subLayer7=new Array("自然旅游资源","人文旅游资源");//导航栏目二的次级栏目
var subLayerHttp7=new Array("/Article/rxly/zrlyzy/Index.html","/Article/rxly/rwlyzy/Index.html");//主导航栏目二的次级栏目连接地址
var subLayer8="";//导航栏目二的次级栏目
var subLayerHttp8=new Array("#","#");//主导航栏目二的次级栏目连接地址


//--------------- 主导航条Table参数调整 ------------//
var mainTableTdWidth=71; //每个TD的宽度，调整主导航内容间距
var mainTableBorder=0; //调整主导航表格边框宽度
var mainTableCellspacing=0; //调整主导航表格Cellspacing
var mainTableCellpadding=1; //调整主导航表格Cellpadding
var mainTableBgcolor=""; //调整主导航表格背景色
var mainTableBordercolor=""; //调整主导航表格编框颜色
var mainTableBackgroundImg=""; //调整主导航表格背景图片url地址
var hrefClassName="link" //调整url风格样式
var mainTableTdBgcolor=""; //调整主导航表格Td色

//--------------- 次导航条Table参数调整 ------------//
var subTableBorder=0; //调整次导航条表格边框宽度
var subTableCellspacing=0; //调整次导航条表格Cellspacing
var subTableCellpadding=2; //调整次导航条表格Cellpadding
var subTableBgcolor="#ffffff"; //调整次导航条表格背景色
var subTableBordercolor=""; //次导航条表格编框颜色
var subTableBackgroundImg=""; //次导航条表格背景图片url地址
var subTableTdBgcolor="#fffff"; //调整次导航表格Td色
var sbuTabbleTop=17; //次导航表格上下微调
var sbuTabbleLeft=5; //次导航表格左右微调

//--------------- 系统参数*请勿调整 ------------//
var layerMax=mainLayer.length+10;
var layerName="index";

//--------------- 生成下拉菜单 ------------//
function createMainLayer(){ 
document.write("<table border=0 cellspacing=0 cellpadding=0 ><tr><td ><div id='wall' onmouseout=layervib('visible','"+layerMax+"') style='position:relative; left:0px; top:0px; width:100%; z-index:1;' ><table width="+mainLayer.length*mainTableTdWidth+" border='"+mainTableBorder+"' cellspacing='"+mainTableCellpadding+"' cellpadding='"+mainTableCellpadding+"' bgcolor='"+mainTableBgcolor+"' bordercolor='"+mainTableBordercolor+"' background='"+mainTableBackgroundImg+"'><tr>");
for(i=0;i<mainLayer.length;i++){
document.write("<td width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' class='"+hrefClassName+"' onmouseover=layervib('visible','"+i+"')>&nbsp;<a href='#'>"+mainLayer[i]+"</a> | </td>");
}
document.write("</tr></table>");

for(j=0;j<mainLayer.length;j++){
createSubLayer(j);
}
document.write("</div></td></tr></table>");
}


//--------------- 生成每项下拉菜单内容 ------------//
function createSubLayer(num){
var subLayerName= layerName +num;
var subLayerLeft=(mainTableTdWidth*num)+mainTableCellpadding+mainTableBorder;
var subLayerList=eval("subLayer"+num);
var subLayerHttpList=eval("subLayerHttp"+num);
document.write("<div id='"+subLayerName+"' style='position:absolute; left:"+(subLayerLeft+sbuTabbleLeft)+"px; top:"+((mainTableBorder+mainTableCellspacing+mainTableCellpadding)*2+sbuTabbleTop)+"px; z-index:2; height: 24px; visibility: hidden' onmouseover=layervib('visible','"+num+"') onmouseout=layervib('visible','"+layerMax+"')>");
if(subLayerList.length!=0){
document.write("<table border=0 bgcolor= #d4d0d0 cellpadding=0><tr><td><table width='120px' border='"+subTableBorder+"' cellspacing='"+subTableCellpadding+"' cellpadding='"+subTableCellpadding+"' bgcolor='"+subTableBgcolor+"' bordercolor='"+subTableBordercolor+"' background='"+subTableBackgroundImg+"'") 
for(h=0;h<subLayerList.length;h++){ 

document.write("<tr><td bgcolor='"+subTableTdBgcolor+"' width='100%' class='link'><a href='"+ subLayerHttpList [h]+"' class='t10'>&raquo;&nbsp;"+subLayerList[h]+"</a></td></tr>");
}
document.write("</table></td></tr></table>");
}

document.write("</div>"); 

}

//------------------------------次菜单显隐控制--------------------------//
function layervib(type,num){
var H=type;
var temp=(H='visible'?'hidden':'visible')
for(var i=0;i<mainLayer.length;i++){
var E=eval('document.all.index'+i+'.style');
var H=eval(i);
if(i==num){E.visibility=type}else{E.visibility=temp};
}
}

