﻿YAHOO.util.Event.addListener(window, "load", function() {

    var xyNoticias = YAHOO.util.Dom.getXY("nbsp_noticias");
    var xyAssociado = YAHOO.util.Dom.getXY("nbsp_associado");
    var xyURL = YAHOO.util.Dom.getXY("nbsp_url");

    var yNoticias = xyNoticias[1] + 170;
    var yAssociado = xyAssociado[1] + 0; // 110
    var yURL = xyURL[1];

    if (yNoticias > yAssociado && yNoticias > yURL) {
        YAHOO.util.Dom.setStyle("nbsp_associado", "height", (yNoticias - yAssociado).toString() + 'px');
        YAHOO.util.Dom.setStyle("nbsp_url", "height", (yNoticias - yURL).toString() + 'px');
    }
    else if (yAssociado > yNoticias && yAssociado > yURL) {
        YAHOO.util.Dom.setStyle("nbsp_noticias", "height", (yAssociado - yNoticias).toString() + 'px');
        YAHOO.util.Dom.setStyle("nbsp_url", "height", (yAssociado - yURL).toString() + 'px');
    }
    else if (yURL > yAssociado && yURL > yNoticias) {
        YAHOO.util.Dom.setStyle("nbsp_noticias", "height", (yURL - yNoticias).toString() + 'px');
        YAHOO.util.Dom.setStyle("nbsp_associado", "height", (yURL - yAssociado).toString() + 'px');
    }

});
