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) { //v3.0
  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); 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 horScroll(pl, dir, spd, loop) {
  loop = true;
  direction = "left";
  speed = 10;
  scrolltimer = null;
  piclen = 2000;

  if (document.layers) {
    var scroll1 = eval(document.scroller1);
    var scroll2 = eval(document.scroller2);
  }
  else {
    if (document.getElementById) {
      var scroll1= eval("document.getElementById('scroller1').style");
      var scroll2= eval("document.getElementById('scroller2').style");
    }
  else {
    if (document.all) {
      var scroll1 = eval(document.all.scroller1.style);
      var scroll2 = eval(document.all.scroller2.style);
    }
  }
  }

  direction = dir;
  speed = parseInt(spd);
  piclen = parseInt(pl);

  // 1. SCROLLER
  var x_pos = parseInt(scroll1.left);
  if (loop == true) {
        if (direction == "right") {
                if (x_pos > piclen) {
                        scroll1.left = x_pos - (piclen*2);
                } else {
                        x_pos = (x_pos + (speed));
                                scroll1.left = x_pos
                                if (x_pos < 0) {
                                        scroll2.left = x_pos + piclen;
                                } else {
                                        scroll2.left = x_pos - piclen;
                                }
                }
        } else {
                if (direction == "left") {
                        if (x_pos < -piclen) {
                                scroll1.left = x_pos + (piclen*2);
                        } else {
                                x_pos = (x_pos - (speed));
                                scroll1.left = x_pos;
                                if (x_pos < 0) {
                                        scroll2.left = x_pos + piclen;
                                } else {
                                        scroll2.left = x_pos - piclen;
                                }
                        }               
                }
        }
        

        scrolltimer = setTimeout("horScroll(piclen,direction,speed)", 1);
}
}

function stopScroll() {
loop = false;
clearTimeout(scrolltimer);
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
win = window.open(mypage, myname, winprops);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function CheckFrameset() {
  if (parent.location.href == self.location.href)
    {
    alert ("Diese Seite ist Teil eines Frame-Sets - Daher wird jetzt die Startseite geladen...");
    window.location.href = '/index2.html';
    }
}


function Karte(URL,Width,Height) {
  var MaxHeight = screen.availHeight - 100;
  var MaxWidth = screen.availWidth - 100;

  if (Width > MaxWidth) { 
    Width = MaxWidth;
  }

  if (Height > MaxHeight) { 
    Height = MaxHeight;
  }

  param = "dependent=yes,height="+Height+",left=20,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=20,width="+Width
  window.open(URL,"Karte",param);
}

function Profil(URL,Width,Height) {
  var MaxHeight = screen.availHeight - 100;
  var MaxWidth = screen.availWidth - 100;

  if (Width > MaxWidth) { 
    Width = MaxWidth;
  }

  if (Height > MaxHeight) { 
    Height = MaxHeight;
  }

  param = "dependent=yes,height="+Height+",left=20,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,top=20,width="+Width
  window.open(URL,"Profil",param);
}

function N() {
    document.getElementById("hinweis").style.visibility = "hidden";
    document.getElementById("neu").style.visibility = "visible";

}

function NW() {
  document.getElementById("neu").style.visibility = "hidden";
}


function H() {
    document.getElementById("hinweis").style.visibility = "visible";
    document.getElementById("neu").style.visibility = "hidden";
}

function HW() {
  document.getElementById("hinweis").style.visibility = "hidden";
  document.getElementById("neu").style.visibility = "visible";
}


function WG() {
  document.getElementById("wichtig").style.visibility = "hidden";
}

