window.addEvent( 'domready',
    function ()
    {
        fixFooter();
    }
);

function fixFooter()
{
    windowHeight = ( window.ie6 ) ? document.body.offsetHeight : window.getHeight();
    footerHeight = parseInt( $( 'footer' ).getStyle( 'height' ) );
    containerHeight = parseInt( $( 'container' ).getStyle( 'height' ) ) ;
    if ( containerHeight < ( windowHeight - footerHeight ) )
    {
        atribut = ( window.ie ) ? 'height' : 'min-height';
        newHeight = windowHeight - footerHeight + 'px';
        $( 'container' ).setStyle( atribut, newHeight );
    }
}