<!-- #include file="../inc/conexao.asp" -->
<%

'RELAÇÃO DE EQUIPAMENTOS EM DESTAQUE
'--------------------------------------------------------------------------
Randomize
	R = clng(1E6 * rnd)
	SQL = "select TOP 3 equId,subCatId,equNome,equPublicado,equDestaque from EQUIPAMENTOS where equPublicado = true and equDestaque = true order by rnd(-(1000*equId)* " & R & ")"
		set rsDes = createObject("adodb.recordset")
		rsDes.Open(SQL), DB, 1
'--------------------------------------------------------------------------

%>
<html>
<head>
<title>OPERMAK ... Produtos</title>
<META NAME="author" CONTENT="Rodrigo Alexandre Queiroz">
<script language="JavaScript" src="../inc/javaScript.js"></script>
<style type="text/css">
<!--
BODY{
	color: #FFFFFF;
	margin: 0px;
	font-family: Arial, Helvetica, sans-serif;
}
a{
	text-decoration: none;
	color: #FFFFFF;
	FONT-SIZE: 14px;
	font-weight: bold;
}
a:hover{
	color: #CEB218;
}
-->
</style>
</head>
<body>

<table width="240" height="422"  border="0" cellpadding="10" cellspacing="0" background="bkg_destaques.jpg">
  <tr>
    <td valign="top">
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="30">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>

	<%
	while not rsDes.EOF

		'RELAÇÃO DE FOTOS
		'--------------------------------------------------------------------------
		SQL = "select TOP 1 * from EQU_FOTOS where equId = " & rsDes("equId") & " order by equFotId"
			set rsFot = createObject("adodb.recordset")
			rsFot.Open(SQL), DB, 1
		'--------------------------------------------------------------------------
		
			if not rsFot.eof then
		%>

        <tr>
          <td width="95"><a href="../../produtos/index.htm?subCatId=<%= rsDes("subCatId") %>" target="_top"><img src="../img/min/<%= rsFot("equFotArquivo") %>" width="90" height="70" border="0"></a></td>
          <td valign="top">
		    <img src="seta_amarela.gif" width="6" height="12">
		    <a href="../../produtos/index.htm?subCatId=<%= rsDes("subCatId") %>" target="_top"><%= rsDes("equNome") %></a>
		  </td>
        </tr>
        <tr>
          <td height="30">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>

		<% else %>

        <tr>
          <td colspan="2" valign="top">
		    <img src="seta_amarela.gif" width="6" height="12">
		    <a href="../../produtos/index.htm?subCatId=<%= rsDes("subCatId") %>" target="_top"><%= rsDes("equNome") %></a>
			<br><br>
		  </td>
        </tr>
        <tr>
          <td height="30">&nbsp;</td>
          <td>&nbsp;</td>
        </tr>

		<%
			end if

	rsDes.movenext
	wend
	%>

      </table>
	  <center><a href="../contato/cadastro_frame.asp" target="_top"><img src="b_anuncie.gif" width="106" height="37" border="0"></a></center>
	</td>
  </tr>
</table>

</body>
</html>

	<%
		rsFot.close()
		set rsFot = nothing
	rsDes.close()
	set rsDes = nothing
	%>

<!-- #include file="../inc/fechar.asp" -->