// Strecke den Footer bis zum Ende der Seite:
function findPosY( obj )
{
    var curtop = 0;
    if ( obj.offsetParent )
    {
        while ( obj.offsetParent )
        {
            curtop += obj.offsetTop;
            obj = obj.offsetParent;
        }
    }
    else
        if( obj.y )
            curtop += obj.y;
    return curtop;
}

function getInnerWindowHeight()
{
    var window_Height = 0;
    if ( typeof( window.innerHeight ) == 'number' )
       window_Height = window.innerHeight;
    else
    if (
         document.documentElement
      && document.documentElement.clientHeight
       )
       window_Height = document.documentElement.clientHeight;
    else 
    if (
         document.body
      && document.body.clientHeight
       )
       window_Height = document.body.clientHeight;
    
    return window_Height;
}


function streckeFooter()
{
    var obj = document.getElementById("footer");
    var obj_y = findPosY( document.getElementById("footer") )
    var innenFenster = getInnerWindowHeight();
    
    var neueFooterHoehe = (innenFenster - obj_y);
    
    if ( neueFooterHoehe < innenFenster && neueFooterHoehe > 100 )
    {
        try
        { 
            obj.style.height = neueFooterHoehe + "px"; 
        }
        catch( e )
        {}
    }
}


