/*头部LOGO右部份,登陆会员下面浮动显示隐藏DIV*/

/*首页JS函数*/
/*首页行业新闻与医院动态DIV显示与隐藏交换*/
function Indexshow (sh)
{ switch(sh)
  { case 1:
     document.getElementById("showhang").className="show";
	 document.getElementById("showyi").className="hide";
	 document.getElementById("showhangtitle").className="showhang_span";
	 document.getElementById("showyititle").className="hidehang_span";
     break;
	case 2:
     document.getElementById("showhang").className="hide";
	 document.getElementById("showyi").className="show";
	 document.getElementById("showhangtitle").className="hidehang_span";
	 document.getElementById("showyititle").className="showhang_span";
	 break;
   }
   
}

/*首页行业新闻与医院动态DIV显示与隐藏交换止*/

/*首页幻灯片起*/
/*首页幻灯片起*/
    function suiee(s){
        return document.getElementById(s);}
    var B=BigNews={
        current:0,
        next:0,
        scrollInterval:0,
        autoScroller:0
    };
    BigNews.turn=function(index){
        clearInterval(BigNews.autoScroller);
        BigNews.scroll(index);
    }
    BigNews.scroll=function(index){
        if(!suiee('iiiyx_hd_item')){
            clearInterval(BigNews.autoScroller);
            return;
        }
        var count=0;
        var step=253; /*过度的图片的高度*/
        var duration=16;/*移动速度*/
        var b=BigNews;
        b.next=index;
        if(index!=b.current&&count>duration/8){
            return;
        }
        clearInterval(b.scrollInterval);
        var items=suiee('iiiyx_hd_item').getElementsByTagName('dt');
        for(var i=0;i<4;i++){
            items[i].className='flashspic_dt1';
        }
        
        var span=index-b.current;
        var begin_value=suiee('iiiyx_hd_img').scrollTop;
        var chang_in_value=span*step+(b.current*step-begin_value);
        b.scrollInterval=setInterval(function(){doit(begin_value,chang_in_value)},10);
        function doit(b,c){
            suiee('iiiyx_hd_img').scrollTop=cpu(count,b,c,duration);
            count++;
            if(count==duration){
clearInterval(BigNews.scrollInterval);
scrollInterval=0;
count=0;
suiee('iiiyx_hd_img').scrollTop=b+c;
BigNews.current=index;
            }
        }
        function cpu(t,b,c,d) {return c*((t=t/d-1)*t*t+1)+b;};
    }
    BigNews.auto=function(){
        clearInterval(BigNews.autoScroller);
        BigNews.autoScroller=setInterval(function(){
            BigNews.scroll(BigNews.current==4?0:BigNews.current+1);
        },5000);
    }
    if(document.all) {
        window.attachEvent('onload',BigNews.auto);
    }
    else {
        window.addEventListener('load',BigNews.auto,false);
    }/*首页幻灯片止*/

/*方告图片下,分栏科室动态DIV显示与隐藏交换起*/
function Showkeshi(ke)
{ var title=document.getElementById("ketop").getElementsByTagName("div");
  var one=document.getElementById("ke1");
  var two=document.getElementById("ke2");
  var three=document.getElementById("ke3");
  var four=document.getElementById("ke4");
  var five=document.getElementById("ke5");
  var  six=document.getElementById("ke6");
  var  obj="ke"+ke;
      one.className="hide";
	  two.className="hide";
	three.className="hide";
	 four.className="hide";
	 five.className="hide";
	  six.className="hide";
	  
   for(var i=0; i<title.length; i++)
    { if(ke-1==i)
	   { title[i].className="f_m_t_small_show";
	     document.getElementById(obj).className="show";
	   }
	  else
	  {  title[i].className="f_m_t_small_hide";
	  
	  }
	}
}


/*方告图片下,分栏科室动态DIV显示与隐藏交换止*/
/*首页幻灯片*/	
/*首页幻灯片止*/

/*首页特色疗法起*/

	function Index_te(ao)
	{var h=document.getElementById("inte").getElementsByTagName("div");
		for(var i=0; i<h.length; i++)
		{
			if(ao-1==i)
			{
				h[i].className="show_tese_title";
			}else
			{
				h[i].className="hide_tese_title";
			}
		}
	}
/*首页特色疗法止*/

