//--------------- 主导航条内容 ------------//
var mainLayer=new Array("产品系列","应用方案","技术优势","专业支持","产品新闻","公司简介");//主导航栏目
var mainLayerHttp=new Array("../Product/P_All.htm","../Solutions/So_All.htm","../Tech/Tech_All.htm","../Support/Su_All.htm","../News/News_All.htm","../About/Profile_All.htm");


//--------------- 次导航条内容 ------------//
var subLayer0=new Array("VF系列","PF系列","EF系列","FF系列","SF系列"); //导航栏目1下的次级栏目
var subLayerHttp0=new Array("../Product/P_VF.htm","../Product/P_PF.htm","../Product/P_EF.htm","../Product/P_FF.htm","../Product/P_SF.htm");//主导航栏目一下的次级栏目连接地址
var subLayer1=new Array("高效经济升级备份","灵活配置降低成本","高可靠自动灾备","高可用数据恢复","高安全数据采集","海量数据迁移");//导航栏目二的次级栏目
var subLayerHttp1=new Array("../Solutions/So_1.htm","../Solutions/So_2.htm","../Solutions/So_3.htm","../Solutions/So_4.htm","../Solutions/So_5.htm","../Solutions/So_6.htm");//主导航栏目2的次级栏目连接地址
var subLayer2=new Array("Mirage技术简介","Mirage产品特色","Mirage优势体现"); //导航栏目3下的次级栏目
var subLayerHttp2=new Array("../Tech/Tech_1.htm","../Tech/Tech_2.htm","../Tech/Tech_3.htm");//主导航栏目一下的次级栏目连接地址
var subLayer3=new Array("用户举例","常见问题","资料下载","反馈与支持"); //导航栏目4下的次级栏目
var subLayerHttp3=new Array("../Support/Su_1.htm","../Support/Su_2.htm","../Support/Su_3.asp","../Support/Su_4.htm");//主导航栏目一下的次级栏目连接地址
var subLayer4=new Array(); //导航栏目4下的次级栏目 "产品新闻"
var subLayerHttp4=new Array();//主导航栏目一下的次级栏目连接地址 "../../News/News_All.htm"
var subLayer5=new Array(); //导航栏目5下的次级栏目
var subLayerHttp5=new Array();//主导航栏目一下的次级栏目连接地址



//--------------- 主导航条Table参数调整 ------------//
var mainTableTdWidth=128; //每个TD的宽度，调整主导航内容间距
var mainTableBorder=1; //调整主导航表格边框宽度
var mainTableCellspacing=1; //调整主导航表格Cellspacing
var mainTableCellpadding=1; //调整主导航表格Cellpadding
var mainTableBgcolor="#336699"; //调整主导航表格背景色
var mainTableBordercolor="#FFFFFF"; //调整主导航表格编框颜色
var mainTableBackgroundImg=""; //调整主导航表格背景图片url地址
var hrefClassName="HeadM" //调整url风格样式
var mainTableTdBgcolor="#336699"; //调整主导航表格Td色

//--------------- 次导航条Table参数调整 ------------//
var subTableBorder=0; //调整次导航条表格边框宽度
var subTableCellspacing=0; //调整次导航条表格Cellspacing
var subTableCellpadding=1; //调整次导航条表格Cellpadding
var subTableBgcolor="#000000"; //调整次导航条表格背景色
var subTableBordercolor=""; //次导航条表格编框颜色
var subTableBackgroundImg=""; //次导航条表格背景图片url地址
var subTableTdBgcolor="B2CBCF"; //调整次导航表格Td色
var sbuTabbleTop=21; //次导航表格上下微调
var sbuTabbleLeft=-1; //次导航表格左右微调

//--------------- 系统参数*请勿调整 ------------//
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+"'align='center' class='HeadM' bgcolor='"+mainTableTdBgcolor+"'onmouseover=layervib('visible','"+i+"')>&nbsp;<a href='"+mainLayerHttp[i]+"' class='HeadM'>"+mainLayer[i]+"</a></td>");
}
document.write("</tr></table>");

for(j=0;j<mainLayer.length;j++){
createSubLayer(j);
}
document.write("</div></table></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 width='150' 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'>&nbsp;<a href='"+ subLayerHttpList [h]+"' class='link'>"+subLayerList[h]+"</a>&nbsp;</td></tr>");
}
document.write("</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};
}
}

 



