function xtreme_header_navigation($nav)
{
    $el = 'div';
    $options = get_option(XF_OPTIONS);
    if (xtreme_is_html5()) {
        $el = $options['xc_navigation']['html5_tag']['value'];
    }
    echo '<' . $el . ' id="' . $nav . 'nav" ' . xtreme_aria_required('navigation', false) . ' class="' . _xtreme_nav_stylesheet($nav) . ' ym-clearfix">';
    do_action('xtreme_header' . $nav . 'nav_top');
    echo _xtreme_navigation_content($nav);
    do_action('xtreme_header' . $nav . 'nav_bottom');
    echo '</' . $el . '>';
}
function xtreme_start_container($div, $role, $el = 'div')
{
    $el = sanitize_key($el);
    $cls = "class='xf-container ym-clearfix linearize-level-1" . xtreme_container_class();
    if ($div === 'main') {
        $cls .= ' ' . xtreme_main_class();
        // fallback for the old bug #173
        $cls .= ' ' . xtreme_container_class() . xtreme_main_class();
    }
    if ($div === 'primarynav' || $div === 'secondarynav') {
        $nav = substr($div, 0, -3);
        $cls .= " " . _xtreme_nav_stylesheet($nav);
    }
    $cls .= "'";
    $html = "<" . $el . " id='" . $div . "' " . $cls . " " . xtreme_aria_required($role, false) . ">\n";
    $html .= xtreme_create_appearance('before');
    echo $html;
}