<div style="float:left;">
    {include file='r_basic/head.tpl' title="`$i.basic_mailinboxandoutbox`" helpicon_name="mail" helpicon_color="green"}
</div>

<div id="email_cache_progressbars">
    {include file='Mailinoutbox/email_cache_progressbars.tpl'}
</div>

<div id="mailinoutbox_tabs" style="clear:both;">
    <ul>
        <li {if $max_user_only_mailin}class="ui-state-disabled ui-state-hidden"{/if}><a href="{if !$max_user_only_mailin}#mailinoutbox_tabs_inbox{else}javascript: return false;{/if}"><span>{$i.inoutbox_inbox}</span></a></li>
        <li {if $max_user_only_mailin}class="ui-state-disabled ui-state-hidden"{/if}><a href="{if !$max_user_only_mailin}#mailinoutbox_tabs_outbox{else}javascript: return false;{/if}"><span>{$i.inoutbox_outbox}</span></a></li>
        <li><a href="#mailinoutbox_tabs_email_allocation"><span>{$i.inoutbox_email_allocation}</span></a></li>
    </ul>

    <div id="mailinoutbox_tabs_inbox" style="padding-top:20px" {if $max_user_only_mailin}class="ui-state-disabled ui-state-hidden"{/if}>
    </div>
    <div id="mailinoutbox_tabs_outbox" style="padding-top:20px" {if $max_user_only_mailin}class="ui-state-disabled ui-state-hidden"{/if}>
    </div>
    <div id="mailinoutbox_tabs_email_allocation" style="padding-top:20px">
    </div>    
        
    {include file='r_forms/editable_popform.tpl' id="mailoutbox" type="form"}
            {include file='Mailinoutbox/edit_popform_outbox.tpl'}
        </div>
    </form>    
    {include file='r_forms/editable_popform.tpl' id="mailinbox" type="form"}
            {include file='Mailinoutbox/edit_popform_inbox.tpl'}
        </div>
    </form> 
</div>