Hola:
Si usas php tal vez sea mejor inicializar con php... sobre el código del amigo
zerokilled, parece que debería ser:
onload = function(){
afficherOnglets(5,
"ong" + location.search.split("=")[
1]);
}
Y sobre tu código, hay redundancias... puedes usar:
Código:
mon_element.className = "cursorPointer current";
en vez de:
Código:
mon_element.setAttribute("class","cursorPointer current");
mon_element.setAttribute("className","cursorPointer current");
Y por supuesto hacer el mismo cambio en el else.
Saludos