var myurl;

if (document.location.search == ""){
myurl= "01";
}
else{
myurl= document.location.search.substr(1,2);//最后一个数字是控制传递参数的位数
}

var m_array = new Array();
m_array[1]="<a href=05fm.jsp?01>大赛规则 </a>"
m_array[2]="<a href=upload.jsp?02>我要参加</a>"
m_array[3]="<a href=join.jsp?03>---- 注册</a>"
m_array[4]="<a href=join_logon.jsp?04>---- 登陆</a>"
m_array[5]="<a href=/searchAttachmentAction.do?05&flag=0&dateRange=0>月度人气榜 </a>"
m_array[6]="<a href=/searchAttachmentAction.do?06&flag=0&dateRange=4>---- 美少女4月人气榜</a>"
m_array[7]="<a href=/searchAttachmentAction.do?07&flag=0&dateRange=5>---- 美少女5月人气榜</a>"
m_array[8]="<a href=/searchAttachmentAction.do?08&flag=0&dateRange=6>---- 美少女6月人气榜</a>"
m_array[9]="<a href=/searchAttachmentAction.do?09&flag=0&dateRange=7>---- 美少女7月人气榜</a>"
m_array[10]="<a href=/searchAttachmentAction.do?10&flag=0&dateRange=8>---- 美少女8月人气榜</a>"
m_array[11]="<a href=/searchAttachmentAction.do?11&flag=0&status=2>美少女总决赛(9月)</a>"
//img="<img src=images/icon_01.gif align=absmiddle>&nbsp; "

document.write("<table cellspacing=3 cellpadding=3 border=0 align=center width=96%>");
document.write("<tr>");
document.write("<td align=center width=19% ><img src=images/club.gif></td>");
document.write("</tr>");
for (i = 1; i < 12; i++) {
    if(i==1||i==2||i==5 ||i==11){
      img="<img src=images/icon_01.gif align=absmiddle>&nbsp; "
    }else{
      img=""
    }
if(i==myurl){
document.write("<tr><td onmouseover=\"this.className='lefttd_on'\" onmouseout=\"this.className='lefttd_on'\" class=lefttd_on>"+img+m_array[i]+"</td></tr>");

}
else{
document.write("<tr><td onmouseover=\"this.className='lefttd_on'\" onmouseout=\"this.className='lefttd_out'\" class=lefttd_out>"+img+m_array[i]+"</td></tr>");

}
}
document.write("</table>");

