
  //automatikus magassag allitas, hogy a dobozok alja egy vonalban legyen
  $(window).load( function(){

     var maxBottom = new Array();

     //melyik elem er leglejjebb (soronkent)
     $.each($("div[rel*=autoHeight]"), function() {        if ( maxBottom[$(this).attr('id')]==undefined || (maxBottom[$(this).attr('id')] < ( $(this).offset().top + $(this).height() )) ) maxBottom[$(this).attr('id')] = $(this).offset().top + $(this).height();
     })

     //minden elemre
     $.each($("div[rel*=autoHeight]"), function() {
        //nem ez ert a leglejjebb
        if ($(this).height()+$(this).offset().top != maxBottom[$(this).attr('id')]) {           //van az alljan doboz, amit lefele kell igazitani => az e feletti eleme magassagat kell beallitani
           if ( $(this).find("div[rel*=lastRow]").height() ) {              $(this).find("div[rel*=resizablePart]").height( $(this).find("div[rel*=resizablePart]").height() + maxBottom[$(this).attr('id')] - ($(this).offset().top + $(this).height()) )
           //a teljes doboz magassagat eleg beallitani           } else {              $(this).height(maxBottom[$(this).attr('id')] - $(this).offset().top);
           }
        }

     })

  } );

