<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title><g:layoutTitle default="gnuMims" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'gnuMimsIcon.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:helpBalloons/>
        <nav:resources override="true"/>
        <g:javascript library="application" />
    </head>

    <!-- Added g:pageProperty so that onload in each page works -->
    <body onload="<g:pageProperty name='body.onload'/>">
        <div id="wrapper" style="height: 100%;">
            <div id="top">
            </div>
            <div id="content" align="center">
                <div id="spinner" class="spinner" style="display:none;">
                    <img src="${resource(dir:'images',file:'spinner.gif')}" alt="Spinner" />
                </div>	
                <div id="Header">
                    <a href="http://www.gnumims.org" id=HeaderLink></a>
                </div>

                <g:isLoggedIn>
                    <div class="appControl">
                        <g:link controller="logout" class="logoutButton">
                                Log out (<g:loggedInUsername/>)
                        </g:link>
                        <div id="menu">
                            <nav:render group="nav"/>
                        </div>
                    </div>
                </g:isLoggedIn>   

                <g:layoutBody />

            </div> <!-- content -->
            <div id="bottom">
            </div>
        </div> <!-- wrapper -->
    </body>	
</html>