[not-group=5]
<div class="upanel">
	<ul class="reset">
		<li><a class="ubtn" href="javascript:;" onclick="openStaticPopup()" title=""><img src="{THEME}/images/spacer.gif" alt="" /></a></li>
	</ul>
</div>
<div id="loginform" class="window">
	<div class="popup">
    	<div class="poptop">
        	<div class="dpad">
       			<div class="popbg"><div class="popltop"><div class="poprtop">
			<ul class="reset poplinks">
					[admin-link]<li><a href="{admin-link}" target="_blank"><b>Админцентр</b></a></li>[/admin-link]					
					<li><a href="{addnews-link}">Опубликовать</a></li>
					<li><a href="{pm-link}">Почта: ({new-pm}| {all-pm})</a></li>
					<li><a href="{profile-link}">Профиль</a></li>
					<li><a href="{favorites-link}">Закладки</a></li>
				</ul>
                <ul class="reset poplinks">
					<li><a href="{stats-link}">Статистика</a></li>
                    <li><a href="{newposts-link}">Новое</a></li>
					<li><a href="/index.php?do=lastcomments">Комментарии</a></li>
                    <li><a href="{logout-link}"><b>Выход</b></a></li>
				</ul>                    	
                    <div class="clr"></div>      
        		</div></div></div>
        	</div>
        </div>
       <div class="popbtm">
            <div class="closebtn"><a href="javascript:;" onclick="$.closePopupLayer('loginPopup')" title="Закрыть">X</a></div>       
       </div>
        
        
	</div>	
[/not-group]
[group=5]
<div class="lbtns">
	<ul class="reset">
		<li><a class="regbtn" href="{registration-link}" title=""><img src="{THEME}/images/spacer.gif" alt="" /></a></li>
		<li><a class="logbtn" href="javascript:;" onclick="openStaticPopup()" title=""><img src="{THEME}/images/spacer.gif" alt="" /></a></li>
	</ul>
</div>
<div id="loginform" class="window">
	<div class="popup">
    	<div class="poptop">
        	<div class="dpad">
       			<div class="popbg"><div class="popltop"><div class="poprtop">
                <form method="post" action="">
					<div class="mainlfileds">
                    	<div class="llogin"><span><input type="text" name="login_name" id="login_name" class="f_input" /></span></div>
                        <div class="lpass"><span><input type="password" name="login_password" id="login_password" class="f_input" /></span></div>
                    </div>
                    	<div class="lenter"><button onclick="submit();" type="submit" title="Войти"><img src="{THEME}/images/spacer.gif" alt="" /></button></div> 
                		<input name="login" type="hidden" id="login" value="submit" />
				</form> 
                    <div class="clr"></div>      
        		</div></div></div>
        	</div>
        </div>
       <div class="popbtm">
       		<div class="passlost"><a href="{lostpassword-link}">Забыли пароль?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
        
        
	</div>	
[/group]