
// TOUS DROITS RESERVES - ABIOTIK 2009





var memo=2; var timeoutSurvol;

function initFlash(){
	if(document.getElementById('blocPubSurvol'))
		affichSurvol(1); temps();
}


function afficheVF(numVF){
	for(a=1; a<=5; a++)	supSurvol(a);	
	affichSurvol(numVF);									
	clearTimeout(timeoutSurvol);
}



// Fonctions tourne calque
//--------------------------
function tourneVF(numVF){
	for(a=1; a<=5; a++)supSurvol(a);
	affichSurvol(numVF);
	memo++;

	if (memo==6)memo=1;
	clearTimeout(timeoutSurvol);
	temps();
}

function supSurvol(a){
		with (document.getElementById("vf" + a).style)display="none";			
		with (document.getElementById("celNum" + a).style)backgroundColor="#DDDDDD"	
		with (document.getElementById("celTxt" + a).style)backgroundColor="#DDDDDD"
}
function affichSurvol(numVF){
	with (document.getElementById("vf" + numVF).style)display="block";
	with (document.getElementById("celNum" + numVF).style)backgroundColor="#C0489F"		
	with (document.getElementById("celTxt" + numVF).style)backgroundColor="#FFFFFF"
}

// Fonctions gestion temps
//--------------------------
function temps(){
	timeoutSurvol = setTimeout('tourneVF(memo)',3500);
}

