<!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:javascript library="jquery" />
        <g:javascript library="prototype/prototype" />
        <g:javascript library="prototype/effects" />
        <g:javascript library="application" />
        <g:javascript src="overlayPane.js" />
        <jsUtil:resources />
        <gnuMims:resources />
        <nav:resources override="true"/>
        <g:helpBalloons icon="${resource(plugin:'help-balloons', dir:'images', file:'balloon-icon.gif')}"
                                        button="${resource(plugin:'help-balloons', dir:'images', file:'balloon-button.png')}"
                                        balloonPrefix="${resource(plugin:'help-balloons', dir:'images')}/balloon-"/>
        <g:layoutHead />
    </head>

    <!-- Added g:pageProperty so that onload in each page works -->
    <body onload="${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:'loading_bar.gif')}" alt="Spinner" />
                </div>
                <g:if env="production">
                    <div id="Header">
                        <a href="javascript: openWindow('http://www.gnumims.org')" id=HeaderLink></a>
                    </div>
                </g:if>
                <g:else>
                    <div id="HeaderDev">
                        <a href="javascript: openWindow('http://www.gnumims.org')" id=HeaderLink></a>
                    </div>
                </g:else>

                <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 class='app_help'>
                            <a href="javascript: openWindow('http://www.youtube.com/gnuMims')">
                                <img src="${resource(dir:'images/skin',file:'help.png')}" alt="Help" title="Help"/>
                            </a>
                        </div>
                        <gnuMims:assetTreeButton />
                    </div>
                </g:isLoggedIn>

                <g:layoutBody />

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

        <!-- Asset Tree Pane -->
        <gnuMims:assetTreePane />

    </body>
</html>