function wahl(nr)
{
  ort = parent.frames["Unten"].document;
  
  for (var i = 1; i < 6; i++)
  {
    wer = "td_" + i;
    wer1 = "bt_" + i;
    ort.getElementById(wer).style.backgroundColor = "#FFCB00";
    ort.getElementById(wer1).style.color = "#5A5A5A";
  }
  
  wer = "td_" + nr;
  wer1 = "bt_" + nr;
  ort.getElementById(wer).style.backgroundColor = "#666666";
  ort.getElementById(wer1).style.color = "#EEEEEE";
}

function plus()
{
  ort = document.getElementById("biwe");
  ist = ort.getAttribute("src");
  suche = ist.lastIndexOf("/");
  ist = ist.slice(suche + 1);
  switch (ist)
  {
    case "uebersicht_0.jpg":
      ort.setAttribute("src", "bilder/uebersicht_1.jpg");
      break;
    case "uebersicht_1.jpg":
      ort.setAttribute("src", "bilder/uebersicht_2.jpg");
      break;
    case "uebersicht_2.jpg":
      ort.setAttribute("src", "bilder/uebersicht_1.jpg");
      break;            
    default:
      break;
  }
}

function minus()
{
  ort = document.getElementById("biwe");
  ist = ort.getAttribute("src");
  suche = ist.lastIndexOf("/");
  ist = ist.slice(suche + 1);
  switch (ist)
  {
    case "uebersicht_0.jpg":
      ort.setAttribute("src", "bilder/uebersicht_1.jpg");
      break;
    case "uebersicht_1.jpg":
      ort.setAttribute("src", "bilder/uebersicht_0.jpg");
      break;
    case "uebersicht_2.jpg":
      ort.setAttribute("src", "bilder/uebersicht_1.jpg");
      break;      
    default:
      break;
  }
}

function plus1()
{
  ort = document.getElementById("biwe");
  ist = ort.getAttribute("src");
  suche = ist.lastIndexOf("/");
  ist = ist.slice(suche + 1);
  switch (ist)
  {
    case "uebersicht_0.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_1.jpg");
      break;
    case "uebersicht_1.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_2.jpg");
      break;
    case "uebersicht_2.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_1.jpg");
      break;            
    default:
      break;
  }
}

function minus1()
{
  ort = document.getElementById("biwe");
  ist = ort.getAttribute("src");
  suche = ist.lastIndexOf("/");
  ist = ist.slice(suche + 1);
  switch (ist)
  {
    case "uebersicht_0.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_1.jpg");
      break;
    case "uebersicht_1.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_0.jpg");
      break;
    case "uebersicht_2.jpg":
      ort.setAttribute("src", "../../wi/standort/bilder/uebersicht_1.jpg");
      break;      
    default:
      break;
  }
}

function handwerk(wer)
{
  wer1 = "din_" + wer;
  ort = document.getElementById(wer1).style;
  ist_vis = ort.visibility;
  if (ist_vis == "visible")
  {
    ort.visibility = "hidden";
    wer2 = "in_" + wer;
    ort = document.getElementById(wer2).style;    
    ort.fontSize = "0";
    ort.lineHight = "0";
    ort.padding = "0";
    ort.paddingLeft = "0";
  }
  else
  {
    for (var i=1; i<11; i++)
    {
      wer1 = "din_" + i;
      ort1 = document.getElementById(wer1).style;
      ort1.visibility = "hidden";
      wer2 = "in_" + i;
      ort1 = document.getElementById(wer2).style;
      ort1.fontSize = "0";
      ort1.lineHeight = "0";
      ort1.padding = "0";
      ort1.paddingLeft = "0";
    }
  
    ort.visibility = "visible";
    wer2 = "in_" + wer;
    ort = document.getElementById(wer2).style;
    ort.fontSize = "100%";
    ort.lineHeight = "110%";
    ort.padding = "10px";
    ort.paddingLeft = "50px";  
  }
}

function verlinken0(wer1, wer2)
{
  switch (wer1)
  {
    case "stadtinf":
      wo2 = "../" + wer1 + "/stifrob2.htm";
      wo4 = "../" + wer1 + "/stifrunt.htm";
      break;
    case "planbau":
      wo2 = "../" + wer1 + "/oben.htm";
      wo4 = "../" + wer1 + "/unten.htm";    
      break;
    case "tourism":
      wo2 = "../" + wer1 + "/toufrobe.htm";
      wo4 = "../" + wer1 + "/toufrunt.htm";
      break;
    case "kultur":
      wo2 = "../" + wer1 + "/kulfrobe.htm";
      wo4 = "../" + wer1 + "/kulfrunt.htm";
      break;
    case "news":
      wo2 = "../" + wer1 + "/newfrobe.htm";
      wo4 = "../" + wer1 + "/newunt.htm";
      break;  
    case "tourism":
      wo2 = "../" + wer1 + "/toufrobe.htm";
      wo4 = "../" + wer1 + "/toufrunt.htm";
      break; 
    case "sport":
      wo2 = "../" + wer1 + "/spofrobe.htm";
      wo4 = "../" + wer1 + "/spofrunt.htm";
      break;
    case "rathaus":
      wo2 = "../" + wer1 + "/rhob.htm";
      wo4 = "../" + wer1 + "/rhunt.htm";
      break;
    default:
      break;
  }

  wo1 = "../" + wer1 + "/navi01.htm";
  wo3 = "../" + wer1 + "/" + wer2 + ".htm"; 
  parent.parent.frames["Links"].document.location.href = wo1;
  parent.frames["Oben"].document.location.href = wo2;
  parent.frames["Mitte"].document.location.href = wo3;
  parent.frames["Unten"].document.location.href = wo4;  
}


function verlinken0a(wer1, wer2, wer3)
{
  switch (wer1)
  {
    case "stadtinf":
      wo2 = "../" + wer1 + "/stifrob2.htm";
      wo4 = "../" + wer1 + "/stifrunt.htm";
      break;
    case "planbau":
      wo2 = "../" + wer1 + "/oben.htm";
      wo4 = "../" + wer1 + "/unten.htm";    
      break;
    case "tourism":
      wo2 = "../" + wer1 + "/toufrobe.htm";
      wo4 = "../" + wer1 + "/toufrunt.htm";
      break;
    case "kultur":
      wo2 = "../" + wer1 + "/kulfrobe.htm";
      wo4 = "../" + wer1 + "/kulfrunt.htm";
      break;
    case "news":
      wo2 = "../" + wer1 + "/newfrobe.htm";
      wo4 = "../" + wer1 + "/newunt.htm";
      break;  
    case "tourism":
      wo2 = "../" + wer1 + "/toufrobe.htm";
      wo4 = "../" + wer1 + "/toufrunt.htm";
      break; 
    case "sport":
      wo2 = "../" + wer1 + "/spofrobe.htm";
      wo4 = "../" + wer1 + "/spofrunt.htm";
      break;
    case "rathaus":
      wo2 = "../" + wer1 + "/rhob.htm";
      wo4 = "../" + wer1 + "/rhunt.htm";
      break;
    default:
      break;
  }

  wo1 = "../" + wer1 + "/navi01.htm";
  wo3 = "../" + wer3 + "/" + wer2 + ".htm"; 
  parent.parent.frames["Links"].document.location.href = wo1;
  parent.frames["Oben"].document.location.href = wo2;
  parent.frames["Mitte"].document.location.href = wo3;
  parent.frames["Unten"].document.location.href = wo4;  
}


function verlinken1(wer1, wer2)
{
  wer10 = wer1;
  switch (wer1)
  {
    case "aktuell":
      wo2 = "../../stadtinf/stifrob2.htm";
      wo4 = "../../stadtinf/stifrunt.htm";
      wer1 = "stadtinf";
      wer10 = "aktuell";
      break;
    case "archiv":
      wo2 = "../../stadtinf/stifrob2.htm";
      wo4 = "../../stadtinf/stifrunt.htm";
      wer1 = "stadtinf";
      wer10 = "archiv";  
      break;  
    case "stadtinf":
      wo2 = "../../" + wer1 + "/stifrob2.htm";
      wo4 = "../../" + wer1 + "/stifrunt.htm";
      break;
    case "planbau":
      wo2 = "../../" + wer1 + "/oben.htm";
      wo4 = "../../" + wer1 + "/unten.htm";    
      break;
    case "news":
      wo2 = "../../" + wer1 + "/newfrobe.htm";
      wo4 = "../../" + wer1 + "/newunt.htm";
      break;
    case "tourism":
      wo2 = "../../" + wer1 + "/toufrobe.htm";
      wo4 = "../../" + wer1 + "/toufrunt.htm";
      break;     
    default:
      break;
  }

  wo1 = "../../" + wer1 + "/navi01.htm";
  wo3 = "../../" + wer10 + "/" + wer2 + ".htm";
  parent.parent.frames["Links"].document.location.href = wo1;
  parent.frames["Oben"].document.location.href = wo2;
  parent.frames["Mitte"].document.location.href = wo3;
  parent.frames["Unten"].document.location.href = wo4;  
}

function verlinken2(wer1, wer2)
{
  wo1 = "../wi/navi01.htm";
  wo2 = "../wi/wirfrobe.htm";
  wo3 = "../wi/" + wer1 + "/" + wer2 + ".htm";
  wo4 = "../wi/wirfrunt.htm";
  
  parent.parent.frames["Links"].document.location.href = wo1;
  parent.frames["Oben"].document.location.href = wo2;
  parent.frames["Mitte"].document.location.href = wo3;
  parent.frames["Unten"].document.location.href = wo4;  
}
function verlinken3(wer1, wer2)
{
  wo1 = "../../wi/navi01.htm";
  wo2 = "../../wi/wirfrobe.htm";
  wo3 = "../../wi/" + wer1 + "/" + wer2 + ".htm";
  wo4 = "../../wi/wirfrunt.htm";
  
  parent.parent.frames["Links"].document.location.href = wo1;
  parent.frames["Oben"].document.location.href = wo2;
  parent.frames["Mitte"].document.location.href = wo3;
  parent.frames["Unten"].document.location.href = wo4;  
}


function unten_auf()
{
  var wert0 = window.parent.document.getElementById("id_frameset");
  wert0.setAttribute("rows", "117,*,0");
}

function unten_zu()
{
  var wert0 = window.parent.document.getElementById("id_frameset");
  wert0.setAttribute("rows", "117,*,24");
}