$(document).ready(function() {
    setTimeout( normalizeGirders, 5);;
});
function normalizeGirders() {
    var cols = $(".col");
    var ha = []; cols.each(function(it,ob){ha[ha.length]=$(ob).height();});
    var h = Math.max.apply(this,ha);
    $(".girder").height(h-100); // 100 is for the ad bubble at the bottom
    $(".tall").height($(".content").height());

    var igs = $(".inner-girder");
    if( null != igs && igs.length ) {
        igs.each(function(it,ob) {
            //console.log(["Setting ",ob.id," height from "+$(ob).height()+" to "+$(ob).parent().height()].join(""));
            $(ob).height($(ob).parent().height());
        });
    }
}
function toggleBookCovers() {
    if( $("#bookCoverToggle").attr("checked") ) {
        $(".book .cover").show();
    } else {
        $(".book .cover").hide();
    }
    normalizeGirders();
}

