

/*
    With the absolutly positioned #secondary div, we need 
    to ensure that on empty-ish page (i.e. 404 error page) 
    doesn’t jumble up the secondary content and footer info.
    
    Does this feel a little hackish? Yes. But it’s a fix for 
    a minor problem in an uncommon situation.
*/
function contentHeight() {
    // Find the pixel height we need.
    var minHeightPX = $('#secondary').height() + $('#secondary').offset().top - $('#primary').offset().top;
    // Convert that to ems.
    var minHeight = (1/16)*minHeightPX;
    // Set ``height`` for IE≤6 and ``min-height`` for all others.
    var heightProp = ($.browser.msie && $.browser.version < 7) ? 'height':'min-height';
    $('#container01').css(heightProp, minHeight + 'em');
}



/*
    Functionalize (I love that word) the FAQ lists.
*/
function faqAnim() {
    $('#faq').addClass('anim').find('dd').hide().end().find('dt').click(function() {
        $(this).next().slideToggle();
    });
}



//  Start calling stuff.
$(function(){
    contentHeight();
    faqAnim();
});