﻿
function equalHeight(group) {
    var tallest = 0;
    group.each(function() {
        var thisHeight = $(this).height();
        if(thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    group.height(tallest);
}

$(document).ready(function () {
    equalHeight($(".eqheight"));

    $('#bannerimages').cycle({ speed: 2000 });

    $(".imgframe").click(function () {
        var a = $(this).find("a:nth-child(1)");
        var href = $(a).attr("href");
        document.location.href = href;
    });
});

function strip(html) {
    var tmp = document.createElement("DIV");
    tmp.innerHTML = html;
    return tmp.textContent || tmp.innerText;
}


