Code
<?if($USER_LOGGED_IN$)?> <script type="text/javascript">
$(document).ready(function(){
function lsp(){
var sizeLs, temaLs, vibLs, ssilkLs;
$.get("/index/14",function(ls){
vibLs = $('b.unread', ls);
sizeLs = vibLs.length;
$('.u-menuh:first, .u-menucont:first').css('width','550px');
$('.u-menu:last').css('display','none');
if(sizeLs==1){
ssilkLs = vibLs.parent().attr('href');
$('.admBarCenter:last').html('<a target="_blank" href="'+ ssilkLs + '"><img src="http://mobikirov.ru/za/emailUvedomlenieLc.gif" border="0" alt="ls" width="16px" style="margin-top:3px"></a> ' + sizeLs);
}else if(sizeLs==0){
$('.admBarCenter:last').html('');
}else{
$('.admBarCenter:last').html('<a href="/index/14" target="_blank"><img src="http://mobikirov.ru/za/emailUvedomlenieLc.gif" border="0" alt="ls" style="margin-top:3px"></a> ' + sizeLs)
}
setTimeout(lsp,15000);
})};
lsp();
});
</script><?endif?>