// Offset für die Höhe des Menüs
var mhoehe = 65;

function floatButton()
{
        var ns6 = (!document.all && document.getElementById);
        var ie4 = (document.all);
        var ns4 = (document.layers);

        if(ns6||ns4)
        {
                shoehe = innerHeight - mhoehe;
        }
        else if(ie4)
        {
        shoehe = document.body.clientHeight - mhoehe;
        }

        if (document.all) {
                document.all.MenuListe.style.pixelTop = document.body.scrollTop + shoehe;
        }
        else if (document.layers) {
                document.MenuListe.top = window.pageYOffset + shoehe;
        }
        else if (document.getElementById) {
                document.getElementById('MenuListe').style.top = window.pageYOffset + shoehe + 'px';
           }
}

function show_pic(Title,Picture,Breit,Hoch)
{
    xsize = Breit;
    ysize = Hoch;

    ScreenWidth = screen.width;
    ScreenHeight = screen.height;

    //    xpos = (ScreenWidth/2)-(xsize/2);
    //    ypos = (ScreenHeight/2)-(ysize/2);

    // picture_win=window.open("",Name,"height="+ysize+",width="+xsize+",top=0, left=0, scrollbars=no,resizable=no");

    picture_win=window.open("","showpic","height="+ysize+",width="+xsize+", scrollbars=no,resizable=no");
    picture_win.document.write ("<html><head>");
    picture_win.document.write ("<title>"+Title+"</title></head>");
    picture_win.document.write ("<body bgcolor='#000000' marginWidth='0' marginHeight='0' topMargin='0' leftMargin='0'>");

    picture_win.document.write ("<table border='0' cellpadding='0' cellspacing='0' width='100%' height='100%'>");
    picture_win.document.write ("<tr>");
    picture_win.document.write ("<td valign='middle' align='center'><img src='"+Picture+"' border='0'></td>");
    picture_win.document.write ("</tr>");
    picture_win.document.write ("</table>");

    picture_win.document.write ("</body></html>");
    picture_win.document.close();
    picture_win.innerWidth = xsize;
    picture_win.innerHeight = ysize;
    picture_win.focus();
}

if (document.all)
{
        window.onscroll = floatButton;
        window.onchange = floatButton;
        window.onresize = floatButton;
}
else setInterval ('floatButton()', 100);


