/* Author:

*/

$( document ).ready( function() {

    var homeCarouselMaxHeight = 0;

    $( ".home #carousel div.content" ).each( function() {        
        if ( $( this ).height() > homeCarouselMaxHeight )
            homeCarouselMaxHeight = $( this ).height();
    } );    

    $( ".home #carousel div.content" ).height( homeCarouselMaxHeight );

    var homeNewsMaxHeight = 0;

    $( ".home .news article" ).each( function() {        
        if ( $( this ).height() > homeCarouselMaxHeight )
            homeNewsMaxHeight = $( this ).height();
    } );    

    $( ".home .news article" ).height( homeNewsMaxHeight );

    var cellMaxHeight = 0;

    $( ".categories .cell, .projects .cell, .products .cell" ).each( function() {        
        if ( $( this ).height() > cellMaxHeight )
            cellMaxHeight = $( this ).height();
    } );    

    $( ".categories .cell, .projects .cell, .products .cell" ).height( cellMaxHeight );

    var h2MaxHeight = 0;

    $( ".products .product h2" ).each( function() {        
        if ( $( this ).height() > h2MaxHeight )
            h2MaxHeight = $( this ).height();
    } );    

    $( ".products .product h2" ).height( h2MaxHeight );

} );

