var CurrentHotScreen = 0 ;
function setMovieFlashs(screen,MaxScreen){
	var Vmotion = "forward" ;
	if (screen >= MaxScreen) {
		screen = 0 ;
		Vmotion = "reverse" ;
	}
	cleanallstyle(MaxScreen);
	document.getElementById("focus_"+screen).className = "up" ;

	if(null!=flash_goaler.filters){
		flash_goaler.filters[0].apply();
		flash_goaler.filters[0].motion = Vmotion;
	}
	for (i=0;i<MaxScreen;i++) {
		document.getElementById("switch_"+i).style.display = "none" ;
	}
	document.getElementById("switch_"+screen).style.display = "block" ;
	if(null!=flash_goaler.filters){
		flash_goaler.filters[0].play();
	}
	CurrentHotScreen = screen ;
}

function articleSlider(MaxScreen){
	articleSliderTimer = null;
	setMovieFlashs(CurrentHotScreen+1,MaxScreen);
	articleSliderTimer = setTimeout('articleSlider(MaxScreen);', 5000);
}

function cleanallstyle(MaxScreen) {
	for (i = 0; i < MaxScreen; i++) {
		document.getElementById("focus_"+i).className = "" ;
	}
}
function show_focus_image(index,MaxScreen) {
	clearTimeout(articleSliderTimer);
	setMovieFlashs(index,MaxScreen);
	articleSliderTimer = setTimeout('articleSlider(MaxScreen);', 5000);
}
