var Dimensions = function()
{
    var realBody = (!window.opera && document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;

    this.height = function()
    {
        return document.all ? Math.min(realBody.scrollHeight, realBody.clientHeight) : Math.min(window.innerHeight);
    }

    this.width = function()
    {
        return document.all ? realBody.scrollLeft + realBody.clientWidth : window.innerWidth;
    }
}
