﻿function equalHeight(group) {
    var tallest = 0;
    group.each(function () {
        var thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

function EqualHeightDiv(reference, target) {
    var tallest = $("[id='" + reference + "']").height();
    $("[id='" + target + "']").height(tallest);
}

function ShowHide(trigger, target) {
    $(trigger).hover(function () {
        $(trigger).find("[id='" + target + "']").show();        
    }, function () {
        $(trigger).find("[id='" + target + "']").hide();
    });    
}

function Show(trigger, target) {
//    $(trigger).find('#promo_text_wrapper').show();
    $(trigger).find("[id='"+target+"']").show();
}

function Hide(trigger, target) {    
    $(trigger).find("[id='" + target + "']").hide();
}
