
/**
 * @filesource: fill.js
 * @author: A. RUIZ
 * @email: adrien.ruiz083@gmail.com
 * @date: 09/12/09
 **/

(function ($) {
    
    $.fn.fill = function (site) {
        var $$ = this, $site = $(site),
            $doc = $(document), $win = $(window);
        
        var _resize = function () {
            if ($win.height () > 0) {
                $$.css ('height', 0);
                $$.css ('height', ($doc.height ()-$site.height ())+'px');
            }
        } // _resize ();
        
        $.slot.add ('action', _resize);
        $doc.ready (_resize);
    } // fill ();
    
})(jQuery);
