// IE6 only - adjust the height of the div so it is an even number
// This solves the problem with incorrectly positioned corners at the
// bottom of divs with height:auto

$(document).ready(function(){
    $('.corners').each (function(box){
        //alert(box.offsetHeight);
        if (box.offsetHeight % 2 == 1 ) {
            // Get the height (minus padding / border) and add 1px
            extraHeight = 0;
            extraHeight += parseInt(box.getStyle('padding-top'));
            extraHeight += parseInt(box.getStyle('padding-bottom'));
            extraHeight += parseInt(box.getStyle('border-top-width'));
            extraHeight += parseInt(box.getStyle('border-bottom-width'));
            box.style.height = box.offsetHeight - extraHeight + 1 + "px";
        }
        //alert(box.offsetHeight);
    });
});