﻿GameOver.prototype = new BasePage();
GameOver.prototype.constructor = GameOver;

function GameOver(pageID)
{
    BasePage.call(this, pageID);
}

GameOver.prototype.setContent = function()
{
    var n = this.holder;
    var ph = new PageHeader("You have lost...");
    var a1 = new Button("Instructions", Pages.INSTRUCTIONS, "button1");
    var a2 = new Button("Play Game", Pages.GAME, "button2");
    var content = enTag('p', "Obviously you must try again");
    
    n.appendChild(ph);
    n.appendChild(content);
    n.appendChild(a1);
    n.appendChild(a2);
     document.body.appendChild(n);
}
