function WindowManager(mw, mh)
{
    /* viewable screen area */
    this.view_width;
    this.view_height;

    /* viewable screen area plus scrollable area */
    this.page_width;
    this.page_height;

    /* current scroll */
    this.scroll_x;
    this.scroll_y;

    /* based on clients window location selection */
    this.chosen_x;
    this.chosen_y;

    this.movie_width = mw;
    this.movie_height = mh;

    this.populatePageDimensions();
}

WindowManager.prototype.populatePageDimensions = function()
{
    if(window.innerHeight == null){
		this.view_width = document.body.clientWidth;
	}
    else{
		this.view_width = document.body.offsetWidth;
    }

    this.page_height = document.body.scrollHeight;
    if(this.page_height < document.body.clientHeight){
        this.page_height = document.body.clientHeight;
    }

    this.view_height = document.documentElement.clientHeight;
    if(this.view_height == 0 || this.view_height > document.body.clientHeight){
        this.view_height = document.body.clientHeight;
    }

    this.page_width = document.body.scrollWidth;

    this.scroll_x = document.body.scrollLeft;
    if(this.scroll_x == 0){
        this.scroll_x = document.documentElement.scrollLeft;
    }

    this.scroll_y = document.body.scrollTop;
	if(this.scroll_y == 0){
		this.scroll_y = document.documentElement.scrollTop;
	}
}