
/* slide */
var currslid = 0;
var slidint;
var IE = navigator.userAgent.indexOf("MSIE")>0? 1: 0; 
var carousel_length = 4;//图片个数
var carousel_index = 0;//记录轮播的缩影
var carousel_time = 20;//轮播间隔秒数
function setfoc(id){
//document.getElementById("focpic").src = picarry[id];
//document.getElementById("foclnk").href = lnkarry[id];
document.getElementById("focpic").setAttribute("src",picarry[id]); 
document.getElementById("foclnk").setAttribute("href",lnkarry[id]); 
document.getElementById("fttltxt").innerHTML = "<a href=\""+lnkarry[id]+"\" target=_blank>"+ttlarry[id]+"</a>";
currslid = id;
for(i=0;i<4;i++)
{
	document.getElementById("tmb"+i).setAttribute("class", "thubpic");
	document.getElementById("tmb"+i).className = "thubpic";
};
document.getElementById("tmb"+id).setAttribute("class", "thubpiccur");
document.getElementById("tmb"+id).className ="thubpiccur";
carousel_index = id;
}
function playnext(){
	if(currslid==3){
		currslid = 0;
	}else{
		currslid++;
	};
	setfoc(currslid);
};
function playit(){
	//slidint = setInterval(playnext,3500);
};
function stopit(){
	clearInterval(slidint);
};
function carouselImgs(){
	setfoc(carousel_index%carousel_length);
	carousel_index++;
	if(carousel_index >= carousel_length){
		carousel_index = 0;
	}
};
//setInterval("carouselImgs()",1000 * carousel_time);






















