//affichage du menu dynamique

function initIt()
{

//navigateur 5 et 6 (IE NN mozilla)
if (isDOM)
{

if (!capable)
    return;

var tempColl = document.getElementsByTagName('DIV');
var tempCollCnt = tempColl.length;

for (var i = 0; i < tempCollCnt; i++)
 {
  if (tempColl[i].className == 'parent')
   {
   tempColl[i].style.display = 'block';
   }

  else if (tempColl[i].className == 'child')
   {
   tempColl[i].style.display = 'none';
   }
  }

}
//fin navig 5 et 6

//navigateur IE4
else if (isIE4)
{


tempColl = document.all.tags('DIV');
var tempCollCnt = tempColl.length;

for (var i = 0; i < tempCollCnt; i++)
 {
 if (tempColl(i).className == 'parent')
  {
  tempColl(i).style.display = 'block';
  }
 else if (tempColl(i).className == 'child')
  {
  tempColl(i).style.display = 'none';
  }
 }
} // fin navig IE4



}

function expandBase(el, unexpand)
{
if (!capable)
    return;


//navigateur 5 et 6 (IE NN mozilla)
if (isDOM)
{
var whichEl = document.getElementById(el + 'Child');

if (whichEl.style.display == 'none')
 {
  whichEl.style.display  = 'block';
 }
else
 {
  whichEl.style.display  = 'none';
 }

}
//fin navig

//navigateur IE4
else if (isIE4)
{
var whichEl = document.all(el + 'Child');

if (whichEl.style.display == 'none')
 {
 whichEl.style.display  = 'block';
 }
 else if (whichEl.style.display == 'block')
 {
 whichEl.style.display  = 'none';
 }
} // fin navigateur IE4



}

if (capable) {
  with (document) {
    // Brian Birtles : This is not the ideal method of doing this
    // but under the 7th June '00 Mozilla build (and many before
    // it) Mozilla did not treat text between <style> tags as
    // style information unless it was written with the one call
    // to write().
    if (isDOM) {
      var lstyle = '<style type="text/css">'

                 + '.parent {font-family: ' + fontFamily + '; color: #000000; display: block}'
                 + '.child {font-family: ' + fontFamily + '; font-size: 10px; color: #000000; display: none}'

                 + '<\/style>';
      write(lstyle);
    }
    else {
      write('<style type="text/css">');

      if (isIE4) {
        write('.parent {font-family: ' + fontFamily + '; color: #000000; display: block}');
        write('.child {font-family: ' + fontFamily + '; font-size: 10px; color: #000000; display: none}');
     }
      write('<\/style>');
    }
  }
}
else {
  with (document) {
    write('<style type="text/css">');

    write('.parent {font-family: ' + fontFamily + '; color: #000000;}');
    write('.child {font-family: ' + fontFamily + '; font-size: 10px; color: #000000;}');

    write('<\/style>');
  }
}
