<div class="outerbox" style="display:inline">
  <div class="innerbox">
    <div id="topbar">
      <ul id="customset">
        {foreach from=$CFG.LangList key=Language item=LangName}
        <li class="topmenuli"><a href="{$CFG.BaseURL}CustomSet.php?UserLang={$Language}">{$LangName}</a></li>
        {/foreach}
        <li class="topmenuli">
          <a href="" class="topmenutitle">{$CFG.TopBar.SetStyle}</a>
          <ul class="submenuul">
            {foreach from=$CFG.StyleList key=Style item=StyleName}
            <li class="submenuli"><a href="{$CFG.BaseURL}CustomSet.php?UserStyle={$Style}">{$StyleName}</a></li>
            {/foreach}
          </ul>
        </li>
        <li class="topmenuli">
          <a href="javascript:void(0);" onclick="addToFavorite(this, '{$CFG.SiteName}', '{$CFG.BaseURL}');">{$CFG.TopBar.SetHome}</a>  
        </li>
      </ul>
    </div>
  </div>
  <div class="innerbox">
    <div id="logo">       <img src="{$CFG.BaseURL}Images/Logo.jpg"      border="0" /></div>
    <div id="banner">     <img src="{$CFG.BaseURL}Images/Banner.jpg"    border="0" /></div>
    <div id="adtopright"> <img src="{$CFG.BaseURL}Images/AdTopRight.jpg" border="0" /></div>
  </div>
  <div class="innerbox">
    <ul id="guiderbar">
      {foreach from=$CFG.MenuList item=Menu}
      <li class="topmenuli"><a href="{$CFG.BaseURL}{$Menu.Top.Link}" class="topmenutitle">{$Menu.Top.Text}</a>
        {if $Menu.Sub}
        <ul class="submenuul">
          {foreach from=$Menu.Sub item=SubMenu}
          <li class="submenuli"><a href="{$CFG.BaseURL}{$SubMenu.Link}">{$SubMenu.Text}</a></li>
          {/foreach}
        </ul>
        {/if}
      </li>
      {/foreach}
    </ul>
  </div>
</div>