<? require_once('inc/config.db.php'); ?>
<? require_once('inc/config.inc.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?=$title1?></title>
<meta name="keywords" content="关键词" />
<meta name="description" content="关键词描述" />
<link href="images/style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.min.js" language="javascript" type="text/javascript"></script>
<script type="text/javascript">
function slideSwitch() {
	var $current = $("#slideshow div.current");
	// 判断div.current个数为0的时候 $current的取值
	if ( $current.length == 0 ) $current = $("#slideshow div:last");
	// 判断div.current存在时则匹配$current.next(),否则转到第一个div
	var $next =  $current.next().length ? $current.next() : $("#slideshow div:first");
	$current.addClass('prev');
	$next.css({opacity: 0.0}).addClass("current").animate({opacity: 1.0}, 1000, function() {
			//因为原理是层叠,删除类,让z-index的值只放在轮转到的div.current,从而最前端显示
			$current.removeClass("current prev");
		});
}
$(function() {
	$("#slideshow span").css("opacity","0.7");
	$(".current").css("opacity","1.0");
	// 设定时间为3秒(1000=1秒)
    setInterval( "slideSwitch()", 3000 ); 
});
</script>
</head>
<body>
<div id="hear">
	<div class="tops">
    	<div class="xian"></div>
        <div id="logo"><a href="#">logo</a></div>
        <div class="sx"></div>
        <div id="nav">
        	<ul class="navs">
            	<li class="sy"><a href="index.php">首页</a></li>
                <li><a href="out.php">公司简介</a></li>
                <li><a href="cp.php">产品中心</a></li>
                <li><a href="news.php">新闻中心</a></li>
                <li><a href="#">用户留言</a></li>
                <li><a href="shfw.php">售后服务</a></li>
                <li><a href="lxwm.php">联系我们</a></li>
            </ul>
        </div>
        <div class="flash-box">
        	<div id="slideshow">
    			<div class="current">
        			<a href="#"><img src="images/flash.jpg" alt="" /></a>
    			</div>
    			<div>
        			<a href="#"><img src="images/flash.jpg" alt="" /></a>
   			    </div>
   				<div>
        			<a href="#"><img src="images/flash.jpg" alt="" /></a>
    			</div>
    			<div>
        			<a href="#"><img src="images/flash.jpg" alt="" /></a>
    			</div>
    			<div>
        			<a href="#"><img src="images/flash.jpg" alt="" /></a>
    			</div>
			</div>
        </div>
    </div>
</div>
<div id="mid">
	<div class="mid-top">
    	<div class="lx"><a href="cp.php?cplbid=1"><img src="images/xl.jpg" /></a></div>
        <div class="lx2"><a href="cp.php?cplbid=2"><img src="images/xl2.jpg" /></a></div>
        <div class="lx3"><a href="cp.php?cplbid=3"><img src="images/xl3.jpg" /></a></div>
        <div class="lx4"><a href="cp.php?cplbid=4"><img src="images/xl4.jpg" /></a></div>
    </div>
    <div class="mid-bot">
    	<div class="gs">
        	<h2 class="gstit"><a href="news.php" class="titels">公司动态</a></h2>
            <div class="pd5"></div>
            <ul class="list">
            	<?
					$sql="select * from news where newsid='1' limit 0,6";
					$result=mysql_query($sql);
					while($row = mysql_fetch_array($result))
					{
				?>
            	<li><a href="newswd.php?id=<?=$row["id"]?>"><?=$row["title"]?></a><span><a href="newswd.php?id=<?=$row["id"]?>"><?=$row["time"]?></a></span></li>
                <?
					}
				?>
            </ul>
        </div>
        <div class="sp">
        	<h2 class="sptit"><a href="news.php" class="titels">视频中心</a></h2>
            <div class="sppic"><a href="news.php"><img src="images/sp-pic.gif" /></a></div>
        </div>
        <div class="schd">
        	<h2 class="schd-tit"><a href="news.php" class="titels">市场活动</a></h2>
            <ul class="list list1">
                <?
					$sql="select * from news where newsid='3' limit 0,6";
					$result=mysql_query($sql);
					while($rows = mysql_fetch_array($result))
					{
				?>
            	<li><a href="newswd.php?id=<?=$rows["id"]?>"><?=$rows["title"]?></a><span><a href="newswd.php?id=<?=$rows["id"]?>"><?=$rows["time"]?></a></span></li>
                <?
					}
				?>
            </ul>
        </div>
        <div class="zh">
        	<a href="#"><img src="images/zsjm.gif" /></a>
            <a href="shfw.php"><img src="images/yxwl.gif" /></a>
            <a href="lxwm.php"><img src="images/khfw.gif" /></a>
        </div>
    </div>
</div>
<div id="footer">
	<div class="flogo"></div>
    <div class="fword">
    Copyright ? 2009-2011,www.nalijiaju.cn,All rights reserved<br />
    版权所有 ? 北京博远创华装饰有限公司 未经许可 严禁复制 建议使用1024X768分辨率浏览本站
    </div>
</div>
<div class="clear"><img src="images/s.gif" /></div>
</body>
</html>
