	/**************************************************/
	/*  Copyright by AAA EDV Software AG 2005         */
	/*                                                */
	/**************************************************/
    
	var CookiePos;
	var CookieKapitel;
	var CookieSubKap;
	var CookieUntKap;
	var CookieImgSize;
	var CookieResSize; 
	var CookieScrollbar; 
		
	var helpString;
	var helpRegValue="3";
	var helpKapValue="2";
	var helpUntValue= "1";
	var helpImgValue = "1.0";
	var FontString="";
	var GlobalPageNr=1;
    var GlobalSuchwort = ""; 
	var GlobalSuchTyp = "1"; 
	var GlobalImgSize = "1.0";	
	var GlobalResSize = "1"; 
	var GlobalShowStil = "1";
	var MaxKapitel=0; 
	var UntMaxKapitel=0;
	var TwoLine = false;
	var MaxSeiten = 0; 
    var SpecialSearch = false; 
	var SpecialSearchText = '';
    var FoundArticleNr = '';  

 

        //var ProgName = "file.htm"; 

	loadCookie();
	helpRegValue = CookieKapitel;
	helpKapValue = CookieSubKap;
	helpUntValue = CookieUntKap;
	
	if (CookieImgSize == null) CookieImgSize = "1.0";
	GlobalImgSize = CookieImgSize;
	if (CookieResSize == null) 
	  {
	   if (StartLowSize) {
	     GlobalResSize = true;
         CookieResSize = "1"; }
	   else {
		 GlobalResSize = false;
	     CookieResSize = "0"; }
       }
	else
	{
	  if (CookieResSize == "1") {
		GlobalResSize = true; }
	  else {
		GlobalResSize = false;}
	}
	
    // Paging oder Imaging-Format
	if (CookieShowStil == null) 
	  {
	   if (StartPaging) {
	     GlobalShowStil = true;
         CookieShowStil = "1"; }
	   else {
		 GlobalShowStil = false;
	     CookieShowStil = "0"; }
       }
	else
	{
	  if (CookieShowStil == "1") {
		GlobalShowStil = true; }
	  else {
		GlobalShowStil = false;}
	}	  
	
	//Parameter vorhanden?
	MaxSeiten = seitenindex.length/5;	

	if (IMGSizing) {
	  if (GlobalImgSize != "1.0")
	    {
		 bildBreite = parseInt(parseInt(bildBreite)*GlobalImgSize);
		 bildHoehe = parseInt(parseInt(bildHoehe)*GlobalImgSize);
		 CookiePos = parseInt(parseInt(CookiePos)*GlobalImgSize);
		}
	}


    function getURLParam(strParamName){
      var strReturn = "";
      var strHref = window.location.href;
      if (strHref.indexOf("%26") > 1) { strHref = strHref.replace('%26', '&'); };
      if (strHref.indexOf("%23") > 1) { strHref = strHref.replace('%23', '#'); };	  
      if ( strHref.indexOf("?") > -1 ){
        var strQueryString = strHref.substr(strHref.indexOf("?"));    //.toLowerCase();
        var aQueryString = strQueryString.split("&");
        for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){
          if (aQueryString[iParam].indexOf(strParamName + "=") > -1 )
            {
             var aParam = aQueryString[iParam].split("=");
             strReturn = aParam[1];
             break;
            }
          }
        }
      return strReturn;
    }
    
	var strPSearch = getURLParam("psearch");
	var strPageNr = getURLParam("PageNr"); 
	var strPCode = getURLParam("pcode"); 
	var strPIndex = getURLParam("startindex"); 
	
		
	  //{alert("Paramter psearch = " + strPSearch + " PageNr = " + strPageNr + " pcode = " + strPCode);}
	  
	  //if (urlterms[0] == "PageNr")
	  if (strPageNr != '')
	   {
		 //alert("PageNr: " + strPageNr + " MaxSeiten = " + MaxSeiten);    
	   //intCheck = parseInt(urlterms[1]); 
	   intCheck = parseInt(strPageNr); 
	   
	   //alert("Parameter vorhanden -> " + urlquery[1]+ "  SeitenNr: " + intCheck + " MaxSeiten = " + MaxSeiten); 
	   if (intCheck >= 0 && intCheck <= MaxSeiten)
	     {
          if (PAGESelect)
           {	 
		  CookieKapitel = seitenindex[(parseInt(intCheck)*5)+1];
	      CookieSubKap = seitenindex[(parseInt(intCheck)*5)+2];
	      CookieUntKap = seitenindex[(parseInt(intCheck)*5)+3];
	      oldPos = seitenindex[(parseInt(intCheck)*5)+4]; 
		  oldPos = parseInt(parseInt(oldPos) * (parseInt(bildBreite) + parseInt(bildAbstand)) - (bildBreite/2));
		  if (oldPos < 0) CookiePos = 0; 
		  saveCookie(); 
          helpRegValue = CookieKapitel;
          helpKapValue = CookieSubKap;
          helpUntValue = CookieUntKap;	
		 }
		  else   
		  {   	
           if (intCheck < 1) indCheck = 1;
           oldPos = parseInt(intCheck -1) * (parseInt(bildBreite) + parseInt(bildAbstand)) - (bildBreite/2)
           if (oldPos < 0) CookiePos = 0;
           CookieKapitel = helpRegValue;
	       CookieSubKap = helpKapValue;
	       CookieUntKap = helpUntValue;			   
		   saveCookie(); 		   
	       }
		 }
	   else
	     {alert ("Invalid Page-Number!"); }; 
	   }
	   
	   //if (urlterms[0] == "pcode")
	   if (strPCode != '')	   
		 {
			// alert("pcode= " + strPCode);   
		  //urlterms=urlquery[1].split("=");	
		  urlrec=strPCode.split("_");
		  
		  intCheck = parseInt(urlrec[0]); 
          helpRegValue = intCheck;
		  intCheck = parseInt(urlrec[1]); 
		  helpKapValue = intCheck;
		  intCheck = parseInt(urlrec[2]); 
          helpUntValue = intCheck;			  
		  intCheck = parseInt(urlrec[3]); 
		  oldPos = intCheck; 
		  oldPos = parseInt(parseInt(oldPos) * (parseInt(bildBreite) + parseInt(bildAbstand)) - (bildBreite/2)); 
		  if (oldPos < 0) oldPos = 0; 
          
		  CookieImgSize = "100";            		  
		  CookieKapitel = helpRegValue;
	      CookieSubKap = helpKapValue;
	      CookieUntKap = helpUntValue;	          
		  saveCookie();		  
		  //alert("intCheck= " + intCheck + " reg = " + helpRegValue + "kap= " + helpKapValue + " unt= " + helpUntValue + " oldPos = " + oldPos);	 
		 }

	   //if (urlterms[0] == "psearch")
	   if (strPSearch != '') 
		 { 
   		 
		   var strTemp = getURLParam("pidprod")
		   if (strTemp != '') {
		     FoundArticleNr = strTemp; 
		   }
		  // alert("psearch = " + strPSearch + " pidprod = " + FoundArticleNr); 
		  //urlterms=urlquery[1].split("=");	
		  urlrec=strPSearch.split("_");
		  helpRegValue = TotalKapitel; 
		  helpKapValue = 1; 
		  helpUntValue = 1; 
		  oldPos = 0;   //Kompatibilität
		  
		  //Spezial-Kapitel anpassen.
                  if (urlrec[1] == 'F')
                    {
                     helpString = "bilder" + TotalKapitel + "_1_1 = new Array('" + urlrec[0]  + "', 'F'); "; 
                    } 
                  else
                    {
                     helpString = "bilder" + TotalKapitel + "_1_1 = new Array('1', '" + strPSearch + "'); "; 
                    }
		  
		  eval(helpString); 
		  //alert("P_SEARCH! = " + urlterms[1] + " HelpString = " + helpString);
		  
          CookieKapitel = helpRegValue;
	      CookieSubKap = helpKapValue;
	      CookieUntKap = helpUntValue;	  
		  CookieImgSize = "200";
		  saveCookie();			  

		  //alert("intCheck= " + intCheck + " reg = " + helpRegValue + "kap= " + helpKapValue + " unt= " + helpUntValue + " oldPos = " + oldPos);	 
		 }
		 
       //Index-Parameter für Umrechnung der Seiten 
	   
	   strStartIndex = ''; 
	   if (strPIndex !=  '')
	      {
			if (BKCatSpecial)
			  {
				strStartIndex = strPIndex; 
				
				
				var sVgl = parseInt(strPIndex); 
				//alert("Bin DRIN! Normale SeitenNr: " + strPIndex + " -> strStartIndex = " + strStartIndex + " sVgl = " + sVgl);  
				
				for (i=0;i<(parseInt(BKCatArr.length)/5);i++)
				     { 
				
					   var s1 = parseInt(BKCatArr[(i*5)]);
         			   var s2 = parseInt(BKCatArr[(i*5)+1]);
					   //alert("s1 = " + s1 + "  s2 = " + s2 + " sVgl = " + sVgl); 
					
				      if ((s1 <= sVgl) && (sVgl <= s2))
					     { 						 	
						 var as1 =  BKCatArr[(i*5)+2];
                         var as2	= parseInt(BKCatArr[(i*5)+3]);	
                         var as3	= parseInt(BKCatArr[(i*5)+4]);		
						 											 
					/* 	*/ 	 
					     if (as3 == 1) {
						   strStartIndex = as1; 
						   // alert("STARTINDEX? = " + as1); 
						   }
						 else {
						   //alert("SV= " + sVgl + " - s1 = " + s1); 	 
						   s2 = parseInt(sVgl) - parseInt(s1); 	 
						   
						   s1 = parseInt(s2) + parseInt(as2); 	
						   //alert("s2= " + s2 + "  as2 = " + as2); 
						   
						   if (s1 < 0) s1 = 0; 
						   //alert("as1= " +  as1 + "  s1 = " + s1 + " -> StartIndex"); 
						   strStartIndex = as1 + s1; 
						   
						  }
						 //alert("Gefundener Wert = " + strStartIndex + " as1 = " +  as1 + " as2 = " + as2 + " as3 = " + as3 + " s1 = " + s1 );    
					    break; 
                       
			          }
					 
			       }
			  }
			else
			 {
			    //alert("Keine Spezialkatalog: Normale SeitenNr: " + strPIndex + " -> strStartIndex = " + strStartIndex); 
				strStartIndex = strPIndex; 
			 }
		  }
	    
	
    if (BKStartCat == '2') CookieImgSize = "200"; 

	
	//Testen ob gültige Register/Kapitel-Nummer: 
	var intCheck = 0;
	//Register i.O.?
	if (helpRegValue > TotalKapitel) helpRegValue = TotalKapitel;
	//SubKapitel i.O.?
	intCheck = regInhalt[((helpRegValue-1)*2)+1];
	
	if (parseInt(helpKapValue)>parseInt(intCheck)) helpKapValue = intCheck;
	//alert("intCheck= " + intCheck + " reg = " + helpRegValue + "kap= " + helpKapValue + " unt= " + helpUntValue);
	MaxKapitel = intCheck; 
    
	//Kapiteltext laden -> Anzahl Unterkapitel!
    helpString = "kapInhalt" + helpRegValue;
	//alert("kapInhalt " + helpString);
	ukapitel = eval(helpString); 	
	
	if (UnterKapitel)
	  {
	   //SubKapitel i.O.?
	   intCheck = ukapitel[((helpKapValue-1)*2)+1];
	   
	   if (parseInt(helpUntValue)>parseInt(intCheck)) helpUntValue = intCheck;
	   UntMaxKapitel = intCheck; 
	   
       //UnterKapiteltext laden
       helpString = "untInhalt"  + helpRegValue + "_" + helpKapValue ;  
	   u2kapitel = eval(helpString);	   
	  }
	else
	  { 
	    helpUntValue = 1;    // Default für Unterunterkapitel 
		UntMaxKapitel = 1;   // Default für Unterkapitel
	   }
	

	
	//Bilder laden. 
	helpString = "bilder" + helpRegValue + "_" + helpKapValue + "_" + helpUntValue;
	//alert("bilder " + helpString);
 	
	bilder = eval(helpString);  // variable Zuordnung
    
	//Zweizeiler nötig?
	if (Suchwoerter) TwoLine = true; 
	if (UnterKapitel) TwoLine = true; 
	if (MenuStyle=="1") TwoLine = false; 
	if (MenuStyle=="2") TwoLine = false; 
	if (MenuStyle=="3") TwoLine = true;
	if (MenuStyle=="4") TwoLine = true;
	if (MenuStyle=="5") TwoLine = true;
	if (MenuStyle=="6") TwoLine = true;
	if (MenuStyle=="7") TwoLine = true;
	
    var MaxPos=0;
	var MaxImg = 0;
	MaxImg = bilder.length;

	if (bildAbstand ==0) bildAbstand = 2; 
	MaxPos = (bildBreite+bildAbstand) * (MaxImg-1) + 1;
	
	if (BKVersion == 2)
	  {
	   if (BKShow == 1) 
	     {
		  BKStartCat = '1';
		  CookieImgSize = "100";
		 }
	   if (BKShow == 2)  
	    {
		 BKStartCat = '2';
		 CookieImgSize = "200";
		}
	  }
	  
	aktPageNr = parseInt(CookiePos / (parseInt(bildBreite)+parseInt(bildAbstand)));
	//alert("AKTNR= " +aktPageNr);
	
	//Netscape kann Slidebar nicht anzeigen.
	var AktBrowser	= navigator.appName;
	var AktUsAgent = navigator.userAgent;
	
	if (AktBrowser=="Netscape" && SlideBar)
	  {
	   SlideBar = false; 
	   ZahlenReihe = true;
	  } 
	var text = "";
    var timer=null;                           // Laufendes Band	
	var thePos=dimx=Dimx=0,time;
    var oldPos=0;
 	var PathPicture = "";                     // Popup-Fenster-Zugriff auf aktuelles Bild mit Pfad
	var PictureName = "";                     // Bildname alleine für Titelüberschrift	
	
/*********************************************************/

function goNewPageBK(Reg, Kap, Unt, TMode, TOrigin, CatTemp)
   {
    
    oldPos = 0;   //generell zurücksetzen
    CookieKapitel = Reg; 
	CookieSubKap = Kap;
	CookieUntKap = Unt; 
	saveCookie();
    var url=ProgName;
    
	//alert("NEUE FUNKTION Reg  = " + Reg + " - Kap = " + Kap +  " - Unt = " + Unt); 
	CalcNewCombox(Reg, Kap, Unt, TMode, TOrigin, '1', 'N');  //Neu berechnen
	
	/*
	document.location.href = url;
    if (AktBrowser == "Netscape") 
      {
       document.location.href = url;
       //alert("Zum Zweitenmal URL: HIER Suchwort? SeekTyp = " + seekTyp ); 	 
      } 	
	  */
   }	



function goNewPage(Reg, Kap, Unt)
   {
    alert("HIER  ALTE FUNKTION: NewPage?"); 
    oldPos = 0;   //generell zurücksetzen
    CookieKapitel = Reg; 
	CookieSubKap = Kap;
	CookieUntKap = Unt; 
	saveCookie();
    var url=ProgName;
    
	//alert("NEUE FUNKTION Reg  = " + Reg + " - Kap = " + Kap +  " - Unt = " + Unt); 
	CalcNewCombox(Reg, Kap, Unt, 'F', '1', 'N');  //Neu berechnen
	
	/*
	document.location.href = url;
    if (AktBrowser == "Netscape") 
      {
       document.location.href = url;
       //alert("Zum Zweitenmal URL: HIER Suchwort? SeekTyp = " + seekTyp ); 	 
      } 	
	  */
   }


   
function goSeekWord(regMove, seekTyp)
   {
 
    var tmpKap = 0;
	var tmpAkt = 0;
	var tmpNewReg = 0; 
	var tmpNewKap = 0; 
	var tmpNewUnt = 0;
	var tmpNewPage = 0; 

	var bnNeuAufruf = false; 
	tmpKap = regInhalt[((helpRegValue-1)*2)+1];	
 
	if (seekTyp=="1") {
	tmpNewReg = such1[(parseInt(regMove)*5)+1];
	tmpNewKap = such1[(parseInt(regMove)*5)+2];
	tmpNewUnt = such1[(parseInt(regMove)*5)+3];
	tmpNewPage = such1[(parseInt(regMove)*5)+4]; 
	}
	if (seekTyp=="2") {
	tmpNewReg = such2[(parseInt(regMove)*5)+1];
	tmpNewKap = such2[(parseInt(regMove)*5)+2];
	tmpNewUnt = such2[(parseInt(regMove)*5)+3];
	tmpNewPage = such2[(parseInt(regMove)*5)+4]; 
	}	
	if (seekTyp=="3") {
	tmpNewReg = such3[(parseInt(regMove)*5)+1];
	tmpNewKap = such3[(parseInt(regMove)*5)+2];
	tmpNewUnt = such3[(parseInt(regMove)*5)+3];
	tmpNewPage = such3[(parseInt(regMove)*5)+4]; 
	}   

	if (Register) { if (helpRegValue != tmpNewReg) bnNeuAufruf = true;}
	if (Kapitel)  { if (helpKapValue != tmpNewKap) bnNeuAufruf = true;}
	if (UnterKapitel) { if (helpUntValue != tmpNewUnt) bnNeuAufruf = true;}

	// alt immer neu aufurfen if (bnNeuAufruf)
	if (1==1)
	  {
       
	   CookieKapitel = tmpNewReg;
	   CookieSubKap = tmpNewKap; 
	   CookieUntKap = tmpNewUnt; 
	   saveCookie();


	   GlobalSuchwort = regMove; 

	   setCookie('Suchwort', GlobalSuchwort);
	   setCookie('SuchTyp', seekTyp); 
       
	   //alert("soweit komme ich? ..." + tmpNewReg + " - " + tmpNewKap + " - " + tmpNewUnt + " - " + bilder[1]); 
       CalcNewCombox (tmpNewReg, tmpNewKap, tmpNewUnt, 'S', bilder[1], '1', tmpNewPage); 
	   
	   if (1==2)
	   {
	   var url=ProgName;
           
       document.location.href = url;
           
       if (AktBrowser == "Netscape") 
         {
          document.location.href = url;
          //alert("Zum Zweitenmal URL: HIER Suchwort? SeekTyp = " + seekTyp ); 	 
         }  
	  }
	  }

	}



function saveCookie()
{ 
	if (GlobalShowStil == "1") 
	 {
	  var tmpPageNr = B_CrImg; 
	  if (B_CrImg == 0) tmpPageNr = bilder.length; 
	  oldPos = (bildBreite+bildAbstand) * parseInt(tmpPageNr-1) + parseInt(bildBreite/2);
	 }

    CookiePos = oldPos;
    setCookie('Position', CookiePos);
	if (CookieKapitel == null) CookieKapitel = "1";
	if (CookieKapitel == "") CookieKapitel = "1";
	setCookie('Kapitel', CookieKapitel);
	if (CookieSubKap == null) CookieSubKap = "1";
	if (CookieSubKap == "") CookieSubKap = "1";
	setCookie('SubKapitel', CookieSubKap);
	if (CookieUntKap == null) CookieUntKap = "1";
	if (CookieUntKap == "") CookieUntKap = "1";
	setCookie('UntKapitel', CookieUntKap);	
	if (CookieImgSize == null) CookieImgSize = "1.0";
	if (CookieImgSize == "") CookieImgSize = "1.0";
	setCookie('ImgSize', CookieImgSize);
	setCookie('ResSize', CookieResSize); 
	setCookie('ShowStil', CookieShowStil); 
}	
function loadCookie()
{
   	CookiePos = getCookie("Position");	 
	CookieKapitel = getCookie("Kapitel");
	if (CookieKapitel == null) CookieKapitel = "1";
	CookieSubKap = getCookie("SubKapitel");
	if (CookieSubKap == null) CookieSubKap = "1";	
    CookieUntKap = getCookie("UntKapitel");
	if (CookieUntKap == null) CookieUntKap = "1";		
	CookieImgSize = getCookie("ImgSize");
	CookieResSize = getCookie("ResSize"); 
	CookieShowStil = getCookie("ShowStil");
}	


function CalcNewCombox(TReg, TKap, TUnt, TMode, TOrigin, TFirst, TPage)
     {
	   
	   helpRegValue = TReg; 
	   helpKapValue = TKap; 
	   helpUntValue = TUnt; 

	//Testen ob gültige Register/Kapitel-Nummer: 
	var intCheck = 0;
	var TActCat = 'F'; 
	
	//Register i.O.?
	if (helpRegValue > TotalKapitel) helpRegValue = TotalKapitel;
	
	//SubKapitel i.O.?
	//intCheck = regInhalt[((helpRegValue-1)*2)+1];
	intCheck = regInhalt[((helpRegValue-1)*2)+1];	
	
	if (parseInt(helpKapValue)>parseInt(intCheck)) helpKapValue = intCheck;
	//alert("intCheck= " + intCheck + " reg = " + helpRegValue + "kap= " + helpKapValue + " unt= " + helpUntValue);
	MaxKapitel = intCheck; 
    
	//Kapiteltext laden -> Anzahl Unterkapitel!
    helpString = "kapInhalt" + helpRegValue;
	//alert("kapInhalt " + helpString);
	ukapitel = eval(helpString); 	
	
	if (UnterKapitel)
	  {
	   //SubKapitel i.O.?
	   intCheck = ukapitel[((helpKapValue-1)*2)+1];
	   
	   if (parseInt(helpUntValue)>parseInt(intCheck)) helpUntValue = intCheck;
	   UntMaxKapitel = intCheck; 
	   
       //UnterKapiteltext laden
       helpString = "untInhalt"  + helpRegValue + "_" + helpKapValue ;  
	   u2kapitel = eval(helpString);	   
	  }
	else
	  { 
	    helpUntValue = 1;    // Default für Unterunterkapitel 
		UntMaxKapitel = 1;   // Default für Unterkapitel
	   }
	

	
	//Bilder laden. 
	helpString = "bilder" + helpRegValue + "_" + helpKapValue + "_" + helpUntValue;
	//alert("bilder " + helpString);
 	
	bilder = eval(helpString);  // variable Zuordnung

	TActCat = bilder[1];        // Aktueller Katalog
	
	var newCallBK = false; 
	var url=' ';
	// Neuaufruf nötig?
	if (TFirst != 0)
	 {
    	if (TActCat != TOrigin)
	     {
		  newCallBK = true; 
		  url=ProgName;
         }
	  
     	if (TMode == "R" && BKRegLink == true) 
	     {
		  newCallBK = true; 
		  url= BKLinks[((helpRegValue-1)*2)+1] + ProgName + "?pcode=" + helpRegValue + "_1_1_0";	
		  //alert("NEUE URL=" + url) ;
		 }
	  }
	  
	if (newCallBK)
	  {
		//alert("Muss neuen Katalog laden  = " + TActCat);
		
        document.location.href = url;
       if (AktBrowser == "Netscape") 
         {
          document.location.href = url;
           	 
         } 	  
	  }
	else
	  {
	
	
			   if (Register) {
			   txtRegister = " <select name=\"register2\" id=\"reg2\" size=\"1\" onchange=\"goNewPageBK(this.options[this.selectedIndex].value, 1, 1, 'R', '" + TActCat + "', '1')\">";
			   
				if (MaxRegister >= 1) {			 
               for (i=0;i<(parseInt(MaxRegister));i++)
			      {
				   (helpRegValue == i+1) ? varTemp = " selected" : varTemp = ""; 
			       txtRegister = txtRegister + "<option value=\""+(i+1)+"\""+varTemp+">"+regInhalt[(i*2)]+"</option>";
			      }
			   txtRegister = txtRegister + "</select>";			
			   
			   } }
		   
			   if (Kapitel) {
			   if (MaxKapitel > 1) {
			   txtKapitel = " <select name=\"kapitel2\" id=\"kap1\" size=\"1\" onchange=\"goNewPageBK("+helpRegValue+", this.options[this.selectedIndex].value, 1, 'K', '" + TActCat + "', '1')\">";
			                 
               for (i=0;i<(parseInt(MaxKapitel));i++)
			      {
                   (helpKapValue == i+1) ? varTemp = " selected" : varTemp = ""; 
				   if (MaxKapitel == 1) varTemp = " selected"; 				  
			       txtKapitel = txtKapitel + "<option value=\""+(i+1)+"\""+varTemp+">"+ukapitel[(i*2)]+"</option>";
			      }
			   txtKapitel = txtKapitel + "</select>"
			   
			     }
			   else
			     {
				  txtKapitel = "&nbsp;"; 	 
			     }			   
			   }
 
			   if (UnterKapitel) {
			   if (UntMaxKapitel > 1) {
			   txtUntKapitel = " <select name=\"kapitel3\" id=\"kap3\" size=\"1\" onchange=\"goNewPageBK("+helpRegValue+", " +helpKapValue + ", this.options[this.selectedIndex].value, 'U', '" + TActCat + "', '1')\">";
			                 
               for (i=0;i<(parseInt(UntMaxKapitel));i++)
			      {
                   (helpUntValue == i+1) ? varTemp = " selected" : varTemp = ""; 
				   if (UntMaxKapitel == 1) varTemp = " selected"; 				  
			       txtUntKapitel = txtUntKapitel + "<option value=\""+(i+1)+"\""+varTemp+">"+u2kapitel[(i)]+"</option>"; 
			      }
			   txtUntKapitel = txtUntKapitel +   "</select>";
			   
                 } 
			   else
			     {
				  txtUntKapitel = "&nbsp;"; 	 
			     }
			   }
			   
         
		 //Suchbegriffe: 
			   GlobalSuchTyp = getCookie('SuchTyp'); 
		 
			   if (Suchwoerter) {
				   tmpSuchWort = ""; 
				   if (GlobalSuchTyp=="1") tmpSuchWort = getCookie('Suchwort');
			       //GlobalSuchwort = getCookie('Suchwort');
				   
				   txtSuchwort1 = ""; 
				   if (MenuStyle!="5") {txtSuchwort1 = "<span class=\"bottom\"><strong>"+Such1Titel+"&nbsp;</strong></span>"}; 
			       txtSuchwort1 = txtSuchwort1 + "<select name=\"seekword1\" onchange=\"goSeekWord(this.options[this.selectedIndex].value, 1)\">";
				   for (i=0;i<(parseInt(such1.length)/5);i++)
				     { 
					   (tmpSuchWort == i) ? varTemp = " selected" : varTemp = ""; 
                       txtSuchwort1 = txtSuchwort1 + "<option value=\""+i+"\""+varTemp+">"+such1[(i*5)]+"</option>";
			          }
					txtSuchwort1 = txtSuchwort1 + "</select>";
					
			       }						

			   if (Suchwoerter2) {
			       tmpSuchWort = ""; 
				   txtSuchwort2 = "";
             	   if (GlobalSuchTyp=="2") tmpSuchWort = getCookie('Suchwort');
			       //GlobalSuchwort = getCookie('Suchwort');
				   
				   if (MenuStyle!="5") {txtSuchwort2 = "<span class=\"bottom\"><strong>&nbsp;&nbsp;"+Such2Titel+"&nbsp;</strong></span>"}; 
			       txtSuchwort2 = txtSuchwort2 + "<select name=\"seekword2\" onchange=\"goSeekWord(this.options[this.selectedIndex].value, 2)\">";
				   for (i=0;i<(parseInt(such2.length)/5);i++)
				     { 
					   (tmpSuchWort == i) ? varTemp = " selected" : varTemp = ""; 
                       txtSuchwort2 = txtSuchwort2 + "<option value=\""+i+"\""+varTemp+">"+such2[(i*5)]+"</option>";
			          }
					txtSuchwort2 = txtSuchwort2 + "</select>";
					
			       }						

               if (Suchwoerter3) {
			       tmpSuchWort = ""; 
				   txtSuchwort3 = "";
             	   if (GlobalSuchTyp=="3") tmpSuchWort = getCookie('Suchwort');
			       //GlobalSuchwort = getCookie('Suchwort');
				   
				   if (MenuStyle!="5") {txtSuchwort3 = "<span class=\"bottom\"><strong>&nbsp;&nbsp;"+Such3Titel+"&nbsp;</strong></span>"}; 
			       txtSuchwort3 = txtSuchwort3 + "<select name=\"seekword3\" onchange=\"goSeekWord(this.options[this.selectedIndex].value, 3)\">";
				   for (i=0;i<(parseInt(such3.length)/5);i++)
				     { 
					   (tmpSuchWort == i) ? varTemp = " selected" : varTemp = ""; 
                       txtSuchwort3 = txtSuchwort3 + "<option value=\""+i+"\""+varTemp+">"+such3[(i*5)]+"</option>";
			          }
					txtSuchwort3 = txtSuchwort3 + "</select>";
					SpecialSearchText = txtSuchwort3; 
			       }  		 

			   
		
		if (TFirst != 0)
		{
		  if (TMode == "S")
		  {
		   //Suchbegriffe
		   var strTempB = "";
	       var strTempE = ""; 
		   varTempB = "<nobr><span class=\"bottom\"><strong>";
		   varTempE = "</strong></span></nobr>"; 
        document.getElementById("Reg11").innerHTML = "&nbsp;";
	    if (Suchwoerter) {document.getElementById("Reg11").innerHTML = varTempB + Such1Titel + varTempE;}  
    	document.getElementById("Reg12").innerHTML = "&nbsp;";
	    if (Suchwoerter)  {document.getElementById("Reg12").innerHTML = txtSuchwort1;};
		
		      if (BKFrames == 1)
		        {
			     //nothing to do
		        }
		      else
		        {
	    document.getElementById("Reg21").innerHTML = "&nbsp;";
	    if (Suchwoerter2) {document.getElementById("Reg21").innerHTML = varTempB + Such2Titel + varTempE;}  
    	document.getElementById("Reg22").innerHTML = "&nbsp;";
	    if (Suchwoerter2)  {document.getElementById("Reg22").innerHTML = txtSuchwort2;};
		        }
		      if (BKFrames == 1 || BKFrames == 2)
		        {
			     //nothing to do
		        }
		      else
		        {
	    document.getElementById("Reg31").innerHTML = "&nbsp;";
	    if (Suchwoerter3) {document.getElementById("Reg31").innerHTML = varTempB + Such3Titel + varTempE;}  
    	document.getElementById("Reg32").innerHTML = "&nbsp;";
	    if (Suchwoerter3)  
		  {
		   //document.getElementById("Reg32").innerHTML = txtSuchwort3;
	       document.getElementById("Reg32").innerHTML = SpecialSearchText; 	  
		  };
}		
		  }
		  else
		  {
		  
		  // Katalog-Struktur
		  
		 //document.getElementById("Reg12").innerHTML = "&nbsp;";
    	 //if (Register) {document.getElementById("Reg12").innerHTML = txtRegister;};		 
		 //   || oder
		 
		 if (TMode == "R") 
		 {
         	     if (BKFrames == 1)
		           {
			        //nothing to do
	  	           }
		         else
		           {			 
	      document.getElementById("Reg21").innerHTML = BKTextKapitel;
		  document.getElementById("Reg22").innerHTML = "&nbsp;";
	      if (Kapitel) {document.getElementById("Reg22").innerHTML = txtKapitel;};
		           }
		 }
		 if ((TMode == "R") || (TMode == "K"))
		 {
                 if (BKFrames == 1 || BKFrames == 2)
		           {
			        //nothing to do
		           }
		         else
		           {			 
	      document.getElementById("Reg31").innerHTML = BKTextUnt;
		  document.getElementById("Reg32").innerHTML = "&nbsp;";
	      if (UnterKapitel) {document.getElementById("Reg32").innerHTML = txtUntKapitel;}; 	
		           }
		 }
		 }
		 
		 //flip2Page(parseInt(helpRegValue)*3);
		 if (TPage == 'N')
		   {
			 TPage = bilder[0];   
		   }
         else
          { 
		    if (TPage == '0') 
			 {
		      TPage = bilder[0]; 
			 }
			else
			 {
              TPage = parseInt(TPage) + 1
			 };
		  }
                
				if (AktPlatform != "MacPPC")
				  { 
              	   blaetterkatalogflip(parseInt(TPage));
				  }
				else 
				  {
		            //alert("FlipToPage = " + bilder[0] + " TAct= " + TActCat + " TOrig = " + TOrigin + " TPage = " + TPage + " Platform= " + AktPlatform);         
    			    var url=ProgName;       
                    document.location.href = url;  
                    if (AktBrowser == "Netscape") 
                      {document.location.href = url; }  
				  }
		}
	  } // Unterschiedlicher Katalog?
	 }


  var txtImgSizing = "";
  var txtRegister = ""; 
  var txtKapitel = ""; 
  var txtUntKapitel = ""; 
  var txtSuchwort1 = ""; 
  var txtSuchwort2 = ""; 
  var txtSuchwort3 = ""; 
  var txtSuchTyp = "1"; 
  var tmpSuchWort = "";  
  					
		

CalcNewCombox (helpRegValue, helpKapValue, helpUntValue, 'R', bilder[1], '0', 'N'); 


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

 function ShowDialog(TYesNo)
   {
    if (TYesNo == 'Yes')
	  {	
	    document.getElementById("Reg11").innerHTML = BKTextRegister;
		document.getElementById("Reg12").innerHTML = "&nbsp;";
	    if (Register) {document.getElementById("Reg12").innerHTML = txtRegister;};
		if (BKFrames == 1)
		  {
			  //nothing to do
		  }
		else
		  { 		
	    document.getElementById("Reg21").innerHTML = BKTextKapitel;
		document.getElementById("Reg22").innerHTML = "&nbsp;";
	    if (Kapitel) {document.getElementById("Reg22").innerHTML = txtKapitel;};
		  }
		if (BKFrames == 1 || BKFrames == 2)
		  {
			  //nothing to do
		  }
		else
		  {  
	    document.getElementById("Reg31").innerHTML =  BKTextUnt;
		document.getElementById("Reg32").innerHTML = "&nbsp;";
	    if (UnterKapitel) {document.getElementById("Reg32").innerHTML = txtUntKapitel;};
		  }
		CookieImgSize = "100"; 
		//if (ns6) alert("NETSCAPE " + AktBrowser +  AktUsAgent + " " + txtKapitel); 
	  }
	if (TYesNo == 'No')
	  { var strTempB = "";
	    var strTempE = ""; 
		varTempB = "<nobr><span class=\"bottom\"><strong>";
		varTempE = "</strong></span></nobr>"; 
	    document.getElementById("Reg11").innerHTML = "&nbsp;";
	    if (Suchwoerter) {document.getElementById("Reg11").innerHTML = varTempB + Such1Titel + varTempE;}  
    	document.getElementById("Reg12").innerHTML = "&nbsp;";
	    if (Suchwoerter)  {document.getElementById("Reg12").innerHTML = txtSuchwort1;};
		if (BKFrames == 1)
		  {
			  //nothing to do
		  }
		else
		  {
	    document.getElementById("Reg21").innerHTML = "&nbsp;";
	    if (Suchwoerter2) {document.getElementById("Reg21").innerHTML = varTempB + Such2Titel + varTempE;}  
    	document.getElementById("Reg22").innerHTML = "&nbsp;";
	    if (Suchwoerter2)  {document.getElementById("Reg22").innerHTML = txtSuchwort2;};
		  }
		if (BKFrames == 1 || BKFrames == 2)
		  {
			  //nothing to do
		  }
		else
		  {		
	    document.getElementById("Reg31").innerHTML = "&nbsp;";
	    if (Suchwoerter3) {document.getElementById("Reg31").innerHTML = varTempB + Such3Titel + varTempE;}  
    	document.getElementById("Reg32").innerHTML = "&nbsp;";
	    if (Suchwoerter3)  
		  {
		   //document.getElementById("Reg32").innerHTML = txtSuchwort3;
	       document.getElementById("Reg32").innerHTML = SpecialSearchText; 	  
		  };		
		  }
		CookieImgSize = "200"; 
		//if (ns6) alert("NETSCAPE " + AktBrowser +  AktUsAgent + txtSuchwort2); 
	  }
   }
   
   var ie4, ns6; 
   ie4 = document.all;
   ns6 = document.getElementById && !document.all;
   var AktBrowser	= navigator.appName;
   var AktUsAgent = navigator.userAgent;
   var AktPlatform = navigator.platform; 

   if (SEARCHField)
	 {
      SpecialSearchText = ''; 
      SpecialSearchText += '<input type="text" name="SuchWert" id="SeekValue"> '; 
      SpecialSearchText += '<a href="#" onClick="javascript:GoSeekPopup();return false;" class="schrift1_klein">' + BKSearching + '</a>';	 
	 }
   else
	{
     SpecialSearchText =  txtSuchwort3;		   
	}