/******************************************************************************
 * Author: Florian Giesen
 * Date: 2007/10/04
 * Copyright: IM-Concepts, www.im-concepts.de
 * Contact: florian.giesen@im-concepts.de
 * License: Unauthorised copying or modifications of this software are prohibited. It is
 * intellectual property of IM-Concepts Weinheim/Germany. For further informations see 
 * our website www.im-concepts.de and our general terms and conditions (AGB).
 ******************************************************************************/
 
function toggle(object)
{
  var node = object.nextSibling;
  while (node != null)
  {
    if (node.nodeType == 1)
    {
      var styleObj = node.style;
      var actStyle;
      if (document.all)
        actStyle = node.currentStyle;
      else
        actStyle = document.defaultView.getComputedStyle(node,"");
      if (actStyle.display == "none")
        styleObj.display = "block";
      else
        styleObj.display = "none";          
    }    
    node = node.nextSibling;
  }
  if (object.nodeName=="A")
  {
    if(object.href == document.URL || object.href == document.URL+"#")
      return false;
    else
      return true;
  }
}


function enumLists(startNode)
{
  var node = startNode.firstChild;
  while (node != null)
  {
    if (node.nodeName=="A")
    {
      if (document.all)
        node.onclick = function () {return toggle(this);};
      else
        node.setAttribute("onclick", "return toggle(this);");
    }
 
    if (node.nodeName=="UL" || node.nodeName=="OL" || node.nodeName=="LI")
      enumLists(node);
      
    node = node.nextSibling;
  }
}

function NaviInit()
{
  var node = document.getElementById("listNavi");
  enumLists(node);
}


