<%
Set catRS = Server.CreateObject( "ADODB.Recordset" )
catRS.ActiveConnection = Con
sqlString = "SELECT DISTINCT product_category FROM Products "
sqlString = sqlString & "WHERE product_status=1 "
sqlString = sqlString & "ORDER BY product_category"
catRS.Open sqlString
%>
<% If cat = "Home" THEN %>
<font color="red"><b>Home</b></font>
<UL>
<% ELSE %>
<a href="../astro1/ecom/default.asp?cat=Home">Home</a>
<UL>
<% END IF %>
<% WHILE NOT catRS.EOF %>
<% IF catRS( "product_category" ) = cat THEN %>
<li><font color="red"><b>
<%=catRS( "product_category" )%>
</b></font>
<% ELSE %>
<li><a href="default.asp?cat=<%=Server.URLEncode( catRS( "product_category" ) )%>"><%=catRS( "product_category" )%></a>
<% END IF %>
<% 
catRS.MoveNext
WEND 
%>
</UL>
<% catRS.Close %>

