function top_select(id, type, image){
   window.document.getElementById('top_' + type + '_'+id).className = "select";
   window.document.getElementById("top_acteur_image").src = image;
   for(i=1;i<=8;i++){
      if(i!=id){ window.document.getElementById('top_' + type + '_'+i).className = "none"; }
   }
}

/* A la une */
var timerID = 0;

function change_alaune(id){
	if(timerID){
		window.clearTimeout(timerID);
	}
	window.document.getElementById("alaune_"+id).style.display = "block";
	window.document.getElementById("menu_alaune_"+id).style.opacity = 1;
	window.document.getElementById("menu_alaune_"+id).style.filter = "alpha(opacity=100)";
	for (i=1;i<=4;i++) {
		if (i!=id) {
			window.document.getElementById("alaune_"+i).style.display = "none";
			window.document.getElementById("menu_alaune_"+i).style.opacity = 0.6;
			window.document.getElementById("menu_alaune_"+i).style.filter = "alpha(opacity=60)";
		}
	}
	
	id++;
	id = (id>4) ? 1 : id ;
	
	timerID = window.setTimeout("change_alaune("+id+")",5000);
}

/* Video */
function change_video(id){
	window.document.getElementById("video_"+id).style.display = "block";
	window.document.getElementById("menu_video_"+id).style.border = "4px solid #ddd";
	for (i=0; i<=2; i++) {
		if (i!=id) {
			window.document.getElementById("video_"+i).style.display = "none";
			window.document.getElementById("menu_video_"+i).style.border = "4px solid #C60808";
		}
	}
}

function close_videos(){
	for (i=0; i<=2; i++) {
			window.document.getElementById("video_"+i).style.display = "none";
			window.document.getElementById("menu_video_"+i).style.border = "4px solid #C60808";
	}
}
/*function alaune_auto(id){
	change_alaune(id);
	id++;
	id = id>4 ? 1 : id ;
	window.setTimeout("alaune_auto("+id+")",5000);
}*/
function init_alaune(){
	timerID = window.setTimeout("change_alaune(2)",5000);
}
window.onload=init_alaune;
