<? include("functions.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
    <HEAD>
        <TITLE>Glorious Frames :: <?= $pagetitle ?></TITLE>
        <LINK HREF="main.css" REL="stylesheet" TYPE="text/css">
    </HEAD>
    <NOFRAMES>
        <BODY>
            <H1><?= $pagetitle ?></H1>
            <HR>
            <P><A HREF="#navi">Skip to navigation</A>.</P>
            <HR>
            <?= $pagebody ?>
            <HR>
            <A NAME="navi"></A><H2>Navigation</H2>
            <?= $pagenavi ?>
            <HR>
            <P>Please ignore any links below.</p>
            <HR>
        </BODY>
    </NOFRAMES>
    <FRAMESET COLS="200,*">
        <FRAME NAME="nav" SRC="nav.php?page=<?= $pageid ?>">
        <FRAME NAME="main" SRC="mainframe.php?page=<?= $pageid ?>">
    </FRAMESET>
</HTML>