
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<STYLE>
body, input{
	font-family: Calibri, Arial;
}
#accordion {
	list-style: none;
	padding: 0 0 0 0;
	width: 300px;
}
#accordion li{
	display: block;
    background-color: #3a75c4;
	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.298);
	box-shadow: inset 0px 1px 10px 0px rgba(55, 55, 55, 0.400), 3px 5px 10px rgba(0, 0, 0, 0.402);
	margin: 3px;
	cursor: pointer;
	padding: 6 15 6 10px;
	list-style: circle;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
}


#accordion ul {
	list-style: none;
	padding: 0 0 0 0;
	display: none;
}
#accordion ul li{
	font-weight: normal;
	box-shadow: inset 0px 1px 10px 1px rgba(5, 5, 5, 0.900), 3px 5px 10px rgba(0, 0, 0, 0.302);
	cursor: auto;
	background-color: #0bda51;
	padding: 5 0 5 20px;
}
#accordion a {
	text-decoration: none;
}
#accordion a:hover {
	text-decoration: underline;
}

</STYLE>
<div class="content">
<div class="cl-left">
<div class="acc-titlem"><b>Привет! 

<?=$_SESSION["user"]; ?></div>
<ul class="ca-menu">
<?php
if (isset($_SESSION['admin']))
{ 
$db->Query("SELECT * FROM db_serfing WHERE status = '1' ORDER BY time_add DESC"); 
?>
<li>
<a href="/account/serfing/moder">
            <div class="ca-content">
                <h2 class="ca-main">Медорация</h2>
            </div>
</a>
</li>
<?php
}
?>
    <li>
        <a href="/account/platez">
            <div class="ca-content">
                <h2 class="ca-main">Для покупок: <font color="gold">{!BALANCE_B!}</font></h2>
            </div>
        </a>
    </li>
    <li>
        <a href="/account/payment">
            <div class="ca-content">
                <h2 class="ca-main">Для выплаты: <font color="orange">{!BALANCE_P!}</font></h2>
            </div>
        </a>
    </li>
<div style="margin-top:20px;">
	<li>
        <a href="/account/serfing">
            <div class="ca-content">
                <h2 class="ca-main">Серфинг</h2>
            </div>
        </a>
    </li>
	<li>
        <a href="/account/farm">
            <div class="ca-content">
                <h2 class="ca-main">База</h2>
            </div>
        </a>
    </li>
	<li>
        <a href="/account/store">
            <div class="ca-content">
                <h2 class="ca-main">Лагерь</h2>
            </div>
        </a>
    </li>
	<li>
        <a href="/account/bonus">
            <div class="ca-content">
                <h2 class="ca-main">Бонус</h2>
            </div>
        </a>
    </li>

</div>
<div style="margin-top:20px;">
	<li>
        <a href="/account">
            <div class="ca-content">
                <h2 class="ca-main">Профиль</h2>
            </div>
        </a>
    </li>
    <li>
        <a href="/account/config">
            <div class="ca-content">
                <h2 class="ca-main">Настройки</h2>
            </div>
        </a>
    </li>
	
	    <li>
        <a href="/competition">
            <div class="ca-content">
                <h2 class="ca-main">Конкурс рефералов</h2>
            </div>
        </a>
    </li>
	
    <li>
        <a href="/account/referals">
            <div class="ca-content">
                <h2 class="ca-main">Рефералы</h2>
            </div>
        </a>
    </li>
    <li>
        <a href="/account/chat">
		            <div class="ca-content">
                <h2 class="ca-main">Чат</h2>
            </div>
        </a>
    </li>
</div>
<div style="margin-top:20px;">
	<li>
        <a href="/account/platez">
            <div class="ca-content">
                <h2 class="ca-main">Пополнить баланс</h2>
            </div>
        </a>
    </li>
	<li>
        <a href="/account/payment">
            <div class="ca-content">
                <h2 class="ca-main">Заказать выплату</h2>
            </div>
        </a>
    </li>
	<li>
        <a href="/account/swap">
            <div class="ca-content">
                <h2 class="ca-main">Обменник</h2>
            </div>
        </a>
    </li>
	</div>
<div style="margin-top:20px;">
	<li>
        <a href="/account/lottery">
            <div class="ca-content">
                <h2 class="ca-main">Лотерея</h2>
            </div>
        </a>
    </li>


</div>
<div style="margin-top:20px;">
	<li>
        <a href="/account/exit">
            <div class="ca-content">
                <h2 class="ca-main">Выход</h2>
            </div>
        </a>
    </li>
</div>
</ul>





<SCRIPT>
$("#accordion > li").click(function(){

	if(false == $(this).next().is(':visible')) {
		$('#accordion > ul').slideUp(300);
	}
	$(this).next().slideToggle(300);
});

$('#accordion > ul:eq(0)').show();

</SCRIPT>






