//--------------- 主导航条内容 ------------//
var mainLayer=new Array("公司简介","产品及服务","行业及公司动态","信息化知识库","成功案例");//主导航栏目



//--------------- 次导航条内容 ------------//
var subLayer0=new Array("公司理念","发展远景","公司使命","经营模试"); //导航栏目一下的次级栏目
var subLayerHttp0=new Array("introduction.htm#1","introduction.htm#2","introduction.htm#3","introduction.htm#4");//主导航栏目一下的次级栏目连接地址

var subLayer2=new Array("公司新闻","行业新闻");//导航栏目二的次级栏目
var subLayerHttp2=new Array("show_prod_list_in.asp?datatype=news&prodchildrentype=10公司新闻","show_prod_list_in.asp?datatype=news&prodchildrentype=20行业新闻");//主导航栏目二的次级栏目连接地址
var subLayer3=new Array("餐饮类信息化知识库","通用类信息化知识库","成功故事");//导航栏目二的次级栏目
var subLayerHttp3=new Array("show_know_list_in.asp?datatype=know&prodchildrentype=10餐饮类信息化知识库","show_know_list_in.asp?datatype=know&prodchildrentype=20通用类信息化知识库","show_know_list_in.asp?datatype=know&prodchildrentype=30成功故事");//主导航栏目二的次级栏目连接地址




//--------------- 主导航条Table参数调整 ------------//
var mainTableTdWidth="120"; //每个TD的宽度，调整主导航内容间距
var mainTableBorder=1; //调整主导航表格边框宽度
var mainTableCellspacing=0; //调整主导航表格Cellspacing
var mainTableCellpadding=0; //调整主导航表格Cellpadding
var mainTableBgcolor="#000000"; //调整主导航表格背景色
var mainTableBordercolor="#ffffff"; //调整主导航表格编框颜色
var mainTableBackgroundImg=""; //调整主导航表格背景图片url地址
var hrefClassName="link" //调整url风格样式
var mainTableTdBgcolor="046ab1"; //调整主导航表格Td色



//--------------- 次导航条Table参数调整 ------------//
var subTableBorder=0; //调整次导航条表格边框宽度
var subTableCellspacing=0; //调整次导航条表格Cellspacing
var subTableCellpadding=0; //调整次导航条表格Cellpadding
var subTableBgcolor="#000000"; //调整次导航条表格背景色
var subTableBordercolor=""; //次导航条表格编框颜色
var subTableBackgroundImg=""; //次导航条表格背景图片url地址
var subTableTdBgcolor="#ffffff"; //调整次导航表格Td色
var sbuTabbleTop=26; //次导航表格上下微调
var sbuTabbleLeft=-1; //次导航表格左右微调



//--------------- 系统参数*请勿调整 ------------//
var layerMax=mainLayer.length+10;
var layerName="index";


//--------------- 生成每项下拉菜单内容 ------------//
function createSubLayer(num){
	
var subLayerName= layerName +num;
var subLayerLeft=(mainTableTdWidth*num)+mainTableCellpadding+mainTableBorder;
var subLayerList=eval("subLayer"+num);
var subLayerHttpList=eval("subLayerHttp"+num);

//alert(subLayerLeft+sbuTabbleLeft)
if((subLayerLeft+sbuTabbleLeft)>300){
	document.write("<div id='"+subLayerName+"' style='position:absolute; left:80px; top:"+((mainTableBorder+mainTableCellspacing+mainTableCellpadding)*2+sbuTabbleTop)+"px; z-index:2; height: 24px; visibility: hidden' onmouseover=layervib('visible','"+num+"') onmouseout=layervib('visible','"+layerMax+"')>\n");
	}
else{
	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+"')>\n");
}


	if(subLayerList.length!=0){
		document.write("<table width='100%' border=0 height=47><tr><td bgcolor='"+subTableTdBgcolor+"' class='maintext' valign='middle'>\n");
		
		
		for(h=0;h<subLayerList.length;h++){ 
			document.write("&nbsp;&nbsp;<a href='"+ subLayerHttpList [h]+"'>"+subLayerList[h]+"</a>&nbsp;&nbsp;\n");
	
		
		}
		document.write("</td></tr></table>\n");
		
	}
document.write("</div>\n"); 




}





//--------------- 生成下拉菜单 ------------//
function createMainLayer(){ 
document.write("<table border=0 cellspacing=0 cellpadding=0 width='95%'><tr><td>\n");

document.write("<div id='wall' onmouseout=layervib('visible','"+layerMax+"') style='position:relative; left:0px; top:0px; width:100%; z-index:1' >\n");

document.write("<table width="+mainLayer.length*mainTableTdWidth+" border='"+mainTableBorder+"' cellspacing='"+mainTableCellpadding+"' cellpadding='"+mainTableCellpadding+"' bgcolor='"+mainTableBgcolor+"' bordercolor='"+mainTableBordercolor+"' background='"+mainTableBackgroundImg+"'><tr height='27' class='toptext'>\n");


//for(i=0;i<mainLayer.length;i++){
//	document.write("<td nowrap width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','"+i+"') align='center'><a href='#'>"+mainLayer[i]+"</a></td>\n");
//}


	document.write("<td id='a1' width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','0') align='center'><a href='introduction.htm'><font color=white>公 司 简 介</font></a></td>\n");
	document.write("<td width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','1') align='center'><a href='show_prod_list.asp?datatype=prod'><font color=white>产品及服务</font></a></td>\n");
	document.write("<td width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','2') align='center'><a href='show_prod_list.asp?datatype=news'><font color=white>行业及公司动态</font></a></td>\n");
	document.write("<td width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','3') align='center'><a href='show_know_list.asp?datatype=know'><font color=white>信息化知识库</font></a></td>\n");
	document.write("<td width='"+mainTableTdWidth+"' bgcolor='"+mainTableTdBgcolor+"' onmouseover=layervib('visible','4') align='center'><a href='case.htm'><font color=white>典 型 用 户</font></a></td>\n");
	document.write("</tr></table>\n");






//这里只有3个菜单有下拉
for(j=0;j<mainLayer.length;j++){
	createSubLayer(j);
}

document.write("</div></td></tr></table>\n");


}




//------------------------------次菜单显隐控制--------------------------//
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};
}

}
