<? include template("top"); ?>
<link href="<?=PATH_WEB_CSS?>/index.css" rel="stylesheet" type="text/css">

<div id="Live_main_I">
  <div id="index_left">
    <div id="index_focus">
    <div id="ff" style="background: rgb(255, 255, 255) none repeat scroll 0% 0%; width: 715px; height: 290px; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; float: left; display: none;">
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody><tr>
    <td align="center" height="130" valign="bottom"><img src="<?=PATH_WEB_IMAGES?>/ld.gif"></td>
  </tr>
  <tr>
    <td style="line-height: 45px; font-size: 16px;" align="center" valign="top">正在加载图片...</td>
  </tr>
</tbody></table>

    </div>
    <div id="focus_frame" style="">
  <div id="butt_RL"><img src="<?=PATH_WEB_IMAGES?>/L_buttom.gif" style="float: left;" onclick="play_L()"><img src="<?=PATH_WEB_IMAGES?>/R_buttom.gif" style="float: right;" onclick="play_R()"></div>
  <div style="margin-top: 230px;" class="focusTxt" id="focusText">
    <h3><a href="<?=$sys["gg_index_flash1_url"]?>" target="_blank"><?=$sys["gg_index_flash1_alt"]?></a></h3>
    <a href="#" id="pngA" target="_blank" style="cursor: pointer;"><img src="<?=PATH_WEB_IMAGES?>/star.png" style="border: medium none ; margin: 14px 19px 0pt 0pt; float: right;"></a>
    <h5></h5>
  </div>
  <div class="focusImg" id="photo"><a href="#" target="_blank" style="cursor: pointer;"><img style="background: rgb(0, 0, 0) none repeat scroll 0% 0%; opacity: 1; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;" id="loadImg" src="<?showPics($sys['gg_index_flash1'])?>" border="0"></a></div>
</div>
    </div>
<script type="text/javascript">
var img_Arr = new Array(
<?for($fi=1;$fi<=5;$fi++){
$flash_="gg_index_flash".$fi;
if($sys[$flash_]){
?>
new Array("<?=showPics($sys[$flash_])?>","<?=$sys[$flash_.'_alt']?>",'','<?=$sys[$flash_.'_url']?>'),
<?}}?>
new Array()
);
</script>
<script type="text/javascript" src="<?=PATH_WEB_JS?>/focus_jsnew.js"></script>
<script type="text/javascript" src="<?=PATH_WEB_JS?>/maos_Js_Wanzff.js"></script>
    <div class="pub_InLeft">
      <div class="head">
        <h3>最受欢迎的视频</h3>
      </div>
      <div class="list_f5">
        <ul>
        <!-- huanying foreach list 10-->
        <? foreach($list_hot AS $kn => $vn){?>
           <li><div class="img_d"><a href="<?=get_dir_url($vn['id'])?>" class="playpic" target="_blank"><img src="<?=showPics($vn['pic'])?>" title="<?=$vn['title']?>" alt="<?=$vn['title']?>" border="0"><em></em></a></div><div class="txt"><span><a href="<?=get_dir_url($vn['id'])?>" class="blue" target="_blank" title="<?=$vn['title']?>"><?=cut_str($vn['title'],10)?></a></span><span class="gry_Clo">播放<?=$vn['counts']?>次</span></div></li> 
        <? if($kn>10) break;}?>
        <!-- end huanying foreach list-->
        </ul>
      </div>
    </div>
<!-- main gg 1--><div class="pub_InLeft" style="border: medium none ; width: 710px;"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggtui"></script></div>

<!-- 分类　循环-->
<?$jun=ceil(count($list_l_flag)/2); foreach($list_l_flag AS $kf => $vf){	?>
    <div class="pub_InLeft">
      <div class="head">
        <h3><?=$titl_l_flag[$kf]?></h3>
        <h5><a title="<?=$titl_l_flag[$kf]?>更多" href="<?=$url_l_flag[$kf]?>" class="blue" target="_blank">更多&gt;&gt;</a></h5>
      </div>
      <div class="mov_left">
        <div class="mov_img"><a href="<?=get_dir_url($vf[0]['id'])?>" target="_blank"><img src="<?=showPics($vf[0]["pic"])?>" title="<?=$vf[0]["title"]?>" alt="<?=$vf[0]["title"]?>" border="0"></a></div>
        <div class="Introduction">
          <h3><a href="<?=get_dir_url($vf[0]['id'])?>" target="_blank" class="blank1" title="<?=$vf[0]["title"]?>"><?=cut_str($vf[0]["title"],10)?></a></h3>
          <?if($vf[0]["director"]){?>
          <dl>
            <dt>导演:</dt><dd><?=de($vf[0]["director"])?></dd>
          </dl>
          <?}?>
          <?if($vf[0]["another"]){?>
          <dl>
            <dt>主演:</dt><dd><?=de($vf[0]["another"])?></dd>
          </dl>
          <?}?>
          <dl>
            <dt>上映:</dt><dd><?=$vf[0]["year"]?></dd>
          </dl>
          <input name="" src="<?=PATH_WEB_IMAGES?>/mas.gif" onclick="javascript:window.open('<?=get_dir_url($vf[0]['id'])?>');" type="image">
        </div>
        <div class="Intr_text">
          <p>简介：<?=cut_str(strip_tags(de($vf[0]["introduction"])),60)?><a title="<?=$vf[0]["title"]?>详细" href="<?=get_dir_url($vf[0]['id'])?>" target="_blank" class="blue">详细&gt;&gt;</a></p>
        </div>
        <div class="Intr_list">
          <div class="int_text">
            <ul>
              <li><!-- 6 -->类型分类：
              <?foreach($sec_type[$kf] as $kzs =>$vzs){?>
              <a href='<?=rewrite_list_rule($pin_fid[$kf],"type",$kzs)?>' class="blue" target="_blank" title="<?=$vzs?>"><?=cut_str($vzs,3,0,'',false)?></a> | 
			  <?}?>
			  </li>
              <li><!-- 6 -->国家地区：
              <?foreach($arr_zone as $kzz =>$vzz){?>
              <a href='<?=rewrite_list_rule($pin_fid[$kf],"zone",$vzz["id"])?>' class="blue" target="_blank" title="<?=$vzz["name"]?>"><?=cut_str($vzz["name"],2,0,'',false)?></a> | 
              <?}?>
              </li>
            </ul>
          </div>
        </div>
      </div>
      <div class="mov_right">
        <ul>
        <!-- 栏目 推荐图片 6 -->
        <?foreach($vf AS $ks => $vs){if($ks!=0 && $ks<=6){?>
          <li><div class="img_d"><a href="<?=get_dir_url($vs['id'])?>" class="playpic" target="_blank"><img src="<?=showPics($vs["pic"])?>" alt="<?=$vs["title"]?>" title="<?=$vs["title"]?>" border="0"><em></em></a></div>
          <div class="pub_txt"><span><div class="page_title"><a href="<?=get_dir_url($vs['id'])?>" target="_blank" class="blue" title="<?=$vs["title"]?>"><?=cut_str($vs["title"],10)?></a></div>
          <div class="page_text"><a href="<?=get_dir_url($vs['id'])?>" target="_blank" title="详细介绍"><img src="index/txt.gif" style="width: 11px; height: 18px;" border="0"></a></div></span><span title="<?=$vs["title"]?>">播放<?=$vs["counts"]?>次</span></div></li>
        <?}}?>
        </ul>
      </div>
      <div class="pub_scr">
       <!-- 栏目 推荐文字 6 -->
       <?foreach($vf AS $ks => $vs){if($ks>6 && $ks<=12){?>
      <a title="<?=$vs["title"]?>" href="<?=get_dir_url($vs['id'])?>" target="_blank" class="blue"><?=cut_str($vs["title"],6)?></a>　
    	<?}}?>
    	</div>
    </div>
<?if($kf==$jun){?><!-- main gg 2--><div class="pub_InLeft" style="border: medium none ; width: 710px;"><script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggmain"></script></div><?}?>
<?}?>
<!-- end 分类　循环-->


    
    
  </div>
  <div id="tv_hot" style="float: right; margin-top: 15px;">
      <div class="tv_pub_Div mar_T13">
      <div class="pub_head" style="border-style: solid; border-color: rgb(255, 255, 255) rgb(255, 255, 255) rgb(230, 229, 229); border-width: 1px; background: rgb(239, 238, 238) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; text-align: center; font-size: 12px; color: rgb(184, 184, 184); width: 246px;">公告板
      </div>
      <div class="img_ltxt"><!-- gong gao -->
        <p style="padding-top: 8px; color: rgb(184, 184, 184);">　　<?=de($gonggao)?></p>
      </div>
    </div>
      <div class="mar_T13" style="width: 248px; float: left; text-align:center; margin-top:15px;border:1px solid #e2e2e2; padding:5px 0 5px 0;">
   <!-- right gg 1 --> <script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexleft"></script>
    </div>
 
    
    <div class="tv_pub_Div mar_T13">
      
      <div class="pub_head"><h5>热门专题</h5>
      </div>
      <div class="zx_list">
      <ul>
      <!-- 热门专题 list 文字-->
      <?$jun_top=ceil(count($topic_list)/2);foreach($topic_list as $ktop => $vtop){if($ktop>=$jun_top){break;}?>
<li>·<a title="<?=$vtop["title"]?>" class="blank1" href="<?=TOPIC_PATH."/".$vtop["id"]."/"?>" target="_blank"><?=cut_str($vtop["title"],15)?></a></li>
	<?}?>

      </ul>
      </div>
      <div class="zx_ilist">
        <ul>
        <!-- 热门专题 list 图片-->
         <?foreach($topic_list as $ktop => $vtop){ if($ktop>=$jun_top){ ?>
         <li><div class="img_zx"><a href="<?=TOPIC_PATH."/".$vtop["id"]."/"?>" target="_blank"><img src="<?=showPics($vtop["pic"])?>" alt="<?=$vtop["title"]?>" title="<?=$vtop["title"]?>" border="0"></a></div><div class="txt_zx"><a title="<?=$vtop["title"]?>" href="<?=TOPIC_PATH."/".$vtop["id"]."/"?>" class="blue" style="font-size: 14px;" target="_blank"><?=cut_str($vtop["title"],10)?></a></div></li>
		<?}}?>


        </ul>
      </div>
    </div>
        <div class="tv_pub_Div mar_T13">
        <div class="head_Div">
          <h4>排行榜</h4>
          <ul id="day">
          <? foreach($list_l_counts AS $kf => $vf){	?>
            <li class="head_sty<?=$kf?>" onmouseover="show_day(<?=$kf-1?>)" ><?=cut_str($titl_l_flag[$kf],2,0,'',false)?></li>
           <?if($kf>=3) break;}?>
          </ul>
        </div>
        <div id="tv_scroll">
      <? foreach($list_l_counts AS $kf => $vf){	?>
      <div class="History" id="sctf<?=$kf-1?>" style="margin-left: 0px;<?if($kf!=1) echo 'display: none;';?>">
        <ul>
        <!-- 1 list 15-->
        <?foreach($vf as $kk => $vv){?>
         <li><h3><img src="<?=PATH_WEB_IMAGES?>/num<?=$kk+1?>.gif" align="absmiddle"><a title="<?=$vv["title"]?>" href="<?=get_dir_url($vv['id'])?>" class="blue" target="_blank"><?=cut_str($vv["title"],15)?></a></h3><h5><?=$vv['counts']?>次</h5></li>
        <?}?>
        </ul>
      </div>
      <?if($kf>=3) break;}?>
      
        </div>
      </div>
      
      <div class="mar_T13" style="width: 248px; float: left; text-align:center;border:1px solid #e2e2e2; padding:5px 0 5px 0;">
   <!-- right gg 2 --> <script language="javascript" src="<?=INCLUDE_PATH?>/ad.php?act=showggindexright"></script>
    </div>
    
    
          <div class="tv_pub_Div mar_T13">
        <div class="head_Div">
          <h4>热门hot</h4>
        </div>
        <div id="tv_scroll">
          <div class="History" id="sctf0" style="margin-left: 0px;">
        <ul>
        <!-- 1 list 15-->
        <? foreach($list_hot AS $kn => $vn){?>
         <li><h3><img src="<?=PATH_WEB_IMAGES?>/num<?=$kn+1?>.gif" align="absmiddle"><a title="<?=$vn["title"]?>" href="<?=get_dir_url($vn['id'])?>" class="blue" target="_blank"><?=cut_str($vn["title"],15)?></a></h3><h5><?=$vn['counts']?>次</h5></li>
        <?}?>
        </ul>
      </div>
     
        </div>
      </div>
      
      <div class="tv_pub_Div mar_T13">
        <div class="head_Div">
          <h4>最近更新</h4>
        </div>
        <div id="tv_scroll">
          <div class="History" id="sctf0" style="margin-left: 0px;">
        <ul>
        <!-- 1 list 15-->
        <? foreach($list_new AS $kn => $vn){?>
         <li><h3><img src="<?=PATH_WEB_IMAGES?>/num<?=$kn+1?>.gif" align="absmiddle"><a title="<?=$vn["title"]?>" href="<?=get_dir_url($vn['id'])?>" class="blue" target="_blank"><?=cut_str($vn["title"],15)?></a></h3><h5><?=$vn['counts']?>次</h5></li>
        <?}?>
        </ul>
      </div>
     
        </div>
      </div>
    
    
    <div class="tv_pub_Div mar_T13">
        <div class="head_Div">
          <h4>非常印象</h4>
          <ul id="day2">
          <? foreach($yy_counts AS $kf => $vf){	?>
            <li class="head_sty<?=$kf?>" onmouseover="show_day2(<?=$kf-1?>)"><?=$yy_title[$kf]?></li>
           <?if($kf>=3) break;}?>
          </ul>
        </div>
        <div id="tv_scroll">
      <? foreach($yy_counts AS $kf => $vf){	?>
      <div class="History" id="sctf2<?=$kf-1?>" style="margin-left: 0px; <?if($kf!=1) echo 'display: none;';?>">
        <ul>
        <?foreach($vf as $kk => $vv){?>
         <li><h3><img src="<?=PATH_WEB_IMAGES?>/num<?=$kk+1?>.gif" align="absmiddle"><a title="<?=$vv["title"]?>" href="<?=get_dir_url($vv['id'])?>" class="blue" target="_blank"><?=cut_str($vv["title"],15)?></a></h3><h5><?=$vv['counts']?>次</h5></li>
        <?}?>
        </ul>
      </div>
      <?if($kf>=3) break;}?>
     
        </div>
      </div>
    
    
      </div>
</div>

<div id="ss_link">
<b>友情链接：</b>
<? foreach($list_link AS $k => $v){?>
<a class="blue" href="<?=$v["url"]?>" target="_blank"><?=$v["name"]?></a>&nbsp;
<?}?>
</div>

<? include template("bot"); ?>
