<?php
/* Smarty version 3.1.29, created on 2016-10-26 21:29:48
  from "/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/index.tpl" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_5810f61ce246a8_94980856',
  'file_dependency' => 
  array (
    'f264d32178d5b582bf88edd699e9792c5ea88aa0' => 
    array (
      0 => '/var/www/fr8992/data/www/evomu.ru/views/templates/evomu/index.tpl',
      1 => 1476795952,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5810f61ce246a8_94980856 ($_smarty_tpl) {
if (!is_callable('smarty_modifier_date_format')) require_once '/var/www/fr8992/data/www/evomu.ru/library/Smarty/plugins/modifier.date_format.php';
?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>EvolutionMU</title>
    <link href="/web/templates/default/css/default.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/css/style.css">
    <link rel="stylesheet" type="text/css" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/css/movingboxes.css">
    <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=latin,cyrillic" rel="stylesheet" type="text/css">
    <link rel="stylesheet" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox-thumbs.css-v=1.0.7.css">
    <link rel="stylesheet" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox.css-v=2.1.5.css" media="screen">
    <link rel="stylesheet" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox-buttons.css-v=1.0.5.css">
	<link rel="shortcut icon" href="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/images/favi.png" />
    <?php echo '<script'; ?>
 src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"><?php echo '</script'; ?>
>
    <!--  -->
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/js/jquery.cookie.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/js/circle-progress.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.mousewheel-3.0.6.pack.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox.js-v=2.1.5.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox-buttons.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox-thumbs.js-v=1.0.7.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/fancybox/jquery.fancybox-media.js-v=1.0.6.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/js/jquery.movingboxes.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/js/scripts.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="/web/templates/default/js/progressbar.min.js"><?php echo '</script'; ?>
>

    <?php echo '<script'; ?>
 src="/web/templates/default/js/events.js"><?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 src="/web/templates/default/js/bootstrap.min.js"><?php echo '</script'; ?>
>

    <?php echo '<script'; ?>
 src="/web/templates/default/js/jquery.mixitup.js"><?php echo '</script'; ?>
>

</head>

<body>
<?php echo '<script'; ?>
 type="text/javascript">

             var ct = '<?php echo $_smarty_tpl->tpl_vars['Time']->value;?>
';
            var sd = new Date(ct);
            function az(n) {
                r=(n.toString().length==1)? "0" + n : n;
                return r;
            }
             function srvtime()
            {
                sd.setSeconds(sd.getSeconds()+1)
                tm = az(sd.getHours())+":"+az(sd.getMinutes())+":"+az(sd.getSeconds());
                document.getElementById("srvtime").innerHTML = tm;
            }
            setInterval('srvtime()', 1000);

        <?php echo '</script'; ?>
>
<div class="special"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageSpecial'];?>
</div>
<div class="header hide">
    <div class="bg-nav">
	<div class="main1"
            <ul id="navigation">
                <li><a href="/" ><i class="top-icons-news"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToMain'];?>
</a></li>
                <li><a onClick="showPopup('popup-register');"><i class="top-icons-rules"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToRegister'];?>
</a></li>
                <li><a onClick="showPopup('popup-files');"><i class="top-icons-files"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToFiles'];?>
</a></li>
                <li><a onClick="showPopup('popup-about');"><i class="top-icons-server"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToAbout'];?>
</a></li>
                <li><a onClick="showPopup('popup-donate');"><i class="top-icons-ratings"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToDonate'];?>
</a></li>
                <li><a onClick="showPopup('popup-static');" ><i class="top-icons-statistic"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToStatistic'];?>
</a></li>
                <li><a href="http://evomu.ru/forum" target="_blank"><i class="top-icons-forum"></i><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPageLinkToForum'];?>
</a></li>
            </ul>
			</div>
 
    </div>
    <div class="languages">
        <?php if ($_smarty_tpl->tpl_vars['Language']->value == 'en') {?>
        <a href=""  class="en active"></a>
        <?php } else { ?>
        <a href=""  class="en"></a>
        <?php }?>
        <?php if ($_smarty_tpl->tpl_vars['Language']->value == 'ru') {?>
        <a href=""  class="ru active"></a>
        <?php } else { ?>
        <a href=""  class="ru"></a>
        <?php }?>
    </div>
    <a href="index.htm"  class="logo"></a>
    <style>
        
.header-online .progressbar{
    background:url(../images/progressbar.png) no-repeat;
    width:150px;
    height:150px;
    position:relative;
    margin:0 auto;
}
.header-online .progressbar-text{
    font-weight:700;
    position: absolute; 
    top: 50%; 
    left: 50%; 
    padding: 0px; 
    margin: 0px; 
    -webkit-transform: translate(-50%, -50%); 
    transform: translate(-50%, -50%); 
    color:#b1b1b1;
    font-size:12px;
    line-height:1;
}
.header-online .progressbar-text>span{
    font-size:30px;
}

.header-online .progress-overlay{ 
background:rgba(0,0,0,0.4); 
width:150px; 
height:150px; 
border-radius:50%; 
} 
.header-online .progressbar{ 
position:relative; 
/* background: rgba(0,0,0,0.4); 
border-radius: 50%; */ 
} 
.header-online .progressbar:hover span.online { 
opacity: 1; 
-moz-transform: translateX(0px) translateY(0px) rotate(0deg); 
-webkit-transform: translateX(0px) translateY(0px) rotate(0deg); 
-o-transform: translateX(0px) translateY(0px) rotate(0deg); 
transform: translateX(0px) translateY(0px) rotate(0deg); 
} 
.header-online .progressbar span.online { 
padding: 5px 0px; 
position: absolute; 
left: 50%; 
top: -30px; 
width: 80px; 
margin-left: -40px; 
line-height: 20px; 
font-size: 36px; 
font-weight: bold; 
text-align: center; 
border-radius: 5px; 
opacity: 0; 
-moz-transform: translateX(-70px) translateY(40px) rotate(-90deg); 
-webkit-transform: translateX(-70px) translateY(40px) rotate(-90deg); 
-o-transform: translateX(-70px) translateY(40px) rotate(-90deg); 
transform: translateX(-70px) translateY(40px) rotate(-90deg); 
-webkit-transition: all 0.5s cubic-bezier(.57,.76,.45,1.34); 
-o-transition: all 0.5s cubic-bezier(.57,.76,.45,1.34); 
-moz-transition: all 0.5s cubic-bezier(.57,.76,.45,1.34); 
transition: all 0.5s cubic-bezier(.57,.76,.45,1.34); 
color:#b1b1b1; 
background-color:transparent;
}
    </style>
<div class="item-server" style="
    position: absolute;
    left: 50%;
    margin-left: -70px;">
    <div class="col-md-4">
    <div class="progress-overlay">
        <div id="progressbar-first" class="progressbar">
            <span class="online" id="online1"></span>
            <p class="progressbar-text"><span>Online</span>
                <?php echo $_smarty_tpl->tpl_vars['FullServerOnline']->value;?>
 </p>
        </div>
    </div>
	
	
    

    <?php echo '<script'; ?>
 type="text/javascript">
    $(function() {
        var online;
        document.getElementById('online1').innerHTML='';
        document.getElementById('online1').innerHTML=<?php echo $_smarty_tpl->tpl_vars['FullServerOnline']->value;?>
;
    
    
        var online1;
        var startColor = '#7fc51a';
        var endColor = 'rgba(255,123,0,1)';
        var optsGradient = {
            from: { color: startColor},
            to: { color: endColor}
        };
        var optsBar = {
            color: startColor,
            strokeWidth: 12.25,
            trailWidth: 0,
            duration: 0,
            easing: 'linear',
            text: {
                value: "",
                autoStyle: false
            }
        };
        var optsBarGradient = {
            color: startColor,
            strokeWidth: 12.25,
            trailWidth: 0,
            duration: 0,
            easing: 'linear',
            text: {
                value: "",
                autoStyle: false
            },
    // Set default step function for all animate calls
            step: function(state, circle) {
                circle.path.setAttribute('stroke', state.color);
            }
        };
    
    //online1 = document.getElementById('online1').innerText / 100 / 100;
        online1 = <?php echo $_smarty_tpl->tpl_vars['InWidgetServerInfo']->value['Online'];?>
/200;
        var first = new ProgressBar.Circle('#progressbar-first', optsBar);
        first.animate(online1, function() {
            first.animate(online1);
        });
    
    
    });
    <?php echo '</script'; ?>
> 
</div>
    
</div>



<div class="main">
    <div class="main-width">
	<div class="main-width slider">
    <div class="heading_top"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainHotEvent'];?>
</div>
    <ul id="slider">

        <li>
            <iframe src="https://www.youtube.com/embed/FR5n7KDCzgc" frameborder="0" allowfullscreen></iframe>
        </li>

        <li>
            <iframe src="https://www.youtube.com/embed/9VClKCv4JRI" frameborder="0" allowfullscreen></iframe>
        </li>

        <li>
            <iframe src="https://www.youtube.com/embed/cOGbpR1E0g0" frameborder="0" allowfullscreen></iframe>
        </li>

    </ul>

</div>
        <div class="sidebar_2">
         <div class="control-panel">
                <div class="heading">Время сервера: <span id="srvtime"><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['Time']->value,"%H:%M:%S");?>
</span></div>
            </div>
			<div class="left-block">
              <div class="servers">
            


            <?php
$_from = $_smarty_tpl->tpl_vars['WidgetServerInfo']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_serverInfo_0_saved_item = isset($_smarty_tpl->tpl_vars['serverInfo']) ? $_smarty_tpl->tpl_vars['serverInfo'] : false;
$_smarty_tpl->tpl_vars['serverInfo'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['serverInfo']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['serverInfo']->value) {
$_smarty_tpl->tpl_vars['serverInfo']->_loop = true;
$__foreach_serverInfo_0_saved_local_item = $_smarty_tpl->tpl_vars['serverInfo'];
?>
                <?php echo $_smarty_tpl->tpl_vars['serverInfo']->value;?>

            <?php
$_smarty_tpl->tpl_vars['serverInfo'] = $__foreach_serverInfo_0_saved_local_item;
}
if ($__foreach_serverInfo_0_saved_item) {
$_smarty_tpl->tpl_vars['serverInfo'] = $__foreach_serverInfo_0_saved_item;
}
?>
		</div>
        </div>
        <div class="heading"><p><span style="color:#FFFFFF"><strong>Events</strong></span></p>
</div>
<div class="left-block">
<table width="100%" class="table mix Events">
                    <tr><td style="padding: 0px;">
                            <ul style="list-style: none; padding-left: 0; font-size: 13px;" id="events"> <?php echo '<script'; ?>
 type="text/javascript">MuEvents.init('<?php echo $_smarty_tpl->tpl_vars['Time']->value;?>
');<?php echo '</script'; ?>
> </ul>
                        </td></tr>
                </table>
				</div>
                 <div class="information stock">
                <div class="heading"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainForum'];?>
</div>
               <?php echo $_smarty_tpl->tpl_vars['WidgetForum']->value;?>

            </div>
</div><!--sidebar_2-->

        <div class="content">

            <div id="messages">
                <?php
$_from = $_smarty_tpl->tpl_vars['Messages']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_message_1_saved_item = isset($_smarty_tpl->tpl_vars['message']) ? $_smarty_tpl->tpl_vars['message'] : false;
$_smarty_tpl->tpl_vars['message'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['message']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['message']->value) {
$_smarty_tpl->tpl_vars['message']->_loop = true;
$__foreach_message_1_saved_local_item = $_smarty_tpl->tpl_vars['message'];
?>
                    <p><?php echo $_smarty_tpl->tpl_vars['message']->value;?>
</p>
                <?php
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_1_saved_local_item;
}
if ($__foreach_message_1_saved_item) {
$_smarty_tpl->tpl_vars['message'] = $__foreach_message_1_saved_item;
}
?>
            </div>
            <h2><?php echo $_smarty_tpl->tpl_vars['Lang']->value['NewsTitle'];?>
</h2>
            <?php echo $_smarty_tpl->tpl_vars['page']->value;?>


        </div>
        <div class="sidebar">
           
            <div class="control-panel">
                <div class="heading" ><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainManageAccount'];?>
</div>
				<div class="right-block">
				<div class="login-panel">
                <?php if ($_smarty_tpl->tpl_vars['InLogin']->value == true) {?>
                    <a href="/user" ><div class="icon"><img src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/images/ico-control1.png"  alt="Control"></div><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainLoginInPanel'];?>
</a><br>

                <?php } else { ?>
                <a onClick="showPopup('popup-login');" ><div class="icon"><img src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/images/ico-control1.png"  alt="Control"></div><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainLoginInPanel'];?>
</a><br>
                <?php }?>
                <a onClick="showPopup('popup-restore');" ><div class="icon"><img src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/images/ico-control2.png"  alt="Control"></div><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainRestorePassword'];?>
</a><br>
				</div>
				</div>
            </div>
            <div id="information">
                <div class="heading"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainInfoBlock'];?>
</div>
				
                <!-- Модуль PvP Top -->
                <?php
$_from = $_smarty_tpl->tpl_vars['WidgetStrongest']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_strong_2_saved_item = isset($_smarty_tpl->tpl_vars['strong']) ? $_smarty_tpl->tpl_vars['strong'] : false;
$_smarty_tpl->tpl_vars['strong'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['strong']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['strong']->value) {
$_smarty_tpl->tpl_vars['strong']->_loop = true;
$__foreach_strong_2_saved_local_item = $_smarty_tpl->tpl_vars['strong'];
?>
                    <?php echo $_smarty_tpl->tpl_vars['strong']->value;?>

                <?php
$_smarty_tpl->tpl_vars['strong'] = $__foreach_strong_2_saved_local_item;
}
if ($__foreach_strong_2_saved_item) {
$_smarty_tpl->tpl_vars['strong'] = $__foreach_strong_2_saved_item;
}
?>

                <!-- Модуль PvP Top -->
                <!--<?php
$_from = $_smarty_tpl->tpl_vars['WidgetTopGuilds']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_guild_3_saved_item = isset($_smarty_tpl->tpl_vars['guild']) ? $_smarty_tpl->tpl_vars['guild'] : false;
$_smarty_tpl->tpl_vars['guild'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['guild']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['guild']->value) {
$_smarty_tpl->tpl_vars['guild']->_loop = true;
$__foreach_guild_3_saved_local_item = $_smarty_tpl->tpl_vars['guild'];
?>
                    <?php echo $_smarty_tpl->tpl_vars['guild']->value;?>

                <?php
$_smarty_tpl->tpl_vars['guild'] = $__foreach_guild_3_saved_local_item;
}
if ($__foreach_guild_3_saved_item) {
$_smarty_tpl->tpl_vars['guild'] = $__foreach_guild_3_saved_item;
}
?>-->
                
                <div class="filters">
                   <!--<button class="btn btn-default btn-xs filter" data-filter=".PvP">Players</button>-->
                    <!--<button class="btn btn-default btn-xs filter" data-filter=".Guild">Guilds</button>-->
                    <!--<button class="btn btn-default btn-xs filter" data-filter=".Events">Events</button>-->
                    <!--<button class="btn btn-default btn-xs filter" data-filter="all">Общая</button>-->
                </div>
            </div>
            <div class="information stock">
                <div class="heading">Рынок Персонажей</div>
                <?php
$_from = $_smarty_tpl->tpl_vars['WidgetTopSellerChars']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_topsellerschars_4_saved_item = isset($_smarty_tpl->tpl_vars['topsellerschars']) ? $_smarty_tpl->tpl_vars['topsellerschars'] : false;
$_smarty_tpl->tpl_vars['topsellerschars'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['topsellerschars']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['topsellerschars']->value) {
$_smarty_tpl->tpl_vars['topsellerschars']->_loop = true;
$__foreach_topsellerschars_4_saved_local_item = $_smarty_tpl->tpl_vars['topsellerschars'];
?>
                    <?php echo $_smarty_tpl->tpl_vars['topsellerschars']->value;?>

                <?php
$_smarty_tpl->tpl_vars['topsellerschars'] = $__foreach_topsellerschars_4_saved_local_item;
}
if ($__foreach_topsellerschars_4_saved_item) {
$_smarty_tpl->tpl_vars['topsellerschars'] = $__foreach_topsellerschars_4_saved_item;
}
?>
            
            </div>
          

         
           
        </div>
        <div class="clear"></div>
    </div>
</div>


<div class="footer">
    <div class="main-width">
        <div class="counters">
           <div class="counter"><img src="/web/templates/<?php echo $_smarty_tpl->tpl_vars['template']->value;?>
/images/wm.png"  alt="88x31"></div>
        </div>
        <div class="copyright">
            <a class="totop"></a>
            ©  EvoMu 2016</br>
            
        </div>
        <div class="clear"></div>
    </div>
</div>

<div class="overlay">
    <div class="close-overlay"></div>
    <div class="popup popup-files">
        <a class="close"></a>
        <?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainFilesToGame'];?>

    </div>
	
	<div class="popup popup-static">
        <a class="close"></a>
        <?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainStatic'];?>

    </div>

    <div class="popup popup-register">
        <div class="close"></div>
         <div class="heading" style="margin-left: 100px"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainRegisterTitle'];?>
</div>
        <form name="form" method="post" action="/user/register" autocomplete="off">
            <div class="form">
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterName'];?>
</div>
                    <div class="rcol"><input type="text" class="input" name="name" maxlength="14" required></div>
                </div>

                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterLogin'];?>
</div>
                    <div class="rcol"><input type="text" class="input" name="login" maxlength="14" required></div>
                </div>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterPass'];?>
</div>
                    <div class="rcol"><input type="password" name="pass" maxlength="16" class="input" required></div>
                </div>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterRePass'];?>
</div>
                    <div class="rcol"><input type="password" name="repass" maxlength="16" class="input" required></div>
                </div>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterEmail'];?>
</div>
                    <div class="rcol"><input type="text" name="email" maxlength="64" class="input" required></div>
                </div>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterReferral'];?>
</div>
                    <div class="rcol"><input type="text" name="referer" maxlength="64" class="input"></div>
                </div>

                    <?php if ($_smarty_tpl->tpl_vars['CountDB']->value > 1) {?>
                    <div class="item">
                        <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterSelectDb'];?>
</div>
                        <div class="rcol">
                            <select name="num_db" id="select_db">
                                <?php
$_smarty_tpl->tpl_vars['num_db'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['num_db']->step = 1;$_smarty_tpl->tpl_vars['num_db']->total = (int) min(ceil(($_smarty_tpl->tpl_vars['num_db']->step > 0 ? $_smarty_tpl->tpl_vars['CountDB']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['CountDB']->value-1)+1)/abs($_smarty_tpl->tpl_vars['num_db']->step)),5);
if ($_smarty_tpl->tpl_vars['num_db']->total > 0) {
for ($_smarty_tpl->tpl_vars['num_db']->value = 0, $_smarty_tpl->tpl_vars['num_db']->iteration = 1;$_smarty_tpl->tpl_vars['num_db']->iteration <= $_smarty_tpl->tpl_vars['num_db']->total;$_smarty_tpl->tpl_vars['num_db']->value += $_smarty_tpl->tpl_vars['num_db']->step, $_smarty_tpl->tpl_vars['num_db']->iteration++) {
$_smarty_tpl->tpl_vars['num_db']->first = $_smarty_tpl->tpl_vars['num_db']->iteration == 1;$_smarty_tpl->tpl_vars['num_db']->last = $_smarty_tpl->tpl_vars['num_db']->iteration == $_smarty_tpl->tpl_vars['num_db']->total;?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['num_db']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['NamesDB']->value[$_smarty_tpl->tpl_vars['num_db']->value];?>
</option>
                                <?php }
}
?>

                            </select>
                        </div>
                    </div>
                    <?php }?>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterCaptcha'];?>
</div>
                    <div class="rcol">
                        <img src="/captcha" align="middle" id="captcha2" style=" margin-bottom: 8px;" onclick="this.src='/captcha'">
                        <input type="text" name="captcha" maxlength="64" style="width: 117px;" class="input" required></div>
                </div>
                <div class="info">
                    <button type="submit" name="register_btn" class="btn-orange"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterButton'];?>
</button>
                </div>
                <div class="downloads">
                    <?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterLinkToClient'];?>

					<a href="http://evolutionmu.ru/forum/index.php?/topic/493-pravila-servera/" target="_blank" style="margin-left: 80px;" class="btn-orange">ОЗНАКОМЬТЕСЬ С ПРАВИЛАМИ</a>
                    <br>
               </div>
            </div>
        </form>
    </div>



    <div class="popup popup-login">
        <div class="close"></div>
        <div style="margin-left: 100px">
            <div class="heading"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['LoginTitle'];?>
</div>
        </div>
        <form name="form" method="post" action="/user/login" autocomplete="off">
            <div class="form">
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['LoginLogin'];?>
</div>
                    <div class="rcol"><input type="text" class="input" name="login" maxlength="14" required></div>
                </div>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['LoginPassword'];?>
</div>
                    <div class="rcol"><input type="password" name="pass" maxlength="16" class="input" required></div>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['CountDB']->value > 1) {?>
                    <div class="item">
                        <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreDb'];?>
</div>
                        <div class="rcol">
                            <select name="login_db" id="select_db">
                                <?php
$_smarty_tpl->tpl_vars['num_db'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['num_db']->step = 1;$_smarty_tpl->tpl_vars['num_db']->total = (int) min(ceil(($_smarty_tpl->tpl_vars['num_db']->step > 0 ? $_smarty_tpl->tpl_vars['CountDB']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['CountDB']->value-1)+1)/abs($_smarty_tpl->tpl_vars['num_db']->step)),5);
if ($_smarty_tpl->tpl_vars['num_db']->total > 0) {
for ($_smarty_tpl->tpl_vars['num_db']->value = 0, $_smarty_tpl->tpl_vars['num_db']->iteration = 1;$_smarty_tpl->tpl_vars['num_db']->iteration <= $_smarty_tpl->tpl_vars['num_db']->total;$_smarty_tpl->tpl_vars['num_db']->value += $_smarty_tpl->tpl_vars['num_db']->step, $_smarty_tpl->tpl_vars['num_db']->iteration++) {
$_smarty_tpl->tpl_vars['num_db']->first = $_smarty_tpl->tpl_vars['num_db']->iteration == 1;$_smarty_tpl->tpl_vars['num_db']->last = $_smarty_tpl->tpl_vars['num_db']->iteration == $_smarty_tpl->tpl_vars['num_db']->total;?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['num_db']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['NamesDB']->value[$_smarty_tpl->tpl_vars['num_db']->value];?>
</option>
                                <?php }
}
?>

                            </select>
                        </div>
                    </div>
                <?php }?>

                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['LoginCaptcha'];?>
</div>
                    <div class="rcol">
                        <img src="/captcha" align="middle" id="captcha2" style=" margin-bottom: 8px;" onclick="this.src='/captcha'">
                        <input type="text" name="captcha" maxlength="64" style="width: 117px;" class="input" required></div>
                </div>
                <div class="info">
                    <button type="submit" name="login_btn" class="btn-orange"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['LoginButton'];?>
</button>
                </div>

            </div>
        </form>
    </div>



    <div class="popup popup-restore">
        <div class="close"></div>
        <div class="heading" style="margin-left: 100px"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreTitle'];?>
</div>
        <form name="form" method="post" action="/user/restore" autocomplete="off">
            <div class="form">
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreLogin'];?>
</div>
                    <div class="rcol"><input type="text" name="login" value="" size="20" required maxlength="10"></div>
                </div>

                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreEmail'];?>
</div>
                    <div class="rcol"><input type="text" name="email" value="" size="20" maxlength="35" required></div>
                </div>
                <?php if ($_smarty_tpl->tpl_vars['CountDB']->value > 1) {?>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreDb'];?>
</div>
                    <div class="rcol">
                        <select name="restore_db" id="select_db">
                            <?php
$_smarty_tpl->tpl_vars['num_db'] = new Smarty_Variable;$_smarty_tpl->tpl_vars['num_db']->step = 1;$_smarty_tpl->tpl_vars['num_db']->total = (int) min(ceil(($_smarty_tpl->tpl_vars['num_db']->step > 0 ? $_smarty_tpl->tpl_vars['CountDB']->value-1+1 - (0) : 0-($_smarty_tpl->tpl_vars['CountDB']->value-1)+1)/abs($_smarty_tpl->tpl_vars['num_db']->step)),5);
if ($_smarty_tpl->tpl_vars['num_db']->total > 0) {
for ($_smarty_tpl->tpl_vars['num_db']->value = 0, $_smarty_tpl->tpl_vars['num_db']->iteration = 1;$_smarty_tpl->tpl_vars['num_db']->iteration <= $_smarty_tpl->tpl_vars['num_db']->total;$_smarty_tpl->tpl_vars['num_db']->value += $_smarty_tpl->tpl_vars['num_db']->step, $_smarty_tpl->tpl_vars['num_db']->iteration++) {
$_smarty_tpl->tpl_vars['num_db']->first = $_smarty_tpl->tpl_vars['num_db']->iteration == 1;$_smarty_tpl->tpl_vars['num_db']->last = $_smarty_tpl->tpl_vars['num_db']->iteration == $_smarty_tpl->tpl_vars['num_db']->total;?>
                                <option value="<?php echo $_smarty_tpl->tpl_vars['num_db']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['NamesDB']->value[$_smarty_tpl->tpl_vars['num_db']->value];?>
</option>
                            <?php }
}
?>

                        </select>
                    </div>
                </div>
                <?php }?>
                <div class="item">
                    <div class="lcol"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupRegisterCaptcha'];?>
</div>
                    <div class="rcol">
                        <img src="/captcha" align="middle" id="captcha2" style=" margin-bottom: 8px;" onclick="this.src='/captcha'">
                        <input type="text" name="captcha" maxlength="64" style="width: 117px;" class="input" required></div>
                </div>
                <div class="info">
                    <button type="submit" name="restore_pass_btn" class="btn-orange"><?php echo $_smarty_tpl->tpl_vars['Lang']->value['RestoreButton'];?>
</button>
                </div>

            </div>
        </form>
    </div>




    <div class="popup popup-donate">
        <div class="close"></div>

        <?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupDonate'];?>

    </div>

    <div class="popup popup-about">
        <div class="close"></div>
        <?php echo $_smarty_tpl->tpl_vars['Lang']->value['MainPopupAbout'];?>

    </div>

</div>

</div>

<A href="http://mu.mmotop.ru/servers/22242/votes/new" target="_blank" style="position: fixed; bottom: 0; right: 0; z-index:200000;"><IMG src="http://mu.mmotop.ru/images/v_mu.png" border="0" title="Ranking MMOTOP MU Online" alt="Ranking MMOTOP MU Online"></A>

<A href="http://q-top.ru/vote951" target="_blank" style="position: fixed; bottom: 0; left: 0; z-index:200000"><IMG src="http://q-top.ru/img/banners/left_140x119.png" border="0" title="Ranking Online Games Q-top.ru" alt="Ranking Online Games Q-top.ru"></A>
<?php echo '<script'; ?>
 type="text/javascript">
    $(function(){
        $('#information').mixItUp({
            load: {
                filter: '.PvP',
                sort: false
            },
            layout: {
                display: 'table'
            }
        });
    });
<?php echo '</script'; ?>
>
<a data-config="commands=chat,add,userinfo;size=30;status=on;theme=logo;language=ru;bgcolor=#2a92f3" id="skaip-buttons" href="http://www.skaip.su/">Skype</a><?php echo '<script'; ?>
 src="http://apps.skaip.su/buttons/widget/core.min.js" defer="defer"><?php echo '</script'; ?>
>
</body>
</html>
<?php }
}
