//----------------------------------------------------------------------------------
function test(x) {if (navigator.appName == 'Microsoft Internet Explorer') x.blur();}

function show_layer(x)
         {
         if(document.layers)
            document.layers[x].visibility="show";
         else
            document.all[x].style.visibility="visible";
            }

function hide_layer(x)
         {
         if(document.layers)
            document.layers[x].visibility="hide";
         else
            document.all[x].style.visibility="hidden";
            }
var old;
var memold;
var subold;
         if(document.layers)
           {
           window.captureEvents(Event.MOUSEDOWN);
           window.onmousedown=do_out;
           } 
         else
           {
           document.onmouseup=do_out;
           }

function do_menu(x)
         {
         if(!old) old=memold;
         if(old!=x)
           {
           show_layer(x);
           old=x;
           }
           else old="";
           }

function do_check(x)
         {
         if(old && old!=x)
           {
           hide_layer(old);
           show_layer(x);
           old=x;
           }
         do_submenu();
         }

function do_out()
         {
         if(old) hide_layer(old);
         memold=old;
         old="";
         do_submenu();
         }

function do_submenu(x)
         {
         if(subold){hide_layer(subold); subold="";}
         if(x){show_layer(x); subold=x;}
         }

function lade(seite) {parent.pageFrame.location.href = seite;}

function aufruf_1(seite)
         {
         parent.lu.document.login.rubrik.value = seite;  
         url = "agbz.php?action=zl&rubrike="+seite;
         window.open(url,'rechts');
         }
function aufruf_2(seite)
         {
         parent.lu.document.login.optionen.value = seite;  
         url = "agbz.php?action=zl&optionen="+seite;
         window.open(url,'rechts');
         }
function Controlla(img)
     {
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewFoto(img)
  {
  largh=foto1.width+20;
  altez=foto1.height+20;
  stringa="width="+largh+",height="+altez+",dependent=yes";
  finestra=window.open(img,"",stringa);
  }
function Foto(img)
     {
     foto1= new Image();
     foto1.src=(img);
     Controlla(img);
     }

