$(document).ready(function(){   

    var heightToUse = 0.8 * ($(window).height()); 
    $('.thickbox').each(function(){
        var currentHref = $(this).attr('href');
        $(this).attr('href', currentHref + "&height=" + heightToUse);
    });
    
    
    console.log(heightToUse);
});
