/*
+++++++++++++++++++++
Kaizen equal heights
+++++++++++++++++++++
*/

function equalHeight(group, children) {
    
    $(group).each(function() {
        if ($(this).find('.spotlightFeature1a').children().length < 2) {
            tallest = 0;
            childs = $(this).find(children);
            childs.each(function(){
                thisHeight = $(this).height();
                if(thisHeight > tallest) {
                    tallest = thisHeight;
                }
            });
        }
            childs.height(tallest);  
            
            if ($(this).attr('id') == 'primarySpotlightWrapper'){
                    $(this).find('.infoBox .expandableBoxInner').height(tallest - 60);
            }
    });
    
}

$(document).ready(function() {

        if (!isSaf()){
            equalHeight('.expandableFeatureWrapper', '.spotlightWrapper');
            equalHeight('.expandableFeatureWrapper', '.expandableBoxInner');
            equalHeight('.spotlightFeatureWide', 'div .expandableBoxInner');
            equalHeight('#primarySpotlightWrapper', '.primarySpotlightInner, .expandableBoxInner');
        } 
        
});