var PrimaryLayout = Class.create();

PrimaryLayout.getInstance = function() {
    if (typeof (PrimaryLayout.instance) == 'undefined') {
        PrimaryLayout.instance = new PrimaryLayout();
    }
    return PrimaryLayout.instance;
};

Object.extend(PrimaryLayout.prototype, {
    initialize: function() {
    },
    renderBottomLinks : function(){
        $('bottom_line').setStyle({visibility: 'visible'});
        $('emptyDiv').setStyle({height: '0px'});
        if (($('bottom_line').cumulativeOffset().top
             - $('r_col').getHeight() 
             - $('r_col').cumulativeOffset().top) <= 0) {

            var marginTopBottomLine = $('r_col').getHeight()
                                      + $('r_col').cumulativeOffset().top
                                      - $('bottom_line').cumulativeOffset().top
                                      + 20;
            $('emptyDiv').setStyle({height: marginTopBottomLine});
        }
        $('botNav').show();
        $('b_links').show();
    }
});