﻿/*Fonction de style de la fiche selon le volet des pages de programmation*/
function setStyleFiche(titleBackground, borderColor, ficheBottomBackground)
{
	if (!document.getElementById || !document.getElementsByTagName)
		return;
		
	var contenu = document.getElementById('zoneContenu');	
    var allDivs = contenu.getElementsByTagName('div');
	
    for(i=0; i < allDivs.length; i++)
    {
        var currentDiv =  allDivs[i];
        
        if (currentDiv.className == 'titreGrille')
        {
            currentDiv.style.backgroundColor = titleBackground;
        }
        
        if (currentDiv.className == 'zoneFiche' || currentDiv.className == 'grilleFicheElement')
        {
            currentDiv.style.borderColor = borderColor;
        }
        if(currentDiv.className == 'ficheBottom')
        {
            currentDiv.style.backgroundColor = ficheBottomBackground;            
        }        
    }
}

