var _webMaster="bernd-ase_schneider@hp.com";
var _domains= new Array("gestuet-martinshof.de","sven-thumm.de");
var _htmlPath="./";
var	 _imgPath="./gifs/";
var _htmlStartPage="home";
/* var _navMenuItems = new Array("Home","-delimiter-","Reitanlage","Reitanlage:Innenboxen","Reitanlage:Aussenboxen","Reitanlage:Offenstall","Foto Galerie","-delimiter-","Fragen & Antworten","Feedback","-delimiter-","Webcam","e cards","Links","-delimiter-","Anfahrt","Kontakt"); */
/* var _navMenuItems = new Array("Home","-delimiter-","Reitanlage","Reitanlage:Innenboxen","Reitanlage:Aussenboxen","Reitanlage:Offenstall","Virtuelle Tour","Foto Galerie","-delimiter-","Fragen & Antworten","Feedback","-delimiter-","Webcam","e cards","Links","-delimiter-","Verkaufsb&ouml;rse","-delimiter-","Anfahrt","Kontakt"); */
var _navMenuItems = new Array("Home","-delimiter-","Reitanlage","Reitanlage:Innenboxen","Reitanlage:Aussenboxen","Reitanlage:Offenstall","Virtuelle Tour","Foto Galerie","Videos","-delimiter-","Fragen & Antworten","Feedback","-delimiter-","Webcam","e cards","Links","-delimiter-","Anfahrt","Kontakt");
var _horizontalNavItems = true;
var _footerNavItems=true;



/*-----------------------------------------------------------------*/
/*                       navBarFooter                              */
/*-----------------------------------------------------------------*/
/* Author : Bernd Schneider                                        */
/* Date   : 05.08.2002                                             */
/* History:                                                        */
/*                                                                 */
/* Input Parms: _navItem :    array of navigation items            */
/*                                                                 */
/* Description:                                                    */
/*       1) Get the name of the web-page that is currently         */
/*          displayed                                              */
/*       2) Go through all items of the navigation bar             */
/*       3) Check if the item of the navigation bar is a           */
/*          top menu item                                          */
/*       4) Create a table                                         */
/*       5) Add up to 5 top menu items per row and then close      */
/*          the table again to open another in in the next row     */
/*       6) Higlight the main navigation item if the page          */
/*          currently displayed is a child of it                   */
/*-----------------------------------------------------------------*/
function navBarFooter()
{

  _itemsPerLine=5
  var _counter=_itemsPerLine;
  var _navLink="";
  var _urlCurrentPage="";


  if ( _footerNavItems == true )  
  {
  	
    /* Extract name of the URL currently displayed */
    /* Extract filename without domain             */
    _urlCurrentPage=document.URL.toLowerCase();
    /* find the domain that is currently used      */
    for ( var _arrayIndex= 0; _arrayIndex < _domains.length; _arrayIndex++) 
    {
      if ( _urlCurrentPage.search(_domains[_arrayIndex] ) != -1 )
      {
        _activeDomain=_domains[_arrayIndex];
        break;
      }
    }
    /* Cut of the domain from the URL */
    _urlCurrentPage=_urlCurrentPage.substring(_urlCurrentPage.search(_activeDomain)+_activeDomain.length+1,_urlCurrentPage.length);
    
    /* cut off the suffix */
    _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.search(/\.htm/i));
    
    /* cut off the sub-pages of the main menu item */
    if ( _urlCurrentPage.indexOf("-") != -1 )
    {
      _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.indexOf("-"));
    }      
    if ( _urlCurrentPage.indexOf("_") != -1 )
    {
      _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.indexOf("_"));
    }  
    
      	
    /* Go through all navigation bar items */  	
    for (var _arrayIndex= 0; _arrayIndex< _navMenuItems.length; _arrayIndex++) 
    {
  	
      if ( _counter >= _itemsPerLine )
      {
        _counter=0;	
        document.writeln('<table align="center" border="0" cellpadding="0" cellspacing="0">');
        document.writeln('  <tr>'); 	
      }  
      /* Check if we are dealing with a top menu item. Discart delimiter items */
      if ( (_navMenuItems[_arrayIndex].indexOf(":") == -1) && !(_navMenuItems[_arrayIndex].match(/-delimiter-/g)) )
      {
    	
    	if ( _arrayIndex == 0 )
    	{
    	  _navLink=_htmlStartPage;
    	}
    	else
    	{
          /* Compose the respective URL for the current navigation item to investigate */
          _navLink=_navMenuItems[_arrayIndex].replace(/ /g,"");      
          _navLink=_navLink.replace(/:/g,"_");
          _navLink=_navLink.replace(/&/g,"und");                  
          _navLink=_navLink.replace(/;/g,"");      
          _navLink=_navLink.toLowerCase();  
        }  
        if ( _navLink == _urlCurrentPage ) 
        {  	
          document.writeln('<td class="navItemActive">[<a href="' + _navLink + '.htm"><font color="black"><b>' + _navMenuItems[_arrayIndex]  + '</b></font></a>]</td>');        	
        }
        else
        {  
          /* document.writeln('<td><a href="' + _navLink + '.htm"><font color="#FFE478"><b>[' + _navMenuItems[_arrayIndex]  + ']</b></font></a></td>'); */
          document.writeln('<td><a href="' + _navLink + '.htm"><font color="black"><b>[' + _navMenuItems[_arrayIndex]  + ']</b></font></a></td>');          
        }  
        _counter++;
      }
      /* Close the current table if we already have added enough items per row */
      if ( (_counter >= _itemsPerLine ) || (_arrayIndex==_navMenuItems.length-1) )
      {      
        document.writeln('  </tr>');
        document.writeln('</table>');
      }     
      else
      {
      	/* Add a space between the top menu items */
        if ( (_navMenuItems[_arrayIndex].indexOf(":") == -1) && !(_navMenuItems[_arrayIndex].match(/-delimiter-/g)) ) 
          document.writeln(' <td width=20>&nbsp;</td>');
      }
    }
  }  
  
}   /* navBarFooter */

/*-----------------------------------------------------------------*/
/*                       navBarHorizontal                          */
/*-----------------------------------------------------------------*/
/* Author : Bernd Schneider                                        */
/* Date   : 05.01.2002                                             */
/* History:                                                        */
/*                                                                 */
/* Input Parms: _navItem :    array of navigation items            */
/*                                                                 */
/* Description:                                                    */
/*       1) Get the name of the web-page that is currently         */
/*          displayed                                              */
/*       2) Go through all items of the navigation bar             */
/*       3) Compose the URL of each item.                          */
/*       4) Check if the URL of the item is part of the currenlty  */
/*          show URL. If it is so then it is on the path to reach  */
/*          the currently shown URL and must be printed on the     */
/*          horizontal navigation bar.                             */
/*-----------------------------------------------------------------*/
function navBarHorizontal()
{

  var _urlCurrentPage;
  var _activeDomain;
  var _navLink;
  var _navItem;
  var _matchString;
  var _subPage;
  var _subPageChar0;
  var _subPageArray;

  if ( _horizontalNavItems == false )
  {
  	document.writeln (' ');
  }
  else
  {
    /* Extract name of the URL currently displayed */
    /* Extract filename without domain             */
    _urlCurrentPage=document.URL.toLowerCase();
    /* find the domain that is currently used      */
    for ( var _arrayIndex= 0; _arrayIndex < _domains.length; _arrayIndex++) 
    {
      if ( _urlCurrentPage.search(_domains[_arrayIndex] ) != -1 )
      {
        _activeDomain=_domains[_arrayIndex];
        break;
      }
    }
    /* Cut of the domain from the URL */
    _urlCurrentPage=_urlCurrentPage.substring(_urlCurrentPage.search(_activeDomain)+_activeDomain.length+1,_urlCurrentPage.length);
    
    /* cut off the suffix */
    _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.search(/\.htm/i));




    /* prepare the table to list the entries */
    document.writeln('<table border=0 cellpadding=0 cellspacing=0>');
    document.writeln(' <tr>'); 
    for (var _arrayIndex = 0; _arrayIndex<_navMenuItems.length; _arrayIndex++)
    {
      /* Compose the respective URL for the current navigation item to investigate */
      _navLink=_navMenuItems[_arrayIndex].replace(/ /g,"");      
      _navLink=_navLink.replace(/:/g,"_");
      _navLink=_navLink.replace(/&/g,"und");                  
      _navLink=_navLink.replace(/;/g,"");      
      _navLink=_navLink.toLowerCase();  	
    
      /* Always print the Homepage */
      if ( _arrayIndex == 0 )
      {
  
        if ( _urlCurrentPage ==  _htmlStartPage )
        {
           _urlCurrentPage=_navMenuItems[0].toLowerCase();
        }    
        
        /* if the homepage matches with the url currently displayed then highlight the item */
        if ( _navLink == _urlCurrentPage )
        {
          document.writeln('<td class="navItemPassive"> <a href=' + _navLink + '.htm><font color="black"><b> ' + _navMenuItems[_arrayIndex] + '</b></font></a></td>');
        }
        else
        {
          document.writeln('<td class="navItemActive"> <a href=' + _navLink + '.htm><font color="black">' + _navMenuItems[_arrayIndex] + '</font></a></td>');            
        }      	      
      }
      else
      { 
  
        /* Check if the URL of the item to be displayed is part of the current URL    */
        /* If it is so then the item must be printed in the horizontal navigation bar */
        _matchString=_urlCurrentPage.match(_navLink);
        if ( _matchString  )
        {
          /* Extract the item to be displayed on the horizontal navigation bar */
          _navItem=_navMenuItems[_arrayIndex].substring(_navMenuItems[_arrayIndex].lastIndexOf(":")+1,_navMenuItems[_arrayIndex].length);            	
          
          /* If the item is the URL of the page currently displayed then highlight */
          if ( _matchString[0].length == _urlCurrentPage.length )
          {
            document.writeln('<td class="navItemActive">&nbsp;>&nbsp;</td>');
            document.writeln('<td class="navItemPassive"><a href=' + _navLink + '.htm><font color="black"><b>'+ _navItem + '</b></font></a></td>');      
          }
          else
          {
            document.writeln('<td class="navItemActive">&nbsp;>&nbsp;</td>');        	
            document.writeln('<td class="navItemActive"><a href=' + _navLink + '.htm><font color="black">'+ _navItem + '</font></a></td>');      
          }    
        }
      }
   
      if ( ( _matchString ) || ( _arrayIndex == 0 ) )
      {
      
          /* Check if the current URL contains subpages that are not part of the navigation menu */
          /* Sub-pages are separated with a "-" from the navigation items                        */
            if (   ( _urlCurrentPage.search(/-/i) != -1 ) 
            && ( _urlCurrentPage.substring(0,_urlCurrentPage.search(/-/i)) == _navLink ) )
          {
       	    _subPage=_urlCurrentPage.substring(_urlCurrentPage.indexOf("-")+1,_urlCurrentPage.length);
    	  
    	    /* Split SubPages in case we have more levels */
    	    _subPageArray=_subPage.split("-"); 
    	  
    	    for ( var _subPageIndex = 0; _subPageIndex < _subPageArray.length ; _subPageIndex++ )
    	    {
    	      _navLink=_navLink+'-'+_subPageArray[_subPageIndex];
    	      _subPageChar0=_subPageArray[_subPageIndex].substring(0,1);  	
    	      _subPageArray[_subPageIndex]=_subPageChar0.toUpperCase() + _subPageArray[_subPageIndex].substring(1,_subPageArray[_subPageIndex].length);  	
    	      if ( _subPageIndex == _subPageArray.length-1)
    	      {
                document.writeln('<td class="navItemActive">&nbsp;>&nbsp;</td>');
                document.writeln('<td class="navItemPassive"><a href=' + _navLink + '.htm><font color="black"><b>'  + _subPageArray[_subPageIndex] + '</b></font></a></td>');      
              }
              else
              {
                document.writeln('<td class="navItemActive">&nbsp;>&nbsp;</td>');        	
                document.writeln('<td class="navItemActive"><a href=' + _navLink + '.htm><font color="black">' + _subPageArray[_subPageIndex] + '</font></a></td>');                    
              }
            }
          }
        }
      } 

  
    /* Close the table */
    document.writeln(' </tr>');  
    document.writeln('</table>');
    document.writeln('<table>');
    document.writeln('  <tr>');
    document.writeln('   <td>&nbsp;</td>');
    document.writeln('  </tr>');
    document.writeln('</table>');  
  } 
}



/*-----------------------------------------------------------------*/
/*                       funcPrintItem                             */
/*-----------------------------------------------------------------*/
/* Author : Bernd Schneider                                        */
/* Date   : 05.01.2002                                             */
/* History:                                                        */
/*                                                                 */
/* Input Parms: _navItem :    Name of the item we have to print on */
/*                            the navigation bar                   */
/*              _navLink:     Url of the Item.                     */
/*              _navLevel:    Level the item belongs to            */
/*                            Important for indention              */
/*              _navFolder:   Indicates if we are having an folder */
/*                            or item                              */
/*                                                                 */
/* Description:                                                    */
/*       1) Get the name of the web-page that is currently         */
/*          displayed                                              */
/*       2) calculate the navigation level of the page that        */
/*          currently displayed                                    */
/*       3) Check if the item to be printed is a parent menu item  */
/*          of the page currently displayed                        */
/*       4) Check if the item to be printed is one level below     */
/*          the currently shown URL                                */
/*       5) Set the image depending whether we are having an       */
/*          folder which child page is currently displayed         */
/*          (open folder) or a folder where no child page is       */
/*          displayed (folder) or just a document without sub-items*/
/*       6) Write the navigation item                              */
/*-----------------------------------------------------------------*/
function funcPrintItem(_navItem,_navLink,_navLevel,_navFolder)
{

  var  _urlCurrentPage,_pageLevelStr, _navImg = "";
  var _pageLevel=0;
  var _printItem=false;
  var _cmpLink="";


  /* Check if we are handling specific elements like delimiter */
  delimiter=_navItem.match(/-delimiter-/g);
  if (delimiter)
  { 
      document.writeln('            <tr>');
      document.writeln('              <td class="navItemPassive">');     	
      document.writeln('<hr>');
      document.writeln('              </td>');
      document.writeln('            </tr>');   
      return;
  }
  
  
  /* Extract Name of Web-Page currently displayed without Domain */
  /* cut off the Domain                                          */
  _urlCurrentPage=document.URL.toLowerCase();
  for ( var _arrayIndex= 0; _arrayIndex < _domains.length; _arrayIndex++) 
  {
    if ( _urlCurrentPage.search(_domains[_arrayIndex] ) != -1 )
    {
      _activeDomain=_domains[_arrayIndex];
      break;
    }
  }
  _urlCurrentPage=_urlCurrentPage.substring(_urlCurrentPage.search(_activeDomain)+_activeDomain.length+1,_urlCurrentPage.length);
    
  
  /* cut off suffix of url */
  _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.search(/\.htm/i));
  /* cut off the "-" if we have pages that belong to a sub-item but they are not listed */
  /* in the menu one                                                                    */
  if ( _urlCurrentPage.search(/-/i) != -1 )
  {
    _urlCurrentPage=_urlCurrentPage.substring(0,_urlCurrentPage.search(/-/i));  
  }  
  
  _urlCurrentPage=_urlCurrentPage.toLowerCase();
  if ( _urlCurrentPage ==  _htmlStartPage )
  {
    _urlCurrentPage=_navMenuItems[0].toLowerCase();
  }
  
   
  /* if _navLink contains a & then replace it with "und" as the "&" creates problems */
  /* when using it in the image command of the navigation item                       */
  _navLink=_navLink.replace(/&/g,"und");
  _navLink=_navLink.replace(/;/g,"");    


  /* extract Level of Page currently displayed. Needed to print submenus and parent menus*/
  if ( document.URL.search(/_/)  != -1 )
  {
    _pageLevelStr=document.URL.match(/_/g);
    _pageLevel=_pageLevelStr.length;
  }
  else 
  {
    _pageLevel=0;
  }    
  
  /* print parent items and items on same level                          */
  /* The URL currently displayed is on an lower level as the navigation  */
  /* item to be printed. If we the _navlink of the item to be printed    */
  /* is part of the currently displayed URL we know we have an parent    */
  /* Item which must be printed.                                         */
  /* Do also ensure that level 0 is always printed.                      */
  /* Level 0 does not contain a ":" and therefore _cmpLink will be empty */
  /* and the second comparison is always true                            */
  if ( _navLevel <= _pageLevel )
  {
      
    _cmpLink=_navLink.substring(0,_navLink.search(/:.+/));
    if ( _cmpLink == _urlCurrentPage.substring(0,_cmpLink.length ) )
    {
      _printItem=true;
    }
  }
  
    
  /* Print submenu                                                       */
  /* If the item to be printed is one level below the currently URL and  */
  /* the name of the currently displayed URL is part of the item to be   */
  /* printed then the item to be printed is a sub-item of the current URL*/
  /* Don't print any submenu if just the domain is called                */
  /* ==> Page title is empty string                                      */
  if (   ( _navLevel == _pageLevel + 1 ) 
      && ( _urlCurrentPage == _navLink.substring(0,_urlCurrentPage.length) )
      && ( _urlCurrentPage != "") )
  {
    _printItem=true;
  }




  /* Item must be printed */  
  if ( _printItem )
  {

    document.write   ('                ');    

    /* replace ":" which seperates the last submenuitem with :                       */ 
    /* the ":" was needed to seperate the item from the url of the parent items and  */
    /* enable checking for parent items above                                        */
    _navLink=_navLink.replace(/:/g,"_");
  
  
    /* We are having an folder */
    if ( _navFolder == 1 )
    {
    	/* if the title of the current URL is part of the url of the item to be printed on the */
    	/* navigation bar we know that the current nav item is an folder where an sub-item     */
    	/* is displayed currently --> Open the folder                                          */
    	if ( ( _urlCurrentPage.match(_navLink))  ||
    	     ( _navItem == _navMenuItems[0] && _urlCurrentPage.match(_navMenuItems[0].toLowerCase()) ) )
    	{
    	  _navImgType='folderopen';
    	}
    	else
    	{	
    	  _navImgType='folder';
    	}  
    }
    else
    {
    	_navImgType='document';
    }

  
    /* highlight the navigation item of the page currently shown    */
    /* consider that the link of the homepage has a different name  */  
    /* For the StartPage the _urlCurrentPage has been overwritten   */
    /* with the name of the Nav Item                                */
    /* That's why the second condition matches for the homepage     */
    if ((  _urlCurrentPage == _navLink ) ||
        (   (  _navLevel    == 0) 
         && (  _urlCurrentPage   == _navItem.toLowerCase() )
        )
       )   
    {
      document.writeln ('            <tr>');
      document.writeln ('              <td class="navItemActive">');    	
      for ( _indentIndex=0; _indentIndex < _navLevel ; _indentIndex++ )
      {
        document.write('&nbsp;&nbsp;&nbsp;');
      }
      document.writeln('&nbsp;<a id=' + _navLink + ' onMouseover="document.' + _navLink + 'Img.src=\'' + _imgPath + _navImgType + 'activeover.gif\'" onMouseout="document.' + _navLink + 'Img.src=\'' + _imgPath + _navImgType + 'active.gif\'" href="' + _htmlPath + _navLink + '.htm" ><img name="' + _navLink + 'Img" src="' + _imgPath + _navImgType + 'active.gif" border=0 alt="' + _navItem + '" ><font color="black"><b>&nbsp;' + _navItem + '</b></font></a>'); 
      document.writeln('              </td>');
      document.writeln('            </tr>');        
    }
    else
    {
      document.writeln ('            <tr>');
      document.writeln ('              <td class="navItemPassive">');     	
      for ( _indentIndex=0; _indentIndex < _navLevel ; _indentIndex++ )
      {
        document.write('&nbsp;&nbsp;&nbsp;');
      }
      document.writeln('&nbsp;<a id=' + _navLink + ' onMouseover="document.' + _navLink + 'Img.src=\'' + _imgPath + _navImgType + 'passiveover.gif\'" onMouseout="document.' + _navLink + 'Img.src=\'' + _imgPath + _navImgType + 'passive.gif\'" href="' + _htmlPath + _navLink + '.htm" ><img name="' + _navLink + 'Img" src="' + _imgPath + _navImgType + 'passive.gif" border=0 alt="' + _navItem + '" ><font color="black"><b>&nbsp;' + _navItem + '</b></font></a>');
      document.writeln('              </td>');
      document.writeln('            </tr>');         
    }
  }
} /* funcPrintItem */




/*-----------------------------------------------------------------*/
/*                       funcNavBar                                */
/*-----------------------------------------------------------------*/
/* Author : Bernd Schneider                                        */
/* Date   : 05.01.2002                                             */
/* History:                                                        */
/*                                                                 */
/* Input Parms: NavItems :    Items to be handled. Start with      */
/*                            with level 0 for each item and if we */
/*                            handle a folder it cuts off the first*/
/*                            part of the item and goes down one   */
/*                            recursion.                           */
/*              _navUpperLink: The composition of the URL of all    */
/*                            parent items.                        */
/*              NavLevel: 0 We start with level 0 for each item of */
/*                          the Navigation bar.                    */
/*                        1 if we are on the next level of the     */
/*                          Navigation bar.                        */
/*                        (increased by one for each recursion     */
/*                         so to speak for each sub-level on the   */
/*                         Navigation Bar)                         */
/*              NavFolder: 1 if we are an item with sub-items      */
/*                           (= Folder with sub-items )            */
/*                         0 if we are processing an item without  */
/*                           sub-items.                            */
/*                                                                 */
/* Description:                                                    */
/*      1) Function goes through the list of navigation items      */
/*         that has been passed to the function                    */
/*         For each item of the list it starts with NavLevel 0     */
/*         If the item has sub-items it calls funcNavBar           */
/*         recursively and increments the level.                   */
/*                                                                 */
/*      2) Function decides if we the current item is an item with */
/*         sub-items or not. (Folder or Item)                      */
/*                                                                 */
/*      3) The function decides whether we are on the lowest level */
/*         The item does not contain a sub-item any more           */
/*         Then the item can be printed using the function         */
/*         funcPrintItem but before we have to compose the correct */
/*         URL by concatenating the name of the upper items with   */
/*         the current one.                                        */
/*                                                                 */
/*      4) If we are handling a folder we have to extract          */
/*         the item of the current level and compose it with the   */
/*         url of all parent items.                                */
/*         Then extract the remaining levels and call recursively  */
/*         funcNavBar again for the next level                     */
/*         Do this until we are reaching the lowest level of       */
/*         the current item.                                       */
/*-----------------------------------------------------------------*/
function funcNavBar(_navItems,_navUpperLink,_navLevel,_navFolder)
{

  /* local variable */
  var _navLink;
  var _mainItem;
  var _subItem;


  /* Go through the NavItem Array and generate hirarchy of the navigation bar */
  for (var _arrayIndex= 0; _arrayIndex< _navItems.length; _arrayIndex++) 
  {
  	
    /* For each item we are starting with (level=0) and we can decide whether we are having   */
    /* a folder or an item by comparing the item with the next one.                           */
    if (_navLevel == 0)
    {
    	if ( _arrayIndex < _navItems.length-1 && _navItems[_arrayIndex+1].match(_navItems[_arrayIndex] + ':') )
    	{
           _navFolder=1;
        }
        else
        {
           _navFolder=0;
        }
    }     	
 
    /* We are now at a level where the item does not have any sub-item any more */
    /* We can prepare the item to be printed.                                   */
    if ( _navItems[_arrayIndex].indexOf(":") == -1)
    {
      /* The homepage has a server specific name like "index",... */
      if ( ( _arrayIndex == 0) && (_navLevel == 0))
      {
        _navLink=_htmlStartPage;
      }
      else
      {      	
      	/* Generate correct link. Concatenated with link names of parent menu */
        _navLink=_navItems[_arrayIndex].replace(/ /g,"");      
        _navLink=_navLink.toLowerCase();
        _navLink=_navUpperLink + _navLink; 
      }

      /* call the function to print the navigation item          */
      /* Pass the name of the the item, the URL, the level and   */
      /* whether the current item is an folder or not            */
      funcPrintItem(_navItems[_arrayIndex],_navLink,_navLevel,_navFolder);

    }
    else
    {

      /* Compose the URL                                                                */
      /* The URL of the second level is a composition of itemlvl1_itemlvl2_itemlvl3.htm */
      /* The items between the levels are separated with an underscore "_ "             */
      /* Extract the name of the current item to be handled                             */
      /* In the first call it is the item of the 1st level. In the first recursion it   */
      /* is name of the 2nd level,......                                               */    
      _mainItem= _navItems[_arrayIndex].substring(0,_navItems[_arrayIndex].search(/:.+/));  

      /* An Item can contain a blank but an URL not. Therefore we have to replace the   */
      /* blanks of the item name with '' to have a proper filename for the URL          */    	
      /* To prevent any case sensitive problems make the filenames (URLS) in lowercase  */
      _navLink=_mainItem.replace(/ /g,"");
      _navLink=_navLink.toLowerCase();
      
      /* Append the item name of the current level to the URL of the upper items        */
      /* and replace the ":" that is still part of the upperlink with a "_"             */
      _navLink=_navUpperLink + _navLink;  
      _navLink=_navLink.replace(/:/g,"_");            
      
      /* cut of the item we have processed right now and go down the next level         */
      _subItem= new Array (_navItems[_arrayIndex].substring(_navItems[_arrayIndex].search(/:.+/)+1,_navItems[_arrayIndex].length));
      
      /* Go down to the next level of the menu and create the URL                       */
      funcNavBar(_subItem,_navLink+':',_navLevel+1,_navFolder);
    }
  } /* for */ 
} /* funcNavBar */


document.writeln('');
document.writeln('         <td  class="navigationBar" valign=top width="170">');
document.writeln('           <table border="0" cellspacing="0" cellpadding="0">');
document.writeln('              <tr><td>&nbsp;</td></tr>');
document.writeln('           </table>');
document.writeln('           <table border="0" cellspacing="0" cellpadding="0" width="170">');
funcNavBar(_navMenuItems,"",0,0); 
document.writeln('           </table>');
document.writeln('           <p>');
document.writeln('           <table border=3 frame=box cellspacing="0" cellpadding="0" width=160 align="center">');
document.writeln('             <tr>');
document.writeln('               <td class="navItemActive" align="center" valign="middle">');
document.writeln('                  <br>');
document.writeln('                 <a  href="javascript:void(0)"  onClick="window.open(\'./newsletter.htm\',\'popup\',\'scrollbars=no,width=500,height=500\')"><font color="black"><b>Newsletter</b></font></a>');
document.writeln('                 <br> &nbsp;');
document.writeln('               </td>');
document.writeln('             </tr>');
document.writeln('           </table>');
document.writeln('           <table border=0 cellspacing="0" cellpadding="0" width="170">');
document.writeln('             <tr><td>&nbsp;</td></tr>');
document.writeln('             <tr>');
document.writeln('               <td align=center>');
document.writeln('                 <b>Letzte <a href="home-aenderung.htm"><font color="black"><u>&Auml;nderung</u></font></a>:<br>24.09.2007</b><br><b><a href="virtuelletour.htm">Virtuelle Tour</a><br><a href="videos.htm">Videos</a></b>');
document.writeln('               </td>');
document.writeln('             </tr>');
document.writeln('           </table>');
document.writeln('         </td>');
document.writeln('         <td class="vline" width="1" ><img src="gifs/pixeltrans.gif" width="1" height="1"></td>');
document.writeln('         <td width="779" class="main" valign=top >');
document.writeln('           <table border="0" cellspacing="0" cellpadding="0">');
document.writeln('              <tr><td class="page-background" width="779">&nbsp;</td></tr>');
document.writeln('           </table>');
document.writeln('           <table border="0" width="100%" cellspacing="0" cellpadding="0">');
document.writeln('              <tr>');
document.writeln('                 <td class="page-background" width="20">&nbsp;</td>');
document.writeln('                 <td class="page-background" width="759">');
document.writeln('');

