 maxIndex = 20;
 objDiv   = new Array(maxIndex);
 index    = 1;
 
 function bilderStegna()
 {
   maxIndex = 7;
   showPicture(); 
 }
 
 function bilderAppartement()
  {
    maxIndex = 7;
    showPicture(); 
 }
 
 function indexCheck()
 {   
   ++index;
   if (index > maxIndex)
   {
      index = 1;
   }
 }
      
 function showPicture()
 {
    divCheck  = "";    
    // alert(" In showPicture index = " + index);
    // Anzeigen ODER nicht anzeigen, das ist hier die Frage
    
    divName  = "";
    checkPar = 0;
    indexCheck();
    
    for (i=1; i<=maxIndex; i++)
    {
      divCheck  = "checkDiv" + i;
      objDiv[i] = document.getElementById(divCheck);
      if (objDiv[i] != null)
      {
        // divName  = objDiv[i].name;
 	// checkPar = checkFilter(check, divName);
 	if(i == index)
 	{
         objDiv[i].style.display = ""
        }
        else
        {
         objDiv[i].style.display = "none"
        }
      } // Ende if (objDiv[i] != null)
    }    
 
 }

 function showWin(url)
   {
     // var show_win;     
     // http://www.skyways.de
     window.open('http://www.skyways.de', 'lott', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400');

     /*
     show_win=window.open(url, 'lott', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=700,height=400');
     show_win.moveTo(150,150);
     show_win.focus();
     */
   }

