function IB() {
 this.c="";
 this.n="";
}
function IT() {
  this.l="";
  this.c="";
  this.n="";
}

B=new Array(); // Information blocks
T=new Array(); // Topics

// Information blocks


B[0]=new IB();B[0].c="Tours";B[0].n="Reiseangebote Afrika";
B[1]=new IB();B[1].c="I";B[1].n="ReiseInfos Afrika";
B[2]=new IB();B[2].c="Thematic";B[2].n="Sanaba Themenreisen";
B[3]=new IB();B[3].c="B2B";B[3].n="Business Service";
B[4]=new IB();B[4].c="Hotel";B[4].n="Hotelreservierung";
B[5]=new IB();B[5].c="Insur";B[5].n="Reiseversicherung";

// End Information blocks

// Themenlisten zu den Informationsbereichen / Information blocks

T[0]=new IT();T[0].l="Tours";T[0].c="";T[0].n="Auswahl      >>"; //       > > >
T[1]=new IT();T[1].l="Tours";T[1].c="../FirstPage.htm";T[1].n="Intro Reiseangebote";
T[2]=new IT();T[2].l="Tours";T[2].c="../ToursByCountry/Botswana/Botswana_Intro.htm";T[2].n="Botswana";
T[3]=new IT();T[3].l="Tours";T[3].c="../ToursByCountry/Gabon/Gabon_Intro.htm";T[3].n="Gabun / Gabon";
T[4]=new IT();T[4].l="Tours";T[4].c="../FirstPage.htm";T[4].n="Intro Reiseangebote";T[4].n="Ghana";
T[5]=new IT();T[5].l="Tours";T[5].c="../FirstPage.htm";T[5].n="Intro Reiseangebote";T[5].n="Kamerun / Cameroun";
T[6]=new IT();T[6].l="Tours";T[6].c="../FirstPage.htm";T[6].n="Intro Reiseangebote";T[6].n="Kenia / Kenya";
T[7]=new IT();T[7].l="Tours";T[7].c="../ToursByCountry/Madagascar/Madagascar_Intro.htm";T[7].n="Madagaskar";
T[8]=new IT();T[8].l="Tours";T[8].c="../ToursByCountry/Mali/Mali_Intro.htm";T[8].n="Mali";
T[9]=new IT();T[9].l="Tours";T[9].c="../ToursByCountry/Namibia/Namibia_Intro.htm";T[9].n="Namibia";
T[10]=new IT();T[10].l="Tours";T[10].c="../FirstPage.htm";T[10].n="Intro Reiseangebote";T[10].n="Senegal";
T[11]=new IT();T[11].l="Tours";T[11].c="../FirstPage.htm";T[11].n="Intro Reiseangebote";T[11].n="Südafrika (RSA)";
T[12]=new IT();T[12].l="Tours";T[12].c="../FirstPage.htm";T[12].n="Intro Reiseangebote";T[12].n="Tansania";
T[13]=new IT();T[13].l="Tours";T[13].c="../FirstPage.htm";T[13].n="Intro Reiseangebote";T[13].n="Uganda";

T[14]=new IT();T[14].l="I";T[14].c="";T[14].n="Auswahl      >>";
T[15]=new IT();T[15].l="I";T[15].c="../Info/IdealTravelSeasons.htm";T[15].n="Ideale Reisezeiten";
T[16]=new IT();T[16].l="I";T[16].c="../Info/Codex.htm";T[16].n="Verhaltenskodex";
T[17]=new IT();T[17].l="I";T[17].c="../Info/Equipment.htm";T[17].n="Reiseausstattung";
T[18]=new IT();T[18].l="I";T[18].c="../Info/YourHealth.htm";T[18].n="Gesundheitsschutz";
T[19]=new IT();T[19].l="I";T[19].c="../Info/TravelInsurance.htm";T[19].n="Reiseversicherungen";

T[20]=new IT();T[20].l="Thematic";T[20].c="";T[20].n="Auswahl      >>";
T[21]=new IT();T[21].l="Thematic";T[21].c="../ThematicTours/IntroThematicTours.htm";T[21].n="Intro Themenreisen";
T[22]=new IT();T[22].l="Thematic";T[22].c="../ThematicTours/ActiveVacation.htm";T[22].n="Aktivurlaub";
T[23]=new IT();T[23].l="Thematic";T[23].c="../ThematicTours/CulturalTours.htm";T[23].n="Kultur und Geschichte";
T[24]=new IT();T[24].l="Thematic";T[24].c="../ThematicTours/NatureWildlife.htm";T[24].n="Natur und Tierleben";
T[25]=new IT();T[25].l="Thematic";T[25].c="../ThematicTours/GeoTours.htm";T[25].n="Faszination Geologie";
T[26]=new IT();T[26].l="Thematic";T[26].c="../ThematicTours/Customize.htm";T[26].n="Afrika Individuell";

T[27]=new IT();T[27].l="B2B";T[27].c="";T[27].n="Auswahl      >>";
T[28]=new IT();T[28].l="B2B";T[28].c="../BusinessService/IntroBusinessService.htm";T[28].n="Intro Business Service";
T[29]=new IT();T[29].l="B2B";T[29].c="../BusinessService/CorporateConvention.htm";T[29].n="Meetings & Seminare";
T[30]=new IT();T[30].l="B2B";T[30].c="../BusinessService/Incentives.htm";T[30].n="Motivationsreisen";

T[31]=new IT();T[31].l="Hotel";T[31].c="";T[31].n="Auswahl      >>";
T[32]=new IT();T[32].l="Hotel";T[32].c="../Service/OpenHolidayGuide.htm";T[32].n="Open Holliday Guide";

T[33]=new IT();T[33].l="Insur";T[33].c="";T[33].n="Auswahl      >>";
T[34]=new IT();T[34].l="Insur";T[34].c="../Service/HanseMerkur.htm";T[34].n="HanseMerkur";




// Ende Themenlisten

function InitMenu(elem, InfoAbout, OnTopic) {
var j, i;
var OnTopicIndex = 0;


  //init menu start
  if(elem.topic != null)
  {
    if (elem.InfoAbout != null)
    {
      //init menu for information block and allocated topics
      InitInfoBlock(elem.InfoAbout, elem.topic, InfoAbout, OnTopic);
    }
  }

}



function changeInfoBlock2(SelInfoBlock, SelTopic)
{
  if (SelInfoBlock.options[SelInfoBlock.selectedIndex].value != "")
    changeInfoBlock4(SelInfoBlock.options[SelInfoBlock.selectedIndex].value, SelTopic);
}

function changeTopic3(CodeInfoBlock, CodeTopic, SelTopic)
{
var j;
var TopicIndex;

  TopicIndex = 0;

  changeInfoBlock4(CodeInfoBlock, SelTopic);

  if((CodeTopic != null) && (CodeTopic != ""))
  {
    for (var j = 0; j < SelTopic.options.length; j++)
    {
      if(CodeTopic == SelTopic.options[j].value)
      {
        TopicIndex = j;
        break;
      }
    }
  }
  SelTopic.selectedIndex = TopicIndex;
}

function changeInfoBlock4(CodeInfoBlock, SelTopic)
{
var j;

  for (j = SelTopic.options.length; j >= 0; j--) SelTopic.options[j] = null;
  for (j = 0; j < T.length; j++)
  {
    if (T[j].l==CodeInfoBlock)
      SelTopic.options[SelTopic.options.length] = new Option(T[j].n,T[j].c);
  }

  SelTopic.selectedIndex = 0;
}


function InitInfoBlock(SelInfoBlock, SelTopic, CodeInfoBlock, CodeTopic)
{
var i, j;
var InfoBlockIndex, TopicIndex;

  InfoBlockIndex = 0;
  TopicIndex = 0;

  for (var j = SelInfoBlock.options.length; j >= 0; j--) SelInfoBlock.options[j] = null;
  i = 0;
  for (var j = 0; j < B.length; j++)
  {
    SelInfoBlock.options[SelInfoBlock.options.length] = new Option(B[j].n,B[j].c);
    if(CodeInfoBlock == B[j].c) InfoBlockIndex = i;
    i++;
  }

  SelInfoBlock.selectedIndex = InfoBlockIndex;
  if (SelInfoBlock.options[SelInfoBlock.selectedIndex].value != "")
    changeTopic3(SelInfoBlock.options[SelInfoBlock.selectedIndex].value, CodeTopic, SelTopic);

}

