<?
function getmicrotime ()
{
    list(
$usec$sec) = explode(" ",microtime());
    return ((double)
$usec + (double)$sec);
}

function 
getstyle()
{
    global 
$styles$users;
    if (
$users[style])
        return 
$users[style];
    else    return 
$styles[1];
}

// Begins a full HTML page
function HTMLbeginfull ($title)
{
    global 
$starttime$users$action$config;
    
$starttime getmicrotime();
    
Header("Pragma: no-cache");
    
Header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?=$config[servname]?> - <?=$title?></title>
<link rel="stylesheet" type="text/css" href="<?=getstyle()?>">
<link rel="stylesheet" type="text/css" href="http://www.redwallwarlords.com/forums/Themes/SimpleBoard_SMF2_Theme/css/index.css">
<link rel="stylesheet" type="text/css" href="ajax.css">
<? if (($action == "help") && (getstyle() == "light.css")) { ?>
    <link rel="stylesheet" type="text/css" href="help.css">
<? ?>
<script language="javascript">
    <!--
    function showhide(layer_ref) {
        if (document.getElementById &&!document.all) {
            hza = document.getElementById(layer_ref);
            if(hza.style.display == 'none')
                hza.style.display = 'block';
            else
                hza.style.display = 'none';
        }
        return false;
    }
    //-->
</script>




</head>
<!-- This is the logged in-game structure -->
    <body>

        <!-- This is the global header -->
        <?$gh_page_type 'turbo';
        include(
"/home/olivercr/www/rwl/globalheader.php");?>
    
        <div id="wrapper">
        
            <!-- here lies the menu div -->
            <div id="navigation">
                <?include("menus.php");?>
            </div>

                        <div id="sidebar">
                <?include("sidebar.php");?>
            </div>
            
            <!-- here lies the game div -->
            <div id="game">
                <?}
                
// Ends a full HTML page
                
function HTMLendfull ()
                {
                    global 
$starttime;
                    
$endtime getmicrotime() - $starttime;
                    echo 
"<!--$endtime-->\n<!--Mopra 1-->";
                
?>
            </div> <!-- end #game -->
            

            
        </div> <!-- end #wrapper -->

    </body>
</html>
<?
}

// Begins a compact HTML page
function HTMLbegincompact ($title)
{
    global 
$starttime$action$config$link;
    
$starttime getmicrotime();
    
Header("Pragma: no-cache");
    
Header("Expires: Thu, 01 Jan 1970 00:00:00 GMT");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> <?=$config[servname]?> </TITLE>
<link rel="stylesheet" type="text/css" href="http://www.redwallwarlords.com/forums/Themes/SimpleBoard_SMF2_Theme/css/index.css">
</HEAD>

<BODY>
<div id="content">
<h1><?=$config[servname]?></h1>

<table class="hmenu" align="center">
<tr>
<td><a href="<?=$server[url]?><?=$config[main]?>?action=login">Login</a></td>
<td><a href="<?=$config[forums]?>">Forums</a></td>
<td><a href="../<?=$server[url]?>rwldictionary.html">RWL Dictionary</a></td>
<td><a href="../<?=$server[url]?>mentors.html">Mentoring</a></td>
<td><a href="<?=$config[main]?>?action=help">Game Guide</a></td>
<td><a href="../<?=$server[url]?>rwlstaff.html">Staff</a></td>
<td><a href="<?=$server[url]?><?=$config[main]?>?action=contact">Contact</a></td>
</tr>
</table>

<div>
<?
}

// Ends a compact HTML page
function HTMLendcompact ()
{
    global 
$starttime;
    
$endtime getmicrotime() - $starttime;
    echo 
"<!--$endtime-->\n<!-- M344 2-->";
?>
</div>
</div>
</BODY>
</HTML>
<?
}
?>