if(top.frames.length > 0)
top.location.href=self.location;

/* Nachfolgend eigene Skripte*/

function new_window(URL,Pwidth,Pheight,Pname)
{
 var parameter = "width=" + Pwidth + ",height=" + Pheight + ",scrollbars=no,resizable=no"
 AktionFenster =
 window.open(URL, Pname, parameter);
 AktionFenster.focus();
}

function switch_foto(ID,BildName) {
 window.document.images[ID].src = "pic/" + BildName;
}

function hide(ID) {
 document.getElementById(ID).style.display = "none";
}

function show(ID) {
 document.getElementById(ID).style.display = "block";
}

function show_switch(ID) {
 if(document.getElementById(ID).style.display != "block") {
  document.getElementById(ID).style.display = "block";
 } else {
  document.getElementById(ID).style.display = "none";
 }
}

function switch_text(ID,NeuerText) {
 document.getElementById(ID).firstChild.data = NeuerText;
}

function hide_show(show_div,hide_div) {
var Ausgeblendete = hide_div.split(".");
for (var i=0; i < Ausgeblendete.length; ++i)
  document.getElementById(Ausgeblendete[i]).style.display = "none";
var Eingeblendete = show_div.split(".");
for (var i=0; i < Eingeblendete.length; ++i)
  document.getElementById(Eingeblendete[i]).style.display = "block";
}

function show_eintrag_popup(ID) {
 if (document.all) {
  var scrollPosition = document.body.scrollTop;
 } else if (document.getElementById) {
  var scrollPosition = pageYOffset;
 }
 document.getElementById(ID).style.top = scrollPosition - 50 + "px";
 document.getElementById(ID).style.display = "block";
}

