<? require_once('inc/config.db.php'); ?>
<?
$sql = "select * from gass where type='1'";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
?>
<!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>家具装饰</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="cont">
		<div class="contitbg">
        	<h2 class="contit"><a href="out.php">公司简介</a></h2>
            <span class="biany">当前位置：<a href="index.php">首页</a>-<a href="out.php">公司简介</a></span>
        </div>
        <div class="out-con"><?=$row["content"]?></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>
