// javascript
var ongletagenda = 0;
var onglet ="agenda";
var titre = "titre-1";
var toutfil = "no";
function showonglet(ong) {
  if (onglet != ong) {
    document.getElementById("content-" + onglet).className="invisible";
    document.getElementById("sel-" + onglet).src="/images/home/onglet-non-sel.gif";
    
    document.getElementById("content-" + ong).className="visible";
    document.getElementById("sel-" + ong).src="/images/home/onglet-sel.gif";
    onglet = ong;
  }

}


function showongletagenda(ong) {
  //alert(ongletagenda + "\n" + ong);
  if (ongletagenda != ong) {
    document.getElementById("onglet-agenda-" + ongletagenda).className="invisible";
    document.getElementById("selector-agenda-" + ongletagenda).className="";
    
    document.getElementById("onglet-agenda-" + ong).className="text-agenda visible";
    document.getElementById("selector-agenda-" + ong).className="selector-agenda";
    ongletagenda = ong;
  }
  
}

function showtitre(tit) {
  if (titre != tit) {
      document.getElementById("photo-" + titre).className="la-photo invisible";
      document.getElementById("photo-" + tit).className="la-photo visible";

      if (tit!='titre-1') {
        document.getElementById(tit).className = "un-titre fond-un-titre-sel";
      }
      else
        document.getElementById(tit).className = "un-titre fond-un-titre-1-sel";

      if (titre!='titre-1') {
        document.getElementById(titre).className = "un-titre fond-un-titre";
      }
      else
        document.getElementById(titre).className = "un-titre fond-un-titre-1";
      
      
      titre = tit;
  }
}


function showtoutfil() {
  if (toutfil=="no") {
    document.getElementById("promos").className="invisible";
    document.getElementById("tout-le-fil").className="visible";
    document.getElementById("bt-tte-actu").src="/images/home/moins.gif";
    toutfil = "yes";
  } else {
    document.getElementById("promos").className="visible";
    document.getElementById("tout-le-fil").className="invisible";
    document.getElementById("bt-tte-actu").src="/images/home/detail.gif";
    toutfil = "no";
  }
  
    
}

