<!--#include file="../inc/conn.asp" -->
<HTML><HEAD>
<title>老宫在线</title>
<META http-equiv=Content-Type content=text/html;charset=gb2312>
<link href="../css/news2.css" rel="stylesheet" type="text/css">
<STYLE type=text/css>
BODY {
	BACKGROUND: #799ae1; MARGIN: 0px
}
.sec_menu {
	BORDER-RIGHT: white 1px solid; BACKGROUND: #d6dff7; OVERFLOW: hidden; BORDER-LEFT: white 1px solid; BORDER-BOTTOM: white 1px solid
}
.menu_title SPAN {
	FONT-WEIGHT: bold; LEFT: 10px; COLOR: #215dc6; POSITION: relative; TOP: 2px
}
.menu_title2 SPAN {
	FONT-WEIGHT: bold; LEFT: 10px; COLOR: #428eff; POSITION: relative; TOP: 2px
}
.STYLE1 {
	color: #FF0000;
	font-weight: bold;
}
</STYLE>
</HEAD>
<script language="JavaScript">
function popwin(path)
{ window.open(path,'',"height=150,width=200,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
}
</script>
<script ID="clientEventHandlersJS" LANGUAGE="javascript">
<!--
function hydl() {
    l = screen.width/2-210/2;
    t = screen.height/2-160/2;
    fHYDL = window.open('','fHYDL','scrollbars=no,toolbar=no,menubar=no,location=no,status=no,resizable=no,width=210,height=160,left='+l+',top='+t);
    fHYDL.location.replace('getpwd.asp');
    fHYDL.opener = window.parent;
}
//-->
</script>
<script langauge=javascript>
flag=true;
function mid(){
if(flag==false){
bgm.src='bg.mid';
flag=true;
}else{
bgm.src='';
flag=false;
}
}
</script>
<BODY>
<bgsound src="http://www.xbysw.com/bbs/bg.mid" id="bgm" loop="-1"></bgsound>
<TABLE cellSpacing=0 cellPadding=0 width=115 align=center height="85">
  <TBODY> 
  <TR> 
      <TD height=55><img src="../images/bbs_logo.gif" width="115" height="47"></TD>
  </TR>
  <TR>
    <TD background="../images/menudown.gif"> 
      <div align="center"> <INPUT TYPE="checkbox" NAME="usertype" value="1" onClick="javascript:mid()">
        音乐版</div>		
    </TD>
  </TR>
  <TR> 
    <TD align=middle> </TD>
  </TR>
  </TBODY> 
</TABLE>
<TABLE width=115 align=center cellPadding=0 cellSpacing=0>
  <TBODY>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/main.asp" style="text-decoration:none" target="main"><span class="163s">　论坛首页</span></a></TD>
    </TR>
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/register.asp" style="text-decoration:none" target="main"><span class="163s">　用户注册</span></a></TD>
    </TR>	
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%if request.cookies("bbsuser")="" then%>
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/userlogin.asp" style="text-decoration:none" target="main"><span class="163s">　用户登录</span></a></TD>
    </TR>
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%end if%>
<%
f=request("f")
sql="select BBS_Cate_Name,BBS_Cate_ID,BBS_Cate_PID from BBS_Cate where BBS_Cate_PID='0' and deleted=0 order by totop asc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
i=1
do while not rs.eof
%>
  <TR>  
      <TD class=menu_title id=imgmenu<%=i%> onMouseOver="this.className='menu_title2';" 
    style="CURSOR: hand" onclick=showsubmenu(<%=i%>) 
    onmouseout="this.className='menu_title';" background=../images/menudown.gif 
    height=25><span class="163s">　<a class=head3 href="../bbs/main.asp?layer_1=<%=rs("bbs_cate_id")%>" target="main"><%=rs("BBS_Cate_Name")%></a></span></TD>
    </TR>
    <TR> 
      <TD id=submenu<%=i%> <%if int(StrComp(f,rs("BBS_Cate_ID"),1))<>0 then response.write " style=""DISPLAY: none"""%>> 
      <DIV class=sec_menu style="WIDTH: 115px">          
        <table cellspacing=3 cellpadding=0 width=130 align=center>
          <tbody>
<%
sql15="select BBS_Cate_Name,BBS_Cate_ID,BBS_Cate_PID from BBS_Cate where BBS_Cate_PID='"&rs("BBS_Cate_ID")&"' and deleted=0"
set rs15=server.createobject("adodb.recordset")
rs15.open sql15,conn,1,1
do while not rs15.eof		  
%>		   
          <tr> 
            <td>&nbsp;&nbsp;- <a href="../bbs/main.asp?layer_1=<%=rs15("BBS_Cate_PID")%>&layer_2=<%=rs15("BBS_Cate_ID")%>" target="main"> <%=rs15("BBS_Cate_Name")%></a></td>
          </tr>		  
<%
rs15.movenext
loop
rs15.close
set rs15=nothing		  
%>		  
          </tbody> 
        </table>
        </DIV>        </TD>
    </TR>
<%
i=i+1
rs.movenext
loop
rs.close
set rs=nothing
m=i
%>		
	<TR> 
      <TD class=menu_title id=imgmenu<%=i%> onMouseOver="this.className='menu_title2';" 
    style="CURSOR: hand" onclick=showsubmenu(<%=i%>) 
    onmouseout="this.className='menu_title';" background=../images/menudown.gif 
    height=25><span class="163s">　个人设置</span></TD>
    </TR>
    <TR> 
      <TD id=submenu<%=i%>> <DIV class=sec_menu style="WIDTH: 115px"> 
          
        <table cellspacing=3 cellpadding=0 width=130 align=center>
          <tbody> 
          <tr> 
            <td>&nbsp;&nbsp;- <a href="moduserinfo.asp" target="main">修改资料</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="#" onClick="javascript:popwin('getpwd.asp?mode=1')">找回密码</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="myfriend.asp" target="main">我的好友</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="mysms.asp" target="main">我的信箱</a></td>
          </tr>
          <tr>
            <td>&nbsp;&nbsp;- <A HREF="main.asp?searchkind=name&searchcontent=<%=request.cookies("name")%>" target="main">个人文集</a></td>
          </tr>
          </tbody> 
        </table>
        </DIV>        </TD>
    </TR>
	
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/help.asp" style="text-decoration:none" target="main"><span class="163s">　论坛指南</span></a></TD>
    </TR>
    <TR>
      <TD class=menu_title background=../images/menudown.gif 
    height=27><a href="../bbs/soft/index.asp" style="text-decoration:none" target="main"><span class="163s">　论坛工具</span></a></TD>
    </TR><TR>
      <TD class=menu_title background=../images/menudown.gif 
    height=27><div align="left">&nbsp;&nbsp;&nbsp;&nbsp;<a href="../photo/index.html" target="main" class="STYLE1"">老宫图库</a></div></TD>
    </TR>
    <TR> 
      <TD>	  </TD>
    </TR>
<%if request.cookies("bbsuser")<>"" then%>			
    <TR> 
      <TD class=menu_title background=../images/menudown.gif 
    height=25><a href="../bbs/main.asp?exit=yes" style="text-decoration:none" target="main"><span class="163s">　退出论坛</span></a></TD>
    </TR>	
    <TR> 
      <TD id="submenu100" style="DISPLAY: none"></TD>
    </TR>
<%end if%>	
  </TBODY>
</TABLE>
<script langauge=javascript>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
imgmenu = eval("imgmenu" + sid);
if (whichEl.style.display == "none")
{
for( i=1;i<=<%=m%>;i++)
{
	whichEl = eval("submenu" + i);
	imgmenu = eval("imgmenu" + i);
	if(whichEl.style.display == "")
	{
		eval("submenu" + i + ".style.display=\"none\";");
		imgmenu.background="../images/menudown.gif";
	}
}
eval("submenu" + sid + ".style.display=\"\";");
imgmenu.background="../images/menuup.gif";
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
imgmenu.background="../images/menudown.gif";
}
}
//var str=location.href;
//var hrefNum= str.indexOf("?");
//showsubmenu(str.charAt(hrefNum+1)+str.charAt(hrefNum+2));

</script>