function showSub(e){
  e.className='menu_a';
  if(window.ActiveXObject)
    e.firstChild.style.display = 'block';
  else
    e.firstChild.nextSibling.style.display = 'block';
}

//-----------------------------------------------------------------

function hideSub(e){
  e.className='menu_n';
  if(window.ActiveXObject)  
    e.firstChild.style.display = 'none';
  else
    e.firstChild.nextSibling.style.display = 'none';
}

//-----------------------------------------------------------------

function showSubNoStyle(e){
  if(window.ActiveXObject)
    e.firstChild.style.display = 'block';
  else
    e.firstChild.nextSibling.style.display = 'block';
}

//-----------------------------------------------------------------

function hideSubNoStyle(e){
  if(window.ActiveXObject)  
    e.firstChild.style.display = 'none';
  else
    e.firstChild.nextSibling.style.display = 'none';
}

//-----------------------------------------------------------------

function aClick(e){
  if(window.ActiveXObject)  
    location.assign(e.firstChild.href);
  else 
    location.assign(e.firstChild.nextSibling.href);
}

//----------------------------------------------------------------

function subsub_change(e,what){
  var nodes = e.childNodes;
  var length = nodes.length;
  var pre = 'subsubmenu';
  if(what=='on')
    var post = Array('_left_a','_center_a','_right_a');  
  else 
    var post = Array('_left','_center','_right');  
  if(window.ActiveXObject) {
    for(var i=0;i<length;i++)
      nodes[i].className   = pre + post[i];

  } else {
    var divCount = 0;
    for(var i=0;i<length;i++){
      if(nodes[i].tagName != undefined && divCount<4){
        nodes[i].className = pre + post[divCount];
        divCount++;
      }

    }
  }
}

//-----------------------------------------------------------------

function aSubSubClick(e){
    location.assign(e.getElementsByTagName('a')[0].href);
}

//-----------------------------------------------------------------

function catalogue(e){
  if(window.ActiveXObject) {
    if(e.firstChild.style.display=='none')
      e.firstChild.style.display = 'block';
    else 
      e.firstChild.style.display = 'none';  
  } else {
    if(e.firstChild.nextSibling.style.display=='none')
      e.firstChild.nextSibling.style.display = 'block';
    else 
      e.firstChild.nextSibling.style.display = 'none';  
 
  }
}
