function changepic(id,total){
	
	for (var i = 1; i <= total; i++){
		picname = "flash";
		if (i == id){
			picname += i;
			picname += i;
			picname += ".gif";
			document.getElementById("bt" + i).src = picpath + picname;
		}else{
			picname += i;
			picname += ".gif";
			document.getElementById("bt" + i).src = picpath + picname;
		}
	}

	document.getElementById("guidepic").innerHTML = '<a href="' + news[id-1][1] + '" target="_blank"><img src="' + news[id-1][0] + '" width="305" height="193" border="0" /></a>';
	document.getElementById("guidetext").innerHTML = '<a href="' + news[id-1][1] + '" target="_blank" class="aoyun_black14">' + news[id-1][2] + '</a>';
}

function changeslide(){
	if (thispicid > news.length) {thispicid = 1;}
	changepic(thispicid,news.length);
	thispicid++;
}
 
