<!--#include file="top.asp" -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background: url(images/b_bg.jpg) repeat-x center bottom">
  <tr>
    <td height="340" align="center" valign="top" style="background: url(images/banner_top.jpg) repeat-x center top #E2E2E2">
	<script src="js/jquery.js"></script>
	<script src="./js/loopedslider.min.js"></script>
  	<style>	
		.index_body {width:1000px}
		.container { width:1001px; height:332px; overflow:hidden; position:relative; cursor:pointer; }
		.slides { position:absolute; top:0; left:0; }
		.slides > div { position:absolute; top:0; width:1001px; display:none;z-index:0; }
		#loopedSlider,#newsSlider { margin:0 auto; width:1001px; position:relative; clear:both; }
		ul.pagination { list-style:none; padding:0; margin:0; width:100px; margin-top:-29px; margin-left:450px;position:absolute; z-index:666;z-index:101;left:50px;bottom:5px;}
		ul.pagination li  { float:left; }
		ul.pagination li a { background:url(images/circle_gray.png) left top no-repeat; padding-right:12px; width:12px; color:#e2e2e2}
		ul.pagination li.active a { background:url(images/circle_yellow.png) left top no-repeat; padding-right:12px; width:12px;}
		/*ul.pagination { list-style:none; margin:0 0px; padding:0 0px; width:46px;}
		ul.pagination li  { float:left; position:absolute; margin-top:-29px; margin-left:30px; padding-right:3px; width:46px;}*/
	.container1 { width:1001px; height:370px; overflow:hidden; position:relative; cursor:pointer; }
    #apDiv1 {	position:absolute;	left:-98px;	top:140px;	width:95px;	height:95px;	z-index:101;}
	#apDiv2 {	position:absolute;	left:1005px;	top:140px;	width:95px;	height:95px;	z-index:101;}
    </style>
    <div id="index_body">
    <div id="index_photo">
      <div id="loopedSlider">
	  <div class="container1">
	    <div class="slides">
	      <%
		  sql="select * from ad where acid=1 order by orders,aid desc"
		  rs.open sql,conn,1,1
		  do while not rs.eof
		  %>
          <div><a href="<%=rs("url")%>" target="_blank"><img src="pic/<%=rs("pic")%>" width="1001" height="332" border="0" title="<%=rs("name")%>" /></a></div>
          <%
		  rs.movenext
		  loop
		  rs.close
		  %>
        </div>
      </div>
	  <a href="#" class="previous"><div id="apDiv1"><img src="images/lll.png" style="border:0px"/></div></a> 
      <a href="#" class="next"><div id="apDiv2"><img src="images/rrr.png" style="border:0px" ></div></a>
      </div>
	</div></div>       
    </td>
  </tr>
  <tr>
    <td height="10" align="center" valign="top" >&nbsp;</td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="images/t1.jpg" width="299" height="28" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td style="line-height:20px">MX Micro always provide you high quality ESD devices and professional service!</td>
      </tr>
      <tr>
        <td style="line-height:20px">&nbsp;</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td align="center"><table width="80%" border="0" cellspacing="0" cellpadding="0">
              <%
		  sql="select * from product where fid=3 and sign=1 order by cid,pid"
		  rs.open sql,conn,1,1
		  do while not rs.eof
		  %>
              <tr>
                <td width="50%" height="30" align="left">● <a href="product.asp?fid=3&cid=<%=rs("cid")%>&pid=<%=rs("pid")%>" class="gray2"><%=rs("name")%></a></td>
              </tr>
              <%
		  rs.movenext
		  loop
		  rs.close
		  %>
            </table></td>
            <td width="200" align="center"><img src="images/mokuai.jpg" width="136" height="102" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="41"><img src="images/t_split.jpg" width="41" height="220" /></td>
    <td valign="top"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/t2.jpg" width="352" height="28" /></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <%
				  sql="select top 3 * from texts where fid = 1 order by orders,tid desc"
				  rs.open sql,conn,1,1
				  for i=1 to 3
				  %>
          <tr>
            <td width="20" align="center" class="blue">●</td>
            <td height="26" align="left" style="color:#1980c3"><%=DateFormat("YYYY-MM-DD",split(rs("addtime")," ")(0))%></td>
          </tr>
          <tr>
            <td width="20" align="left">&nbsp;</td>
            <td height="26" align="left"><a href="newsshow.asp?tid=<%=rs("tid")%>&fid=<%=rs("fid")%>" class="gray2"><%=rs("title")%></a></td>
          </tr>
          <%
				  rs.movenext
				  next
				  rs.close
				  %>
          <tr>
            <td width="20" height="26" ></td>
            <td height="26"  style="background:url(images/split2.gif) center center no-repeat"></td>
          </tr>
          <%
				  sql="select top 3 * from texts where fid = 2 order by orders,tid desc"
				  rs.open sql,conn,1,1
				  for i=1 to 2
		 %>
          <tr>
            <td width="20" align="center" class="blue">●</td>
            <td height="26" align="left" style="color:#1980c3"><%=DateFormat("YYYY-MM-DD",split(rs("addtime")," ")(0))%></td>
          </tr>
          <tr>
            <td width="20" align="left">&nbsp;</td>
            <td height="26" align="left"><a href="newsshow.asp?tid=<%=rs("tid")%>&fid=<%=rs("fid")%>" class="gray2"><%=rs("title")%></a></td>
          </tr>
          <%
				  rs.movenext
				  next
				  rs.close
				  %>
        </table></td>
      </tr>
    </table></td>
    <td width="41"><img src="images/t_split.jpg" width="41" height="220" /></td>
    <td width="238" valign="top"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/t3.jpg" width="224" height="28" /></td>
      </tr>
      <tr>
      <%
	  sql="select * from texts where tid=20"
	  rs.open sql,conn,1,1
	  %>
        <td><%=rs("info")%></td>
      <%
	  rs.close
	  %>
      </tr>
    </table></td>
  </tr>
</table>
<!--#include file="bottom.asp" -->
<script type="text/javascript" charset="utf-8">
	$(function(){
		// Option set as a global variable
		$.fn.loopedSlider.defaults.addPagination = true;
		
		$('#loopedSlider').loopedSlider({
			autoStart: 3500,
			hoverPause: true
		});
	});
</script>