
var console = function(str)
{
    $("#consoleBody").append("<p>"+str+"</p>");
}

$(document).ready(function()
{
    setStage();
});

var setStage = function()
{
    if($("#andrewsContent").length > 0)
    {
        $("html").css("width","100%");
        $("body").css("width","100%");
        $("#page").css("width","100%");
        $("html").css("height","100%");
        $("body").css("height","100%");
        $("#page").css("height","100%");
        $("html").css("overflow-y","hidden");
        $("body").css("overflow-y","hidden");
        $("#page").css("overflow-y","hidden");

        $("#sidebar").hide();
        $(".post h2").hide();
        $("#footer").hide();
        $("#content").css("padding","0px");
        $("#content").css("margin","0px");
        $("#main").css("padding","0px");
        $("#main").css("margin","0px");
        $("#main").css("width","100%");
        $("#content").css("width","100%");
        $(".entry").css("padding","0px");
        $(".entry").css("margin","0px");
        $(".entry p").css("padding","0px");
        
        
        
        var pageHeight = $("#page").height();
        var headerHeight = $("#header").height();
        var pageMenuHeight = $("#pagemenu").height();
        var contentHeight = pageHeight - headerHeight - pageMenuHeight;

        console("pageHeight = "+pageHeight);
        console("headerHeight = "+headerHeight);
        console("pageMenuHeight = "+pageMenuHeight);
        console("contentHeight = "+contentHeight);

        $("#content").css("height",contentHeight+"px");
        $("#andrewsContent").css("height",contentHeight+"px");
    }
}

