<?php /* Smarty version 2.6.20, created on 2011-03-21 03:45:29
         compiled from show.tpl */ ?>
<!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=utf-8" />
<script language="javascript" type="text/javascript" src="jquery-1.5.1.js"></script>
<link rel="stylesheet" type="text/css" href="style/index.css"></link>
<title><?php echo $this->_tpl_vars['title']; ?>
</title>
</head>
<body>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "head.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div class="clear"></div>
<div id="content">
<div id="n_left">
<ul>
<?php $_from = $this->_tpl_vars['bigclassname']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['class'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['class']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['bigclass']):
        $this->_foreach['class']['iteration']++;
?>
<li><a href="news.php?bigclassid=<?php echo $this->_tpl_vars['bigclass']['0']; ?>
"><?php echo $this->_tpl_vars['bigclass']['1']; ?>
</a></li>
<?php endforeach; endif; unset($_from); ?>
</ul>
</div><!--#n_left end-->
<div id="n_right">
<h3>文章详情</h3>
<div id="n_info">
<div style="text-align:center; font-size:14px;  color:#009; font-weight:bold; border-bottom:#CCC 1px dashed">标题:<?php echo $this->_tpl_vars['title']; ?>
</div>
<div id="a_info" >作者:<?php echo $this->_tpl_vars['editor']; ?>
 &nbsp;录入时间:&nbsp;<?php echo $this->_tpl_vars['time']; ?>
</div>
<div id="a_conent"><?php echo $this->_tpl_vars['content']; ?>
</div>
<div id="a_about">
<div style="font-size:12px;color:#666; font-weight:bold; border-bottom:#CCC 1px dashed;">相关内容</div>
<div id="scroll_div">
<div id="aboutimg">
<ul>

<?php $_from = $this->_tpl_vars['aboutlist']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['about'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['about']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['about_list']):
        $this->_foreach['about']['iteration']++;
?>

<li><a href="<?php echo $this->_tpl_vars['about_list']; ?>
" target="_blank"><img src="<?php echo $this->_tpl_vars['about_list']; ?>
" width="144" height="110" border="0"/></a></li>

<?php endforeach; endif; unset($_from); ?>

</ul>
</div><!--#aboutimg end-->
<div id="aboutimg2"></div>
</div><!--#scroll_div end-->
</div>
</div>
</div><!--#n_right end-->
<div class="clear"></div>
</div><!--#content end-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "foot.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script language="javascript">
speed=2;
var str=$("#aboutimg").html();
$("#aboutimg2").html(str)
function scroll()
{
	
	if($("#scroll_div").scrollLeft()-$("#aboutimg2").width()>=0)
	{
		//document.write($("#aboutimg2").outerWidth());
		begin=$("#scroll_div").scrollLeft()-$("#aboutimg2").width();
		
		$("#scroll_div").scrollLeft(begin);
		
		i=0;
		
	}
	else
	{
		$("#scroll_div").scrollLeft(i+=5);
	}
	
}

id=setInterval(scroll,speed)

$("#scroll_div").mouseover(function(){clearInterval(id);});
$("#scroll_div").mouseout(function(){id=setInterval(scroll,10);});
//document.write(left);

//$("#aboutimg").scrollLeft()=left+50;

</script>
</body>
</html>
