<body class="main" onLoad="TBB.init(); TBB.initMouse();">

<!-- this is a comment -->
<div id="wrapper">
<div id="wrapper-bg">

    <div id="header">
    <div class="spHeaderText">You are logged in as: <strong>[% logged_in_full_name %]</strong></div>
    <img src="/images/tbb/The-Benefit-Bank-logo.gif" alt="The Benefit Bank : Connecting Communities to Resources" />
    </div>

    <div id="nav-main" class="nav">
        [% INCLUDE "links.tt" %]
    </div>


    <div id="translation">
        <form action="/bds" name="fmTranslation" id="fmTranslation" method="POST">
            <select name="selected_language" class="translate" onChange="document.getElementById('fmTranslation').submit(this)">
                [% FOREACH lang = supported_languages %]
                    [% IF lang == 'en-US' %]
                        <option value="en-US"[% IF selected_language == lang %] selected[% END %]>English</option>
                    [% ELSIF lang == 'es' %]
                        <option value="es"[% IF selected_language == lang %] selected[% END %]>Espa&ntilde;ol</option>
                    [% ELSIF lang == 'ht' %]
                        <option value="ht"[% IF selected_language == lang %] selected[% END %]>Krey&ograve;l Ayisyen</option>
                    [% END %]
                [% END %]
            </select>
        </form>
    </div>

    <div id="dvMain">
        <div id="dvErrorMessages"> </div>
        <form action='[% action %]' method='POST' name="fmBDSMain" onSubmit="return TBB.validateFormBDS(this);">
           [% body_html %]
    </div>

[%# triggers here %]
<div id="dvMainTextNav" dir="rtl">
[% FOREACH trigger = triggers %]
    [% IF trigger.type == 'transition' %]
        <input type="image" name="Next" src="/images/tbb/imBtNext.gif" class="np"/>
        <img src="/images/tbb/imBtHash.gif"/>
        <input type="hidden" name="previous_navigation_button_clicked" value=""/>
        [% IF trigger.prolonged %]
            <input type="hidden" id="prolonged" value="[% trigger.prolonged %]"/>
        [% END %]
    [% ELSIF trigger.type == 'backtrack' %]
            <input type="image" src="/images/tbb/imBtPrev.gif" name="previous_navigation_button" onClick="this.form.previous_navigation_button_clicked.value = 1;" class="np"/>
    [% ELSIF type == 'reset' %]
        <div style="margin:12px 10px;"><input type="reset" value="Reset Form" class="rfButton"></div>
    [% END %]
[% END %]
</div>
[% FOREACH field IN hidden_fields %]
    <input type="hidden" name="[% field.name %]" value="[% field.value %]"/>
[% END %]

</form>

[% INCLUDE body_footer.tt %]
</div>
[% INCLUDE debug_footer.tt %]
</div>
[% INCLUDE glos_help.tt %]
</body>