function centerDiv(myDiff) {
    // Set default for myDiff
    if (myDiff == null) { myDiff = 10; }
    // Figure out the height of the main content area
    var height1 = $('#main-content').height();
    // Figure out the height of the content within the main content area
    var height2 = $('#content-wrapper').height();
    // Adjust the padding to center everything. 10 is the approximate padding
    // after each paragraph, which WP automatically adds, even if you just have
    // a photo. So cancel that out with the + 10
    // tl;dr: +10 counteracts bottom paragaph padding WP adds to content
    var newpadding = Math.floor((parseInt(height1) - parseInt(height2)) / 2) + myDiff;
    $('#content-wrapper').css('padding-top',newpadding+'px');
}

function centerFrontPic(myDiff) {
    // Set default for myDiff
    if (myDiff == null) { myDiff = 10; }

    $('div.home #content-wrapper p').each(function() {
        // Figure out the height of the main content area
        var height1 = $('#main-content').height();
        // Figure out the height of the content within the main content area
        var height2 = $(this).height();
        // Adjust the padding to center everything. 10 is the approximate padding
        // after each paragraph, which WP automatically adds, even if you just have
        // a photo. So cancel that out with the + 10
        // tl;dr: +10 counteracts bottom paragaph padding WP adds to content
        var newpadding = Math.floor((parseInt(height1) - parseInt(height2)) / 2) + myDiff;
        $(this).css('top',newpadding+'px');
    })
}
