<%
strMenuWindowSize = (request.querystring("menu"))
if strMenuWindowSize <> "" then
'####  Set Cookies For Menu Window
Response.Cookies(strUniqueID)("MenuWindow")=(strMenuWindowSize)
'####  End of Set Cookies For News Window
end if

if (chkUser((strDBNTUserName), (Request.Cookies(strUniqueID & "User")("Pword"))) = 0) then 
if (Request.Cookies(strUniqueID)("MenuWindow")= "1") then '### Check Cookie For Minimize Status %>
  <TABLE  BORDER=0 bgcolor="<% =strTableBorderColor %>" cellspacing="1" cellpadding="2" width="100%">
  <tr>
    <td bgcolor="<% =strHeadCellColor %>">
    <table width="100%">
    <tr>
      <td width="95%">
      <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>" size="+1">
    <b>Main Menu</b>
    </font>
      </td>
      <td align="right"><a href="portal_content.asp?Menu=0"><div="right"><img src="<%= strImageURL %>icon_off.gif" border="0"></div></a>
      </td>
    </tr>
    </table>
  </td>
  </tr>
  <% else %>
  <TABLE  BORDER=0 bgcolor="<% =strTableBorderColor %>" cellspacing="1" cellpadding="2" width="100%">
  <tr>
    <td bgcolor="<% =strHeadCellColor %>">
    <table>
    <tr>
      <td width="80%">
      <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>" size="+1">
    <b>Main Menu</b>
    </font>
      </td>
      <td align="right" ><a href="portal_content.asp?Menu=1"><div="right"><img src="<%= strImageURL %>icon_on.gif" border="0"></div></a>
      </td>
    </tr>
    </table>
    
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href=""policy.asp?sectionid=2""><acronym title=""Register to post to our forum..."">Register</acronym></a></font>
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="WhatsNew.asp?area=5">Whats New</a></font>      
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="active.asp?sectionid=0"><acronym title=""See what topics have been active since your last visit..."">Active Topics</acronym></a>
    </td>
  </tr>
  <% end if %>
<% else 
  if (Request.Cookies(strUniqueID)("MenuWindow")= "1") then '### Check Cookie For Minimize Status %>
  <TABLE  BORDER=0 bgcolor="<% =strTableBorderColor %>" cellspacing="1" cellpadding="2" width="100%">
  <tr>
    <td bgcolor="<% =strHeadCellColor %>">
    <table width="100%">
    <tr>
      <td width="80%">
      <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>" size="+1">
    <b><%=strDBNTUserName%>'s Menu</b>
    </font>
      </td>
      <td align="right"><a href="portal_content.asp?Menu=0"><div="right"><img src="<%= strImageURL %>icon_on.gif" border="0"></div></a>
      </td>
    </tr>
    </table>
  </td>
  </tr>
  <% else %>
  <TABLE  BORDER=0 bgcolor="<% =strTableBorderColor %>" cellspacing="1" cellpadding="2" width="100%"> 
  <tr>
    <td bgcolor="<% =strHeadCellColor %>">
    <table width="100%">
    <tr>
      <td width="80%">
      <font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>" size="+1">
    <b><%=strDBNTUserName%>s Menu</b>
    </font>
      </td>
      <td align="right"><a href="portal_content.asp?Menu=1"><div="right"><img src="<%= strImageURL %>icon_off.gif" border="0"></div></a>
      </td>
    </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="My.asp?area=5">My Page</a><br></font>
    </td>
  </tr>

  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="WhatsNew.asp?area=5">Whats New</a>
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strAltForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    Forums
    </td>
  </tr>                                               
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="active.asp?sectionid=0"><acronym title=""See what topics have been active since your last visit..."">Active Topics</acronym></a>
    </td>
  </tr>
<%  if (mlev = 4) or (lcase(strNoCookies) = "1") then %>
  <tr>
    <td bgcolor="<% =strAltForumCellColor%>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    Admin's
    </td>
  </tr>
  <tr>
    <td bgcolor="<% =strForumCellColor%>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="admin_home.asp"><acronym title="Administration">Administration</acronym></a>
    </td>
  </tr> 
  <tr>
    <td bgcolor="<% =strForumCellColor%>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="forum_stats.asp"><acronym title="Displys the top 25 Statistics">General Stats</acronym></a>
    </td>
  </tr> 
  <tr>
    <td bgcolor="<% =strForumCellColor%>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="forum_stats2.asp"><acronym title="Displays the Monthly Stats">Monthly Stats</acronym></a>
    </td>
  </tr> 
  <tr>
    <td bgcolor="<% =strForumCellColor %>">
    <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
    <a href="pop_profile.asp?mode=Edit&sectionid=2"><acronym title=""Modify Your Profile"">Your Profile</acronym></a>
    </td>
  </tr>
<%  end if %>
<% end if %>
<% end if %>
  <tr>
    <td align="left" valign="top"bgcolor="<%= strForumCellColor %>"> 
    <font face="<%=strDefaultFontFace%>" size="<%=strFooterFontSize%>" color="<%=strForumFontColor%>">
    <%
    set my_Conn = Server.CreateObject("ADODB.Connection")
    my_Conn.Open strConnString
    strSql ="SELECT " & strTablePrefix & "TOTALS.U_COUNT "
    strSql = strSql & " FROM " & strTablePrefix & "TOTALS " 
    set rs = my_Conn.execute(strSql) 

    TotalUsers = rs("U_COUNT") 
    Response.write("Currently " & "<font color='red'>" & TotalUsers & "</Font>" & " members.")
%>

    </font><br>
    <font face="<%=strDefaultFontFace%>" size="<%=strFooterFontSize%>" color="<%=strForumFontColor%>">
    <a href="active_users.asp">Active Users</a>: <br><%=strOnlineMembersCount%> Members and <%=strOnlineGuestsCount%> Guests
    </font>
    </td>
  </tr>
</table>
