<div class="animated" style="animation-delay: 0.5s; animation-name: zoomIn;">
    <img src="/web/templates/Freyamu/images/stats-title.png" class="wr_title title_rating">

    <div class="content-center">

        <!--
        <script>
            $(document).ready(function() {
                var destination = $( ".title_rating" ).offset().top;
                jQuery( "html:not(:animated),body:not(:animated)" ).animate( { scrollTop: destination }, 800 );
                return false;
            });
        </script>
        -->
        <script type="text/javascript">
            $(function(){
                setTimeout("$('body,html').stop().animate({  scrollTop:315 },1000)",500);
                $('#b_tabs_stats_0').addClass('active'); // добавить класс
                $('#b_tabs_stats_serv_0').addClass('active'); // добавить класс
            });
        </script>


        <div id="b_tabs_stats_0" class="b_playertop_all s0 active">
            <div class="b_b-content ptop">
                <div class="b_playertop_0 active">
                    <div class="scroller">
                        <table valign="center" cellspacing="0" cellpadding="0" width="25%" border="0" class="tableMain">
                            {if $Castle.owner != ""}
                                <tbody>
                                <tr>
                                    <td rowspan="2" valign="center"><img border="0" src="{$Castle.mark}"></td>
                                    <td style="font-weight:bold">Владельцы</td>
                                </tr>
                                <tr align="left">
                                    <td><a href="/statistic/guild/{$Castle.ownerg}">{$Castle.ownerg}</a></td>
                                </tr>
                                </tbody>
                            {else}
                                <tr>
                                    <td align="center" colspan="2">{$Lang.CastleEmpty}</td>
                                </tr>
                            {/if}
                            </td>
                            </tr>
                        </table>
                        <table width="100%">
                            <tr>
                                <td colspan="2" align="center" style="background: rgba(243, 97, 97, 0.1);">Информация</td>
                            </tr>
                            <tr class="trcs"><td>{$Lang.CastleMoney}</td><td>{number_format($Castle.money)} Zen</td></tr>
                            <tr class="trcs"><td>{$Lang.CastleChaosMachineRate}</td><td>{$Castle.chaos_tax}%</td></tr>
                            <tr class="trcs"><td>{$Lang.CastleTaxRate}</td><td>{$Castle.store_tax}%</td></tr>
                            <tr class="trcs"><td>{$Lang.CastleEntryPrice}</td><td>{number_format($Castle.zone_tax)} Zen</td></tr>
                        </table>
                        <table align="right" valign="top" cellspacing="0" cellpadding="0" width="100%" style=" border-collapse: separate; border-spacing: 2px;empty-cells: hide;">
                            <tbody><tr>
                                <td colspan="2" align="center" style="background: rgba(243, 97, 97, 0.1);">{$Lang.CastleSchedule}</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center">{$Lang.CastleStartPeriod}</td><td>{$Castle.cs_start}</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center">{$Lang.CastleStatusPeriod}</td><td>{$Castle.cs_period}</td>
                            </tr>
                            <tr class="trcs">
                                <td align="center">{$Lang.CastleEndPeriod}</td><td>{$Castle.cs_end}</td>
                            </tr>
                            </tbody></table>
                        <table align="right" valign="top" cellspacing="0" cellpadding="0" width="100%">
                            <tr><td align="center" colspan="2" style="background: rgba(243, 97, 97, 0.1);">{$Lang.CastlePretends}</td></tr>

                            {foreach from=$Castle.g_registed item=value}
                                <tr  class="trcs"><td><a href="/statistic/guild/{$value.guild}"> {$value.guild} </a></td><td><img src="{$value.marks}" alt=""></td></tr>
                            {/foreach}
                        </table>
                    </div></div>
            </div>
            <ul class="b_tabs_sub_0">
                <li class="b_0_pvp "><a href="/statistic/players">Игроков</a></li><li class="b_0_pk active"><a
                            href="/statistic/pk">Убийц</a></li><li class="b_0_clan"><a href="/statistic/guilds">Кланов</a></li><li class="b_0_castl">
                    <a href="/statistic/castle">Замок</a></li>
            </ul>
        </div>

    </div>

