<!--#include file="conn.asp" -->
<%
id=request("id")
n=request("n")
a=request("a")
b=request("b")
ft=request("ft")
postuser=request("postuser")
call FTBBS_HTML_MB
defaulthome=Application("FTBBSMB")(31,0)
if ft<>"" then
   Response.Cookies("ftbbstype")=ft
   Response.Cookies("ftbbstype").Expires=date+7
end if
if request.cookies("ftbbstype")="" and ft="" then
   Response.Cookies("ftbbstype")=Application("FTBBSMB")(8,0)
   Response.Cookies("ftbbstype").Expires=date+7
end if
if request.cookies("ftbbstype")=1 then
  if id<>"" and n="" then
      response.redirect request("htm")
  elseif n="regist" then
      response.redirect "register.asp"
  elseif n="postsms" then
      response.redirect "smsbbs.asp?postuser="&postuser
  elseif n="grzl" then
      response.redirect "ftbbsmyinfo.asp?ftbbsuser="&postuser
  elseif n="help" then
     response.redirect "help.asp"
  elseif n="userinfo" then
     response.redirect "moduserinfo.asp"
  elseif n="friend" then
     response.redirect "myfriend.asp"
  elseif n="sms" then
     response.redirect "mysms.asp"
  elseif n="exit" then
     response.redirect "main.asp?exit=yes"
  elseif n="myself" then
     response.redirect "main.asp?searchkind=name&searchcontent="&request.cookies("name")
  elseif n="myrepost" then
     response.redirect "search.asp?searchkind=myrepost&searchcontent="&request.cookies("name")
  elseif n="favorties" then
     response.redirect "myfavorties.asp"
  elseif n="fbht" then
     response.redirect "fbht.asp?layer_1="&a&"&layer_2="&b
  elseif n="poll" then
     response.redirect "bbspoll.asp?layer_1="&a&"&layer_2="&b
  else
    if (a="" and b="") then
       response.redirect "default_list.asp?layer_1="&a&"&layer_2="&b
    else
       response.redirect "main.asp?layer_1="&a&"&layer_2="&b
    end if
     'response.redirect "default_list.asp?layer_1="&a&"&layer_2="&b
  end if
else
opentree="ftbbstree.htm"
if id<>"" and n="" then
  urlfile=request("htm")
elseif n="regist" then
  urlfile="register.asp"
elseif n="postsms" then
  urlfile="smsbbs.asp?postuser="&postuser
elseif n="grzl" then
  urlfile="ftbbsmyinfo.asp?ftbbsuser="&postuser
elseif n="help" then
  urlfile="help.asp"
elseif n="userinfo" then
  urlfile="moduserinfo.asp"
elseif n="friend" then
  urlfile="myfriend.asp"
elseif n="sms" then
  urlfile="mysms.asp"
elseif n="exit" then
  urlfile="main.asp?exit=yes"
elseif n="myself" then
  urlfile="main.asp?searchkind=name&searchcontent="&request.cookies("name")
elseif n="myrepost" then
  urlfile="search.asp?searchkind=myrepost&searchcontent="&request.cookies("name")
elseif n="favorties" then
  urlfile="myfavorties.asp"
elseif n="fbht" then
  urlfile="fbht.asp?layer_1="&a&"&layer_2="&b
elseif n="poll" then
  urlfile="bbspoll.asp?layer_1="&a&"&layer_2="&b
else
  if defaulthome=1 and a="" and b="" then
  urlfile="ftbbshome.asp" '开启首页调用
  else
  urlfile="main.asp?layer_1="&a&"&layer_2="&b
  end if
end if
%>
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE><%=Application("FTBBSMB")(11,0)%></TITLE>
<META content="text/html; charset=gbk" http-equiv=Content-Type>
<script language=javascript src="inc/cookies.js"></script>
<script>
function defaultCssStyle()
{
	var sCssType =<%=Application("FTBBSMB")(29,0)%> //默认的样式值
	setCookie("STYLESHOW", sCssType);
}
</script>
<script>
var stylecook = getCookie("STYLESHOW");
var style;
var strstyle;
if(stylecook=="")
{
 defaultCssStyle();
 stylecook=<%=Application("FTBBSMB")(29,0)%>+1;
}
else
{
 stylecook++;
}
style="main0"+stylecook+".css";
strstyle="<link href=\"css/"+style+"\"  rel=\"stylesheet\" type=\"text/css\"> ";
document.write(strstyle);
</script>

<script language=javascript>
if(self!=top){top.location=self.location;}
function switchSysBar(){
	var obj=document.getElementById('left');
	var menu=document.getElementById('switchPoint');
	if(obj.style.display=='none'){
		obj.style.display='';
		menu.innerHTML = "<img src=\"images/ftbbs_close.gif\" style=\"cursor:pointer;\" alt=关闭左栏>";
	}else{
		obj.style.display='none';
		menu.innerHTML = "<img src=\"images/ftbbs_open.gif\" style=\"cursor:pointer;\" alt=打开左栏>";
	}
}
</script>

<script>
var stylecook = getCookie("STYLESHOW");
var style;
var tmpstylecook;
function setcookies()
{
 tmpstylecook = stylecook;
}

function  reloadcook()
{
   var scooks = getCookie("STYLESHOW");
   if(scooks != tmpstylecook)
   {
 	window.location.reload();
   }
}
setcookies();
setInterval('reloadcook()',10);
</script>
<BODY scroll=no style="MARGIN: 0px">
<TABLE border=0 cellPadding=0 cellSpacing=0 height="100%" width="100%">
  <TBODY>
  <TR>
    <TD align=middle id=frmTitle noWrap vAlign=center>
	<IFRAME frameBorder=0 id="left" name=left scrolling=yes src="<%=opentree%>" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 140px; Z-INDEX: 2"></IFRAME>
	</TD>
    <td>
	<table height="100%" width="12" cellspacing="0" cellpadding="0" class="nar">
	  <tbody>
	    <tr>
	      <td align="center" id="switchPoint" onclick="switchSysBar();" height="100%">
	      <img src="images/ftbbs_close.gif" style="cursor:pointer;" alt=关闭左栏>
	      </td>
	    </tr>
	  </tbody>
	</table>
    </td>
    <TD style="WIDTH: 100%">
	<IFRAME frameBorder=0 id="main" name=main scrolling=yes src="<%=urlfile%>" style="HEIGHT: 100%; VISIBILITY: inherit; WIDTH: 100%; Z-INDEX: 1"></IFRAME>
	</TD>
  </TR>
  </TBODY>
</TABLE>
<SCRIPT>
if(window.screen.width<'1024'){switchSysBar()}
</SCRIPT>
</BODY>
</HTML>
<%end if%>