<%set rs = objconn.execute("select * from table_works order by iordno asc") do until rs.eof%> <%rs.movenext loop%>
" class="menuwhite"><%=rs("sheader")%>
 
  <%if request.querystring("cat") <> "" then cat = request.querystring("cat") else cat = 2 end if%>
<%set rs = objconn.execute("select * from table_works where iid = " & cint(cat)& " order by iordno asc") if not rs.eof then response.write rs("sheader") end if%>
<% i = 1 set rs = objconn.execute("select * from table_reference where icatid = " & cint(cat)& " order by iordno asc") do until rs.eof%> <%if i mod 2 = 0 then TempBg = "#DAD2C7" TempClass = "contentwhite" else TempBg = "#FFFFFF" TempClass = "contentbrown" end if%> <% i = i + 1 rs.movenext loop%>
<%set rs1 = objconn.execute("select * from table_referencealbum where catid = " & rs("iid")& "") j = 1 if not rs1.eof then%> <% j = 1 do until rs1.eof %> <%if j = 1 then%> " rel="lightbox[<%=rs("iid")%>]" title="<%=rs("sheader")%>" class="<%=TempClass%>"><%=rs("sheader")%> <%else%> " rel="lightbox[<%=rs("iid")%>]" title="<%=rs("sheader")%>" > <%end if%> <% j = j + 1 rs1.movenext loop%> <%else%> <%=rs("sheader")%> <%end if%>