﻿function ShowDiv(tag,info,tag_on,tag_off,info_on,info_off,c,s,f) {
    for(i=f; i <s; i++) {
      if (i==c) {
        document.getElementById(tag+i).className=tag_on;document.getElementById(info+i).className=info_on;}
      else {
        document.getElementById(tag+i).className=tag_off;document.getElementById(info+i).className=info_off;}
      }
}
function GetHot() {
      var scrollPic_02 = new ScrollPic();
	  scrollPic_02.scrollContId   = "index_hot"; //内容容器ID
	  scrollPic_02.arrLeftId      = "left_hot";//左箭头ID
	  scrollPic_02.arrRightId     = "right_hot"; //右箭头ID
	  scrollPic_02.frameWidth     = 432;//显示框宽度
	  scrollPic_02.pageWidth      = 432; //翻页宽度
	  scrollPic_02.speed          = 10; //移动速度(单位毫秒，越小越快)
	  scrollPic_02.space          = 10; //每次移动像素(单位px，越大越快)
	  scrollPic_02.autoPlay       = false; //自动播放
	  scrollPic_02.autoPlayTime   = 3; //自动播放间隔时间(秒)
	  scrollPic_02.initialize(); //初始化
	  GetTopic();	
 }
 function GetTopic() {
     d_scroll.innerHTML += d_scroll.innerHTML;
     window.setTimeout( "d_run()", 2000 );
 }
 function d_run() {
     d_scroll.scrollTop += d_state;
     if ( d_scroll.scrollTop == d_sum * d_height )
     d_scroll.scrollTop = 0;
     if ( d_scroll.scrollTop % d_height == 0 ) {
     window.setTimeout( "d_run()", 2000 );
     } else {
     window.setTimeout( "d_run()", 50 );
     }
}