//JavaScript-Datei für die Seite Meditation
//----------------------------------------------------------              
  
   var Zaler=new Array(20);
   for (var i=0; i<Zaler.length; i++)
     {Zaler[i]=0}
   var L=0;
   var Muster = "";
   var Titel = "";
 //----------------------------------------------------------          	 
    
  function Farbe1(knopf)	
    {
      var hier=document.getElementById(knopf); 
        hier.style.color="#784534";
        hier.style.backgroundColor="#FFFFCA";
        hier.style.borderTop="solid #AAA 3px";
    	  hier.style.borderBottom="solid #444 3pt";
      	hier.style.borderLeft="solid #AAA 3px";
     	  hier.style.borderRight="solid #444 3pt";  
    }
//----------------------------------------------------------          	 
    
  function Farbe2(knopf)	
    {
      var hier=document.getElementById(knopf);
        hier.style.color="#FFFFCA";
        hier.style.backgroundColor="#784534";
        hier.style.borderTop="solid #AB7877 3px";
        hier.style.borderBottom="solid #451110 3pt";
        hier.style.borderLeft="solid #936060 3px";
        hier.style.borderRight="solid #582820 3pt"; 
    }    
 //----------------------------------------------------------          	 
    
  function Farbe11 (knopf)
    {
    	var hier=document.getElementById(knopf);
          hier.style.color="#784534";
          hier.style.backgroundColor="#00FFFF";
          hier.style.paddingLeft="0pt";
          hier.style.borderTop="solid #AAA 3px";
    	    hier.style.borderBottom="solid #444 3pt";
      	  hier.style.borderLeft="solid #AAA 3px";
     	    hier.style.borderRight="solid #444 3pt";
    }   
//----------------------------------------------------------          	 
    
  function Farbe3(knopf)	
    {
      var hier=document.getElementById(knopf);
        hier.style.color="#784534";
        hier.style.backgroundColor="EEEEAA";
        hier.style.borderTop="solid #444 3px";
        hier.style.borderBottom="solid #AAA 3pt";
        hier.style.borderLeft="solid #444 3px";
        hier.style.borderRight="solid #AAA 3pt"; 

        if (Anzeige == "Netscape")  
           {
          	 hier.style.paddingLeft="3pt";
          	 hier.style.width="87pt";
             hier.style.paddingTop="4pt";          	 
             hier.style.height="14pt"
           }
        if (Anzeige == "Microsoft Internet Explorer")
           {
          	 hier.style.paddingLeft="5pt";
             hier.style.paddingTop="4pt";
           }
        
    }  
 //----------------------------------------------------------          	 
    
  function Farbe4(knopf)	
    {
      var hier=document.getElementById(knopf);
        hier.style.color="#784534";
        hier.style.backgroundColor="EEEEAA";
        hier.style.borderTop="solid #444 3px";
        hier.style.borderBottom="solid #AAA 3pt";
        hier.style.borderLeft="solid #444 3px";
        hier.style.borderRight="solid #AAA 3pt"; 

        if (Anzeige == "Netscape")  
           {
          	 hier.style.paddingLeft="3pt";
          	 hier.style.width="127pt";
             hier.style.paddingTop="5pt";          	 
             hier.style.height="14pt"
           }
        if (Anzeige == "Microsoft Internet Explorer")
           {
          	 hier.style.paddingLeft="5pt";
             hier.style.paddingTop="4pt";
           }
        
    }     
 //----------------------------------------------------------          	 
    
  function Farbe22 (knopf)
    {
    	var hier=document.getElementById(knopf);
    	    hier.style.width="140pt";
    	    hier.style.height="30pt";
          hier.style.color="#784534";
          hier.style.backgroundColor="#00FFFF";
          hier.style.fontSize="14pt";
          hier.style.paddingLeft="0pt";
          hier.style.borderTop="solid #AAA 3px";
    	    hier.style.borderBottom="solid #444 3pt";
      	  hier.style.borderLeft="solid #AAA 3px";
     	    hier.style.borderRight="solid #444 3pt";
     	    if (Anzeige == "Netscape")  
             {
          	   hier.style.width="140pt";
          	   hier.style.height="21pt"
          	 }
          if (Anzeige == "Microsoft Internet Explorer")
             {
          	   hier.style.width="140pt";
          	   hier.style.height="30pt"
          	 }
    }      
//----------------------------------------------------------  

  function ueberbutt1 (knopf)
    {   
      Farbe1 (knopf)
    }
   
//---------------------------------------------------------- 
    
  function wegbutt1 (knopf,L)
    {
      if (Zaler[(L-1)]!=0)
        {
          Farbe11 (knopf)
        }
      else
        {
          Farbe2(knopf)
        }  
    }
//---------------------------------------------------------- 
    
  function wegbutt2 (knopf,L)
    {
      if (Zaler[(L-1)]!=0)
        {
          Farbe22 (knopf)
        }
      else
        {
          Farbe2(knopf)
        }  
    }        
//----------------------------------------------------------
  
  function downbutt1 (knopf,L,Thema)
    {       
      for ( i=0; i<Zaler.length; i++)             	
      {Zaler[i]=0; } 
      
      var Tasten1 = ["Taste1","Taste2","Taste3","Taste4","Taste5","Taste6","Taste7","Taste8","Taste9","Taste10"];
      for (var i = 0;i<6;i++)
        {
          Merker = Tasten1[i];
          var dort=document.getElementById(Merker);
    	    dort.style.fontSize="11pt";
          dort.style.color="#FFFFCA";
          dort.style.backgroundColor="784534";
          dort.style.borderTop="solid #AB7877 3px";
          dort.style.borderBottom="solid #451110 3pt";
          dort.style.borderLeft="solid #936060 3px";
          dort.style.borderRight="solid #582820 3pt";
          if (Anzeige == "Netscape")  
             {
          	   dort.style.width="90pt";
          	   dort.style.height="16pt"
          	 }
          if (Anzeige == "Microsoft Internet Explorer")
             {
          	   dort.style.width="90pt";
          	   dort.style.height="24pt"
          	 }
        }
       for (var i = 6;i<10;i++)
        {
          Merker = Tasten1[i];
          var dort=document.getElementById(Merker);
    	    dort.style.fontSize="11pt";
          dort.style.color="#FFFFCA";
          dort.style.backgroundColor="784534";
          dort.style.borderTop="solid #AB7877 3px";
          dort.style.borderBottom="solid #451110 3pt";
          dort.style.borderLeft="solid #936060 3px";
          dort.style.borderRight="solid #582820 3pt";
          if (Anzeige == "Netscape")  
             {
          	   dort.style.width="130pt";
          	   dort.style.height="16pt"
          	 }
          if (Anzeige == "Microsoft Internet Explorer")
             {
               dort.style.width="130pt";
    	         dort.style.height="24pt";
          	 }
        }       
      Farbe3(knopf);
      Zaler[(L-1)]=1;
      Muster = Thema;
     } 
    
//----------------------------------------------------------
  
  function downbutt2 (knopf,L,Autor)
    {       
      for ( i=7; i<Zaler.length; i++)             	
      {Zaler[i]=0; } 
      
      var Tasten2 = ["Taste7","Taste8","Taste9","Taste10"];
      for (var i = 0; i<4; i++)
        {
          Merker = Tasten2[i];
          var dort=document.getElementById(Merker);
    	    dort.style.fontSize="11pt";
          dort.style.color="#FFFFCA";
          dort.style.backgroundColor="784534";
          dort.style.borderTop="solid #AB7877 3px";
          dort.style.borderBottom="solid #451110 3pt";
          dort.style.borderLeft="solid #936060 3px";
          dort.style.borderRight="solid #582820 3pt";
          if (Anzeige == "Netscape")  
             {
          	   dort.style.width="130pt";
          	   dort.style.height="16pt"
          	   dort.style.paddingTop="3pt";     
          	 }
          if (Anzeige == "Microsoft Internet Explorer")
             {
               dort.style.width="130pt";
    	         dort.style.height="24pt";
          	 }
       }
      Farbe4(knopf);
      Zaler[(L-1)]=1;
      Titel = Muster+"_"+Autor
    }     
//----------------------------------------------------------
  
  function hochbutt1 (knopf)
    {
      Farbe11(knopf);
//      zuklappen();
//      document.all.Zeile31.style.display = "none";
//      document.all.Zeile32.style.display = "none";
//      document.all.Zeile33.style.display = "none";
//      document.all.Zeile34.style.display = "none";
//      
//      document.all.Zeile2.style.display = "inline";
//      
//      var Utitel3 = Muster+"_TA";
//      var Anzahl3 = document.getElementById(Utitel3).childNodes.length;
//      if (Anzahl3>5){document.all.Zeile31.style.display = "inline"}
//            
//      var Utitel2 = Muster+"_JK";
//      var Anzahl2 = document.getElementById(Utitel2).childNodes.length;
//      if (Anzahl2>5){document.all.Zeile32.style.display = "inline"}
//      
//      var Utitel4 = Muster+"_TL";
//      var Anzahl4 = document.getElementById(Utitel4).childNodes.length;      
//      if (Anzahl4>5){document.all.Zeile33.style.display = "inline"}
//      
//      var Utitel1 = Muster+"_ES";      
//      var Anzahl1 = document.getElementById(Utitel1).childNodes.length;
//      if (Anzahl1>5){document.all.Zeile34.style.display = "inline"}
    }
//----------------------------------------------------------
  
  function hochbutt2 (knopf)
    {       
      Farbe22(knopf);
      zuklappen();
      if (Titel=="Liebe_ES") {document.all.Liebe_ES.style.display = "inline"}
      if (Titel=="Liebe_JK") {document.all.Liebe_JK.style.display = "inline"}
      if (Titel=="Liebe_TA") {document.all.Liebe_TA.style.display = "inline"}
      if (Titel=="Liebe_TL") {document.all.Liebe_TL.style.display = "inline"}
      if (Titel=="Glueck_ES") {document.all.Glueck_ES.style.display = "inline"}
      if (Titel=="Glueck_JK") {document.all.Glueck_JK.style.display = "inline"}
      if (Titel=="Glueck_TL") {document.all.Glueck_TL.style.display = "inline"}
      if (Titel=="Vertr_ES") {document.all.Vertr_ES.style.display = "inline"}
      if (Titel=="Vertr_TA") {document.all.Vertr_TA.style.display = "inline"}
      if (Titel=="Vertr_TL") {document.all.Vertr_TL.style.display = "inline"}
      if (Titel=="Gebet_JK") {document.all.Gebet_JK.style.display = "inline"}
      if (Titel=="Gebet_TA") {document.all.Gebet_TA.style.display = "inline"}
      if (Titel=="Gebet_TL") {document.all.Gebet_TL.style.display = "inline"}
      if (Titel=="FrS_TA") {document.all.FrS_TA.style.display = "inline"}
      if (Titel=="FrS_TL") {document.all.FrS_TL.style.display = "inline"}
      if (Titel=="Sonst_ES") {document.all.Sonst_ES.style.display = "inline"}
      if (Titel=="Sonst_JK") {document.all.Sonst_JK.style.display = "inline"}
      if (Titel=="Sonst_TA") {document.all.Sonst_TA.style.display = "inline"}
      if (Titel=="Sonst_TL") {document.all.Sonst_TL.style.display = "inline"}
    }                
//---------------------------------------------------------- 	   
 	   	 
  function zuklappen ()
    {
      document.all.Kopf.style.display = "none";
      document.all.Liebe_ES.style.display = "none"; 
      document.all.Liebe_JK.style.display = "none"; 
      document.all.Liebe_TA.style.display = "none"; 
      document.all.Liebe_TL.style.display = "none";
      document.all.Glueck_ES.style.display = "none";
      document.all.Glueck_JK.style.display = "none";
      document.all.Glueck_TL.style.display = "none";
      document.all.Glueck_TA.style.display = "none";
      document.all.Vertr_ES.style.display = "none"
      document.all.Vertr_JK.style.display = "none"
      document.all.Vertr_TA.style.display = "none"
      document.all.Vertr_TL.style.display = "none"
      document.all.Gebet_ES.style.display = "none"
      document.all.Gebet_JK.style.display = "none"
      document.all.Gebet_TA.style.display = "none"
      document.all.Gebet_TL.style.display = "none"
      document.all.FrS_ES.style.display = "none"
      document.all.FrS_JK.style.display = "none"
      document.all.FrS_TA.style.display = "none"
      document.all.FrS_TL.style.display = "none"
      document.all.Sonst_ES.style.display = "none"
      document.all.Sonst_JK.style.display = "none"
      document.all.Sonst_TA.style.display = "none"
      document.all.Sonst_TL.style.display = "none"
    } 
 //---------------------------------------------------------- 
