 var ie  = (document.all) ? 1 : 0;
 var ns4 = (document.layers) ? 1 : 0;
 var ns6 = (document.getElementById&&!document.all) ? 1 : 0;
 var mac = (navigator.appVersion.indexOf("Mac") == -1) ? 0 : 1;
 var winHeight = 440;

 function check_menu(oben,unten){
   if(parent.menu.location.href.indexOf(oben) == -1) parent.menu.location.href=oben;
   if(parent.unten.location.href.indexOf(unten) == -1) parent.unten.location.href=unten;
 }

 function setBack(obj,hoehe,breite){
  if(screen.height < 768)
  {
    if(ns4 && !ns6)document[obj].top=winHeight - hoehe +5;
    if(ie) document.all[obj].style.top=winHeight - hoehe;
    if(ns6) document.getElementById(obj).style.top=winHeight - hoehe;
  }
  else
  {
    if(ns4 && !ns6)document[obj].top=window.innerHeight - hoehe +5;
    if(mac && ie) document.all[obj].style.top=document.body.offsetHeight - hoehe;
  }
  if(ns4 && !ns6 && breite!=null)document[obj].left=window.innerWidth - breite +5;
  if(mac && ie && breite!=null) document.all[obj].style.left=document.body.offsetWidth - breite;

  if(ie) document.all[obj].style.visibility = 'visible';
  else if(ns6) document.getElementById(obj).style.visibility = 'visible';
  else if(ns4) document[obj].visibility = 'show';
 }

 function popup(file,hoehe,breite) {
  if(hoehe==null||breite==null){ hoehe=445; breite=348; }
  win = window.open(file,'popup','height='+hoehe+',width='+breite);
  win.focus();
 }