function chArticle(ar_id) {
	clearTimeout(t);
	for (var i=0; i<Arids.length; i++) {
		document.getElementById('bigpic_' + Arids[i]).style.display = 'none';
	}
	document.getElementById('bigpic_' + ar_id).style.display = 'block';
	document.getElementById('bigpic_' + ar_id).style.zIndex = 0;
}



function chgMainNews() {
	for (var i=0; i<Arids.length; i++) {
		document.getElementById('bigpic_' + Arids[i]).style.display = 'none';
		if(act_index === Arids[i]){
			if(i == (Arids.length-1)){
				next_index = Arids[0];
			}
			else{
				next_index = Arids[i+1];
			}
		}
	}
	document.getElementById('bigpic_' + act_index).style.display = 'block';
	document.getElementById('bigpic_' + act_index).style.zIndex = 0;
	act_index = next_index;
	t = setTimeout("chgMainNews()", 4000);
}