
var waitTime_3="5000";
setInterval(pic_autoslide, waitTime_3);

//焦点图切换函数
function pic_autoslide(){
	var next_index = 1;
	for(var i=1;i<=5;i++){
		if(document.getElementById('div_index6_'+i).className == 'current'){
			if(5 != i){
				var next_index = i+1; 
			}else{
				var next_index = 1;
			}
			break;
		}
	}
	showhottab('index6',next_index,5);
}
function over_in_pictab(){
	clearInterval(autoPic);
}
function over_out_pictab(){
	autoPic = setInterval(pic_autoslide, waitTime_3);
}



function over_in_pictab(){
	clearInterval(autoPic);
}
function over_out_pictab(){
	autoPic = setInterval(pic_autoslide, waitTime_3);
}

function showhottab(m,n,count)
{
	var class2  = "current";
	for(var i=1;i<=count;i++){
		if(i==n){
			document.getElementById('tab_'+m+'_'+i).style.display = 'block'; 
			document.getElementById('div_'+m+'_'+i).className = class2;
		}else{
			document.getElementById('tab_'+m+'_'+i).style.display = 'none'; 
			document.getElementById('div_'+m+'_'+i).className = '';
		}
	}
}


if(document.getElementById('tab_index6_1')){
var waitTime_3 = 3000;
var autoPic = setInterval("pic_autoslide()", waitTime_3);
}



//df
var intervalId = null; 
function slideAd(id,nStayTime,sState,nMaxHth,nMinHth){ 
   this.stayTime=nStayTime*1000 || 3000; 
   this.maxHeigth=nMaxHth || 90; 
   this.minHeigth=nMinHth || 1; 
   this.state=sState || "down" ; 
   var obj = document.getElementById(id); 
   if(intervalId != null)window.clearInterval(intervalId); 


   function openBox(){ 
    var h = obj.offsetHeight; 
    obj.style.height = ((this.state == "down") ? (h + 2) : (h - 2))+"px"; 
     if(obj.offsetHeight>this.maxHeigth){ 
     window.clearInterval(intervalId); 
     intervalId=window.setInterval(closeBox,this.stayTime); 
     } 
     if (obj.offsetHeight<this.minHeigth){ 
     window.clearInterval(intervalId); 
     obj.style.display="none"; 
     } 
   } 

   function closeBox(){ 
    slideAd(id,this.stayTime,"up",nMaxHth,nMinHth); 
   } 

   intervalId = window.setInterval(openBox,10); 
} 

/*
window.onload=function(){
slideAd('MyMoveAd',4,"down",190); 
}
*/