<!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> 
 

<style type="text/css">
<!--
.ajax_product {

}
.ajax_product h1{
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	font-weight: bold;
	padding: 0px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 5px;
	margin-left: 0px;
}
.ajax_product h2{
	font-family: "Times New Roman", Times, serif;
	font-size: 12px;
	padding: 0px;
	margin: 0px;
}
.ajax_product img {
	margin: 3px;
	padding: 1px;
	border: 1px solid #CCCCCC;
	vertical-align: top;

}

.ajax_product_info {
	padding: 5px;
	border: 1px solid #999999;
	font-size:13px;
	margin-top: 5px;
	margin-right: 0px;
	margin-bottom: 5px;
	margin-left: 0px;
}
-->
</style>
<base target="_blank" />
<script type='text/javascript'>
var SITE_PATH = "<?=SITE_PATH?>";
</script>

<script language="javascript" type="text/javascript" src="<?=SITE_PATH?>/skin/jq/jquery.js"></script>
<script language="javascript" type="text/javascript" src="<?=SITE_PATH?>/skin/jq/gallery/inc/mbGallery.js"></script>
<script language="javascript" type="text/javascript" src="<?=SITE_PATH?>/skin/jq/gallery/inc/jquery.exif.js"></script>


</head>

<body>
<div class="ajax_product">
  <h2>关键词：
    <?=$product_info['keywords']?>
  </h2>
  
  <?php if($pic_count){?>
  <div class="ajax_product_info">
    <a target="_parent" href="<?=SITE_PATH?>/?<?=$site_product_url?>/<?=$category?>/<?=$key?>.html"><?=str_sub(strip_tags($product_info['content']), 200, "...");?></a><br /><br />

	<a style="margin-top:30px; font-size:24px" target="_parent" href="<?=SITE_PATH?>/?<?=$site_product_url?>/<?=$category?>/<?=$key?>.html">点此查看详细信息 >></a>
  </div>
  <div>
  
  <?php $i=0;foreach($product_info['product_pic'] as $k => $v){if(empty($v))continue;$img_size=getimagesize("./{$v}");?>
  <a target="_self" href="#" onclick="$('#show_product').mbGallery({maskBgnd:'#ccc', overlayOpacity:.<?=$pic_count?>,startFrom: <?=($i++)?>});" style="cursor:hand"><img  src="<?=SITE_PATH?>/<?=$v?>" width="118" height="<?=ceil(118 * $img_size[1] / $img_size[0])?>" /></a>
  <?php }?>
  </div>
  
  <div  id="show_product" class="galleryCont" style="display:none">
  <?php foreach($product_info['product_pic'] as $k => $v){if(empty($v))continue;$img_size=getimagesize("./{$v}");?>
	  <a class="imgThumb" href="<?=SITE_PATH?>/<?=$v?>"></a>
	  <a class="imgFull" href="<?=SITE_PATH?>/<?=$v?>"></a>
	  <div class="imgDesc"><?=$product_info['name']?></div>
  <?php }?>
  </div>
  
  <?php }else{?>
  <div class="ajax_product_info" style="height:300px;overflow: auto; overflow-x:hidden; overflow-y:scroll;">
    <?=$product_info['content'];?>
  </div>
  <div>
  <a style="margin-top:30px; font-size:24px" target="_parent" href="<?=SITE_PATH?>/?<?=$site_product_url?>/<?=$category?>/<?=$key?>.html">点此查看详细信息 >></a>
  </div>
  <?php }?>
  
</div>
</body>
</html>