function menuGen(n){
winurl=new Array()
winurl[0]="index.htm"
winurl[1]="GSJJ.htm"
winurl[2]="product.htm"
winurl[3]="buy.htm"
winurl[4]="honor.htm"
winurl[5]="contact.htm"
winurl[6]="guestbook.htm"

menu=new Array()
menu[0]="首 页"
menu[1]="公司介绍"
menu[2]="产品展示"
menu[3]="销售网络"
menu[4]="公司荣誉"
menu[5]="联系我们"
menu[6]="访客留言"


document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0'>")
document.write("<tr>")
document.write("<td width='180'>")
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' class='color_white'>")
document.write("<tr>")
document.write("<td width='84'><img src='bjkpzc/images/dot02.gif' width='16' height='17' hspace='10'></td>")
if (n==0){
	document.write("<td background='bjkpzc/images/bg_button.gif' onClick='location.href=\""+winurl[0]+"\"' onMouseOver='style.cursor=\"hand\"' onMouseOut='index_top.GotoFrame(1)' width='80' align='center' height='38'>"+menu[0]+"</td>");
	}
	else{
	document.write("<td onClick='location.href=\""+winurl[0]+"\"' onMouseOver='this.background=\"bjkpzc/images/bg_button.gif\";style.cursor=\"hand\";index_top.GotoFrame(1)' onMouseOut='this.background=\"\";index_top.GotoFrame("+(n+1)+")' width='80' align='center' height='38'>"+menu[0]+"</td>")
}
document.write("<td width='14'></td>")
document.write("</tr>")
document.write("</table>")
document.write("</td>")
document.write("<td width='106'>&nbsp;</td>")
document.write("<td>")
document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' class='color_white'>")
document.write("<tr align='center'>")
for(i=1;i<7;i++){
	if(i==n){
		document.write("<td background='bjkpzc/images/bg_button.gif' onClick='location.href=\""+winurl[i]+"\"' onMouseOver='style.cursor=\"hand\"' onMouseOut='index_top.GotoFrame("+(n+1)+")'>"+menu[i]+"</td>");
		}
		else{
		document.write("<td onClick='location.href=\""+winurl[i]+"\"' onMouseOver='this.background=\"bjkpzc/images/bg_button.gif\";style.cursor=\"hand\";index_top.GotoFrame("+(i+1)+")' onMouseOut='this.background=\"\";index_top.GotoFrame("+(n+1)+")'>"+menu[i]+"</td>");
		}
	document.write("<td width='2'><img src='bjkpzc/images/bg_line04.gif' width='2' height='38'></td>")
}
document.write("</tr>")
document.write("</table>")
document.write("</td>")
document.write("</tr>")
document.write("</table>")
}