﻿
function BasePage(pageID)
{
    this.ID = pageID;
    // build page holder
    this.holder = enTag('div', '', {id:this.ID});
    with(this.holder.style)
    {
        width = Settings.HOLDER_WIDTH + "px";
        height = Settings.HOLDER_HEIGHT + "px";
        display = "none";
    }
    // go content!
    this.setContent();
}


BasePage.prototype.openPage = function()
{
    this.holder.style.display = "block";
}

BasePage.prototype.closePage = function()
{
    this.holder.style.display = "none";
}

BasePage.prototype.setContent = function()
{
    // do nothing;
}
