  
    <div class="container main-container">
    
      <div class="row header">
<!-- Begin Header -->
      
        <!-- Logo
        ================================================== -->
        <div class="span5 logo">
        	<a href="/"><img src="../img/logo.png" alt="<%=web_name%>" title="<%=web_name%>"/></a>
            <%if version > 8 then%>
            <h5><%=web_slogan%></h5>
            <%end if%>
        </div>
        
        <!-- Main Navigation
        ================================================== -->
        <div class="span7 navigation">
            <div class="navbar hidden-phone">
            
<% 

if id="" then
read="active"
end if
%>        
            
<ul class="nav">
 <li class="dropdown <%=read%>">
 <a href="/">Ê×Ò³</a>
 </li>
<% 
set rs=server.createobject("adodb.recordset")
sql="select * from Web_Navigation where n_Display=1 order by n_Sequence"
rs.open(sql),conn,1,1
do while not rs.eof
n_id=rs("n_id")
n_name=rs("n_name")
n_open=rs("n_open")

if rs("n_open")=0 then
n_open="target=""_blank"" "
elseif rs("n_open")=1  then
n_open=""
end if   

if rs("n_pattern")=1 then
n_pattern="/Single/?"&n_id&".html"
elseif rs("n_pattern")=2 then
n_pattern="/List/"
elseif rs("n_pattern")=3 then
n_pattern="/Album/"
elseif rs("n_pattern")=4 then
n_pattern="/FeedBack/"
elseif rs("n_pattern")=5 then
n_pattern="/About/"
elseif rs("n_pattern")=6 then
n_pattern="/Links/"
elseif rs("n_pattern")=7 then
n_pattern="/Shuo/"
end if

if ""&idss&""=""&n_id&"" then
read2="active"
else
read2=""
end if
%>
 

<%
set rs2=server.createobject("adodb.recordset")
sql="select * from Web_2Navigation where n_Belong="&n_id&" and n_Display=1"
rs2.open(sql),conn,1,1
If rs2.bof And rs2.eof Then
caret=""
cla=""
else
caret="<b class='caret'></b>"
cla="class='dropdown-toggle' "
end if
%>


<li class="dropdown <%=read2%>">
 <a <%=cla%> href="<%=n_pattern%>" <%=n_open%>><%=n_name%> <%=caret%></a>
<%if caret<>"" then%> 
<ul class="dropdown-menu">
<% 
set rs2=server.createobject("adodb.recordset")
sql="select * from Web_2Navigation where n_Belong="&n_id&" and n_Display=1  order by n_Sequence"
rs2.open(sql),conn,1,1
do while not rs2.eof
n_id2=rs2("n_id")
n_name2=rs2("n_name")
n_open2=rs2("n_open")

if rs2("n_open")=0 then
n_open2="target=""_blank"" "
elseif rs2("n_open")=1  then
n_open2=""
end if   

if rs2("n_pattern")=1 then
n_pattern2="/Alone/?"&n_id2&".html"
elseif rs2("n_pattern")=2 then
n_pattern2="/List/?"&n_id2&"+1.html"
elseif rs2("n_pattern")=3 then
n_pattern2="/Album/?"&n_id2&"+1.html"
elseif rs2("n_pattern")=4 then
n_pattern2="/FeedBack/?"&n_id2&"+1.html"
elseif rs("n_pattern")=5 then
n_pattern="/About/?"&n_id&".html"
elseif rs("n_pattern")=6 then
n_pattern="/Links/?"&n_id&".html"
end if
%>
 <li><a href="<%=n_pattern2%>" <%=n_open2%>><i class="icon-ok-sign"></i> <%=n_name2%></a></li>
<%
rs2.movenext
loop
rs2.close
set rs2=nothing
%>	
</ul>
<%end if%>
</li>  
<%
rs.movenext
loop
rs.close
set rs=nothing
%>	     
            
 </div>

            <!-- Mobile Nav
            ================================================== -->
            <form action="#" id="mobile-nav" class="visible-phone" />
                <div class="mobile-nav-select">
                <select onchange="window.open(this.options[this.selectedIndex].value,'_top')">
                    <option value="" />µ¼º½...
					<option value="/" />Ê×Ò³
<% 
set rs=server.createobject("adodb.recordset")
sql="select * from Web_Navigation where n_Display=1 order by n_Sequence"
rs.open(sql),conn,1,1
do while not rs.eof
n_id=rs("n_id")
n_name=rs("n_name")
n_open=rs("n_open")


if rs("n_pattern")=1 then
n_pattern="/Single/"&n_id&".html"
elseif rs("n_pattern")=2 then
n_pattern="/List/"
elseif rs("n_pattern")=3 then
n_pattern="/Album/?"
elseif rs("n_pattern")=4 then
n_pattern="/FeedBack/"
elseif rs("n_pattern")=5 then
n_pattern="/About/"
elseif rs("n_pattern")=6 then
n_pattern="/Links/"
elseif rs("n_pattern")=7 then
n_pattern="/Shuo/"
end if
%>
                    <option value="<%=n_pattern%>" /><%=n_name%>
<% 
set rs2=server.createobject("adodb.recordset")
sql="select * from Web_2Navigation where n_Belong="&n_id&" and n_Display=1  order by n_Sequence"
rs2.open(sql),conn,1,1
do while not rs2.eof
n_id2=rs2("n_id")
n_name2=rs2("n_name")
n_open2=rs2("n_open") 

if rs2("n_pattern")=1 then
n_pattern2="/Alone/?"&n_id2&".html"
elseif rs2("n_pattern")=2 then
n_pattern2="/List/?"&n_id2&"+1.html"
elseif rs2("n_pattern")=3 then
n_pattern2="/Album/?"&n_id2&"+1.html"
elseif rs2("n_pattern")=4 then
n_pattern2="/FeedBack/?"&n_id2&"+1.html"
elseif rs("n_pattern")=5 then
n_pattern="/About/?"&n_id&".html"
elseif rs("n_pattern")=6 then
n_pattern="/Links/?"&n_id&".html"
end if
%>                                      
                    <option value="<%=n_pattern2%>" />- <%=n_name2%>
<%
rs2.movenext
loop
rs2.close
set rs2=nothing
%>
					
<%
rs.movenext
loop
rs.close
set rs=nothing
%>	
                        

                </select>
                </div>
                </form>

        </div>

      </div><!-- End Header -->