/* configure jshint globals */
/* globals numeral */
(function ($) {
    'use strict';

    // Set langauge for Numeral library.
    numeral.language('es');

    var $toggle = $('<div id=containerDineroYa-toggle>DineroYa</div>');
    $toggle.click(function () {
        $('.containerDineroYa').toggle();
    });
    $('.containerDineroYa').before($toggle);
    $('.containerDineroYa').hide();

    $('center table table:eq(5) tr:gt(1):lt(-2)').each(function () {
        var $tr = $(this);
        var $total = $tr.find('td:eq(2) .pesetas');
        var $disponible = $tr.find('td:last .pesetas');

        numeral.language('es');
        var saldo = numeral($total.html()).subtract(numeral($disponible.html()));

        $disponible.append(' (' + saldo.format('0,0.00') + ')');

    });

})(jQuery);

/* configure jshint globals */
/* globals numeral */
(function ($) {
    'use strict';

    // Set langauge for Numeral library.
    numeral.language('es');

    var $center = $('center');

    var first_table = $('center').prev().detach();
    $center.after(first_table);

    var dinero_ya = $('.containerDineroYa').detach();
    $center.append(dinero_ya);

    $center.find('>div:eq(0)>br').remove();

    $center.find('table table:eq(5) tr:gt(1):lt(-2)').each(function () {
        var $tr = $(this);
        var $total = $tr.find('td:eq(2) .pesetas');
        var $disponible = $tr.find('td:last .pesetas');

        numeral.language('es');
        var saldo = numeral($total.html()).subtract(numeral($disponible.html()));

        $disponible.append(' (' + saldo.format('0,0.00') + ')');

    });

})(jQuery);

Change order of home page elements
Change order of home page elements
