 var pop = null;


  // Funktion zur Referenzierung von Div-Layern mit Zugriff auf CSS-Eigenschaften
//damit in allen Browsern die richtige objekt-syntax gewählt wird.

function div_ref_style (id) {
    if      (document.layers)         return document.layers[id];
    else if (document.all)            return document.all[id].style;
    else if (document.getElementById) return document.getElementById(id).style;
    else                              return null;
}

// Fuer alle Bilder aus app.pl
//erst berechnen wie wiet gescrollt wurde

function showI(bild,PopLayer) {
var x,y;
if (self.pageYOffset) // all except Explorer
{
        x = self.pageXOffset;
        y = self.pageYOffset;
}
else if (document.documentElement && document.documentElement.scrollTop)
        // Explorer 6 Strict
{
        x = document.documentElement.scrollLeft;
        y = document.documentElement.scrollTop;
}
else if (document.body) // all other Explorers
{
        x = document.body.scrollLeft;
        y = document.body.scrollTop;
}
//dann 100 dazu zählen
var mouseypos = 100+y;//y kommt aus den Scroll-Berechnungen vorher
//und jetzt den div an mouseypos anzeigen

     div_ref_style(PopLayer).visibility =  "visible";
    div_ref_style(PopLayer).background = "url(\"..\/images\/"+bild+"\")";
     div_ref_style(PopLayer).top = mouseypos + (document.documentElement? "px" : "");
 pop = div_ref_style(PopLayer).visibility;
 return (pop) ? false : true;
    }
    
// Damit die Bilder auch wieder verschwinden
function popdown(PopLayer) {
// if (pop && !pop.closed) pop.close();
     div_ref_style(PopLayer).visibility =  "hidden";
     div_ref_style(PopLayer).background = "url(\"..\/images\/px.gif\")";
     div_ref_style(PopLayer).top = 200 + (document.documentElement? "px" : "");
 }


  window.onunload = popdown(PopLayer);
