-function() { 

Related = function() { 
  if(!(this instanceof Related)) return new Related();

  var prj = $('#projects')
    , rel = $('#related')
    , ph, pt, wh, rh;

  if(rel.length > 0) { 
    ph  = prj.height();
    pt  = prj.offset().top;
    wh  = $(window).height();
    rh  = rel.height();

    $.log('relh: '+rh+' pht: ' +(pt+ph)+' pt: '+pt+' ph: '+ph+' wh: '+wh);

    if((pt+ph+rh+25) < wh) { 
      rel.css({ 
        position: 'absolute',
        bottom: 0,
        left: 0,
        height: rh
      });
    } else { 
      rel.css({ 
        position: 'relative',
        top: '100px',
        left: 0,
        height: rh
      });
    }

    rel.show();
  }
};

}();

