<!--#include file="Inc/SysProduct.asp" -->
<%
function cutstr(tempstr,tempwid)
if len(tempstr)>tempwid then
cutstr=left(tempstr,tempwid)&"..."
else
cutstr=tempstr
end if
end function%>

<!--#include file="head.asp" -->


<table width="1004" height="250" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="341" height="250" align="center" valign="middle" background="imgbyl/top7.gif">


      <table width="341" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="37"><a href="NewsClass.asp?BigClass=企业新闻"><img src="imgbyl/news4.gif" width="341" height="37" border="0" /></a></td>
        </tr>
        <tr>
          <td height="213" align="center" valign="top" background="imgbyl/news2.gif">
              <table width="95%" border="0" cellspacing="0" cellpadding="0">
                

<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 6 * from news where BigClassName='企业新闻' order by id desc"
rs_news.open sqltext4,conn,1,1				 	
%>
<%i=0
do while not rs_news.eof%>

                <tr>
                  <td width="18" height="32" align="center" valign="middle" class="gonggao">·</td>
                  <td align="left"><a href="shownews.asp?id=<%=rs_news("id")%>" class="link"> <%=cutstr(rs_news("title"),20)%></a> </td>
                </tr>
                <tr>
                  <td height="1" bgcolor="EBEBEB"></td>
                  <td height="1" bgcolor="EBEBEB"></td>
                </tr>
                
<%rs_news.movenext
i=i+1
if i=6 then exit do
loop
rs_news.close %>








                
            </table></td>
        </tr>
      </table></td>
    <td width="8"></td>
    <td width="390"><table width="390" height="250" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="38"><img src="imgbyl/top15.gif" width="390" height="38" /></td>
      </tr>
      <tr>
        <td height="35" align="center" background="imgbyl/top16.gif" class="red14px">因为信任，所以简单;因为专业，所以优秀</td>
      </tr>
	  <tr><td height="1" align="center" background="imgbyl/top16.gif"><img src="imgbyl/line.gif"/></td></tr>
	  
      <tr>
        <td height="177" align="left" background="imgbyl/bai1.gif" style="padding-left:21px; padding-right:21px;">
               
			<a href="Aboutus.asp?Title=企业简介" class="about1">
<%Set rs = Server.CreateObject("ADODB.Recordset")
sql="select Content from Aboutus where Title='企业简介'"
rs.open sql,conn,1,3%>
<%=cutstr(rs("content"),220)%>
<%rs.close
rs=nothing%></a>
          </td>
      </tr>
    </table></td>
    <td width="8"></td>
    <td width="257" valign="top"><table width="257" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="37"><a href="CompVisualize.asp"><img src="imgbyl/news1.gif" width="257" height="37" border="0" /></a></td>
      </tr>
      <tr>
        <td height="213" align="center" valign="top" background="imgbyl/news3.gif">
		<table width="240" border="0" cellspacing="0" cellpadding="0">
		


<%
set rs_news=server.createobject("adodb.recordset")
sqltext4="select top 6 * from CompVisualize order by id desc"
rs_news.open sqltext4,conn,1,1				 	
%>
<%i=0
do while not rs_news.eof%>
  
          <tr>
            <td width="18" height="32" align="center" valign="middle" class="gonggao">·</td>
            <td width="222" align="left"><a href="CompVisualizeBig.asp?id=<%=rs_news("id")%>" class="link"><%=cutstr(rs_news("Explain"),20)%></a></td>
          </tr>
          <tr>
            <td height="1" bgcolor="EBEBEB"></td>
            <td height="1" bgcolor="EBEBEB"></td>
          </tr>
<%rs_news.movenext
i=i+1
if i=6 then exit do
loop
rs_news.close %>		   
         




		   
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="1004" height="166" border="0" align="center" cellpadding="0" cellspacing="0" class="mar8">
  <tr>
    <td height="37" colspan="3"><a href="Product.asp"><img src="imgbyl/top10.gif" width="1004" height="37" border="0" /></a></td>
  </tr>
  <tr>
    <td width="15" height="117" background="imgbyl/top11.gif"></td>
    <td width="973"><style type="text/css">
<!--

#demo {
	MARGIN: auto; OVERFLOW: hidden; WIDTH: 975px;  TEXT-ALIGN: center
}
-->
</style>
<DIV id=demo>
        <TABLE height=110 cellSpacing=0 cellPadding=0 align=left border=0 
            cellspace="0">
          <TBODY>
            <TR>
              <TD id=demo1 vAlign=top><!--滚动区的高度和宽度-->
                    <TABLE width=170 height="91" 
                  border=0 align=center cellPadding=0 cellSpacing=0 cellspace="0">
                      <TBODY>
                        <TR>
                          <TD id=demo1 vAlign=top>
						  <span id="tb_A101">
              <!--------------------显示最新产品的子程序开始--------------------->
                            <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                              <%
set rs_Product=server.createobject("adodb.recordset")
sqltext="select top " & Product_count & " * from Product where Passed=True and Elite=true  order by UpdateTime desc"
rs_Product.open sqltext,conn,1,1
%>
                              <tr align="center">
                                <%
           If rs_Product.eof and rs_Product.bof then
           response.write "<td><p align='center'><font color='#ff0000'>还没任何产品</font></p></td>"
           else
			  row_count=1
			  Do While Not rs_Product.EOF%>
                                <td><table width="1%"  border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td><table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#E9E9E9">
                                        <tr>
                                          <td width="130" bgcolor="#FFFFFF"><table width="130"  border="0" cellpadding="0" cellspacing="0" bgcolor="#E9E9E9">
                                              <tr>
                                                <td width="130" height="110" align="center" valign="middle" bgcolor="#FFFFFF"><a href="ProductShow.asp?ID=<%=rs_Product("id")%>"><img src=<%=rs_Product("DefaultPicUrl")%> width="145" height="100" border=0 ></a></td>
                                              </tr>
                                          </table></td>
                                        </tr>
                                    </table></td>
                                    <td valign="top"><img src="Img/yyri2.gif" width="7" height="112" /></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2"><table width="100%"  border="0" cellspacing="2" cellpadding="0">
                                        <tr>
                                          <td height="30" align="center"><a href="ProductShow.asp?ID=<%=rs_Product("id")%>"><%=rs_Product("Title")%></a></td>
                                        </tr>
                                    </table></td>
                                  </tr>
                                </table></td>
                                <% if row_count mod 8 =0 then%>
                              </tr>
                              <tr>
                                <%end if%>
                                <%
rs_Product.MoveNext
row_count=row_count+1
Loop
end if
rs_Product.close
%>
                                
                              </tr>
                          </table><!--------------------显示最新产品的子程序结束--------------------->
              </span>						  
						  </TD>
                          <TD id=demo2 vAlign=top width=2></TD>
                        </TR>
                      </TBODY>
                  </TABLE>
                <!--最新图文代码结束--></TD>
              <TD id=demo2 vAlign=top></TD>
            </TR>
          </TBODY>
        </TABLE>
      </DIV>
<script language="JavaScript" type="text/javascript">
// JavaScript Document

var speed=20;
document.getElementById("demo2").innerHTML=document.getElementById("demo1").innerHTML
function Marquee(){
if(document.getElementById("demo2").offsetWidth-document.getElementById("demo").scrollLeft<=0)
document.getElementById("demo").scrollLeft-=document.getElementById("demo1").offsetWidth
else{
document.getElementById("demo").scrollLeft++;
}
}
var MyMar=setInterval(Marquee,speed)
document.getElementById("demo").onmouseover=function() {clearInterval(MyMar)}
document.getElementById("demo").onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>  </td>
    <td width="16" background="imgbyl/top12.gif"></td>
  </tr>
  <tr>
    <td height="12" colspan="3" background="imgbyl/top13.gif"></td>
  </tr>
</table>
<!--#include file="foot.asp" -->
