pfeil_rauf_n = new Image();
pfeil_rauf_n.src = "/alle/pics/pfeil_rauf_n.gif";
pfeil_rauf_r = new Image();
pfeil_rauf_r.src = "/alle/pics/pfeil_rauf_r.gif";


function image_changer(tag_id,new_image)
{
  document.images[tag_id].src = new_image.src;
}


function navi_marker1(tag_id, onoff)
{
  if (document.getElementById)
  {
    if (onoff == "on")
    {
      document.getElementById("navi1_td_" + tag_id).style.backgroundColor = "#5C81B1";
    }
    if (onoff == "off")
    {
      document.getElementById("navi1_td_" + tag_id).style.backgroundColor = "#003B85";
    }
  }
  else
  {
    if (document.all)
    {
      if (onoff == "on")
      {
        document.all["navi1_td_" + tag_id].style.backgroundColor = "#5C81B1";
      }
      if (onoff == "off")
      {
        document.all["navi1_td_" + tag_id].style.backgroundColor = "#003B85";
      }
    }
  }
}


function subnavi_marker(tag_id, onoff)
{
  if (document.getElementById)
  {
    if (onoff == "on")
    {
      document.getElementById("subnavi_td_eins_" + tag_id).style.backgroundColor = "#5C81B1";
      document.getElementById("subnavi_td_zwei_" + tag_id).style.backgroundColor = "#5C81B1";
    }
    if (onoff == "off")
    {
      document.getElementById("subnavi_td_eins_" + tag_id).style.backgroundColor = "#E5EBF3";
      document.getElementById("subnavi_td_zwei_" + tag_id).style.backgroundColor = "#E5EBF3";
    }
  }
  else
  {
    if (document.all)
    {
      if (onoff == "on")
      {
        document.all["subnavi_td_eins_" + tag_id].style.backgroundColor = "#5C81B1";
        document.all["subnavi_td_zwei_" + tag_id].style.backgroundColor = "#5C81B1";
      }
      if (onoff == "off")
      {
        document.all["subnavi_td_eins_" + tag_id].style.backgroundColor = "#E5EBF3";
        document.all["subnavi_td_zwei_" + tag_id].style.backgroundColor = "#E5EBF3";
      }
    }
  }
}


function subsubnavi_marker(tag_id, onoff)
{
  if (document.getElementById)
  {
    if (onoff == "on")
    {
      document.getElementById("subsubnavi_td_eins_" + tag_id).style.backgroundColor = "#5C81B1";
      document.getElementById("subsubnavi_td_zwei_" + tag_id).style.backgroundColor = "#5C81B1";
    }
    if (onoff == "off")
    {
      document.getElementById("subsubnavi_td_eins_" + tag_id).style.backgroundColor = "#E5EBF3";
      document.getElementById("subsubnavi_td_zwei_" + tag_id).style.backgroundColor = "#E5EBF3";
    }
  }
  else
  {
    if (document.all)
    {
      if (onoff == "on")
      {
        document.all["subsubnavi_td_eins_" + tag_id].style.backgroundColor = "#5C81B1";
        document.all["subsubnavi_td_zwei_" + tag_id].style.backgroundColor = "#5C81B1";
      }
      if (onoff == "off")
      {
        document.all["subsubnavi_td_eins_" + tag_id].style.backgroundColor = "#E5EBF3";
        document.all["subsubnavi_td_zwei_" + tag_id].style.backgroundColor = "#E5EBF3";
      }
    }
  }
}


function close_or_goto(ziel)
{
  alert(window.opener);

  if (window.opener)
  {
    if (window.opener.closed)
    {
      window.location.href = ziel;
    }
    else
    {
      window.setTimeout("window.close()",1000);
      window.opener.focus();
    }
  }
  else
  {
    window.location.href = ziel;
  }
}
