function nav( elemId ) 
{
	if ( document.getElementById( elemId )) 
	{ // nur für IE, MacIE, Opera

		var navroot = document.getElementById( elemId );
		var lis = navroot.getElementsByTagName("LI"); 

		for ( i = 0; i < lis.length; i++ ) 
		{ 
			for ( j = 0; j < lis[i].getElementsByTagName("UL").length; j++ )
			{
				lis[i].onmouseover = function() 
				{
					if ( this.getElementsByTagName("UL")[j].id != 'show' )	
					{
						this.getElementsByTagName("UL")[j].style.visibility = 'visible';
						this.getElementsByTagName("UL")[j].className = 'active'; 
					}
				} // ENDE for ()

				lis[i].onmouseout = function() 
				{ 
					if ( this.getElementsByTagName("UL")[j].id != 'show' )	
					{
						this.getElementsByTagName("UL")[j].style.visibility = 'hidden'; 
					}
				}							 
			} // ENDE for ()
		} // ENDE if ()
		
		
      for (i=0; i<lis.length; i++) 
		{ // loop LIs 
      	for (j=0; j<lis[i].getElementsByTagName("UL").length; j++)
			{ // Loop  in LIs
      		lis[i].getElementsByTagName("UL")[j].onmouseover = function()
				{
            	this.parentNode.getElementsByTagName("A")[0].className ="show";
				} 
          	lis[i].getElementsByTagName("UL")[j].onmouseout = function()
				{
            	if (this.parentNode.getElementsByTagName("A")[0].id != "active")
					{
						//if ( this.id != 'show' )
					//	{
							this.parentNode.getElementsByTagName("A")[0].className ="";
					//	}
					}
				} 
        	} // ENDE loop in LIs
      }// ENDE loop  LI  		
		
	} // ENDE IE only  
} // ENDE function  

function init(){
	nav("nav");
}

  // Popup-Basisfunktion
  function popup(url,optionen, popupName){
  // falls " newWin" als Popupname übergeben wird über eindeutigen
  // Fenster-(=target) und Javascript-Window-Objekt-Namen
  // immer neues Fenster erzwingen:
    if (popupName == "newWin") popupName =  popupName+Math.round( Math.pow( Math.random(), -10) );
    popupName = window.open(url,popupName,optionen);
    if (popupName)
    {
      if (popupName.focus)
      {
        popupName.focus();
      }
    }
    return false;
  }

  // Hier Popups definieren, EIgenschaften zuweisen (auch inline möglich)
  function kleinPopup(url, name) {
    popup(url, 'width=255,height=350,toolbar=0,menubar=0,resizable=1,scrollbars=no', name );
    return false;
  }
  function mittelPopup(url, name) {
    popup(url, 'width=380,height=490,toolbar=0,menubar=0,resizable=1,scrollbars=yes', name );
    return false;
  }
  function grossPopup(url, name) {
    popup(url, 'width=680,height=550,toolbar=0,menubar=0,resizable=1,scrollbars=no', name );
    return false;
  }
  //-->
 

