function setEqualHeight(columns) {
    var tallestcolumn = 0;
    columns.each(
                function () {
                    var currentHeight = $(this).height();
                    if (currentHeight > tallestcolumn) {
                        tallestcolumn = currentHeight;
                    }
                });
    columns.height(tallestcolumn);
}

function updateCaptcha(image) {
    $(image).attr('src', '/Captcha.aspx?s=' + new Date().getTime() /*createUUID()*/);
}

function doSubmit(el) {
    var f = $(el).closest('form');
    if (f) {
        f.submit();
    }
}

function closePopup() {
    $.colorbox.close();
}

$(document).ready(function () {

    $('a.wzoom').append($('<div class="zoom-icon" />'));
    $('a.video-preview').append($('<div class="play-icon" />'));

    $("a.green-button, a.green-button-white, a.skype-button")
                .mouseup(function () { $(this).removeClass('active'); })
                .mousedown(function () { $(this).addClass('active'); });

    $("a.green-button, a.green-button-white, a.skype-button").hover
            (
                    function () { },
                    function () { $(this).removeClass("active"); }
            );
});


